NetTalk Central

Author Topic: SessionID  (Read 4449 times)

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
SessionID
« on: January 08, 2013, 03:42:20 AM »
Hi All,

I have SessionID defined in a In Memory table in my dictionary as STRING(256).  Normally I would define it as a CSTRING but for some reason I did not (I think I read it somewhere).

Anyway, in my NetWebBrowse I defined filter as:

'WQUD:SessionID = ' & p_web.SessionID

and I tried

'WQUD:SessionID = <39>' & p_web.SessionID &'<39>'

Neither wants to work, so added the following in the Validate Record Embed point:

 if clip(WQUD:SessionId) <> clip(p_web.SessionID) then cycle.


Which then work.  So the question is, can I perhaps FIX the filter?

Thanks
Charl

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: SessionID
« Reply #1 on: January 08, 2013, 05:54:46 AM »
'WQUD:SessionID = <39>' & clip(p_web.SessionID) &'<39>'

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: SessionID
« Reply #2 on: January 09, 2013, 10:05:30 PM »
Nope, that does not work.  Any other idea please?

mark

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Re: SessionID
« Reply #3 on: January 10, 2013, 05:00:20 AM »
You can set the value of the sessionfield from your in-memory-driver-file to the sessionid in the embed 'before browse loop ; set filter'.
For example  Kp_Im:sessionid=p_web.sessionID

Then you set in the filters-tab of the netwebbrowse the range limit to that variable. (see attachment)
Do not fill in the filter; but use the range limit option.
For example Kp_Im:sessionid
And choose 'current value'

This works fine.

Mark


[attachment deleted by admin]

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: SessionID
« Reply #4 on: January 10, 2013, 05:57:20 AM »
Aah, that's a neat trick as well.

Of course, opening the Source I saw the code, and then I realised I use a Conditional Filter for this particular Browse, meaning Bruce's line did the trick once I put in in the right place.

Just shows how easy it is to forget what you did a month ago.

Thanks