par nemrod93 » 13 Sep 2010 à 09:37
Quoique j'ai retrouvé ce formula qui me permet avant de réaliser l'attachement de récupérer le nom du fichier, donc tu peux essayer de l'adapter avec @command([FileImport])
file := @Prompt([LocalBrowse]; "Sélectionnez un fichier à attacher"; "3");
@If(file = ""; @Return(1); "");
@Command([EditGotoField];"fp_pieces_constat");
@PostedCommand([EditInsertFileAttachment];file);
@Do(
@While(@Contains(file;"\\");
file := @Right(file;"\\")
);
@If(
pjAffConstat="";
@SetField("pjAffConstat";file);
@SetField("pjAffConstat";pjAffConstat + ";" +file)
);
@SetField("fp_pieces_constat_test";"1");
@PostedCommand([FileSave])
);
@PostedCommand([ViewRefreshFields])
cdlt
Alain
On ne voit que ce qu'on veut voir, et on trouve rarement si on ne cherche pas