Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Session
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979949
Message ID:
00980123
Views:
78
You're welcome
_____________
>Thank you, Gregory - it's easy and it works.
>
>Alex
>
>>>Hallo,
>>>
>>>I have a generic method in my Application Class that handles the Settings for a current datasession (SET TALK, SET CURRENCY etc., etc) Since the Application-Object is instantiated in the default DataSession, it needs DatasessionID as parameter to make the settings in other DataSessions.
>>>
>>>It works fine with forms: I just pass the DatasessionID of the form to the method. But what can be done to a report with a private Data Session? How can I find out the DatasessionID of a report?
>>>
>>>Is it in general possible to reference the Data Environment of a report? Do we have a variable for it somewhere?
>>>
>>>Thanks
>>
>>Alex,
>>
>>this should work in the report DataEnvironment.BeforeOpenTables(), adapt with your method.
>>
>>
>>=App._DataSession.SetValues(set('DataSession'))
>>
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform