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

Need to disable button if User has value in column

Hi All,

 

I have a formula that says 

 

If(IsBlank(ThisItem.Start), DisplayMode.Disabled,DisplayMode.Edit)

 

How can I make this user specific. ie if this item is created by a particular user and in this item if the start column has value and rest items created by the same person does not have a value then the button must be disabled.

13 REPLIES 13

@aswin12345 ,

Screen OnVisible would be a good place for the formula - whenever you run this, it refreshes the variables and waits for you to press Play.

You did not ask about adding items, so my model did not allow for this. If you set vPlay to false as above, it would be a good starting point. Note that this is a logic, not a programming/code problem, so please spend some time adjusting the Variables, you might get what you want. I am happy to assist with specific questions, but cannot see you model and therefore cannot test any of it.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @aswin12345 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz 

 

what I want is when i click on play button in an item all the other play buttons must be disabled I have achieved that by using a simple work around that when I click on play button which triggers visibility of a rectangle1 inside the item of the gallery using the formula If(IsBlank(ThisItem.Start), "false", "true") and then i use that trigger to make visible another rectangale5 (outside the gallery) to be visible by using If(Rectangle1.Visible,true,false) then i have inserted If(Rectangle5.Visible, DisplayMode.Disabled,DisplayMode.Edit) in the play button so if I click on a play button all the play button in other items or entries becomes disabled. Thats what i want and I have achieved that but my issue is whenever the page refreshes or a new item is added to the gallery (list) the disabled buttons becomes enabled or ready to edit thats my concern. Hope you will be able to help.

@aswin12345 ,

This is a logic rather than a coding exercise and I built the model to show you the variety of variables that you can set/reset to achieve the result you want. It seems that you need to set some values when a new item is added or the gallery refreshed. You tagged me for assistance and I am trying to provide that, but ultimately I cannot test exactly what you want.

Have you tried setting the variables (particularly vPlay) to different values with new items and refreshing to see what result is achieved? 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,244)