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
  • rule: genericRuleGeneratesGridRow

    inputs:

    data | any type
    index | number(integer)

    definition:

    a!gridRowLayout
    (
              contents:
              {
                        a!dropdownField
                        (
                                  label:"Sample Dropdown",
                                  value:ri!data[ri!index].integerField,
                                  saveInto: ri!data[ri!index].integerField,
                                  placeholderLabel:"-- Select --",
                                  choiceLabels:{1,2,3},
                                  choiceValues:{1,2,3}
                        )
              }
    )
Reply
  • rule: genericRuleGeneratesGridRow

    inputs:

    data | any type
    index | number(integer)

    definition:

    a!gridRowLayout
    (
              contents:
              {
                        a!dropdownField
                        (
                                  label:"Sample Dropdown",
                                  value:ri!data[ri!index].integerField,
                                  saveInto: ri!data[ri!index].integerField,
                                  placeholderLabel:"-- Select --",
                                  choiceLabels:{1,2,3},
                                  choiceValues:{1,2,3}
                        )
              }
    )
Children
No Data