How to refresh data in a report
Hello,
I have a simple report, -- an address label. It is based on a tTable object... There is one row in the table. I run my report, the report looks great... Shortly after, my app deletes the single row in the address table, and adds a new row. I run the report again. I get the SAME data I originally had. If I exit out of my app, start it again, and run the report, the address label is correct. In short, it appears that Fast Reports is caching my data, and doesn't know that it has changed. The only way I am able to get around this so far is to close my tTable, then re-open it, then run the report. While this works, it is not elegant, and is probably NOT the right solution.
What is the proper way to deal with this? aka telling Fast Report NOT to cache data from a tTable/TfrxDBDataSet?
Thanks
George
I have a simple report, -- an address label. It is based on a tTable object... There is one row in the table. I run my report, the report looks great... Shortly after, my app deletes the single row in the address table, and adds a new row. I run the report again. I get the SAME data I originally had. If I exit out of my app, start it again, and run the report, the address label is correct. In short, it appears that Fast Reports is caching my data, and doesn't know that it has changed. The only way I am able to get around this so far is to close my tTable, then re-open it, then run the report. While this works, it is not elegant, and is probably NOT the right solution.
What is the proper way to deal with this? aka telling Fast Report NOT to cache data from a tTable/TfrxDBDataSet?
Thanks
George