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

Button won´t display for more than one items set from a SharePoint list

The problem is that I´ve Gallery: "Gallery_YourSubmittedRec”  that displays (your submitted items) and I added a Button: "Button_EditItem” that is VISIBLE when the column “EditDisplay” from the List Week Example is set to Edit. The column is a single line of text because I wasn’t able to figure out the coding to use a multiple choice column or a Yes/No column.

 

It shows the Edit button only for one of the list items.

Logic I´m using on Button>VISIBLE : 

If(Label_WeekDisplay.Text=LookUp('List Week Example',EditDisplay="Edit",Title),true,false) 

 

Where:

- Label_WeekDisplay is the label that has the week on gallery stored on SharePoint list that has submitted items.

- List Week Example is another data connectino SharePoint list

- EditDisplay is the single line column

- Title is from List Week Example equivalent to Label_WeekDisplay

 

I also tried placing the code on Button> DisplayMode

If(Label_WeekDisplay.Text=LookUp('List Week Example',EditDisplay="Edit",Title),DisplayMode.Edit,DisplayMode.Dissabled)

 

I also tried applying condition on  Form Edit when button is clicked from the Gallery but it still just takes one of the items set as "Edit"

Logic on Label > Display Mode:

If(Label_WeekDisplay_1.Text=LookUp('List Week Example',EditDisplay="Edit",Title),Parent.DisplayMode,DisplayMode.View)

Screenshots attached*

 

Help is greatly appreciated. A workaround would also be very useful!

1 ACCEPTED SOLUTION

Accepted Solutions
TimRohr
Level 10

Re: Button won´t display for more than one items set from a SharePoint list

Try in the Visible property of the Button:

LookUp('List Week Example',Title=Label_WeekDisplay.Text,EditDisplay)="Edit"

 

View solution in original post

2 REPLIES 2
TimRohr
Level 10

Re: Button won´t display for more than one items set from a SharePoint list

Try in the Visible property of the Button:

LookUp('List Week Example',Title=Label_WeekDisplay.Text,EditDisplay)="Edit"

 

View solution in original post

AuroraS
Level: Powered On

Re: Button won´t display for more than one items set from a SharePoint list

It TOTALLY worked!!! 

You are amazing thanks so much Smiley Very Happy

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,110)