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.

Featured Replies

Greetings FM community and thank you for your time

 

Here's a newbie question from someone who really wants to learn!

 

On a "sales" layout, that's associated with a "sales" table, I'd like to have a portal on the left that displays the "types" (table) of "products" (table) available. For instance, "shakes", "bars", or "items". 

 

Each product has a type, and depending on the selected button in the first portal of the sales layout, I'd like to display the products of this type in a second portal, located beside the first portal. For now, not much success, but I suspect it's the relationships that are wrong. 

 

Any help helps!

 

Thanks in advance

 

post-113220-0-95893600-1427308209_thumb.

post-113220-0-13091500-1427308211_thumb.

IMHO, your relationships need to look more like this:

 

post-72594-0-68855700-1427311754_thumb.p

 

A portal to AllProductTypes, placed on a layout of Sales, will show all product types (note the x relational operator). If you place a button in this portal, that populates the global gProductTypeID filed by the selected product type's ID:

Set Field [ Sales::gProductTypeID ; AllProductTypes::ProductTypeID ]

then a portal to Products 2 will show all products in the selected type.

  • Author

It works! With a lot of help from my friends.
 

Thank you so much, I would never thought it that way. The relational X is key, and I presume "sales" in your example is what is called a join table?

Once again, thank you very much for the time you invested in my education. Very formative!

I presume "sales" in your example is what is called a join table?

 

No. If you're looking for an example of a join table, then Saleitems would do. You can see that it is a child of two parents (Sales and Products).

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.