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.

Filtering with portals

Featured Replies

I have been slowly redoing my solutions with the relatively new feature of using a portal to filter the results from the same table on a Form layout.  This takes the place of having a list view and then clicking on the item to get the form view.   

I have a table of Lessons.  One of the fields is Topics.  I would like to have the functionality where I could select, within the Lessons Form, from a list of Topics, and then the self-portal on the form would show me all the lessons on that topic.  Then I could select that lesson for other details to be displayed.  

It appears that I cannot use two self-portals to achieve this.  I also tried using a global field with a value list of topics and I tried a self-join in the relationship graph where I matched the global field in one occurrence with the topic field in the other occurrence, but I was not successful in finding a way to make that work.  Perhaps that was the right idea but not implemented properly.  I also realize that I could perform a Find on the topic field, but I don't find that to be as elegant as I would like it to be.  

Surely there's an easy solution to this....

2 hours ago, blissland said:

the relatively new feature of using a portal to filter the results from the same table

What is this "new feature" that you mention? AFAIK, a portal to the current table (a.k.a. a list-detail layout) cannot be filtered. It will always show all records in the current found set (and only records in the current found set).

OTOH, both of these options should be quite easy to implement:

  1. Use a portal that shows a related set from a self-join relationship (you say you tried this, but you don't say how - so it's not possible to tell where you went wrong);
  2. Trigger a find upon modifying the global field (why wouldn't this be more elegant than adding to the relationships graph?).
     

The other point that's not entirely clear is how many topics can a lesson have.

 

  • Author

"new feature"=list-detail layout 

A lesson can only have one topic in this case.  The number of topics is fixed to about a half-dozen.

I'd like to make the portal option work.  I can create a self-join between lesson1 and lesson2 table occurrences.  Which fields am I joining them with?  Which part of the layout goes with lesson1 and which with lesson2?  Sometimes these things are very clear to me and other times very muddy.  

Here's a basic demo.

A more elaborate solution would use a calculation field as the match field - so that when the global field is empty, all records would be shown.

SelfJ.fmp12

  • Author

This is great!  thank you!  Now I got it! 

Edited by blissland

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.