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
2 replies
Subscribers
7 subscribers
Views
1087 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I would like to copy the value from a selectable SAIL gridField into a rule inpu
joshuaq
over 11 years ago
I would like to copy the value from a selectable SAIL gridField into a rule input ri!selectedDoc. Currently the local variable called local!selectedDocumentId holds the selected value of the grid. I tried doing the following: 1) local!selectedDocumentId: ri!selectedDoc
and
2)saveInto: ri!selectedDoc
Both of these methods didn't yield the correct results. Anybody has any ideas?...
OriginalPostID-102453
OriginalPostID-102453
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 11 years ago
As stated in the answer to your previous post the ri! namespace cannot be used as a target for saving a value. You need to have local!selectedDocumentId in the load() section of your expression and then in the with() section you can pass it into a rule:
load(local!selectedDocumentId,
with(
a!gridField(...),
local!exprResult: rule!myRule(local!selectedDocumentId)
))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
joshuaq
over 11 years ago
There is no separate rule called myRule....I am using the selectedDocumentId inside of the same rule where I have all the grid functionality being written....and I want to pass the value of selectedDocumentId into a rule input ri!selectedDoc inside the same rule.....later I will pass this rule input into a pv variable which can be used inside a Delete Document smart service to delete that document using its id that was passed from local!selectedDocumentId to ri!selectedDoc to the pv! variable I declared.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel