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
4 subscribers
Views
1948 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 8 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
0
Chris
over 8 years ago
...abel: "Data",
firstColumnContents: {
a!textField(
label: "data",
labelPosition: "ADJACENT",
value: local!data,
saveInto: local!data,
refreshAfter: "UNFOCUS"
),
rule!chris_testUpdateRule(
data: local!data
)
},
secondColumnContents: {}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ambrishs
Certified Senior Developer
over 8 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
0
Chris
over 8 years ago
Thanks ambrishs - I am ok using rule inputs for now instead of local variables within the rule, will make a note of this going forward.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel