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

Unable items in a Gallery

Hello everyone,

 

I've a gallery connected to a SharePoint List that shows my items.

In the list I've a column "Checked" of type boolean.

 

My question is : is it possible to unable the selectable property of my items which have the column "Checked" to true ?

 

Thank you for your answers

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: Unable items in a Gallery

Hi @v-xida-msft,

 

For first thank you for your quick answer.

After I posted my question, I continued to search a solution, and I found a good solution for me!

I wanted right to disable some items of the Gallery to make them Unselectable, and not filter gallery (to see which lines aren't available).

 

My solution :

I can't disable the item, so I only disabled the arrow and made a text box to give the information that permit to go on DetailsPage, as following :

Capture2.PNG

 

 

 

 

 

 

 

 

 

 

 

Here's the code of my arrow (for people who want to do the same system) :

DisplayMode = If(Check;DisplayMode.Disabled;DisplayMode.Edit)

And of my TextBox :

If(Check;true;false)

Thank you again for your answer.

 

Best regards,

Louis

View solution in original post

Highlighted
Community Support
Community Support

Re: Unable items in a Gallery

Hi @Anonymous ,

If you only want to display the Gallery Item Details via click ">" button within your Gallery, I agree with your thought almost. But if you also could navigate to Detail screen via clicking the any place within the Gallery Item, I think the solution that you provided would not work.

 

On your side, you need to remove all other Navigate formulas within your Gallery except that within the ">" icon button, to make sure that you could only navigate to Detail screen via clicking ">" button within your Gallery.

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been 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

5 REPLIES 5
Highlighted
Resolver III
Resolver III

Re: Unable items in a Gallery

On the display mode of that control, you can do something like

If(Column= true, DisplayMode.View, DisplayMode.Edit)

 

This would stop it being editable if it is set to true, if that is what you are after

Highlighted
Community Support
Community Support

Re: Unable items in a Gallery

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to disable the Gallery Items whose "Checked" column value has been set to true? Is the "Checked" column a Yes/No type column in your SP List?

Further, do you want to unable the selectable property of the Gallery Items?

 

If you want to unable the selectable property of the Gallery Items, I afraid that there is no way to achieve your needs in PowerApps currently.

The Selecteable property of the Gallery could only be applied to the Gallery control itself rather than these Items within the Gallery.

 

As an alternative solution, you could consider take a try to filter out these items whose "Checked" column value has been set to true within your Gallery using Filter function.

I have made a test on my side, please take a try with the following workaround:

Set the Items property of the Gallery to following formula:

Filter('20190325_case13', Checked <> true)

Or

Filter('20190325_case13', Checked = 0)

On your side, you should type:

Filter('YourSPList', Checked <> true)

Or

Filter('YourSPList', Checked = 0)

Note: There is an known issue/limit that, the Yes/No type column of a SP list could not work as expected within PowerApps. More details about this known issue/limit, please check the following thread:

https://powerusers.microsoft.com/t5/Creating-Apps/Filter-by-Boolean/td-p/185352

 

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

Re: Unable items in a Gallery

Hi @v-xida-msft,

 

For first thank you for your quick answer.

After I posted my question, I continued to search a solution, and I found a good solution for me!

I wanted right to disable some items of the Gallery to make them Unselectable, and not filter gallery (to see which lines aren't available).

 

My solution :

I can't disable the item, so I only disabled the arrow and made a text box to give the information that permit to go on DetailsPage, as following :

Capture2.PNG

 

 

 

 

 

 

 

 

 

 

 

Here's the code of my arrow (for people who want to do the same system) :

DisplayMode = If(Check;DisplayMode.Disabled;DisplayMode.Edit)

And of my TextBox :

If(Check;true;false)

Thank you again for your answer.

 

Best regards,

Louis

View solution in original post

Highlighted
Community Support
Community Support

Re: Unable items in a Gallery

Hi @Anonymous ,

If you only want to display the Gallery Item Details via click ">" button within your Gallery, I agree with your thought almost. But if you also could navigate to Detail screen via clicking the any place within the Gallery Item, I think the solution that you provided would not work.

 

On your side, you need to remove all other Navigate formulas within your Gallery except that within the ">" icon button, to make sure that you could only navigate to Detail screen via clicking ">" button within your Gallery.

 

If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been 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

Highlighted
Anonymous
Not applicable

Re: Unable items in a Gallery

@v-xida-msft,

 

Yep, normally it's good, my ">" button is the only way now to navigate.

 

Thank you for your time.

 

Best regards,

 

Louis

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 (4,782)