I'm not sure how I managed to make this happen, but here's my predicament.
I have a display form showing an item selected in a gallery pulling from a SharePoint list. The Display Form is based on Gallery1.Selected, and will no longer receive only my list as the source because the gallery has an AddColumns formula for filtering. So, I have the source as Gallery1.AllItems, and the item as Gallery1.Selected. It all works perfectly, except that the Display form seems to be confused now, as it displays the "This form isn't connected to any data yet" underneath it displaying data (see attached image).
For now it's merely an annoyance, but is there any way to remedy this? Am I doing something wrong?
Solved! Go to Solution.
@mdevaney , @eka24, and @forcedLightning
Since he is using AddColumns in the Items property of his gallery, he cannot use Gallery.Selected in the form.
That being said, I just remembered another way to get past this. In this approach, you can still set your data source for the form to the actual data source and not Gallery.AllItems.
For the Item property of the form, use:
LookUp(DataSource, UniqueID = Gallery.Selected.UniqueID)
Then your Item property and the datasource of the form are in sync. And your form will not show this error either. It will all work smoothly.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Hardit Bhatia
https://thepoweraddict.com
@mdevaney , @eka24, and @forcedLightning
Since he is using AddColumns in the Items property of his gallery, he cannot use Gallery.Selected in the form.
That being said, I just remembered another way to get past this. In this approach, you can still set your data source for the form to the actual data source and not Gallery.AllItems.
For the Item property of the form, use:
LookUp(DataSource, UniqueID = Gallery.Selected.UniqueID)
Then your Item property and the datasource of the form are in sync. And your form will not show this error either. It will all work smoothly.
---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.
Thanks!
Hardit Bhatia
https://thepoweraddict.com
User | Count |
---|---|
229 | |
103 | |
97 | |
57 | |
31 |
User | Count |
---|---|
282 | |
113 | |
106 | |
63 | |
63 |