NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: charl99 on January 08, 2013, 03:42:20 AM

Title: SessionID
Post by: charl99 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
Title: Re: SessionID
Post by: Bruce on January 08, 2013, 05:54:46 AM
'WQUD:SessionID = <39>' & clip(p_web.SessionID) &'<39>'
Title: Re: SessionID
Post by: charl99 on January 09, 2013, 10:05:30 PM
Nope, that does not work.  Any other idea please?
Title: Re: SessionID
Post by: mark 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]
Title: Re: SessionID
Post by: charl99 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