Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
How to increment output file with ID number from table (javascript)

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!