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
Hi Richard, UI elements are visible. And I called the sub interface as above suggested and passing the rule input. But unfortunately it is not refreshing.
again, because the whole approach is not working like that.you dont call an Interface in a local.compare it to the example i posted previously. structure wise.
shubhamy0005 said:this is to refresh the sub interface on variable change
Yeah, what Richard said - this isn't how refreshing of an interface works. In >99.9% of cases, you will want to call a sub-interface directly. Within that interface you will handle any variable refreshing, for any variables local to that interface, inherently. This can include passing in a "trigger" variable to force-refresh them, when needed, though this is really only truly necessary on special occasions (like forcing a query to refresh after a "refresh" button click from the parent).
A component should never be used as the value of a local variable. While no error will be shown, placing a component in a local variable may result in unexpected or inconsistent behavior. Instead, components should be reused by defining them in a new interface rule.docs.appian.com/.../Local_Variables.html
Essentially by calling another interface which contains components per rule! as value for a local, thats happening. so avoid that.
Unknown said:A component should never be used as the value of a local variable
Oof. Strong words there - I actually do use a component initialized in a local variable in one of my custom components - the thing with that is, i tested it extensively and understand what it's doing ;-) And also it's smallish.
Edit: actually, that being said, it's barely a "component". It's just a rich text item.