the walker Posted February 11, 2002 Posted February 11, 2002 i am using two layout with the same portal on how ever on one layout the portal shows a list of five recs and a button to take them to the next layout with the same portal on it only with one row and more detail. i want the user to be able to click on a portal row on the first layout and be taken to the detailed layout but unless i use a side bar this does not work it just goes to the first rec in the portal any ideas it may just be my script set field global 1 to current portal row num goto layout port2 goto portal row by field value global 1 hellppp
Fitch Posted February 11, 2002 Posted February 11, 2002 An easier way is: Put the button in the portal. When you're in Browse mode you should see it on each row. The script for it would be: Go to Related Record [self by RecordID] go to layout port2 ------- Oh wait, I misunderstood... hmmm.... I just tried what you described, and it worked for me. I suggest breaking your script into separate steps, or at least inserting Pauses so you can see what's going on. Place the global 1 field on your layout so you can verify that it's getting the right portal row number, etc. Do you have more than one portal on your target layout? In that case you may need a Go to Field... step, before the Go to Portal Row... [ February 11, 2002, 11:00 AM: Message edited by: Fitch ]
the walker Posted February 14, 2002 Author Posted February 14, 2002 that does work but for one downfall only if i have the side nav bar if i get rid of this it will not work any clues why
Fitch Posted February 14, 2002 Posted February 14, 2002 Oooooh... the SCROLL bar. Gotcha. You're right, it won't work. A good way to do what you want is to make sure the records in your related file have a serial number, i.e. a field with a unique i.d. Now in your main file, make another relation based on your global and this serial number, and use this relation for the portal on your second layout. With me so far? Now, instead of having your script set the global to the current row, have it set the global to the serial number. The True Developer follows the Path of Least Resistance.
Lee J Posted February 21, 2002 Posted February 21, 2002 Fitch, so what you suggest is in the script for the first portal row, Copy the unique Serial number to a global field. Go to the second layout with the other portal and use the Global field as the relationship to filter.
Fitch Posted February 21, 2002 Posted February 21, 2002 Yes: set field global 1 to thisRelated::uniqueID goto layout port2 Note that layout port2 shows fields based on the global 1::uniqueID relationship, which you might call "Detail," NOT the relationship you're using for the portal of your original layout.
Recommended Posts
This topic is 8313 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