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'))
>