Page 1 of 1

Save Datafile using Device Serial Number

Posted: October 26th, 2016, 4:30 am
by mussabahire
Hi everyone.
I want to save datafiles on android tablets using the Serial Number.
[Files]
Application=.\MyApplication.ent
InputData=.\"%DeviceID%".dat.
When I use InputData=.\"%DeviceID%".dat, the datafile is named %DeviceID%.
Please help!

Re: Save Datafile using Device Serial Number

Posted: October 26th, 2016, 9:29 am
by josh
The %DeviceID% is not supported in pff files. That only works in sync files (.pnc files) for directory names. The usual approach is to use the same filename for the data files on all the devices but sync each devices' data file to a different directory on the server by using %DeviceID% in the name of the folder on the server.

Some advanced users create a menu program and then write out the .pff file from logic. Using that approach you could use the logic function getdeviceid() to create the filename. You can search the forum for "menu" to see some examples.

Re: Save Datafile using Device Serial Number

Posted: November 3rd, 2016, 12:24 pm
by mussabahire
Thank you very much. I Tried it and it works perfectly.