Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

290
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda