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

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

Recommended Posts

Posted

Hi. I am new to reporting in FM. I created a layout that acts as a one-page summary for a record. How do I script to go to this layout and view in preview mode so that it will only preview the current record. I have it working but it creates the report for every record in the found set. Thanks for any help.

Posted

Use the New Window feature to create a new window and then isolate the current record:

New Window []

Go to Layout ["MyLayout"]

Show All Records

Omit Record

Show Omitted Only

Enter Preview Mode [Pause]

Close Window [Current Window]

The idea behind creating a new window is to preserve your found set. Opening a new window adopts the found set, sort order, layout, etc. So, when you isolate the current record with Show All Records, Omit Record and Show Omitted Only, you are destroying the found set in the new window. Once you have previewed, the script closes the window and the user is back to their found set.

This topic is 6663 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.