GTRR from a portal in a popup window
Posted: Tue Jan 24, 2006 11:28 am
Perhaps someone can assist her, Ive been at this for a good 8 - 10 hours and am at the end of my rope...
I have a "Client" table and a self join to "Client 2" using ID_Client (number)
I call a script "Client - Find Client" (in "Client" to create a popup):
Allow User Abort [ Off ]
New Window [ Name: "Find Client"; Height: 485 // Content height of mini window to be opened
+ ( Get ( WindowHeight ) - Get ( WindowContentHeight ) ); Width: 339 // Content width of mini window to be opened
+ ( Get ( WindowWidth ) - Get ( WindowContentWidth ) ); Top: Let ( [
n = 485 // Height of mini window to be opened
+ ( Get ( WindowHeight ) - Get ( WindowContentHeight ) )
] ; Get ( WindowTop ) + ( ( Get ( WindowHeight ) - n ) / 2 ) ); Left: Let ( [ n = 769 // Width of mini window to be opened
+ ( Get ( WindowWidth ) - Get ( WindowContentWidth ) )
] ; Get ( WindowLeft ) + ( ( Get ( WindowWidth ) - n ) / 2 ) ) ]
Go to Layout [ “Client Find - PopUp” (Clients 2) ]
Show/Hide Status Area [ Hide ]
Set Zoom Level [ Lock; 100% ]
Adjust Window [ Resize to Fit ]
Pause/Resume Script [ Indefinitely ]
--end script--
All the previous works just fine;
I have a portal in the pop-up window “Client Find - PopUp”
A Portal is defined to show related records from "Client"
OK, so far so good and everything works.
I have a button defined to GTRR in Client "GTRR - Clients | Clients"
Go to Related Record [ From table: “Clients”; Using layout: “Clients” (Clients) ]
Go to Layout [ “Clients” (Clients) ]
//Close Window [ Name: "Client Find - Popup"; Current file ]
Close Window [ Current Window ]
-- End Script--
When I run the GTTR script from a portal row, I am returned to "Client", and I am not returned to the related record that I chose. In addition there is now a "Script" Continue" button active.
If I remove the "Close Window [ Current Window ]" script step, I get a NEW window with the correct record showing...
Here is the rub, besides this does not work and I can't figure out why, If I remove the popup window and just call a layout, everything works.
What is it about the popup that stops the GTRR from working or am I just not seeing what's in front of my face.
I have a "Client" table and a self join to "Client 2" using ID_Client (number)
I call a script "Client - Find Client" (in "Client" to create a popup):
Allow User Abort [ Off ]
New Window [ Name: "Find Client"; Height: 485 // Content height of mini window to be opened
+ ( Get ( WindowHeight ) - Get ( WindowContentHeight ) ); Width: 339 // Content width of mini window to be opened
+ ( Get ( WindowWidth ) - Get ( WindowContentWidth ) ); Top: Let ( [
n = 485 // Height of mini window to be opened
+ ( Get ( WindowHeight ) - Get ( WindowContentHeight ) )
] ; Get ( WindowTop ) + ( ( Get ( WindowHeight ) - n ) / 2 ) ); Left: Let ( [ n = 769 // Width of mini window to be opened
+ ( Get ( WindowWidth ) - Get ( WindowContentWidth ) )
] ; Get ( WindowLeft ) + ( ( Get ( WindowWidth ) - n ) / 2 ) ) ]
Go to Layout [ “Client Find - PopUp” (Clients 2) ]
Show/Hide Status Area [ Hide ]
Set Zoom Level [ Lock; 100% ]
Adjust Window [ Resize to Fit ]
Pause/Resume Script [ Indefinitely ]
--end script--
All the previous works just fine;
I have a portal in the pop-up window “Client Find - PopUp”
A Portal is defined to show related records from "Client"
OK, so far so good and everything works.
I have a button defined to GTRR in Client "GTRR - Clients | Clients"
Go to Related Record [ From table: “Clients”; Using layout: “Clients” (Clients) ]
Go to Layout [ “Clients” (Clients) ]
//Close Window [ Name: "Client Find - Popup"; Current file ]
Close Window [ Current Window ]
-- End Script--
When I run the GTTR script from a portal row, I am returned to "Client", and I am not returned to the related record that I chose. In addition there is now a "Script" Continue" button active.
If I remove the "Close Window [ Current Window ]" script step, I get a NEW window with the correct record showing...
Here is the rub, besides this does not work and I can't figure out why, If I remove the popup window and just call a layout, everything works.
What is it about the popup that stops the GTRR from working or am I just not seeing what's in front of my face.