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 by Left text; 3

Featured Replies

Hi,

I'd like to create a Portal with Categories for a single, rather large file with items. Each item is coded.  The first 3 characters in the code define the Category.

So, I'm thinking of filtering the items into Portal Categories like this:

IF Left ( CODE; 3) = "321"

Then show items in Category 1

IF Left ( CODE; 3) = "331"

Then show items in Category 2

IF Left ( CODE; 3) = "341"

Then show items in Category 3

...and so on

What should the real code be?

All the very best,
Daniel

How do you want the users to select the category they want to show? Should they select from a list of codes, or a list of category names, or  .... ?

  • Author

Thank you Comment,

I have a single table. The table contains records which are tagged with a Category field (321, 331, 341). 

Users have a portal with about a dozen tabs. Each tab is populated with records from the table according to Category (tab for Category 321, tab for Category 331, tab for Category 341, etc).

In the meantime, I've split the records into separate FileMaker files by Category (321.fmp12, 331.fmp12, 341.fmp12, etc) so I can populate the portal but this is really tedious and prone to error, as any change I make to one Category file must be added to all the other Category files. Can you suggest a better way of filtering the records within the Portal without splitting the file into smaller files?

Best,

Daniel

  • Author

I found how to do it. In Layout mode, double click the portal layout. Select "Filter portal records" and click Specify:

If ( Table::Category = "331" ; Table::ID ; 0 )

Guess I'll have to change the Title of this Topic

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.