Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

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