Save Datafile using Device Serial Number

Discussions about creating CAPI applications to run on Android devices
Post Reply
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Save Datafile using Device Serial Number

Post 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!
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Save Datafile using Device Serial Number

Post 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.
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Re: Save Datafile using Device Serial Number

Post by mussabahire »

Thank you very much. I Tried it and it works perfectly.
Post Reply