Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Way to reference two wwSession tables
Message
From
15/04/2004 16:22:14
Dave Nantais
Light speed database solutions
Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00895267
Message ID:
00895314
Views:
19
>-- cut --
>
>>>
>>>...
>>>
>>>#IF WWC_USE_SQL_SYSTEMFILES
>>>   THIS.oSession=CREATE([WWC_SQLSESSION])
>>>   THIS.oSession.oSQL = THIS.oServer.oSQL
>>>#ELSE
>>>   THIS.oSession=CREATE([WWC_SESSION])
>>>   * New code
>>>   IF !empty(param4)
>>>      THIS.oSession.cTableName=param4
>>>   ENDIF
>>>   ***********
>>>#ENDIF
>>>
>>>...
>>>
>>>
>>>The ctableName prop is not used when WWC_USE_SQL_SYSTEMFILES is set.
>>>
>>>FWIW, Subclassing the wwProcess is also a good way to have your custom code always available...
>>>
>>>:)
>>
>>after carefully going through your suggestion i now agree.
>>I am just afraid to subclass the process class because it is involved in everything....
>>but I am about to give it a try...
>>
>>In the INITSESSION method...
>>after the
>>
>>THIS.oSession=CREATE([WWC_SESSION])
>>#ENDIF
>>
>>before the
>>
>>IF !THIS.oSession.IsValidSession(lcSessionId)
>>
>>line I am going to modify the THIS.oSession.cTableName and THIS.oSession.cDataPath properties...
>>
>>then it will attempt to open the wwSession table id prefer...
>>
>>Do you think this is a good place to make the modification?
>
>Yes.
>
>If you look at the wwSession class code, you will see that no table is open before any call to a method.
>So, it is safe to change this property just after the object creation :)

Have you dont this yourself personally?( am i a coward or what? )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform