Skip to main content
sauravk
New Participant
Sep 14, 2021 6:41 AM UTC
Question

Rule is not getting call dynamically

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
    Sep 14, 2021 6:56 AM UTC

    Do you use local variables inside that expression?

    sauravk
    sauravkAuthor
    New Participant
    Sep 14, 2021 6:59 AM UTC

    yes

    stefanhelzle0001
    Brainy
    Sep 14, 2021 7:01 AM UTC

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