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.

Print last two portal rows

Featured Replies

I have a layout with two portals, I need to print the last two rows of each portal on my report.

I have the report layout designed, but I when I put the portal in (as a 2 row) I get the first two rows…I need the dates Ascending also (so a descending sort will not work).

I cant do anything with a sliding as the portals contain many many rows of data.

How can I do this?

Thanks,

Jim

Is there anything about the last two child records that would allow you to isolate them?

  • Author

Not sure if this helps

The first portal has only two fields that I need displayed on the printed report: "Date Entered" and "Action"

the other portal also only has two fields that I need displayed on the printed report:

"Date Entered" and "Employee Badge Number"

All I need are the last two portal rows data from each child to show up on the report printout.

Example:

(Portal 1 last two rows...of course there may be 100 rows of data above the last two but I just need the last two from each child)

08/16/2009 Shot given

08/21/2009 Vet Visit

(Portal 2 last two rows)

07/12/2009 934

08/012/2009 743

I can add another field to the data is it would help in printing the rows I need.

Edited by Guest

I need the dates Ascending also (so a descending sort will not work).

Descending sort CAN work if you use two portals, one row each, both sorted descending, and the top one set to "Initial row: 2'.

Another way to do this would be to use a calculation field to display the data, e.g.

Let (

c = Count ( Child::ParentID )

;

GetNthRecord ( Child::FieldA ; c- 1 ) & Char (9) & GetNthRecord ( Child::FieldB ; c- 1 )

& ¶ &

GetNthRecord ( Child::FieldA ; c ) & Char (9) & GetNthRecord ( Child::FieldB ; c )

)

  • Author

Never Mind the my posting below I have looked at the portal box since I started working with FM and I have never noticed the inital row box. I feel foolish...again.

It looks like that will be the fix I need.

Thanks again Comment and bcooney.

For my level of knowledge this may be my best attempt:

Descending sort CAN work if you use two portals, one row each, both sorted descending, and the top one set to "Initial row: 2'.

I know how to do a one row portal descending but I'm not sure what "Initial row: 2' is or how to implement it.

Edited by Guest

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.