cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexism
Microsoft
Microsoft

Load datasource by name

Hi,

 

I have a gallery. For which item I am selecting, I need to load a list in sharepoint.

 

For example I have items A; B and C in my gallery.

 

When I select B, I need to load a datasource B1 I have already added. 

 

In my gallery, I have an hidden field with the name of the datasource. 

 

Then when I click to see the details, I load on the fly a new gallery including the list of my Datasource B1.

 

But I can't get it to work.

 

In my second GalleryView I use this to load by name of my datasource:

 

SortByColumns(Search(BrowseGallery1.Selected.ID; TextSearchBox3.Text; "Name"); "Name"; If(SortDescending1; SortOrder.Descending; SortOrder.Ascending))

 

But it doesn't work.

 

Then how can I define my datasource by name and not by instance?

 

Thanks,

 

1 ACCEPTED SOLUTION

Accepted Solutions

I found a solution by using an IF.

 

Navigate(LinksScreen; ScreenTransition.Fade;{myDataSource:If(BrowseGallery1.Selected.ID="Office365Links";Office365Links;BrowseGallery1.Selected.ID="AzureLinks";AzureLinks;BrowseGallery1.Selected.ID="DynamicsLinks";DynamicsLinks;BrowseGallery1.Selected.ID="DevicesLinks";DevicesLinks;BrowseGallery1.Selected.ID="EmsLinks";EmsLinks;BrowseGallery1.Selected.ID="Windows10Links";Windows10Links)})

 

Thanks,

 

 

View solution in original post

2 REPLIES 2
Fatima
Frequent Visitor

Don't really get the problem. So you have a gallery and you click on an item in the gallery you want to get more details on the item from another datasource? on another screen? correct?

Can you add some screenshots?

I found a solution by using an IF.

 

Navigate(LinksScreen; ScreenTransition.Fade;{myDataSource:If(BrowseGallery1.Selected.ID="Office365Links";Office365Links;BrowseGallery1.Selected.ID="AzureLinks";AzureLinks;BrowseGallery1.Selected.ID="DynamicsLinks";DynamicsLinks;BrowseGallery1.Selected.ID="DevicesLinks";DevicesLinks;BrowseGallery1.Selected.ID="EmsLinks";EmsLinks;BrowseGallery1.Selected.ID="Windows10Links";Windows10Links)})

 

Thanks,

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (48,170)