July 22, 200421 yr 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
July 22, 200421 yr 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 []
Create an account or sign in to comment