3 Separate Grids but the same CDT

Hi, 

I am able to create an editable grid. In order to separate the rows by type, I have created 3 grids on the same interface that are linked to the same CDT. How can I create filters so that the data displayed on each grid will be of a certain type? 

The hard bit then, is when I select "remove row", how can I best manage the index so it deletes the correct row?

I am using a!forEach to create the grid following the Appian recipes. 

Many thanks, 

Eric

  Discussion posts and replies are publicly visible

Parents
  • How can I create filters so that the data displayed on each grid will be of a certain type?
    You can groupby the certain type while fetching data from db into different local variables.
    how can I best manage the index so it deletes the correct row?
    You can create a header cell with width as ICON and configures the imageFiled in the row layout
    a!imageField(
    label: "delete " & fv!index,
    images: a!documentImage(
    document: a!iconIndicator("REMOVE"),
    altText: "QQQQQ",
    caption: "Remove QQQQQ",
    link: a!dynamicLink(
    value: fv!index,
    saveInto: {
    a!save(local!cdt, remove(local!cdt, save!value))
    }
    )
    ),
    size: "ICON"
    )
Reply
  • How can I create filters so that the data displayed on each grid will be of a certain type?
    You can groupby the certain type while fetching data from db into different local variables.
    how can I best manage the index so it deletes the correct row?
    You can create a header cell with width as ICON and configures the imageFiled in the row layout
    a!imageField(
    label: "delete " & fv!index,
    images: a!documentImage(
    document: a!iconIndicator("REMOVE"),
    altText: "QQQQQ",
    caption: "Remove QQQQQ",
    link: a!dynamicLink(
    value: fv!index,
    saveInto: {
    a!save(local!cdt, remove(local!cdt, save!value))
    }
    )
    ),
    size: "ICON"
    )
Children
No Data