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

Newbie question... layouts and printing


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

Recommended Posts

Posted

Hi,

I am trying to automate the printing process. I have a form where I need to make a button that will allow you to perform a find first, and then take those results and print a report. I'm not really used to the layout system yet (coming over from MS Access). I make my printing layout so it looks right, but it looks goofy as a form view... only having showing one record. I don't want to confuse the user, so how can I make it so a certain layout (the final printing one) is ONLY in list view? I would like to do that and have a button to perform the search, then take those results and send them to the LIST ONLY layout... is this possible?

Thanks

Vandy

Posted

For my reports, I typically use a find layout and different report layouts that are all separate from the data entry and view layouts. A button would execute a report script.

The report script might look something like this:


Go to Layout [ Report Find ] //my find layout for reports

Enter Find Mode []

Set Field [ Status ; "Active" ] //example of setting predefined report criteria

Go to Field [ Name ] //put the user in a field they might use to limit the report

Pause/Resume Script [ Indefinately ]

Set Error Capture [ On ]

Perform Find []

If [ Get(LastError) > 0 ]

  Show Custom Dialog [ "No records found." ]

  Go to Layout [ original layout ]

  Show All Records

  Halt Script

End If

Sort [ Restore ] //Sort by my predefined sort criteria

Go to Layout [ Report - Address List ] //my report layout for this script

Enter Preview Mode []

Show Custom Dialog [ "Do you want to print?" ]

If [ Get(MessageChoice) = 1 ]

  Print [] 

End If

Go to Layout [ original layout ]

Enter Browse Mode []

 

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