NetTalk Central

Author Topic: Session Value from Parent NWB  (Read 1851 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
    • Email
Session Value from Parent NWB
« on: February 15, 2015, 02:32:38 PM »
Hi Guys,

When I call a child NetWebBrowse procedure from a parent NetWebBrowse;
The primary key value from the parent NWB is available in the child NWB from a session value, and working fine!

How do I add another field in the parent NWB to a session value? 
I've tried using the "Session Variables" under the Advanced tab of the parent NWB, but the column-value of the selected record is not available in the child NWB?

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Session Value from Parent NWB
« Reply #1 on: February 15, 2015, 03:46:45 PM »
You could do something like when "user clicks row" embed on the parent browse do a file access to bring back the record based on the unique sessionid and then set your session value.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Session Value from Parent NWB
« Reply #2 on: February 15, 2015, 09:58:45 PM »
Hi Rupert,

>> How do I add another field in the parent NWB to a session value? 

you don't. (You're thinking about this backwards.)
You don't add "more stuff" when the click is done because this would be expensive. Rather, when you _need_ more stuff you use the SessionValue that has been set to load the record and read out anything and everything you need.

So don't think about it as "priming more" - think about it as "fetching necessary" when you need it.

cheers
Bruce