Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

297
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda