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
  • I think you can use this approach:

    load (
    local!allData: rule!getAllData(),
    local!dataWithType1: rule!getDataWithType1(local!allData),
    local!dataWithType2: rule!getDataWithType2(local!allData),
    local!dataWithType3: rule!getDataWithType3(local!allData),
    a!sectionLayout(
    contents: {
    // grid 1 with local!dataWithType1 as data.
    // grid 2 with local!dataWithType2 as data
    // grid 3 with local!dataWithType 3 as data
    }
    )
    )

    On each of the grids, there are removeIcons as noted in the editable grid recipes. When you click on it, make sure you add in the saveInto field and a!save statement that removes a row in a particular did.
Reply
  • I think you can use this approach:

    load (
    local!allData: rule!getAllData(),
    local!dataWithType1: rule!getDataWithType1(local!allData),
    local!dataWithType2: rule!getDataWithType2(local!allData),
    local!dataWithType3: rule!getDataWithType3(local!allData),
    a!sectionLayout(
    contents: {
    // grid 1 with local!dataWithType1 as data.
    // grid 2 with local!dataWithType2 as data
    // grid 3 with local!dataWithType 3 as data
    }
    )
    )

    On each of the grids, there are removeIcons as noted in the editable grid recipes. When you click on it, make sure you add in the saveInto field and a!save statement that removes a row in a particular did.
Children
No Data