Can anyone explain why data is not save in the "saveInto".Below is the

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
    Certified Lead Developer
    There is a known issue in 7.8 (and maybe previous versions) where you can't save into multiple targets when directly using a!dynamicLink in a looping function such as apply() or applyComponents(). If you put the dynamicLink control into a sub-expression and call that instead in your apply() then you will be able to save into multiple targets.
Reply
  • 0
    Certified Lead Developer
    There is a known issue in 7.8 (and maybe previous versions) where you can't save into multiple targets when directly using a!dynamicLink in a looping function such as apply() or applyComponents(). If you put the dynamicLink control into a sub-expression and call that instead in your apply() then you will be able to save into multiple targets.
Children
No Data