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.

Relationship with 2 dates

Featured Replies

  • Newbies

Hi,

I have a large database that tracks the jobs of a transport company. Each job has a collection and a delivery date. I need to create a layout (on screen and to print) that shows the record that match a specified date, like to day.

The point is that by looking at that layout you can see all jobs where they are either being collected or delivered on that date, or say tomorrow.

So far I'm a bit stuck, can anyone help.

You could do an OR find for the 2 dates and display the result in a columar/report layout.

  • Author
  • Newbies

Can you be a bit more specific. At the moment i use a relationahip and a portal to display all jobs that are current, is it possible to create a portal to view the records for the date specified (as in today)

Thanks

Yes it is posible but you need an OR relationship. You can use a list of the 2 dates, i.e,

Collection Date

Delivery Date

were they are separated by a return.

This would require a calculation = Collection Date & "P" & Delivery Date. The P represents the return. This a text calculation. On the other side of the relationship you need a text field = date. You may have to use GetAsNumber function.

I sugested the the other method since you said you want to print a report. A script something like this should give you both.

Go to Layout (Report) /* this is in table with data */

Enter Find Mode

Set Field [Collection Date; Get (CurrentDate)]

New Request

Set Field [Delivery Date; Get (CurrentDate)]

Preform Find

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.