Editable Grid - Dynamic columns

Have anyone implemented "dynamic columns in editable grid"? Say for example my matrix rows and column vary per product or category

1. Category - 10 * 11 columns
2. Category - 10 * 3 columns etc. Rather than creating multiple SAIL rules, planning to use one SAIL rule for interface and one SAIL for grid layout.

OriginalPostID-251485



  Discussion posts and replies are publicly visible

Parents
  • This will work only if one drop down column and save values in gridRowLayout..

    here is the sample which is not working.. changing one dropdown chaning all row dropdown.. Any suggestion..
    a!applyComponents(
    function: a!dropdownField(
    label: _,
    choiceLabels: {1,2,3},
    placeholderLabel: "--Select-- ",
    choiceValues: {1,2,3},
    value: ri!items[ri!index].response,
    saveInto: ri!items[ri!index].response,
    disabled: false()
    ),
    arrayVariable : local!columnIndex,
    array: 1+enumerate(count(ri!inputColumns)))
    )
Reply
  • This will work only if one drop down column and save values in gridRowLayout..

    here is the sample which is not working.. changing one dropdown chaning all row dropdown.. Any suggestion..
    a!applyComponents(
    function: a!dropdownField(
    label: _,
    choiceLabels: {1,2,3},
    placeholderLabel: "--Select-- ",
    choiceValues: {1,2,3},
    value: ri!items[ri!index].response,
    saveInto: ri!items[ri!index].response,
    disabled: false()
    ),
    arrayVariable : local!columnIndex,
    array: 1+enumerate(count(ri!inputColumns)))
    )
Children
No Data