# Parking Space App

**URL:** <https://community.glideapps.com/t/parking-space-app/16649>\
**Category:** Ask for Help\
**Created:** [October 2, 2020, 7:34am UTC](https://community.glideapps.com/t/parking-space-app/16649 "2020-10-02T07:34:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 7:34am UTC](https://community.glideapps.com/t/parking-space-app/16649/1 "2020-10-02T07:34:03Z")

</div>

Hello,  
Im living in a closed community, and sometimes people want to lend/sell parking space.  
Im searching for a low/no-code solution to build an app for owners of parking spaces to register and sell their parking space time for others. For example:

- Im a parking space owner, but I don’t have a car. I register in the app as an owner, where the parking space is, and how much does it cost.
- Another person registers as a regular user, picks a parking space nearby and buys it from me for a period of time (space becomes unavailable to rent).
- After this period the parking space is again available.

Thanks!

---

<div class="post-metadata">

**Author:** ![Manan\_Mehta](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manan_mehta/32/13957_2.png) [@Manan\_Mehta](https://community.glideapps.com/u/Manan_Mehta)\
**Post date:** [October 2, 2020, 7:42am UTC](https://community.glideapps.com/t/parking-space-app/16649/2 "2020-10-02T07:42:02Z")

</div>

Yeah you will be able to do it on Glide with one catch. The payments won’t be done inside the app because on Glide you can collect payments in one account only.  
So if that part can be managed on an external site (with links/webview inside of Glide) and capture that information back to the database through a manual approval or an automation then the rest can be managed easily inside Glide.

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 7:55am UTC](https://community.glideapps.com/t/parking-space-app/16649/3 "2020-10-02T07:55:06Z")

</div>

Oh nice, thanks Manan\_Mehta.  
Is there maybe a template that could be a good starting point for this problem?

---

<div class="post-metadata">

**Author:** ![sardamit](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sardamit/32/263_2.png) [@sardamit](https://community.glideapps.com/u/sardamit)\
**Post date:** [October 2, 2020, 10:17am UTC](https://community.glideapps.com/t/parking-space-app/16649/4 "2020-10-02T10:17:50Z")

</div>

Check the latest Asset Management app by Glide ([https://www.glideapps.com/prefab/asset-manager-app](https://www.glideapps.com/prefab/asset-manager-app)).

It has parts that you will be able to customize to your needs.

At its core, you need:

- a listing of available spots
- ability for people to ‘check out’ and ‘check in’ the spot
- some way for the spot owner to verify the claims

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 11:23am UTC](https://community.glideapps.com/t/parking-space-app/16649/5 "2020-10-02T11:23:10Z")

</div>

Actually I’ve gone and started w/o a template and I’ve ended up with a similar ‘problem’ the template you recommended has.  
So in this [https://www.glideapps.com/prefab/asset-manager-app](https://www.glideapps.com/prefab/asset-manager-app) when you browse the Assets -\> Unassigned (for me those would be the free spots), when I enter an item I imagine that I would have a big “RENT” button, after which the user who wants to rent it enters his data, and after payment/veritication the item record gets updated and taken off the app (since its not available anymore).  
BUT… I see its done by editing the item (pencil icon in the top-right), rather than an action/form that edits the same record.

Here’s a preview of my table of data:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/6/6b463d23be5592d9880991f49b8d8a499da4b1b0.png)  
**What I want:** For the record to update in the “Tenant plate number”, “Tenant make and model”, “Tenant phone number” “Rent to” when the user clicks a big button in the spot description page and submits/pays for it.  
**What I don’t want:** to use the “Allow user to edit” because the UX of it is not right.  
**Problem:** Adding a big button in the spot descrition gives me two options: Zappier or Form  
Zappier: I don’t know really, so maybe this can solve it?  
Form: looks like the thing that I want, but it adds a new record to my main database, and not edits it.

Thanks!

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 2, 2020, 11:55am UTC](https://community.glideapps.com/t/parking-space-app/16649/6 "2020-10-02T11:55:45Z")

</div>

Wouldn’t a new row from a form button be better? Write it to a new sheet, then use relations/lookups/rollups to pull the info from the latest rental into the parking space details. Then use date comparison to check if the latest rental is still current or not and hide or show the form button accordingly. That way you have a log of all past rentals if needed.

If you don’t want all that, then create a link to screen “this item” button and place entry components on that second detail screen. Then conditionally hide or show the button if the rental is current or not.

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 11:59am UTC](https://community.glideapps.com/t/parking-space-app/16649/7 "2020-10-02T11:59:30Z")

</div>

Jeff you’re spot on. This was my alternative solution. I’ll try that, thanks 🙂

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 1:25pm UTC](https://community.glideapps.com/t/parking-space-app/16649/8 "2020-10-02T13:25:50Z")

</div>

Jeff, I’ve changed my structure to this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/8/847e8a96f8aea538425f2a380ab6a1b94dd22038.png)  
But I don’t know how to populate the “isAvailable” column in the Spots table.

You’ve written:  
✅ Write it to a new sheet,  
🤔 then use relations/lookups/rollups to pull the info from the latest rental into the parking space details.  
🤔 Then use date comparison to check if the latest rental is still current or not and  
✅ hide or show the form button accordingly.

How to achieve 2 and 3? Thanks.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [October 2, 2020, 2:07pm UTC](https://community.glideapps.com/t/parking-space-app/16649/9 "2020-10-02T14:07:15Z")

</div>

Hey @Marcin_Bauer

Nb 2 could be done by created a new column on your spot tab. This is a relation where the ID column matches the ID column on the rental tab. Then you create another column Lookup/rollup that matches that relation.

Nb3 could be done with a math column where you add the renting date + the amount of days the renting lasts. Then have a ITE column where if today is between that date the show true, else false.

I hope this helps, let us know.

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 4:36pm UTC](https://community.glideapps.com/t/parking-space-app/16649/10 "2020-10-02T16:36:41Z")

</div>

So I almost have it, but Im blocked:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/e274bf468a83f8cb7fe0a37fee4ca072ca211cc4.png)  
I solved the “has this rental been expired” problem with a “If then else” column “Has expired”. So i know which of the records are active. But now I don’t know how to use it in the spots sheet, so I can apply a filter to the spots if one of them doesn’t have any active rentals.

The most I could do is do a Lookup table “Has expired?” that finds all rental IDs of the specific spot, and lists its “Has expired” values. So then I have “Has expired?”:  
true true false - spot it has an active rental  
true true true - doesn’t have an active rental so display it.

If I could create another column and display true/false if “Has expired?” has a “false” I think I would be good.

Ugh yes, this is complicated ☹

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [October 2, 2020, 4:43pm UTC](https://community.glideapps.com/t/parking-space-app/16649/11 "2020-10-02T16:43:06Z")

</div>

Is your rented by relation a multiple relation? Try a single relation and see if that’s gives you what need.

---

<div class="post-metadata">

**Author:** ![Marcin\_Bauer](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marcin_bauer/32/14588_2.png) [@Marcin\_Bauer](https://community.glideapps.com/u/Marcin_Bauer)\
**Post date:** [October 2, 2020, 4:47pm UTC](https://community.glideapps.com/t/parking-space-app/16649/12 "2020-10-02T16:47:40Z")

</div>

I did it!

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/ef1aab624d38dba4f9b7b630f048db2b09648230.png)  
I had to change some logic from true/false and in the “Has active?” just don’t return a value of false.  
Then in Spots I looked up which of the Reters of the Spot has an active “true” and it works!  
Now i just filter results by “Is rented?” != true 🙂

This does work, but maybe isn’t the best solution? Any ideas if it can be simpler?

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [October 2, 2020, 5:02pm UTC](https://community.glideapps.com/t/parking-space-app/16649/13 "2020-10-02T17:02:35Z")

</div>

Good job!
