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.

Displaying data in Side-by-Side Portals

Featured Replies

Hi:

I've got a main file (File A) and a subfile (File B). On one layout in File A I have 2 portals into File B. I want to display the first 25 records in the left portal, and the second 25 records in the right portal.

Each record in File B has a sequential # from 1 to 50.

The left side works fine (it displays all the records, but since I don't have scroll bars displayed, only the first 25 rows are visible.

I tried the following calc in file B:

cRightPortal= Case(RecordNum > 25,1,0)

I set up a relationship in File A where the File A constant 1 =

File B::cRightPortal

I'm using FM5 on Win 98. Thanks.

And the question is? I assume you were going to say that the right side is not working? Take a look at the key calculation and make sure that the field type (number) is correct and that indexing is set to "on", check the relationship setup, etc. It should work fine, "something you know, ain't so".

-bd

  • Author

Yes, the question is: Why doesn't the right side portal display records 26 and above. What it now displays is record # 1 eleven times (there are only 36 records in File B). I've checked the relationship, and the record numbering and both seem okay.

I just did a little test on this and I believe that if you check the right portal, you will find that you've used fields from the relationship for the left portal. Right field(s), wrong relationship.

  • 1 month later...

why dont you just create 2 relationships, the first based on a filed (in related) which is

if (serialnumber <=25;1;2) and a constant calc of 1, the second with a constant calc of 2.

If you want to be able to add records (to the 2nd portal, I suppose), just add a self-join on the related file, and a second field (your new key), which auto-enters the calculated value by self-join relationship.

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.