Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6966 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted

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

  • Newbies
Posted

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

Posted

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

This topic is 6966 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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