linking with interface

Certified Associate Developer

in interface read only grid i just want one city name and area name what configuration i need to do

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to lokeshp0003

    a!localVariables(
      local!result: index(
        a!flatten(
          index(
            a!fromJson(
              index(
                index(
                  rule!INT_currencyConverter(110001),
                  "result",
                  {}
                ),
                "body",
                {}
              )
            ),
            "PostOffice",
            {}
          )
        ),
        1,
        {}
      ),
      a!gridField(
        data: local!result,
        columns: {
          a!gridColumn(label: "Name", value: fv!row.State),
          a!gridColumn(label: "Area", value: fv!row.Name)
        }
      )
    )

    Let me rephrase your question.

    You are getting multiple result from the integration for example 5 rows. Now, you want to show only 1 rows which is at index 1 into the grid instead of all the 5 rows. Correct? if yes, then into the data configuration on your gridField use index(local!result, 1, {}).