Ticket #156 ( Pending IE )

Short Description multi-frame access to variable pool?
Entered By: PeteL When: 1998-09-21 14:17:51 Build: 1.03.25d
Categories Type: Question   Department: Product   Category: SurferScript
Description
I have need to access session variables from a frame which is not the primary 3270 frame. I suspect I can do this if I include the session key in the frame, then do a GETSESSION upon entry to this frame code? True? Other concerns? Will issue of the GETSESSION in any way alter the target frame for HTML output?
thanks
Append By: LifeGuard  When: 1998-09-21 17:01:38  New Status: Pending Customer
Comment I see a few issues here. You may want to take a look at the "view source code" for the indivdual frames in the DevCenter to see more detail on how SurferScript works in frames

You have two frames here, one with the primary 3270 screen (the primary frame) and a second with data for input (the data frame). Issue number one will be getting the sessionKey to the data frame. Second, once you submit the data frame you will presumably write that information to the host, changing the screen, but not necessarily the HTML displayed in the browser. You will need to make sure that your SurferScript in the primary frame can handle any changes that may occur because of input from the data frame. For example you may use TEIF to coordinate the display in the browser with the actual screen you are on.

This looks like an interesting bit of coding and I would love to see what you come up with. Hope this was some help.

Append By: WindSurfer  When: 1998-09-21 19:50:38  New Status: Pending Customer
Comment As long as the transaction you call from the secondary frame doesn't perform any screen transitions, you should be fine. If it DOES do any screen transitions, it can save the screen.updateticks variable prior to the screen transition, then replace it; this will avoid synchronization errors with the other frame.

The GetSession is required, just include SessionKey in the URL and you should be okay; the GetSession doesn't do anything to the active updatetick.

Append By: PeteL  When: 1998-09-22 05:58:22  New Status: Pending IE
Comment just FYI, the only thing I want to do is alter the display in the AID-key frame based on who is logged in. There are some icons which only apply to certain groups of users, so I want to eliminate them from some of the HTML with a TEIF. The "who-is-logged-in" information is contained within the variable pool "owned" by the 3270 frame, so the AID-key frame needs to check it. I'll let you know how it goes. thanks
Append By: WindSurfer  When: 1998-10-28 19:34:50  New Status: Pending Customer
Comment How did it go? :)
Append By: PeteL  When: 1998-10-29 10:00:59  New Status: Pending IE
Comment on-the-shelf for now