in a paragraph field i will provide input as
test1
test2
test3
How this data will be stored in db ,is it will be in line by line as separate string or as a single string
Discussion posts and replies are publicly visible
If I understood correctly, you want to store these as separate line items in the DB but have them in one paragraph field in the interface?
yes Mathieu Drouin
Hello Fursat,You can try using the below format. But you will have to construct the data for each line value and map your Parent record/data PK here and also try to have a sort/order value using the indexes, so that the text entered is always displayed in the correct order.
a!localVariables( local!save, local!update:if( a!isNullOrEmpty(local!save), {}, reject( fn!isnull(_), split(local!save," ") ) ), { a!paragraphField( label: "Paragraph", labelPosition: "ABOVE", value: local!save, saveInto: local!save, refreshAfter: "UNFOCUS", height: "MEDIUM", validations: {} ) } )