December 9, 200718 yr Hi, I want to have a screen where a user sees two lists of clients, one list is called "include" and the other "exclude". Each client record has a field called include, which is set to 1 or 0. The parent record contains a two global number fields, equalling 1 and 0. These drive the portal relationship. (I know you can do with just one global field and have equal or not equal... but I did it this way for clarity). Clicking a button on either portal switches the value of the include field. I want to have the record jump from one portal to the other as soon as the button is clicked. Currently I can't do this without manually clicking on the background of the parent record. I can hack a workaround by going to find mode and back to browse mode, but this refreshes the portal scroll bar. Refreshing the window doesn't help either. Is there a scriptable step that will help me out here?
December 9, 200718 yr Thought about using tabs to hold the 2 portals? With careful alignment you can't see the switch.
December 9, 200718 yr The child record needs to be committed before it will "jump" to the other portal - that's what "manually clicking on the background of the parent record" does. Unfortunately, I cannot see your file (forum's upload is on the blink again), but you need to end your script with a Commit Records[] step. To keep your current scroll position, uncheck 'Reset scroll bar when exiting record' in Portal Setup.
Create an account or sign in to comment