a!refreshVariable will it work on expression rule in a interface

In our application we have requirement , where user keeps the interface static and we need to implement auto refresh for this.

we are thinking of using a!refreshVariable in our interface based on interval time the data which need to be refreshed comes from a expression rule, heard that only local variables gets refreshed not expression rules using a!refreshVariable, Please correct me if I am wrong. If possible kindly share any code snippets available for the mentioned scenario.

kindly do not paste the code snippets available in in Appian Documentation.

Thanks in advance.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    You'll probably need to test for yourself to be sure, but I would expect this should work fine - assuming your refresh variable is defined on an interface with a refresh interval declared, and the value is being set to that returned by an expression rule.  All you'd need to do to test this is create an example expression rule that returns a value like "now()", and on your test interface, declare a refresh variable using that expression rule and a refresh interval of 1 -- and then also on that same interface, place a paragraph field (or whatever you prefer) to display the value of the variable.

Reply
  • 0
    Certified Lead Developer

    You'll probably need to test for yourself to be sure, but I would expect this should work fine - assuming your refresh variable is defined on an interface with a refresh interval declared, and the value is being set to that returned by an expression rule.  All you'd need to do to test this is create an example expression rule that returns a value like "now()", and on your test interface, declare a refresh variable using that expression rule and a refresh interval of 1 -- and then also on that same interface, place a paragraph field (or whatever you prefer) to display the value of the variable.

Children
No Data