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
13 replies
Subscribers
7 subscribers
Views
7206 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Can anyone explain why data is not save in the "saveInto".Below is the
kumara0002
A Score Level 1
over 9 years ago
Can anyone explain why data is not save in the "saveInto".Below is the code snippet-using Appian 7.5 and 7.8
load(
local!aggregateID,
local!var1,
local!data: {{label : "ABC",aggregateID : "123"},{label : "XYZ",aggregateID : "456"}},
{
a!linkField(
label:"( Set same as that of household )",
links:fn!apply(
a!dynamicLink(
label :_,
value:_,
saveInto: {
local!aggregateID,
local!var1
}
),
merge(fn!index(local!data,"aggregateID",{}),fn!index(local!data,"aggregateID",{}))
)),
a!textField(value : fn!index(local!data,"aggregateID",{})),
a!textField(value : local!aggregateID)
}
)
Error in 7.5 as :- An error occurred while executing a save: Expression evaluation error : You must specify a variable to ...
OriginalPostID-141120
OriginalPostID-141120
Discussion posts and replies are publicly visible
Parents
0
sariqs
over 9 years ago
Just to add some more information for which I was struggling to get an answer on that, in case you want to save single value from DynamicLink's saveInto remove curly braces and put variable directly.
Don't use with curly braces,
a!applyComponents(
function: a!dynamicLink(
value:_,
saveInto: {local!selectedRecord}
),
array: local!attachments_list
)
Use without curly braces as shown below,
a!applyComponents(
function: a!dynamicLink(
value:_,
saveInto: local!selectedRecord
),
array: local!attachments_list
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sariqs
over 9 years ago
Just to add some more information for which I was struggling to get an answer on that, in case you want to save single value from DynamicLink's saveInto remove curly braces and put variable directly.
Don't use with curly braces,
a!applyComponents(
function: a!dynamicLink(
value:_,
saveInto: {local!selectedRecord}
),
array: local!attachments_list
)
Use without curly braces as shown below,
a!applyComponents(
function: a!dynamicLink(
value:_,
saveInto: local!selectedRecord
),
array: local!attachments_list
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data