cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Display Details from a Gallery Item on Labels.

Hi, 

 

I´m working on an app to display data from a SharePoint List.  I want to display details from items in a gallery, but not in a Display Form. I'm using labels and the gallery.Selected.field Text Property to display the details, but I'm having trouble with data from choice fields in sharepoint.  Is there a way to display choice, lookup and calculated sharepoint fields on labels in powerapps?  

 

Thanx!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Display Details from a Gallery Item on Labels.

Hi @AFernandez 

 

For choice fields, lookup fields -  use gallery.selected.column.Value - to get the text

 

for person - use gallery.selected.column.Email or  gallery.selected.column.DisplayName

 

 

Regards,

Reza Dorrani

 

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

Highlighted
Community Support
Community Support

Re: Display Details from a Gallery Item on Labels.

Hi @AFernandez,

Since the Label control is used to display text, while choice, lookup and calculated field are complex data type.

So you need some special formulas to make them diaplay in label control.

1)single choice, single lookup

Gallery1.Selected.fieldname.Value

2)multiple choice, multiple lookup

Concat(Gallery1.Selected.fieldname,Value&",")

3)calculated sharepoint field

I've try these settings all.

89.PNG

 

Just using this formula is OK:

Gallery1.Selected.fieldname

 

Here's a doc about how to use complex data type of sharepoint list in PowerApps for your reference:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

 

 

Community Support Team _ Phoebe Liu
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

5 REPLIES 5
Highlighted
Dual Super User
Dual Super User

Re: Display Details from a Gallery Item on Labels.

Hi @AFernandez 

 

For choice fields, lookup fields -  use gallery.selected.column.Value - to get the text

 

for person - use gallery.selected.column.Email or  gallery.selected.column.DisplayName

 

 

Regards,

Reza Dorrani

 

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

Highlighted
Community Support
Community Support

Re: Display Details from a Gallery Item on Labels.

Hi @AFernandez,

Since the Label control is used to display text, while choice, lookup and calculated field are complex data type.

So you need some special formulas to make them diaplay in label control.

1)single choice, single lookup

Gallery1.Selected.fieldname.Value

2)multiple choice, multiple lookup

Concat(Gallery1.Selected.fieldname,Value&",")

3)calculated sharepoint field

I've try these settings all.

89.PNG

 

Just using this formula is OK:

Gallery1.Selected.fieldname

 

Here's a doc about how to use complex data type of sharepoint list in PowerApps for your reference:

https://powerapps.microsoft.com/en-us/blog/default-values-for-complex-sharepoint-types/

 

 

 

Community Support Team _ Phoebe Liu
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

Highlighted
Helper II
Helper II

Re: Display Details from a Gallery Item on Labels.

Thank you very much for the help!

Dual Super User
Dual Super User

Re: Display Details from a Gallery Item on Labels.

Hi @AFernandez 

 

You are most welcome

Highlighted
Helper II
Helper II

Re: Display Details from a Gallery Item on Labels.

Thank you very much!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,367)