Check the classes up to FXListener too
>Ok, maybe I just don't understand the issue here. The moment I step into Listener.RunReports, before any listener code runs, the data session changes, so the report's data is no longer available.
>
>I went through the _ReportListener class and looked for instances of SET DATASESSION. I found only one, in AddReport, that was not being reset. so I added code to save & restore the data session. This had no effect. I still get prompted for the table.
>
>
>
>
>
>>Kevin,
>>
>>the Reportlistener sets and resets datasessisn during its life. Sometime it does not reset correctly. You need to open the listeners in the vcx (this in XSource) search for SET DATASESSION and make shure the datasession is closed corectly before a method ends.
>>
>>Recompile the listener app - and do not miss to ship it with your app.
>>
>>I've done a thread over this a while ago, but I'm not a subscriber, so it's hard to search. Just search my messages back xoursel, it must be somewhere.
>>
>>Agnes
>>>I am running a report, and before I do, I open the data for the report. The report's data is open in session #4.
>>>When the report listener runs, it changes data sessions, so I'm now getting prompted for the table.
>>>
>>>Anyone know what to do about this?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]