Notifications
Announcements
I need some help.
I would like to change the data source of my gallery based on the dropdown box. It would be selecting a different table in SQL each time and all the tables have the same columns.
I'm really just wondering if this is possible, and if so how it could be done.
Hello,
Yes definitvely possible what you can do is on the onchange of your dropdownlist you update a variable and that variable is binded to the datesource of your gallery.
Best regards,
Alaa
Hi @jNelly ,
A test with SPO indicates that this works - so I guess as long as all the columns are identical across the SQL tables then no reason it shouldn't work for SQL as well...but best way to tell is to try 😊
Just edit the Gallery Items: property to something like;
If(Dropdown1.Selected.Value = "Source 1", SQLTable1, SQLTable2)
Kind regards,
RT
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268