Page 1 of 1

image valueset

Posted: April 30th, 2022, 7:06 am
by Enkhbayar
Hi,

I have a problem when I generate a dynamic valueset with images. it works ok on a PC but images don't display on a tablet.

Is it a bug, or does it have another reason?

Thanks,

Re: image valueset

Posted: May 2nd, 2022, 7:43 am
by Gregory Martin
Have you copied the images to the tablet? Unless you include them in a resource folder, the images will not be bundled into a .pen file, so you will have to copy them manually.

If you have done this and you still do not see the images, you can send one of the images to cspro@lists.census.gov and we can look at it.

Re: image valueset

Posted: May 2nd, 2022, 8:12 am
by Enkhbayar
Gregory Martin wrote: May 2nd, 2022, 7:43 am Have you copied the images to the tablet? Unless you include them in a resource folder, the images will not be bundled into a .pen file, so you will have to copy them manually.

If you have done this and you still do not see the images, you can send one of the images to cspro@lists.census.gov and we can look at it.
Thank Gregory,

this is what I wanted to do:

module1: take photos of drawn plots
module2: generate a dynamic value-set with images then select from the plots

but it seems it is not possible.

Re: image valueset

Posted: May 3rd, 2022, 7:33 am
by Gregory Martin
This should be possible. We have used dynamic value sets on Android applications. My guess is still that the path is not correct. You might add something to the preproc on that proc that tests this; something like:
string image_filename = getimage(ITEM_NAME, 1); // 1, or whatever one of the codes is

errmsg("%s, exists: %d", image_filename, fileexist(image_filename));