Skip to main content
January 9, 2024
Question

Expression rule output not refreshing in local variable, when a local variable changes

  • January 9, 2024
  • 4 replies
  • 0 views

/resized-image/__size/640x480/__key/communityserver-components-multipleuploadfilemanager/691ed5a4_2D00_253d_2D00_4a6c_2D00_ab4d_2D00_de6eca162f4c-262524-complete/pastedimage1704715806284v1.png

local!buttonAction is a local variable that changes value from null to CANCEL after a Cancel button is clicked.
When this local!buttonAction value changes, I want my reference number value should get changed (refreshed).
But it's not refreshing.

Any suggestions ??

    4 replies

    niranjanreddym9323
    January 9, 2024

    Hi [mention:0978fce727ae42c9af6e4fa1afe22d08:e9ed411860ed4f2ba0265705b8793d05] ,

    use refresh variable for the reference variable as below

    a!refreshVariable(
    value:reference varibale,
      refreshOnVarChange: local!buttonAction
    )

    prakhars0731
    January 9, 2024

    Hi [mention:0978fce727ae42c9af6e4fa1afe22d08:e9ed411860ed4f2ba0265705b8793d05]  you can use a!refreshVariable() function for refresing the particular variable but don't for to use refresh counter if you want to refresh this variable on the basis of any other interface button.

    harshitb6843
    January 9, 2024

    The image is not loading for me. IDK if it is only with me. 
    But with what you have described, it should work automatically. If not, you can try using a!refreshVariable(). 
    If you care to add the code snippet, I will be able to provide a better understanding and solution. 

    venkatrea696188
    January 9, 2024

    Yeah same thing for me too image is not loading