@rustyshackles Not exactly. Actually, the issue is - I have deployed some script on Address Form. When I enter the address on Address Form and click OK, the focus goes back to Address sublist on parent record. BUT the client script on parent is getting error out while using the nlapi functions, the context is getting changed/lost when focus comes from Address Form to parent record resulting error.
So I was thinking to have a global variable to capture the context.