Refreshing data with Business Objects
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Refreshing data with Business Objects
Hi:
I have a report that is connected to Business Objects (DevExpress - XPO) and I'm having trouble getting the report to refresh if I change the underlaying object.
For instance I have an Invoice that I print, I then change the discount and save the object, but the report will not see this change until I exit the program and enter again.
How can I force a data refresh? I've tried Refresh() etc, but they don't work.
Regards,
MartinH.
I have a report that is connected to Business Objects (DevExpress - XPO) and I'm having trouble getting the report to refresh if I change the underlaying object.
For instance I have an Invoice that I print, I then change the discount and save the object, but the report will not see this change until I exit the program and enter again.
How can I force a data refresh? I've tried Refresh() etc, but they don't work.
Regards,
MartinH.
Refreshing data with Business Objects
You can use following code:
Thank you.
Code: Select all
report.DataStore.Clear();
report.RegData("MyData", myobj);
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Refreshing data with Business Objects
Vital:
The contents of the Text I am trying to update is from a static function in my program, not directly from a DataSource. The problem is that my static function is not called after the initial invoice has been printed, it seems to use data in a cache. The report.DataStore.Clear() is fine for resetting the data, but I need something else to tell the report to reset itself and call my static functions a second time.
Thanks,
MartinH.
Sorry, but that didn't work, but it may be my fault as I didn't explain in enough detail where my problem was coming from.Vital wrote:You can use following code:
Thank you.Code: Select all
report.DataStore.Clear(); report.RegData("MyData", myobj);
The contents of the Text I am trying to update is from a static function in my program, not directly from a DataSource. The problem is that my static function is not called after the initial invoice has been printed, it seems to use data in a cache. The report.DataStore.Clear() is fine for resetting the data, but I need something else to tell the report to reset itself and call my static functions a second time.
Thanks,
MartinH.
Refreshing data with Business Objects
In what place of report you call your static function?
Thanks.
Thanks.
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Refreshing data with Business Objects
Vital:
The text control that calls my static function to get it's contents is in a FooterBand.
Thanks,
MartinH.
The text control that calls my static function to get it's contents is in a FooterBand.
Thanks,
MartinH.
Refreshing data with Business Objects
We need more information. Please send your code and your report.
Thank you.
Thank you.
-
- Posts: 66
- Joined: Wed Apr 04, 2007 3:32 am
- Location: Spain
Refreshing data with Business Objects
Vital:
Thanks,
MartinH.
I have sent the report via email to support [@] stimulsoft.comVital wrote:We need more information. Please send your code and your report.
Thank you.
Thanks,
MartinH.
Refreshing data with Business Objects
Problem solved.
Thank you.
Thank you.