Data needs to be stored in line by line

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

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Tabassum

    Hello ,

    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: {}
        )
      }
    )

Children
No Data