Hi , Can anyone help me with this please!. Thank you for the help in advance.
local!pdf ,
ri!upload: recordType!ABC(),
.
....
.....
shadeAlternateRows: true, addRowLink:a!dynamicLink( label: "Add", saveInto: { a!save(local!pdf, append(local!pdf, ri!upload) ) } )
I am trying to add a new row , but maybe i am using ri!upload as value i am unable to get the desired output , the interface iis showing the same uploaded images every time i click on add new image link.
Discussion posts and replies are publicly visible
That's normal since you are saving multiple files in the same variable (ri!upload).
Here is an example that might help understand
a!localVariables( local!pdfs, a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "File") }, rows: a!forEach( items: local!pdfs, expression: a!gridRowLayout( contents: { a!fileUploadField( value: local!pdfs[fv!index].fileId, saveInto: local!pdfs[fv!index].fileId, maxSelections: 1 ) } ) ), addRowLink: a!dynamicLink( label: "Add new row", saveInto: { a!save( local!pdfs, append(local!pdfs, a!map(fileId: null)) ) } ) ) )