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

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

Hi @Anonymous ,

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
Regular Visitor

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!
Pranav_Shroti
Kudo Collector
Kudo Collector

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

Hmmm, actually Pranav is likely more on the better track as I didn’t fully read the specific requirements.
Anonymous
Not applicable

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

Anonymous
Not applicable

I will follow your suggession.

Thank you soo much for reply

Hi @Anonymous ,

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.
Anonymous
Not applicable

Thnq you I will follow your Approach.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (1,962)