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 Associate Developer
    in reply to Deepak gupta

    I want state and area name from integration object which is at index 1. So in interface i have used read 

    only grid in that i use coloum and in display value i have done fv!row.name so it is give me all name i just want- 

    first name which is at index one how can i do this plz help me 

  • 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, {}).