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 filter won't show one particular value

Featured Replies

Hi there, I am sure there is a really simple answer to this but I just can't crack it. 

I have two related tables: Property and AoPC. Each Property will belong in a particular AoPC. I have set up the relationship and a set of tabs on a layout in the AoPC table. Each tab has a portal showing particular properties in that AoPC depending on the value in another field in the Property table called Influence.

The Portal Filter calculation is really simple: If(Property::Influence = "25m";"25m";""), with a different value for each portal. There are three possible values in the Influence field: 25m, 40m or GWD. For 25m and 40m, this works perfectly. Also if the portal is unfiltered, all records for that AoPC show up.

However, when I filter the portal for any value without a numeral in it, eg GWD, nothing shows up on the portal. I tested this by changing the value to 1GWD and GDW1 and viola, it showed up in both cases, but remove the 1 and it won't show.

Influence field is text, I have checked for spaces etc, but nothing changed.  

Thank you 😣

A portal-filtering expression is evaluated to a Boolean value: if the result is True, the record is shown; otherwise it's filtered out.

In your first example, the result is "25m" - and GetAsBoolean ( "25m" ) returns True, because GetAsNumber ( "25m") returns 25 and any number other than 0 evaluates as True. Conversely, the string "GWD" evaluates to False, because it contains no non-zero digits.

Your filtering expressions should be modified to return a Boolean value directly - that is;

Property::Influence = "25m"

for the first example, and:

Property::Influence = "GWD"

for the other. This will return 1 (True) when the equality is satisfied, 0 (False) otherwise.

 

Note also that you could use a single portal filtered by:

Property::Influence = AoPC::gInfluence

and have it show only records matching the value selected in the global gInfluence field (a refresh may be required upon change).

 

Edited by comment

  • Author

Ahhh, I see now. Thank you so much for a concise explanation. That makes sense and I was able to fix my issue. 😊

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.