sullyman Posted February 4, 2008 Posted February 4, 2008 I have a portal that lists current records correctly. I placed a button next to each record so i can go to that record and print same. The script for the button involves omitting the record so it previews alone from the other records and calculates correct page numbering etc. When i always run the script the first time in this portal layout, it previews all records which is not what i want but when i go back after the first script run and try it again and again, it works correctly. What is causing the script to list all records in preview mode the first time? Here is my script? Any help is much appreciated. Go to Related Record [From Table etc.etc.] Omit Record Show Omitted Only Go To Layout ["MyLaout"] Enter Preview Mode [] Perform Script ["PageNO"] Enter Preview Mode [Pause] Enter Browse Mode [] Go To Layout [Original Layout]
Fitch Posted February 5, 2008 Posted February 5, 2008 Have you tried stepping through this with the debugger? My guess is that you are landing on a single record, then omitting it, leaving you with zero found records, so that Show Omitted then shows all records. You should be able to isolate the record in the GTRR step (show only related), so you don't need the Omit/Show steps.
Breezer Posted February 5, 2008 Posted February 5, 2008 Go to Related Record [From Table etc.etc.] SHOW ALL RECORDS Omit Record Show Omitted Only Go To Layout ["MyLaout"] Enter Preview Mode [] Perform Script ["PageNO"] Enter Preview Mode [Pause] Enter Browse Mode [] Go To Layout [Original Layout]
Recommended Posts
This topic is 6136 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 accountSign in
Already have an account? Sign in here.
Sign In Now