November 8, 200421 yr I am using Go To Related Records (GTRR) to toggle between files using a button in a portal. The first click-through shows all records (bad). The next click-back shows just the selected set (good). Each subsequent click-through show just the selected records in each file (good). How can I make the first click-through show only the selected set? I'm using a script, GTRR w. Show Only, external script to go to layout and mode. Thanks for any input Mark Microquest
November 8, 200421 yr GTRR must be activated before any script steps that would take selection away from the portal, such as Exit Record/Request. Does that help?
November 8, 200421 yr Author I believe GTRR is activated before leaving the portal: script: Allow User Abort [Off] Go To Related Records [show, "FolkTech"] Perform Script [sub-scripts, External: "FolkTech.fp5]
November 8, 200421 yr What does the external script look like? Is FolkTech the same relationship as the portal uses?
November 8, 200421 yr Author The external script is: Allow User Abort [Off] Go To Layout ["CD Profile"] Enter Browse Mode [] FolkTech IS the same relationship as the portal uses.
November 8, 200421 yr Just fyi, the only step you need is Go to Layout. You already turned off user abort in the main script, and the file should already be in Browse Mode after a GTRR. Is your button fully within the first row of the portal? Could you zip and attach your files for us to check?
November 8, 200421 yr Author The button is the Field, which appears to be fully within the first row of the portal. The files are 98 MB. Where can I send them to? Mark.
November 9, 200421 yr Try using Case( ARCHDATA <> "T", COMP_ID ) for your CompPortalMatch field. If that doesn't work, zip and attach only the two pertinet files (CompanyTech and FolkTech) with a small sample record set that doesn't currently work for you.
November 10, 200421 yr Author Found a solution. The problem (GTRR bringing up ALL, despite being set at Show Related Only) ocurred only after switching directly from Search Layout 1 to Search Layout 2 (or vice versa) and then toggling between files. All subsequent toggles performed correctly. I added a line to the scripts that take you from one search screen to the other: Enter Browse Mode This fixed it (for some reason). Thank you -Queue- for your insight and time.
Create an account or sign in to comment