Why is the editor still showing me the first item in the list when I have a lookup in item?
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),LookUp([@'Training Certificates'],ID=305),SharePointIntegration.Selected)
Solved! Go to Solution.
Change your Item formula to the following:
Coalesce(SharePointIntegration.Selected, LookUp('Training Certificates', ID=305))
I hope this is helpful for you.
Change your Item formula to the following:
Coalesce(SharePointIntegration.Selected, LookUp('Training Certificates', ID=305))
I hope this is helpful for you.
What a very clever chap you are. Thanks for the quick reply works perfectly. I did try googling it 😀
Its stopped working now. Its reverted back to the first item. ☹️
Maybe there is a setting interfering with it under app settings.
Based on that formula, you would have either the item selected in your list when you do a New/Edit of the item, or the record with ID 305. It is impossible to have record 1. So, your Selected in the list must be record 1.
The way Coalesce works is it returns the first non-blank parameter. So if your SharePointIntegration.Selected has a record, that will be the one shown. If there is no record selected (pretty much would never happen), then it would show record with ID 305. If for some very rare reason, both are blank, then your form would show "getting data" and never display.
SO...your Selected is record 1 or there is something else going on in your app.
Its ID=1
Right...so then your SharePointIntegrated.Selected item is 1
So how do I make it id=305 like the picture above? Its the same issue in edit or view mode.
Well, I'm not really understanding your purpose then... Is the purpose of your app to always display and edit record 305? Or is your purpose to display and edit the record selected from your list?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
192 | |
52 | |
41 | |
39 | |
35 |
User | Count |
---|---|
261 | |
86 | |
71 | |
70 | |
66 |