Hi all! I’m building a dashboard which can extract a set of data from a database (e.g. a list of partnumbers). The dashboard contains a set of Widgets where the “Re-execution on widget value change” is TRUE to interactively filter on the dataset (so far so good, this is the first row of widget on the image below).
Now I’ve added a String Widget in combination with the Refresh Button Widget, which I want to use to filter on e.g. a partnumber in the database. Whenever I click the Refresh Button Widget, the database must be queried again looking for the partnumber (or partnumber wildcard) set in the String Widget. The result of this query will be displayed in a Table View node. This refreshing should be possible as many times as the end-user wants and should only update the “Partnumber Viewer” area.
Unfortunately, I can’t make the two Widgets work with each other. I’ve tried changing the order and location within the workflow, but I can’t get it working. It looks like the String Widget is not compatible with the Refresh Button Widget.
Any ideas if this is even possible? Or maybe with the use of JavaScript or other nodes?
I am not entirely sure I am getting the problem, but for the “refresh button widget” to actually refresh the input of the “String Widget” it would need to be placed before the “String Widget” (or at least connected to it). When clicking on the refresh button everything that is downstream of that node will be re-executed. In your case the String Widget is upstream, which means that it will not be updated.
I hope this solves your problem, but feel free to ask again if I misunderstood something.
@DanielBog Thanks for your response. I indeed tried this yesterday, but what I noticed is the settings of the “String Widget” are reset by the “refresh button widget” to the default instead of being used downstream. So unfortunately that’s not working for me.
could you share a minimal example? The value of the string widget should get applied after hitting the refresh button. Are you testing it in the Analytics Platform or on the Hub/WebPortal?
I don’t know what part actually failed yesterday, but now it all seems to work…
Attached you will find the workflow with the interactive Widgets working, including the String Widget and Refresh Button Widget. Hopefully it would be a good example for others who struggle with the widgets.