Refresh Embedded Interface

Certified Senior Developer

Hi Everyone, I have two interfaces, interface 1 and Interface 2. The interface 2 is inside interface 1, interface 1 is having a button which is calling exp rule to call web service to update DB. Now when I click on button the interface 2 is not refreshing latest data. Could you please suggest how to achieve this?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to shubhamy0005

    thats not how appian works.
    locals are meant for values (before some other lead devs interjecting - know the rule, break the rule)
    and not interfaces.
    example how it shoudl rather look like:
     

    example appplication (EXA)
    
    code for the main interface "ECA_MainInterface"
    
    a!localvariables(
        local!myValue1,
        local!myValue2: a!refreshVariables(
            value: ....
            refreshOnVarChange:local!myValue1
        ),
    
        rule!EXA_subinterface(ruleInput: local!myValue1)
    
    )
    
    sub interface "EXA_subinterface"
    a!localvaraibles(
        local!myvalue3: a!refreshVariables(
            value: ....
            refreshon: ri!ruleInput
        ),
    .....
    
    )
    
    local!myvalue2 and local!myvalue3 variables will be updated the moment "local!myValue1" is updated
    
    
    if you want to have dynamic interfaces on the level of visibility, you need showWhen conditions


Children
No Data