Jump to content
Server Maintenance This Week. ×

Portal Filter by Left text; 3


Quito

This topic is 1582 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 1582 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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