For each new transaction, a new id number (transaction_id) is entered in the transaction table. Is there a way to read that number and add it to the output file.
var file_name = "output."+"transaction_id";
Eg transaction number 1, output file output.1.txt, transaction number 2, output file output.2.txt, etc ...
Thanks to all of you.
When I create a new transaction in the program, the program automatically gives the transaction number (autonumber), for example. 10 in the transaction table. When I print this transaction, I get the name of the output file output.txt. I would like my output file to be called output.10.txt. Also for new transaction 11 that my output file is called output.11.txt, and so on. Can this ID number be taken from the transaction table and added to the output file name?
The solution is simple, just call the id from the database. Thanks everyone.