cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
forcedLightning
Level: Powered On

Display Form displays data and 'no data source' at the same time

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Display Form displays data and 'no data source' at the same time

@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

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Display Form displays data and 'no data source' at the same time

@forcedLightning
Can you please show your code?

What form property are your putting each of Gallery1.AllItems and Gallery1.Selected in?
eka24
Level 10

Re: Display Form displays data and 'no data source' at the same time

Hello. The items property of the form should point to the Gallery as you have done. But your form datasource should point to the sharepoint list Name

If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
Super User
Super User

Re: Display Form displays data and 'no data source' at the same time

That's a perfectly fine approach that I have used in the past for similar reasons as yours. Also, the form seems to show this as the datasource provided to the form isn't a "standard connection" (for the lack of a better phrase).
My question is: do you see this only while in the editor or do you see that even when the app is saved, published and played?
If the editor shows this but the app runs fine in the play mode (which is what happens to me), you should be good.

---
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

Super User
Super User

Re: Display Form displays data and 'no data source' at the same time

@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

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,257)