Re: Select field, Edition Lookup automatic
Thanks for the kind offer.
Yes, it is still an issue, i can’t think of anything that i can do.
Insert phase:
1 ) It is just a simple form with combobox/select field and other text fields.
- I add a data using the form: Select a value from the combobox( eg. ‘ABC’), fill the other fields. sc_exit(sel); brings me back to the grid.
In the grid:
- The grid shows the row inserted, like
(Pencil sign) | ABC text text text
–> All is fine till this stage. Combobox value is shown as it was inserted (as it should be).
In the lookup table (data accessed using editable grid view, can be deleted or edited):
When ‘ABC’ (a value from the table which is shown in the combobox in the above form) is deleted (obviously it won’t now show in the combobox above.)
In the grid again:
When i click edit the row inserted (clicking the ‘pencil sign’), the from with the previously populated data appears except for the combobox where now ‘ABC’ is not there anymore because it was deleted from the lookup table.
However, the grid shows ‘ABC’ in the same field which has been inserted, because it is getting the data from the table where the row was inserted and not the lookup table.
However the form won’t have value ‘ABC’ in the combobox, if i do some changes in the text fields press “update” in the form, the combobox value will be updated with the wrong value…
Why delete lookup value from the lookup table? : So that the combobox values which are not necessary in the future could be removed to keep the list short.
The only problem is that if the previously inserted values needs to be updated / modified, the combo wont’ find the value during update and the field will be populated with the wrong value…
Hope you understand it and makes sense…
Thanks again!