Hi,
I have built a PowerApp app with its auto-build capability, there are three screens created; a BrowseScreen1 with BrowseGallery1, DetailScreen1, and EditScreen1. The BrowseScreen1 has a search box that can perform the search of one field.
I want to build one more search box to search additional field, therefore I built a 2nd "BrowseScreen2" which has BrowseGallery2 similar to how PowerApps built the first one. The 2nd one worked in that I can search the field I want and have the results listed just like the first BrowseScreen1 does.
Here is the problem I have now; I would like the DetailScreen1 to list the details of the records I have in BrowseScreen2. I am unable to do this. In the Item section of the DetailScreen1, it has the definition of “BrowseGallery1.Selected”. This tells me that the DetailScreen1 is tied to BrowseGallery1 only. I don’t understand why a details displaying screen will be tied to a particular source screen, wouldn’t it be better that this screen accepts the parameters passed from the source and display the results accordingly?
Can someone help me on this? Do I have to build a DetailScreen and EditScreen for each search box (with BrowseGallery to list the data)? This would be repeated work and bad design.
Thanks.
Solved! Go to Solution.
Hi @mzhang,
It is recommended to read the following article first:
Understand data forms in Microsoft PowerApps
Under the Detail screen, there is DisplayForm control to hold the data.
Actually it has two important property:
DataSource
Item
Here the Data Source means the table resource, and the item is one of the record from the table.
Form control is used to display single record information, and as you noticed, the item property is configrued with Gallery.selected.
Which means Gallery.Selected returns a single record from the table configrued with the Gallery.
Things you should know is that, the Data Source property of the Form control would be reset when switching data sources.
As the field card would also change.
There is a thread talking about a similar situation, you may also take a look as a reference:
Auto generate app with multiple SharePoint Lists
Regards,
Michael
Hi @mzhang,
It is recommended to read the following article first:
Understand data forms in Microsoft PowerApps
Under the Detail screen, there is DisplayForm control to hold the data.
Actually it has two important property:
DataSource
Item
Here the Data Source means the table resource, and the item is one of the record from the table.
Form control is used to display single record information, and as you noticed, the item property is configrued with Gallery.selected.
Which means Gallery.Selected returns a single record from the table configrued with the Gallery.
Things you should know is that, the Data Source property of the Form control would be reset when switching data sources.
As the field card would also change.
There is a thread talking about a similar situation, you may also take a look as a reference:
Auto generate app with multiple SharePoint Lists
Regards,
Michael
User | Count |
---|---|
239 | |
116 | |
94 | |
58 | |
32 |
User | Count |
---|---|
287 | |
132 | |
106 | |
63 | |
57 |