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
Resident Rockstar
Resident Rockstar

Re: Disabling Button?

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
Resident Rockstar
Resident Rockstar

Re: Disabling Button?

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

Re: Disabling Button?

Hey Eric,

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

Highlighted
Resident Rockstar
Resident Rockstar

Re: Disabling Button?

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

Re: Disabling Button?

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
Resident Rockstar
Resident Rockstar

Re: Disabling Button?

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

Highlighted
Helper I
Helper I

Re: Disabling Button?

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

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 (11,036)