Show data from record type in editable grid

Hi all,

I'm a beginner of Appian, and I am required to show data in a record type by using editable grid in an interface.

May I know how to do it?

If I use "read-only" grid, it is easy to show the data from record type, but I cannot do it by using an editable grid..

I've tried to look for a document in https://docs.appian.com/suite/help/24.2/Editable_Grid_Component.html#related-patterns, but I could not find it.

I need your help!

Thank you in advance,

Yuki

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    hi  May I know why you would like to show your data in editable, are you going to edit your data?

    For showing data in an editable grid. You can initially query your data in a local variable. then use  that local variable in your gird

    {
      a!localVariables(
        local!data: /*your record type query*/,
    
        a!gridLayout(
          label: "Editable Grid",
          labelPosition: "ABOVE",
          headerCells: {
            a!gridLayoutHeaderCell(label: "Id"),
            a!gridLayoutHeaderCell(label: "Name"),
            a!gridLayoutHeaderCell(label: "")
          },
          columnConfigs: {
            a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
            a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
            a!gridLayoutColumnConfig(width: "DISTRIBUTE")
          },
          rows: a!forEach(
            items: local!data,
            expression: a!gridRowLayout(
              contents: {
                a!textField(
                  value: index your record type field           
                  saveInto:  index your record type field 
                ),
              }
            )
          ),
          selectionSaveInto: {},
          validations: {},
          shadeAlternateRows: true
        )
      )
    }
     

Reply
  • 0
    Certified Senior Developer

    hi  May I know why you would like to show your data in editable, are you going to edit your data?

    For showing data in an editable grid. You can initially query your data in a local variable. then use  that local variable in your gird

    {
      a!localVariables(
        local!data: /*your record type query*/,
    
        a!gridLayout(
          label: "Editable Grid",
          labelPosition: "ABOVE",
          headerCells: {
            a!gridLayoutHeaderCell(label: "Id"),
            a!gridLayoutHeaderCell(label: "Name"),
            a!gridLayoutHeaderCell(label: "")
          },
          columnConfigs: {
            a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
            a!gridLayoutColumnConfig(width: "DISTRIBUTE"),
            a!gridLayoutColumnConfig(width: "DISTRIBUTE")
          },
          rows: a!forEach(
            items: local!data,
            expression: a!gridRowLayout(
              contents: {
                a!textField(
                  value: index your record type field           
                  saveInto:  index your record type field 
                ),
              }
            )
          ),
          selectionSaveInto: {},
          validations: {},
          shadeAlternateRows: true
        )
      )
    }
     

Children