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
7 replies
Subscribers
7 subscribers
Views
4296 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hello. Anyone know how to save/update multiple local!variables in a gridTextCol
hajii
over 10 years ago
Hello. Anyone know how to save/update multiple local!variables in a gridTextColumn's links? I can get it to update one variable (local!theID) like this:
links: apply(a!dynamicLink(value: _, saveInto: local!theID), {local!allIDs})),
But getting it to also save another variable like in the following does not work:
links: apply(a!dynamicLink(value: _, saveInto: {local!theID,a!save(local!subID,-1)}), {local!allIDs})),
...
OriginalPostID-121416
OriginalPostID-121416
Discussion posts and replies are publicly visible
0
Aleksi White
Appian Employee
over 10 years ago
This has some examples that should help:
forum.appian.com/.../Evaluation_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
Thanks Aleksi. However the problem/issue appears to be with a!dynamicLink's saveInto in the context of apply.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Have you reviewed the SAIL compliant version of apply?
forum.appian.com/.../System_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
applyComponents also doesn't do the additional a!save() in the a!dynamicLink's saveInto, see below. Basically I need the dynamicLink to update the value of local!theID and also update/reset another local!subID to -1:
links: a!applyComponents(a!dynamicLink(value: _, saveInto: {local!theID,a!save(local!subID,-1)}), {local!allIDs}, {}))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
The solution is to make a custom rule! which makes the dynamicLink and then its saveInto can be a list:
links: a!applyComponents(function: rule!makeDL(_), array: {local!allIDs})
Where rule!makeDL takes a Any arg like:
a!dynamicLink(
value: ri!arg,
saveInto: {local!theID,a!save(local!subID,-1)}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
yehuac
over 10 years ago
hi, i encoutered this issue several days ago. it seems "dynamicLink" can only save one variable.
i changed to use editable gird later(make all fields readonly),
in this way, "dynamicLink" can save multiple variables.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 10 years ago
Yes. I Faced same problem when tried to save multiple values on dynamicLink
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel