February 4, 200817 yr 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]
February 5, 200817 yr 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.
February 5, 200817 yr 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]
Create an account or sign in to comment