cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Booking holidays

Hi everyone, im new in this amazing world of powerapps, im trying to create a new app to reserve an specific date with a maximun limit per date. The first parte i made it with a sharepoint form with the dates and areas of my employees, but i dpnt know how to limit the spaces available per date. Example:

 

I have 10 spaces available from jan 1st to jan 15th, i want that when an employee select thks dates update automatically the quotes available. 

 

Thanks in advance for your help

3 REPLIES 3
Super User
Super User

What does your data source look like where you are saving this information?



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

I only got this colums, employee, initial date, final date, wich area the employee belongs.

Super User
Super User

What I would do, when an employee selects a date, create a filtered collection from the data source for that date, then use something like this:

 

If(

 

CountRows(Collection) >= 10, then do something

 

You could have a warning label saying that the date is filled and set the visible property to:

 

If(

  CountRows(Collection) >= 10, true, false)

 

)  And use the same to set the Submit button display mode to Disabled.



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (97,940)