Hi,
I am currently working on an app in which the user can edit gefs (as part of the functionality of the app). I have constructed this in such a way where the user first selects a gef from a dropdown menu, then presses a button to enter the soil layout corresponding to that gef in a table, then the user can edit this table and save the changes with another button (the interface is shown below).
For CPTs the table shows each top_of_layer and the soil_type. For Boreholes the table shows each top_of_layer, the original interpretation and a third column with a soil type from table 2b from the NEN9997.
Interface when CPT selected:
Interface when Borehole selected:
Because the two tables have different columns I have created two tables and set their visibilities to True or False depending on the type of the selected gef (CPT or Borehole).
This leads to the following problem:
Let’s say I have three gefs, two CPTs (02535.01.17_S01.gef and AAHPT_MPT03.gef) and one Borehole (B38C0198.gef). I select one CPT first and click select gef in order to fill the table, the CPT version of the table is now visible and the table is filled out:
If I then switch my gef selection to the Borehole gef, the CPT version of the table gets hidden and the Borehole version of the table is shown:
After pressing select gef the table is filled out:
However, if I now select the third gef which is a CPT but different from the CPT that was selected at the start the CPT version of the table becomes visible again but because it has been filled out before it is not empty but contains values
Comparing this figure and the figure 3 figures up it can be seen that the selected gef is different but the contents of the table are the same. If I press the select gef button the table will be updated to show the soil layout corresponding to the newly selected gef. However, it can be confusing to the user because intuitively you would think that since the table is filled out the contents match the selected gef.
Because of this my question is if it is possible to update the contents of a table upon making a different selection in a dropdown menu (that way I don’t need to select gef button and can just immediately update the visibility and the content of the table)