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.

Best way to include single related record in report?

Featured Replies

Hi,

 

I'm trying to design a report that shows the current status of our projects. The database has a table for Projects, and a separate table for Status updates, where Projects and Status updates are related one to many. On my report, I want to show the Project details as well as the most recently dated status record related to the project. I tried using a portal on my report, set to sort by date in decreasing order and showing only 1 portal row; but I wanted to use Shrink to Fit, which doesn't seem to work on portals. 

 

I suppose I could have a separate field in Projects for the latest status, and then populate it using a script when running the report; but I was hoping for something a little less involved. 

 

Any advice is appreciated.

 

Thanks!

 

Tom

You could create a sorted relationship. This would let you put the related fields directly on the layout, no portal required.

 

Portals do slide up though. Not sure what you mean by "shrink to fit."

  • Author

Thank you - the sorted relationship worked perfectly!

I would be inclined to use Last() to access the last related record's information instead.  It would be evaluated on the server thus very fast whereas sorting a relationship will require that all related records be downloaded from the server.   Sorting is a heavy hit so it is worth avoiding when possible.

Edited by LaRetta

Good point, that would be worth testing. Although in this case I'd imagine it not likely to be noticeable unless viewing a large list.

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.