Hello all, I have a problem I need some help with. I am a programmer by trade (c#, VB .NET) but am new to PowerApps. I have developed a canvas app that uses a SharePoint List as its data source. This list is put into a collection, which is set as the source for the Browse Gallery. Things get a little tricky when I get to the Edit Form. I have one column in the List called Job which is a LookUp (Choice?) column referencing another List of Jobs on the same SharePoint site. I need the ComboBox to show 2 columns: the Job Number and Job Description. The Job Number column is the 'Title' column, now renamed to 'Job #'; I know this is bad but I can't start over with a new column. The Job Description Column is called 'Project #' or 'Project_x0020__x0023_'. Getting the ComboBox to show BOTH columns is difficult or impossible with a LookUp column (it only shows the "Value" and "ID" Fields) so I decided to set up a new collection with the contents of the Job List and set that as my data source for the ComboBox. Once this is set I can set my DisplayFields and SearchFields, and the ComboBox shows both the Job Number and Job Description fields, exactly like I want. I am able to set the DefaultSelectedItems for the ComboBox to "Parent.Default". Since the ComboBox is inside a DataCard, the value for ThisItem.Job appears to get selected by default. If I am creating a new item, or editing an existing item but I change the Job Number, everything works fine. The selection gets pushed up to the SharePoint List, everything works fine.
Everything above this paragraph works as expected, however I have found one scenario that does not work. If I try to edit an existing record, but do not click on the Job ComboBox, I get the error message: "Job is required" even though the ComboBox has the correct Job Number from the SharePoint List selected.
I think this is a bug in PowerApps, but thought I'd ask here just to make sure I wasn't overlooking anything. Below is some of the code in my App:
ComboBox:
DisplayFields=["Title","Project_x0020__x0023_"]
SearchFields=["Title","Project_x0020__x0023_"]
DefaultSelectedItems=Parent.Default
DataCard:
DataField="Job"
Update=LookUp(
Choices([@EquipmentInspectionField].Job),
Id = DataCardValue21.Selected.ID
)
I even went so far as to make that field not "Required" in the App, but since it is required in the SharePoint List it still gives me the "Job is required" error message.
Here is a short GIF of the issue I am having:
If I do not click in the "Job" ComboBox, I get the "Job is required" even though the correct value appears to be populated."