Selection Grid 17.1

Select all in 17.1 Grid is not retaining the selection if navigated to next page and select all again. But retained the selection if selected individually in different page. Is that know issue or designed this way

  Discussion posts and replies are publicly visible

Parents
  • I tested this out with the following code and it behaved how I expected. I selected all, went to the next page, and selected all again and both selections were saved correctly. Are you sure the saveInto logic is sound?

    load(
    local!gridSelection: a!gridSelection(
    pagingInfo: topaginginfo(1, 10),
    selected: {}
    ),
    {
    a!textField(
    label: "local!gridSelection",
    value: local!gridSelection,
    readOnly: true
    ),
    a!gridField(
    label: "Test Grid",
    columns: {
    a!gridTextColumn(
    label: "Col1",
    data: todatasubset(
    enumerate(30),
    local!gridSelection.pagingInfo
    ).data
    )
    },
    identifiers: todatasubset(
    enumerate(30),
    local!gridSelection.pagingInfo
    ).data,
    value: local!gridSelection,
    saveInto: local!gridSelection,
    totalCount: 30,
    selection: true
    )
    }
    )
Reply
  • I tested this out with the following code and it behaved how I expected. I selected all, went to the next page, and selected all again and both selections were saved correctly. Are you sure the saveInto logic is sound?

    load(
    local!gridSelection: a!gridSelection(
    pagingInfo: topaginginfo(1, 10),
    selected: {}
    ),
    {
    a!textField(
    label: "local!gridSelection",
    value: local!gridSelection,
    readOnly: true
    ),
    a!gridField(
    label: "Test Grid",
    columns: {
    a!gridTextColumn(
    label: "Col1",
    data: todatasubset(
    enumerate(30),
    local!gridSelection.pagingInfo
    ).data
    )
    },
    identifiers: todatasubset(
    enumerate(30),
    local!gridSelection.pagingInfo
    ).data,
    value: local!gridSelection,
    saveInto: local!gridSelection,
    totalCount: 30,
    selection: true
    )
    }
    )
Children