Skip to main content
January 22, 2021
Question

How to refresh dynamically a RecordType inside in an interface?

  • January 22, 2021
  • 24 replies
  • 2 views

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)

24 replies

manuelh0002
January 22, 2021

the best solution I can think is to use a local variable that refreshes

January 22, 2021

Thank you Manuel for your reply, but  a!recordData() is set to a local variable.

But while this local variable is refreshed (with refreshvariable function), the RecordType is never refreshed.

Am I missing something ?

mikes0011
Brainy
January 22, 2021

Could you post some of your SAIL code?  I would just ask that you use a code box:

The Expression Guru