My two questions are included in blue below
I have a screen that has 2 sections:
Top Section
Gallery where user selects a record and can click on an edit icon per record
Bottom Section
A form where a user can edit that selected record or edit an existing record.
Adding a record works well.
I am having a problem with the combo box not loading the selection made in the gallery. The other fields on the form including text and toggle load the information, but the combo box is not.
Here is what I have set up:
Edit Icon per row on the Gallery
- On Select
- Set(NewSectorSpecificRecord, false);
- Set(varSectorSpecific,ThisItem);
- ResetForm(frmAddSectorSpecific);EditForm(frmAddSectorSpecific);
Form under the gallery
- Item Property - varSectorSpecific
- Datasource property for the form is List-1
- What should the Defaultmode property be set as?
- If(NewSectorSpecificRecord = true,FormMode.New,FormMode.Edit)
Combo box in the form
- Is not displaying the field relating to the record selected in the gallery.
- DefaultSelectedItems property of the Combo box
- Distinct(Filter(List-2,ID=ThisItem.CreditTypeID),Title)
- I'm looking up the Title from List-2 for the selected item. The field in List-1 is CreditTypeID and this number is the ID from List-2 ie it simulates a relationship.
- Items property of the combo box is List-2
- Why is the Credit Type combo box blank? It seems to be loading the options to be selected from the lookup, but I want the actual value selected from the gallery above to be in this field when the edit button is clicked.
Thank you for any advice.