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.

Field from first portal row

Featured Replies

Hi all,

Please could you help me out with this.

I have 2 tables... Table1 and Table2

Table1 contains orders

Table2 contains the status of the orders

In Table2 for each order there can be several records - each time an order status changes

The order status is changed via a portal to Table2 in Table1

So against a particular order in Table1 I will go to the portal and set the status to ordered, or processing, or shipped etc

Each time I change the status it is creating a record in Table2 just with "OrderNo" and "Status" and a date/time stamp.

Now a seperate layout in Table1 I want to show the current status, so I reference using the relationship to table2. relationship is orderNo=orderNo

The problem is it returns the status of the first record it finds for that particular order number. So this will be the very first status this order was set to. It disregards any further status.

I need it to return the last.

Rather than going to Table2 to get this, can I pull it from the top line in the portal?

Hope this makes sense!

Thanks for any help.

Use the Last function.

Create a new table table occurrence ( since you use the orig for the portal) and sort it by date descending. Put the field on the layout. This way you will not have to create a calc to do this.

Another option is a one-line portal, sorted by date descending. That way you don't have to modify your schema at all.

  • Author

Thanks all for your suggestions. I have gone with the 1 line portal, works perfect. Easy when you know how!

Thanks again

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.