Issue in updating a list of record type

Certified Associate Developer

I have a record type list - saved in local!displayitems it has 9 items and i am displaying it in the grid

when I select the rows in grid it gets saved in the local!selectedrow variable 

now, i am doing some manipulation and updating few fields in the selected rows and then wanted to save them to the local!display items upon button click , here is teh code, can you tell me what is wrong , since displayitems is nested , i flattened it

a!forEach(
items:a!flatten(ri!displayItems),
expression:{
a!save(fv!item[recordtype.fields.preparedBy'],
a!update(
fv!item[recordtype.fields.preparedBy'],
{
index(

fv!item[recordtype.fields.procedureReferenceId'],
ri!selectedrows[recordtype.fieldsprocedureReferenceId']

)
},{ri!selectedrows[recordtype.fields.preapredby]}
)
)

error:

  Discussion posts and replies are publicly visible

Parents Reply Children