Hi,
This is my first time using a lookup column type. I have added them to my existing list and it reference another list for a selection of data. I have added it on my app inside the form control. But when i am in New form mode. i don't see the data being listed on the drop down. Works fine within Sharepoint. It does have this formula below on the items section. What can i do to make it work and show the data same as sharepoint?
Hi @powerdevkris ,
Probably why I mentioned the alternative (change it to a Text field), however if you need to use the Lookup field, there are two things you need to change (using the "looked up" field and the Lookup field names)
DefaultSelectedItems
{SecondListField: ThisItem.LookupFieldName.Value}
Data Card Update
{
Value: ComboBoxName.Selected.SecondListField,
Id:
LookUp(
SecondList,
SecondListField = ComboBoxName.Selected.SecondListField
).ID
}
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
Thanks @WarrenBelz the second one works for me. I can see my list of data.
How can i still make it work to show the data from my list when i select a record in the gallery? The default = parent.default is not working using this approach.
Hi @powerdevkris ,
SharePoint Lookup columns are generally not necessary in Power Apps and will cause you a lot of unwanted restrictions and complexity, particularly if you start changing the Items on the Combo Box. Normally the Items would be (if you want to reference the lookup column values)
Choices(YourSPListName.YourLookupColumnName)
The easiest way (without the lookup column) is to simply reference the other list directly
SecondListName.LookupUpFieldName
and then write back to a Text field.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.