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

I have two files and a relationship between them.

(That's quite common tongue.gif)

I need to display records in a tree view. In other words I want to see main records and, under each main record, its related records, like this:

RECORD A

_____REL RECORD A.1

_____REL RECORD A.2

RECORD B

_____REL RECORD B.1

RECORD C

RECORD D

_____REL RECORD D.1

_____REL RECORD D.2

_____REL RECORD D.3

_____REL RECORD D.4

it's easy in preview mode.

I want to do that in browse mode.

Thanks in advance for any help...

smile.gif

Use list from first file and portal from second file.

Exactly as it is in your diagram.

The only thing is, that the portal size is not dynamic, but that shouldn't matter in browse mode.

  • Author

>that the portal size is not dynamic

this is a problem! Because I have to show always all the records from the related file. And these record can be from 0 to many...

I'm thinking about storing main and related records in a single file. But breaking relational rules for an interface issue is my last option...

Hi Paolo,

Seems to be a one to many.

Set the portal in the "many" file so that you can build a portal there with "Foreign_ID" for your Main_ID and let the records relate to that field.

If it is a many to many relationship, you can do this easily in the line item, where all relationships are.

You can also create a table to join A and B even if it is a one to many. Then use that table to display the results in a tree-like portal.

There are lots of solutions which doesn't require you break relationship rules....

Also check a sample called "Line Item in Folders". It does show a tree-like portal.

  • Author

RE: Also check a sample called "Line Item in Folders". It does show a tree-like portal.

"Folderized line items"...

Great sample! But... you actually broke relational rules!! :

You should have one file for items, one for orders, one for customers and so on...

I don't crearly uderstand your souggestions on the first part of your message.

However I will not use a portal, but a simple list view.

Thank you...

Ciao Paolo,

you actually broke relational rules!! :

You should have one file for items, one for orders, one for customers and so on...

The demo breaks the rules, because it isn't a real Line Item with its related files around.

It's a fake.

But in the "real life", it stays perfectly related to the other files (Products, Quotes, Customer Orders, Deliveries, Invoice) and even a link to the Purchase Orders.

The only difference is that all items are scripted rather than entered though a portal with "allow creation of related records".

Another is that along with the item being entered in that Join File, the Foreign Key is entered twice :

Once in an empty "line"

Once in association with the Items.

This way, I can have a tree-like display...and all fields are indexed, even those related calculations.

For the rest, it is perfectly keeping the Relational Rules.

I don't crearly uderstand your souggestions on the first part of your message.

If you are dealing with a Many to Many, you certainly have a Join File. This file holds all the Ids you need for the job. I was just suggesting you create your Tree-Like view in a Join File, or create one if you don't.

However I will not use a portal, but a simple list view.

It was and stays a suggestion....

PS: Non tante novita in questo Cersiae. Ci ho fatto una breve aparizione Martedi, purtroppo, avevo molti impegni. Ci vedremo per forza un giorno o l'altro.

  • Author

Thank you for your suggestions. I appreciate them very much!

Ciao.

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.