Hi,
Could you tell me how a filtered RecordType grid (placed inside an interface) can be refreshed please ?
My RecordType data are retrieved from the a!recordData() function, and is filtered on the field "deleted" (all rows are visible if delete = "false").
I have a button that calls an Expression Rule to update the underlying table to set the "deleted" field of the selected row to "true".
(I use the WriteToDataStoreEntity Smartservice).
After the table is updated in database, I have click to click on the "refresh" icon of the RecordType to see that all is working fine : the lines are hidded.
How would you refresh the RecordType, without a manual user action please ?
(I intentionnaly do not use any process model for this example)
Discussion posts and replies are publicly visible
For clarification, did you actually mean to say "can't be refreshed due to external input"?
I think what Danny is saying is that there is a parameter directly on the grid that allows you to refresh based on a referenced variable change - in cases where a!recordData() is used, you can utilize these parameters on the grid to provide the same behavior as you would get from a!refreshVariable().
For instance, I think if you try adding this line within your grid it should work:
refreshOnVarChange: {ri!selectedvehicle.deleted}
Thanks Peter - I actually hadn't noticed that a!gridField() had gotten "refreshOnVarChange" etc parameters. cedric01 i believe this should answer it for you. I've tried in my test interface and it does successfully refresh now on increment of the refresh counter.
That's great, it works well! like you Mike, I did not know that the Gridfield had such a refresh parameter.
Thank you Mike, Peter, Danny for your help :-)