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.

Automated Find and Print

Featured Replies

I have a series of layouts that are letters and a main page that people can enter the contact information and request a specific letter.

I could like to create a script to go to each letter layout find all that have the REQUEST DATE equal to the current date and print the records found. If no records are found then move to the next letter.

Any suggestions on how to do this?

Thanks

Note: Your question isn't completely clear, mainly because your data structure isn't clear.

I think what you're saying is that you have a Letters table and a contacts table, and that a person enters their contact info into the contacts table, and selects a letter that will subsequently get sent out to them.

If that's the case, you don't need to go to multiple layouts, and you don't need to do multiple finds.

Assuming that the Letters table is related to the people table based on the LetterID, you need to:

1) Create a Letter layout based on your Contacts table that includes appropriate Contact info--AND fields for your Letter info.

2) Create a simple script:

# PrintLetters

Set Error Capture[On]

Go To Layout[Letter1]

Enter Find Mode[]

Set Field[ReqDate; Get(CurrentDate)]

Perform Find[]

If[Get(LastError) = 0]

# Execute the print steps

End If

This will result in the selected letter being printed out for all people with today's date in the ReqDate field.

If this is not right, give us more to work with.

David

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.