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
1 reply
Subscribers
7 subscribers
Views
761 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am having problems getting a save of a remove function to return the correct v
michaelk910
over 9 years ago
I am having problems getting a save of a remove function to return the correct value. Per the Knowledge Base I have created SAIL code that takes an array of documents, removes the document that was selected in a paging grid, and saves that value to a local variable.
Pertinent code snippets:
load(
local!overrideDocs: apply(fn!document(_,"name"),
{ri!overrideAttachedDocs}
),
LATER-
saveInto: {a!save(local!overrideDocs,(remove(ri!overrideAttachedDocs, local!gridSelection.selected))),
}
The remove part, remove(ri!overrideAttachedDocs, local!gridSelection.selected), returns the expected values, but the save does not.
OriginalPostID-154428
OriginalPostID-154428
Discussion posts and replies are publicly visible
Parents
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
Correct me if i'm wrong, but initially it looks like you're loading local!overrideDocs with the document *names* from the ri!overrideAttachedDocs array; but then in the saveInto, it looks like you're trying to save the document array straight into local!overrideDocs (which should have been initiated as text per the above).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
Correct me if i'm wrong, but initially it looks like you're loading local!overrideDocs with the document *names* from the ri!overrideAttachedDocs array; but then in the saveInto, it looks like you're trying to save the document array straight into local!overrideDocs (which should have been initiated as text per the above).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data