web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Make parking spaces av...
Power Apps
Unanswered

Make parking spaces available on certain days

(0) ShareShare
ReportReport
Posted on by 58

Hello everyone,
I would like to ensure that certain parking spaces are only displayed on certain days in my parking booking app. I was thinking about implementing this with checkboxes that are at the relevant parking spaces and that last from Monday to Friday. If these checkboxes are checked, the corresponding yes/no field will be activated in the connected sharepoint list.

 

Now I just have to teach the system that if, for example, the "Monday" checkbox is checked, that this applies to all Mondays of the month, etc. How can I do this?

Thank you in advance!

 

 

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Let's say you have a gallery, and that is filled with records that are parking spaces. You can then have a column in your splist that stores these parking spaces called restrictedDays or whatever you like, make it a choice column. Then in your gallery where presumably you or a user can adjust availability of that spot, place 7 check boxes and label them s m t w t f s or whatever you like to signify dates this spot can not be used. In those on OnCheck place something like this

    Collect(restrictionDates, 2);
    Patch(spListName, ThisItem, {restrictedDays:restrictionDates})

     

    and in its OnUncheck

    RemoveIf(restrictionDates, Value=2)
    Patch(spListName, ThisItem, {restrictedDays:restrictionDates})

     

    where the numbers match corresponding days of week (default if you have not set yourself is Sunday 1 on through Saturday 7)

     

    Then you just check that column when displaying to end user for the day number and put that days choice in disbaled mode if it is present and edit mode if not, or if checking day of only

    Weekday(Today()) in ThisItem.restrictedDays.Value
  • Masakichi123 Profile Picture
    58 on at

    @TheRobRush : Thanks for your answer. That sounds interesting. A question for understanding: Then I would only have one column, right? Would this also be saved if the parking space were available for Tuesday, Wednesday and Friday, for example? Or would I then have to define several columns?

  • TheRobRush Profile Picture
    11,128 Moderator on at

    This method would require a single column

  • Masakichi123 Profile Picture
    58 on at

    @TheRobRush : I'm trying to implement that right now. I typed the following because he didn't want the original formula:

    Collect(Verfügbarkeit;1);;Patch(Parkplätze;ThisItem;{Verfügbarkeit:ThisItem.Verfügbarkeit})

     

    Now the system says "Title is required". But when I try to pass the title, the error persists. What am I doing wrong?

     

  • Masakichi123 Profile Picture
    58 on at

    Sorry, i try, but that doesn`t work....

  • Masakichi123 Profile Picture
    58 on at

    If I use the solution above, the tick is no longer displayed in the checkbox, the app twitches briefly and does something, but you can't see that anything has happened.

     

    I would like to check the checkboxes first and then patch the resulting values ​​in one go using a button. And if you uncheck the checkboxes and click on the button again, the new version will be patched. Is that possible somehow?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard