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

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
Highlighted
Solution Sage
Solution Sage

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
Highlighted
Solution Sage
Solution Sage

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

Highlighted
Anonymous
Not applicable

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

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,722)