Skip to main content
14-Alexandrite
October 10, 2023
Question

How to: Dashboard containing multiples of the same gadget but different data

  • October 10, 2023
  • 1 reply
  • 2451 views

If I have a gadget that has notes, how can I have a dashboard that contains three of these gadgets but displays different notes? Or, if someone enters a note, when an auto-refresh happens, how can this note stick to this gadget?

 

We have multiple use cases similar to this and I am wondering if this is even possible. For example we have an instance where we want the user to upload an image and display it via a gadget on a dashboard. However, we want to be able to do this multiple times and have it stick on refresh.

 

It is my understanding that..

1) Gadgets within a dashboard cannot interact with one another.
2) Dashboards cannot send parameters to a gadget.
3) Gadgets do not have a unique ID to tie specific data to.

 

So, I think this is not possible and only predefined data can be displayed on a gadget?

 

1 reply

22-Sapphire I
October 11, 2023

I believe Gadgets will lock in the assigned mashup parameter value when adding the Gadget to a Dashboard.

So you would want to create a construct where that happens.

Let's say the image, I don't remember if that is an available type for a mashup parameter, but if not, you can use an associated id or name.

Then within the gadget use the mashup parameter either directly to assign as a value or use it into a server to bring in the image.

14-Alexandrite
October 11, 2023

I don't think this is what I am asking. So, let's do a simple example. Is this possible? and if so, how?

 

1) Create a simple gadget that holds notes.

2) Place 3 of these in a dashboards

3) Have users input notes in each gadget

4) refresh the page or navigate away and back

5) Each note is still in each respective gadget

 

If that is possible, please explain how I would do this. And if it is possible, keep in mind this is the simplest form of this example. We would also need a user to be able to edit any of these notes and have the latest edits appear on reload. 

22-Sapphire I
October 16, 2023

The trick is still the mashup parameter, you can assign an id per gadget as it is added through the mashup parameter and then store the content typed in and associate it with that id. Then the next time you load, use that id to get the correct information.