cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Setup a Gallery datasource from a SharePoint TEXT column

Hi Folks,

 

One more crazy question:

Please check the attached image.
I have one list with the form names and a reference to other lists (List Name).

 

List Structure (DropDown)

Form Name | Description | Web Link | List Name



Each FORM NAME is a Powerapps form I built (see the yellow square on the image).

I populated a Dropdown with that List and now I need to populate the Gallery depending on the form I select on the Dropdown.
So, a column called LIST NAME (text column) is the LIST with all data inserted RED SQUARE.

So that's my problem, I need to dynamically change the Gallery Datasource when I select a different item from the dropdown.

 

I would say, I need to transform the TEXT column info, into a Gallery DataSource (LIST NAME) depending on the selection.

 

The GREEN buttons will open the form with the selected record, but this part is ok, working.


Is that clear?

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could not directly convert a text into a list name.

However, you could use If() functon to dynamically change the gallery items property.

 

1\ I have two lists "LIST83" and "LIST84".

 

2\ Add a dropdown control 'Dropdown1' and set its Items property to:

Table({Value:"LIST83"},{Value:"LIST84"})

 

3\ Add a gallery control and set its Items property to:

If(Dropdown1.Selected.Value="LIST83",LIST83,Dropdown1.Selected.Value="LIST84",LIST84)

 

4\ The result is as follows:

AAA.gif

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could not directly convert a text into a list name.

However, you could use If() functon to dynamically change the gallery items property.

 

1\ I have two lists "LIST83" and "LIST84".

 

2\ Add a dropdown control 'Dropdown1' and set its Items property to:

Table({Value:"LIST83"},{Value:"LIST84"})

 

3\ Add a gallery control and set its Items property to:

If(Dropdown1.Selected.Value="LIST83",LIST83,Dropdown1.Selected.Value="LIST84",LIST84)

 

4\ The result is as follows:

AAA.gif

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

Anonymous
Not applicable

Many thanks Wearsky

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (5,162)