I have a billing application where if there is no internet, the ticket is saved in an xml file. In the main window I have a DBgrid with the last movements of the day.
The idea is to be able to reprint or send to invoice with the webservice if there was no internet, for example, apart from accounting for the total money entered on the day or shift.
Now, if I load a TClientDataSet with a ticket xml, only "that ticket" will appear. How can I make a query or loop to load all the tickets in a single grid?
Could you iterate over all the files that have today's date? In fact I save the file with the date in the name.
As far as I know automatically you can't.
You will have to load the different files using a
TClientDataset
(I imagine you have also saved them withTClientDataset
) and add them, for example, to anotherTClientDataset2
. The latter is the one you have to "hook" to the grid.In other words, you must do the route through the different files to load them manually.