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

Disabling Button?

I searched the community trying to see if someone had the same problem.................I am doing a checkin app....6 users will be using the app at the same time. I am trying to accomplish to disable the the check in button across all user if the member has already been check in. is that possible? Thank you in advance.

Copy.PNG

 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Sure! So on the OnSelect property of the Check-In button you would do this:

Refresh(YourCheckedInDataSource);
If(IsBlank(Lookup(YourCheckedInDataSource,MemberName=ThisItem.MemberName)),
//Code your check-in process here
,Notify("This member has already checked in.");

Then on the checkin button's DisplayMode property, you can have this:

If(IsBlank(Lookup(YourCheckedInDataSource,MemberName=ThisItem.MemberName)),Edit,Disabled)

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

View solution in original post

6 REPLIES 6
Highlighted
Super User
Super User

I would add a function to the Check-In button's OnSelect option so that if someone clicks the button it checks to see if the member has already been checked in. If so, just Notify() that the member has already checked in. You can do a Refresh() on whatever data source stores checked in members, that way you can disable the other buttons where members have been checked in.

Highlighted

Hey Eric,

thanks for the rapid response. Do you have a example of the formula?

Highlighted

Sure! So on the OnSelect property of the Check-In button you would do this:

Refresh(YourCheckedInDataSource);
If(IsBlank(Lookup(YourCheckedInDataSource,MemberName=ThisItem.MemberName)),
//Code your check-in process here
,Notify("This member has already checked in.");

Then on the checkin button's DisplayMode property, you can have this:

If(IsBlank(Lookup(YourCheckedInDataSource,MemberName=ThisItem.MemberName)),Edit,Disabled)

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up. 

View solution in original post

Highlighted

Refresh(CheckIn);
If(IsBlank(Lookup(CheckIn,MemberAgreeBr =MemberAgreeBr)), Notify(“This Member has been Checked In”))

MemberAgreeBr is a column in CheckIn. Or should MemberAgreeBr = a value in power app or a column in the check in source ?

Thanks
Highlighted

It should be MemberAgreeBr (the column) = some matching variable in PowerApps. However you can match a record in the CheckIn table to PowerApps.

Highlighted

It worked!!!!!! Thanks man....I really do appreciated. 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (14,346)