Skip to main content
March 9, 2023
Question

How to refresh value of local variable

  • March 9, 2023
  • 2 replies
  • 0 views

Hi,

I have defined a local variable inside interface in which i am updating value of rule input like

local!item: ri!data,

Now I created one expression rule inside that i am writing multiple validations, in this expression rule inside rule input I am passing local! items from interface and I am calling this expression rule on save button for disable it, but it is not working.

Note: local!items value is getting updated in interface while changing row value in grid.

    2 replies

    March 9, 2023

    Are you able to provide your sale and expression code for the logic that you mentioned 

    abhayd3663
    March 9, 2023

    Are you using localvariables() ?

    It lets you define one or more local variables for use within an expression. When used within an interface, the value of each variable can be refreshed under a variety of conditions, configured using a!refreshVariable().

    The local variables inside localvariables() are automatically updated when their dependencies change.