Hi all,
I have a Dropdown on my form with the following properties.
| Items | Table({Text: "Examination", Val: "X"}, {Text: "Expiry", Val: "E"}, {Text:"Observation", Val: "O"}) |
| Value | Text |
| Default | editRecord.EventType |
| Reset | resetForm |
I have a gallery of items which the user can select which should then show the appropriate value of the drop down, but it is not. The code for the OnSelect() of the gallery is
Set(editRecord,{ID: ThisItem.Id, EventType: ThisItem.EventType);
// Force update of form controls
Set(resetForm, true);
Set(resetForm, false);
The EventType property is E, X or O, as per the table of items but the Dropdown does not change from the first value in its Items list, irrespective of he value of the EventType field. I can see that the field is changing as per selecting each item as I have a (temporary) label showing the value.
I surley think it's me doing something stupid ... I just cannot see what.