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

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
Helper I
Helper I

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

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 (10,015)