Indexing to Lis of text String

Hi All,

I am trying to use indexing for type " List of Text String " but the output i am getting not the expected output i am adding the screenshots here for reference.

Thanks In advance,

SSP

  Discussion posts and replies are publicly visible

Parents Reply
  • a!localVariables(
      local!exceldata,
      a!sectionLayout(
        contents: {
          a!fileUploadField(
            label: "Upload a File :",
            target: cons!IT_FOLDER,
            fileNames: "File Reading-File Uploaded on " & text(now(), "ddmmyyhhmmss"),
            fileDescriptions: "File Reading Interface Testing on File Uploaded on " & text(now(), "ddmmyyhhmmss"),
            maxSelections: 1,
            value: ri!uploadedFile,
            saveInto: {
              ri!uploadedFile,
              a!save(
                local!exceldata,
                index(
                  readexcelsheet(
                    excelDocument:todocument(ri!uploadedFile),
                    sheetNumber:0,
                    startRow: 0
                  ),
                  "result",
                  {}
                )
              )
            },
            required: true(),
            validations: if(
              contains({ "csv", "xlsx" }, fv!files.extension),
              {},
              "Only CSV,XLSX formats files should be uploaded but uploaded file is of format ." & fv!files.extension
            )
          ),
          a!gridField(
          label: "Excel Data :",
          emptyGridMessage: "Please Upload a File with Values",
          data: remove(local!exceldata, 1),
          columns: a!forEach(
          items: local!excelData[1].values,
          expression: a!gridColumn(label: fv!item, value: index(fv!row,fv!index,{}))
          ),
          showWhen: not(a!isNullOrEmpty(ri!uploadedFile))
          )
          
        }
      )
    )

    I have tried that but in the save into, I don't know why? but the readexcelsheet function is not working.
    Should we not use readexcelsheet in saveinto ?

Children