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.

Portal displays no records

Featured Replies

Hi there

I have a kind of "home page" on my database containing a single record, and the layout has a collection of portals showing me the status of jobs, invoices etc. at a glance.

The problem is that one of them doesn't work and I can't figure out why. It's the portal showing me all unpaid invoices.

Here's how it works (or in this case, doesn't):)

The [color:red]INVOICES table has a calculation field called [color:red]STATUS which checks if anything is entered into the [color:red]DATE PAID field, then displays the colour coded invoice status accordingly, like this:

[color:brown]Case ( not IsEmpty ( Date paid ) ; TextColor ( "Paid" ; RGB (0;160;0)) ;

(Home::Current date) > Due date ; TextColor ( "Overdue" ; RGB (200;0;0)) ;

TextColor ( "Due" ; RGB (0;0;200))

)

The [color:red]HOME table has a global field called [color:red]PAID INVOICES containing the word "Paid"

The relationship graph has a table occurrence called [color:red]INVOICE STATUS set up as [color:red]HOME::PAID INVOICES (does not equal) INVOICE STATUS::STATUS

The portal shows nothing. I'm running Filemaker 8 on a Mac

Does this make sense, and can anyone help?

Many thanks

Edited by Guest

Are you sure that the fields in your portal belong to the relationship?

  • Author

Yes, the portal is set to display records from the Invoice Status table.

Your relationship cannot work, because the match field in Invoices is not indexable. It is forced to be unstored because it references a related field (which also happens to be an unstored calculation field, so it wouldn't work even if CurrentDate were to be moved into Invoices).

Try basing your relationship on another field, e.g. a calculation =

Case ( not IsEmpty ( Date paid ) ; "Paid" )

  • Author

Genius!

I created that calculation field and swapped it with Status in the relationship graph, and now everything works a treat.

Thanks a million!

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.