Combination of multi dropdown and editable grid

Certified Lead Developer

Hi guys,

I have the requirement where I need to have two components multi dropdown and an editable grid,

In the multiple drowndown component the user will select the value based on that the number of rows need to be populated in the grid. Where when the user deselect the value in dropdown the corresponding row in the grid need to deleted or not to shown to user.

  Discussion posts and replies are publicly visible

Parents
  • Hi santhos,

    load(
    local!selectedDepartment,
    with(
    a!formLayout(
    contents: {
    a!multipleDropdownField(
    label: "Select Department",
    placeholder: "Select.....",
    choiceLabels: {
    "HR",
    "IT",
    "ADMIN"
    },
    choiceValues: {
    "HR",
    "IT",
    "ADMIN"
    },
    value: local!selectedDepartment,
    saveInto: local!selectedDepartment
    ),
    a!gridLayout(
    showWhen: not(
    isnull(
    local!selectedDepartment
    )
    ),
    label: "Department Information",
    headerCells: {

    a!gridLayoutHeaderCell(
    label: "Department"
    )

    },
    rows: a!forEach(
    items: local!selectedDepartment,
    expression: a!gridRowLayout(
    id: fv!index,
    contents: {
    a!textField(
    value:fv!item
    )
    }
    )
    )
    )
    }
    ))
    )
  • 0
    Certified Lead Developer
    in reply to kiranj
    Hi kiranj0001,

    The code that you have shared looks fine. But the only thing is that it wouldn't hold the changes that you make to the data in the editable grid. The other practioner santoshd378 requirement was that the data shouldn't be gone after you make changes. Please refer to my suggested answer if possible. Cheers.

    Thank you,
    Arun
Reply Children