Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
5 subscribers
Views
2114 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I've noticed that if an interface calls a rule containing a load() function
Chris
over 9 years ago
I've noticed that if an interface calls a rule containing a load() function with local variables, the rule's local vars do not get updated when the parent interface refreshes. However if I use ri!'s only, the values are updated. Is there any way to force a sub rule's local variables to be refreshed when the parent interface is? This shows the input changes are realized but the local variables do not get re-evaluated. Not sure if it is possible for force local variables to be updated?
Sub rule, does NOT update:
= load(
local!data: ri!data,
a!textField(
label: "data",
value: local!data,
labelPosition: "ADJACENT",
disabled: true
)
)
DOES Update:
= load(
local!data: ri!data,
a!textField(
label: "data",
value: ri!data, /* only change is using ri! instead of local! */
labelPosition: "ADJACENT",
disabled: true
)
)
Parent Interface:
load(
local!data: "test",
a!formLayout(
l...
OriginalPostID-165491
OriginalPostID-165491
Discussion posts and replies are publicly visible
Parents
0
ambrishs
Certified Lead Developer
over 9 years ago
by definition variables initialized inside load gets assigned only once and it doesn't change. alternatively you can try with if it helps.
If possible you can get those variables in sub rule directly passed from parent rule.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
ambrishs
Certified Lead Developer
over 9 years ago
by definition variables initialized inside load gets assigned only once and it doesn't change. alternatively you can try with if it helps.
If possible you can get those variables in sub rule directly passed from parent rule.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data