Hi All,
I am stcuk with one of the implementation as described below:
I have a variable local!a which is having the values like 12;23;34 etc separated by semi-colon, when user click on save button the values 12, 23 and 34 should be saved into different rows in tables instead of single row.
Thank you
Discussion posts and replies are publicly visible
a!localVariables( local!a: {12;23;34}, local!saveData, { a!buttonLayout( primaryButtons: { a!buttonWidget( label: "save", saveInto: { a!save( local!saveData, a!forEach( items: split(local!a,";"), expression: { id: fv!index, output: fv!item } ) ) } ) } ) } )
Hi shubhamy0001,
I have attached a sample code for the requirement , hope it can be helpful . I am constructing and saving the data in a localvaiable (local!saveData), u can use a cdt in the expression of the foreach and save the value in the respective column.
And the in the button save u can have write to DB function (a!writeToDataStoreEntity())