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

PowerApps header for Gallery control from SharePoint List

Hy alll,

I have created a Table like structure using gallery control and displaying SharePoint List Data. Pic7.png

Now my query is I want to add the SharePoint list column name as the Gallery control header. I want header value should be dynamic. So that when we will change the Column name in our SharePoint list. Then it should reflect on the PowerApps Gallery control header. Is there any solution for that.

Best Regards,

Padmini

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: PowerApps header for Gallery control from SharePoint List

Hi @PadminiDeshudu3 ,

Based on the needs that you mentioned, I afraid that the Gallery control could not achieve your needs directly. As an alternative solution, I think the Data Table control could achieve your needs.

 

If you want to add a Button control within the Data Table control, I afraid that there is no way to achieve your needs in PowerApps currently. As an alter native solution, you could add another column within your Data Table to act as a Button click option.

 

I have made a test on my side, please take a try with the following workaround:3.JPG

 

4.JPG

Add a Data Table control within your app, set the Items property to following:

AddColumns('YourSPList', "Action Operation", "Button Click")

then enable the "Action Operation" column in your Data Table control.

Select the "Action Operation" column in your Data Table control, then set the IsHyperlink property to true, then set the OnSelect property to following formula:

"Type your Button Clickable formula here"

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Wonderkid73
Level: Powered On

Re: PowerApps header for Gallery control from SharePoint List

I accomplished this for my requirement by doing the following which I thought was quite ingenious considering it worked for what I was trying to do:

ClearCollect( MyLocalCollection, HeaderText1, HeaderText2 etc),
Collect ( MyLocalCollection, SharePointList )

The syntax probably isn’t the exactly correct as I’m reply on my phone and not actually checking the exact syntax I used, but that was the broader logic I used and it worked fine for me. I also managed to then make the header values in first row in the gallery bold, but I can’t offhand record exactly how.

Happy to share more specifics should you need further help on this!

Re: PowerApps header for Gallery control from SharePoint List

Hi,

 

If you want datasource columns as well, then easiest way is to have a data table instead of gallery control.

 

Hope this helps,

Pranav

Wonderkid73
Level: Powered On

Re: PowerApps header for Gallery control from SharePoint List

Hmmm, actually Pranav is likely more on the better track as I didn’t fully read the specific requirements.
PadminiDeshudu3
Level: Powered On

Re: PowerApps header for Gallery control from SharePoint List

Ya I can use data table but problem is i need to add the control like button inside the Data Table which is very tuff.

Thank you for reply.Smiley Happy

PadminiDeshudu3
Level: Powered On

Re: PowerApps header for Gallery control from SharePoint List

I will follow your suggession.

Thank you soo much for reply

Community Support Team
Community Support Team

Re: PowerApps header for Gallery control from SharePoint List

Hi @PadminiDeshudu3 ,

Based on the needs that you mentioned, I afraid that the Gallery control could not achieve your needs directly. As an alternative solution, I think the Data Table control could achieve your needs.

 

If you want to add a Button control within the Data Table control, I afraid that there is no way to achieve your needs in PowerApps currently. As an alter native solution, you could add another column within your Data Table to act as a Button click option.

 

I have made a test on my side, please take a try with the following workaround:3.JPG

 

4.JPG

Add a Data Table control within your app, set the Items property to following:

AddColumns('YourSPList', "Action Operation", "Button Click")

then enable the "Action Operation" column in your Data Table control.

Select the "Action Operation" column in your Data Table control, then set the IsHyperlink property to true, then set the OnSelect property to following formula:

"Type your Button Clickable formula here"

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

PadminiDeshudu3
Level: Powered On

Re: PowerApps header for Gallery control from SharePoint List

Thnq you I will follow your Approach.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

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

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 (9,645)