Hello
Please be so kind as to read my full post before responding.
In one PowerApp of mine I have a weird issue with the DefaultSelectedItems apparently not working.
In one EditScreen with an EditForm containing a ComboBox with Items,
Choices([@'Auslieferungen (WA)'].kk_warehouse_collector_id)
kk_warehouse_collector_id being a LookUp field, and DefaultSelectedItems
ThisItem.kk_warehouse_collector_id
and Form.DataSource
[@'Auslieferungen (WA)']
On AnotherScreen containing a Gallery with Items
[@'Auslieferungen (WA)']
and an GoToDetails Button in the template with OnSelect
Navigate(EditScreen, None, {
selectedDelivery: LookUp([@'Auslieferungen (WA)'], kk_warehouse_deliveryid=UebersichtGallery.Selected.kk_warehouse_deliveryid)
})
Now to the weird part:
If I set EditForm.Item to
selectedDelivery
then the ComboBox doesn't get properly initialized with default values from the selected Record and it only shows InputTextPlaceholder/NoSelectionText.

If I set EditForm.Item to
LookUp([@'Auslieferungen (WA)'], kk_warehouse_deliveryid=selectedDelivery.kk_warehouse_deliveryid)
and in essence repeat the LookUp I just did in the Navigate function, then suddenly the ComboBox default works.

- What is happening here?
- Why can't I directly use selectedDelivery, which as far as I understand gets set to the same thing in the context variable part of Navigate?
Last tested with:
App ID: 8200a3f3-30fd-44f9-b3b7-0c9e0f803c50
Session ID: 21a66c2e-a2f6-472c-bffc-a84600ce0745
PowerApps 3.19081.26
Thank you,
Sa.