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.

Scirpting to print

Featured Replies

  • Newbies

FM Pro 6 Wind. XP

I want to have scirpt that perform these step for me

- When I open the file

- Go to the date field to search

- then find them

- Then print them out for me

In Document Perferences I have checked tho box Perform Scirpt when opening file

My Script

Go to Layout [Form PM]

Go to Field [Last PM]<--------(Date Field and every record has a same field)

If [Last PM<= Today]

Perform Find [Restore find request, Replace Found Set]

Print Setup [Restore Setup option, no dialog]

Print [No dialog]

End if

Somehow it does not work. Am I do some thing wrong?

Please help

Thanks

Regards,

NewtoFM

Create a new global field and try this. Do not use the Today function. Use Status (CurrentDate) instead. The Today function is quirky and no longer supported in future version of FM.

Go to Layout [Form PM]

Set Field [gFindStorage, Last PM]

If [gFindStorage <= Status ( CurrentDate )]

Perform Find [Restore find request, Replace Found Set]

Print Setup [Restore Setup option, no dialog]

Print [No dialog]

End if

  • Author
  • Newbies

John,

Thank you for reply.

I still do not understand how to define the new global field, I tried set data type for TEXT and DATE either way it did not work.

Please help

Regards,

NwetoFM

In your define fields screen, you will see a fiel type of global. Create a global with text data type.

  • Author
  • Newbies

John,

gFindStorage you metioned above is the new global field ?

Regards,

NewtoFM

  • Author
  • Newbies

Thanks.

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.