Page 1 of 1

Naming Picture

Posted: March 8th, 2015, 12:36 am
by RERII
Is there a way to give the picture a name you want? Like if I had household 23 structure 1 is there a way to name the picture 23-1.jpg, please let me know. I'm trying to win a project using CSPro. Thanks in advance to whoever assists with this.

Re: Naming Picture

Posted: March 10th, 2015, 9:49 am
by Gregory Martin
You pass the filename you want to the execsystem call, so you can write something like this:
execsystem(maketext("camera:%spicture %02d-%d.jpg",pathname(application),HOUSEHOLD,STRUCTURE));

Re: Naming Picture

Posted: March 16th, 2015, 6:01 am
by RERII
Thanks so much bro I really appreciate the help I'll try it later. could I do the same for the .dat files? my .pnc file is not working so I'm trying to see if i can just have the enumerators email the files but, so can I just rename the .dat files from the device names or phone id that way I can have the enumerators all put the files in the same folder. I thinkI can do this using the PFF file but I wouldn't know how to begin.