Error while submitting the form. save values error kindly help

Code : 

a!buttonWidget(
label: "Save & Exit",
tooltip: "Click here to save the data & resume the task later",
saveInto: {
a!save(ri!Save,true),a!save(ri!Submit,false),
a!forEach(
items: local!samtask,
expression: {
if(
isnull(fv!item.creationDate),
a!save(
fv!item.creationDate,today()
)
, null
),
if(isnull(fv!item.lastUpdateDate), a!save(
fv!item.lastUpdateDate,today()
), null)

,
if(isnull(fv!item.createdby),a!save(
fv!item.createdby,(user(loggedInUser(),"firstName")&" "&user(loggedInUser(),"lastName"))
), null),
if(isnull(fv!item.lastUpdatedby),a!save(
fv!item.lastUpdatedby,(user(loggedInUser(),"firstName")&" "&user(loggedInUser(),"lastName"))
), null),
if(isnull(fv!item.comments) ,a!save(
fv!item.comments,"Row created at CCA task interface by user"
), null)

}
),
a!save(ri!SamTask,local!samtask)

},
submit:true,
size: "STANDARD",
style: "PRIMARY",
disabled:and(a!forEach(
items: local!samtask,
expression: fv!item.istaskdone
))

ERROR : Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error [evaluation ID = 0IAGCEKD] : An error occurred while executing a save: Expression evaluation error: You must specify a variable to save into, such as ri!name << fn!sum. Received: List of Text String.

Kindly help me Thanks

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data