Dynamic grid creation

I have a Driver section and Trailing Grid section on a form. The values the user select in the first section; decides what values to make available for the user in the Grid section.

Now, if the user changes the values in the Driving Section after populating the Grid section; a very valid UI error displays.

We have a couple of resolutions in mind but I would like to seek your opinion of the best way to implement this scenario? That still allows the user to make changes in the Driving Section after he/she has populated some values in the Grid based on some initial choices he/she made?

We can flush the existing data from the grid but would like to know if there are other ways to do that?

OriginalPostID-218173

OriginalPostID-218173

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    Initialize different local variables for all possible options available in the driver section.
    Now if the user fills values in grid section for option A of driver section then they are persisted in different local variable compared to if user selects option B in the driver section.

    Now, when the user clicks on submit button then check the value in driver section and persist that local in ri.

    Please note, this solution is not scalable. If in future there is a new option in driver section, developer's work will be required.
Reply
  • 0
    Certified Senior Developer
    Initialize different local variables for all possible options available in the driver section.
    Now if the user fills values in grid section for option A of driver section then they are persisted in different local variable compared to if user selects option B in the driver section.

    Now, when the user clicks on submit button then check the value in driver section and persist that local in ri.

    Please note, this solution is not scalable. If in future there is a new option in driver section, developer's work will be required.
Children
No Data