Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Show certain related record

Featured Replies

Hi all

I'm trying to make a small application to track rental properties I have. Current issue is displaying the "active" tenant and lease terms.

Tables:

Property
Lease
Tenant

Tenant is linked to Lease by a LeaseID (so multiple people can be on the same lease, if necessary).
Lease is linked to Property by PropID.

On my Property form I have a portal to display the current 'active' tenants(s) and the lease terms. 'Active' can be defined as their moveinDate and moveoutDate. If today's date falls within that date range they and the lease are considered "active" and must be shown in the portal. No active tenants? Portal is empty.

Any suggestions or modifications to this are welcome. It doesn't need to be complex or fancy. I have a separate form that can show all tenant history. Right now I just want to display the active tenants and lease terms. Cheers!

5 hours ago, madman411 said:

On my Property form I have a portal to display the current 'active' tenants(s) and the lease terms.

I find this somewhat confusing, because surely the terms of a lease are in the Lease table, while a portal showing the active tenants would be a portal to the Tenant table?

If you're a looking for a simple way to display only active tenants, then add a calculation field cIsActive (result is Number) to the Tenant table =

Lease::moveinDate ≤ Get ( CurrentDate ) 
and 
Get ( CurrentDate ) ≤ Lease::moveoutDate

then filter the portal to Tenant using the expression =

Tenant::cIsActive

(I am assuming that moveinDate and moveoutDate are fields in the Lease table and apply equally to all tenants of that lease.)

This should work well as long as you don't have properties with massive amounts of leases and tenants. Otherwise you will have to add another relationship chain to your graph and filter it instead.

 

Edited by comment

  • Author
On 7/20/2021 at 7:38 PM, comment said:

I find this somewhat confusing, because surely the terms of a lease are in the Lease table, while a portal showing the active tenants would be a portal to the Tenant table?

 

That is correct. I failed to include that information in the original post.

I had come to a similar solution prior to reading this - but it's pretty much identical! Thanks, comment.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.