Page 1 of 1

Récupérer infos dans un fichier

Posted: 11 Sep 2021, 03:47
by Elmute
Hello!

Je viens de découvrir actiona. Super logiciel pour virer les taches répétitive.

J’ai un fichier csv qui contient des infos. J’aimerais que le log récupère les infos et remplisses à divers section dans un autre logiciel.
Sachant que une fois le cycle terminé, actiona devra recommencer un autre cycle avec la ligne suivante dans le fichier csv et ainsi de suite.

La question est comment faire ? 😅

Si vous pouvez m’aider svp. Merci

Re: Récupérer infos dans un fichier

Posted: 11 Sep 2021, 16:46
by eureka
I will explain how to search to find out how to "parse" a csv file rather than just giving you a script.

Start by searching this forum for posts discussing "csv".

search.php?keywords=csv

Example of csv parsing here.

viewtopic.php?f=30&t=1534&p=6022&hilit=csv#p6022

Next try searching "Console csv" to see what is found:

search.php?keywords=Console+csv

And another approach .. google search "actionscript2 parse csv"

We learn, read csv file as array with "," as separator , or end of line, or string count, to split the file.

https://en.m.wikipedia.org/wiki/Comma-separated_values

The code (Actionscript2) is written in a code object.

https://en.wikibooks.org/wiki/Introduct ... Data_Types

Try some examples in a code object in Actiona GUI but using Console.print instead of Trace.

You need to split the csv by separator.

Another useful reference ...

https://en.m.wikipedia.org/wiki/Comma-separated_values

And to understand arrays ... very useful ...

https://en.wikibooks.org/wiki/Introduct ... 2.0/Arrays

Re: Récupérer infos dans un fichier

Posted: 14 Sep 2021, 14:34
by francois
Bonjour,

Votre demande est réalisable directement avec Actiona.

Il s'agit de remplir des formulaires à partir des données figurant dans un fichier csv.
Voir exemples dans : viewtopic.php?f=25&t=1417

Je reste fan d'Actiona le logiciel que JMGR a conçu et réalisé.