Data Entry App on Samsung Tablet
Posted: October 30th, 2017, 6:34 pm
Hello Everyone,
Please, I need help with this; I have designed a data entry application for a facility mapping exercise. Pictures form part of the data to be collected during the exercise. Relying on some of the resources provided, I have come up with this:
=============================================================================================================
onfocus
string photoFilename = pathname(application) +
maketext("../Menu/CMPictures/%03s%03d%04d.jpg",
statecode,G3_LGA,G5_COMM);
if fileexist(photoFilename) then
setvalueset(CM_PHOTO, CM_PHOTO_VS2);
else
setvalueset(CM_PHOTO, CM_PHOTO_VS1);
endif;
postproc
if CM_PHOTO = 1 then
execsystem(maketext("camera:%s", photoFilename));
reenter;
elseif CM_PHOTO = 2 then
execsystem(maketext("view:%s", photoFilename));
reenter;
elseif CM_PHOTO = 3 then
elseif CM_PHOTO = 0 then
filedelete(photoFilename);
endif;
==============================================================================================
This has enabled me capture and save pictures with a combination of codes that tie them to specific cases. However, this seemed not to be working on the Samsung tablets that are meant to be deployed for data collection, as pictures taken do not save. This even as the same application is working well on other devices.
Your advice on the way out is highly needed and appreciated.
Thanks
Please, I need help with this; I have designed a data entry application for a facility mapping exercise. Pictures form part of the data to be collected during the exercise. Relying on some of the resources provided, I have come up with this:
=============================================================================================================
onfocus
string photoFilename = pathname(application) +
maketext("../Menu/CMPictures/%03s%03d%04d.jpg",
statecode,G3_LGA,G5_COMM);
if fileexist(photoFilename) then
setvalueset(CM_PHOTO, CM_PHOTO_VS2);
else
setvalueset(CM_PHOTO, CM_PHOTO_VS1);
endif;
postproc
if CM_PHOTO = 1 then
execsystem(maketext("camera:%s", photoFilename));
reenter;
elseif CM_PHOTO = 2 then
execsystem(maketext("view:%s", photoFilename));
reenter;
elseif CM_PHOTO = 3 then
elseif CM_PHOTO = 0 then
filedelete(photoFilename);
endif;
==============================================================================================
This has enabled me capture and save pictures with a combination of codes that tie them to specific cases. However, this seemed not to be working on the Samsung tablets that are meant to be deployed for data collection, as pictures taken do not save. This even as the same application is working well on other devices.
Your advice on the way out is highly needed and appreciated.
Thanks