Skip 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.

Portal records - "Group By"?

Featured Replies

Hello everyone,

I have a CDML solution that will display a page for a order. Each order has one or more parts that have been ordered and all are listed on this page. If any of the parts have been shipped, the tracking information is displayed, formated like this:

Date.............TrackingNumber...............PartNumber

All tracking info is listed together at the top of the page, each part on it's own line.

If multiple parts from the same order are shipped in the same package, all parts will have the same tracking/date so I would like to only display the tracking/date once per package. So instead of this:

4/1/04.............12345...............555

4/1/04.............12345...............111

4/1/04.............12345...............999

4/2/04.............44453...............222

4/2/04.............44453...............777

I want to display this:

4/1/04.............12345...............555

...................................................111

...................................................999

4/2/04.............44453...............222

...................................................777

The tracking database contains the fields TrackingNumber, OrderNumber, PartNumber, and Date. The portal is based on a relationship linking OrderNumber to OrderNumber

Anyone have any ideas on how to accomplish this? Any suggestions are appreciated, thanks,

FileMaker Version: 6

Platform: Windows XP

Here is some Javascript to try:

<script>var curr_date = "";

[FMP-Portal:tracking]

if (curr_date == "[FMP-Field:tracking::date]")

{ document.write("<tr><td></td><td></td<td>[FMP-Field:tracking::PartNumber]</td></tr>"); }

else 

{ 

document.write("<tr><td>[FMP-Field:tracking::Date]</td><td>[FMP-Field:tracking::TrackingNumber]</td<td>[FMP-Field:tracking::PartNumber]</td></tr>"); 

curr_date = "[FMP-Field:tracking::Date]"; 

} ; 

[/FMP-Portal]

</script>

All the best.

Garry

  • Author

You've done it again Garry! thanks so much!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.