Hi Dojo,
I have an application where I use action buttons in DOM to update the state of my DOM instance.
All of this is working as expected, however, I'm unable to identify how I could trigger an update of the (GQI) table in my app, listing my DOM instances after an action button is pressed in the form component.
Do you have any suggestions?
Hi Ive,
For now you will indeed, as Wouter suggests, need to create a button to trigger a table refetch action.
Note that you can also add a button to your app that saves the current state of the DOM instance in your form component. After that save action you can configure a table refetch action.
FYI, development has started on realtime updates in GQI. This means that if a DOM instance is updated it should automatically be visible in the table. This will reduce the overhead of fetching all DOM instances which have not been updated. Note that there will be conditions that could limit receiving updates, for example when using certain operations such as join, aggregation, top-x...
Hi Ive,
I've also come across this predicament before.
Unfortunately, unlike on an action button in the header bar, there is no possibility to add a follow up action on an action button in a table. I believe I did create a new feature request for that. My workaround so far is to provide a refresh button in the header bar.
For the update of the table, you can trigger an 'Execute component action' > 'Table, Fetch the data' > '[select table]'
Hi Ive,
The current limitation with DOM and Low-Code Apps is that the buttons present in the form are defined only in the DOM (status) definition and do not have any context of Low-Code Apps. To enable the execution of Low-Code App actions alongside DOM actions, a software extension would be needed.
While you can add a 'refresh' button to the app, it may not suffice for your use case where automatic data updates are expected. As mentioned by Ward, GQI will soon have real-time updates for specific data sets and queries, which could be a suitable solution depending on your query and use case.