Skip to main content
sauravk
September 14, 2021
Question

Rule is not getting call dynamically

  • September 14, 2021
  • 7 replies
  • 0 views

Hi All,

I am passing one dynamic value in expression rule in textField to display value but rule is not getiing refresh n taking old value only.

Here below rule should take dynamic value n on t he basis of that should return respective value .

Below field in in with(). What could be the root cause of that please share.

a!textField(
label: "Name",
value:rule!getNamebyId(local!data.requestId),
readonly: true()
)

    7 replies

    stefanhelzle0001
    Brainy
    September 14, 2021

    Do you use local variables inside that expression?

    sauravk
    sauravkAuthor
    September 14, 2021

    yes

    stefanhelzle0001
    Brainy
    September 14, 2021

    If you use load() or a!localVariables, change it to with() or add a!refreshVariable(refreshAlways: true).