image valueset

Discussions about CSEntry
Post Reply
Enkhbayar
Posts: 70
Joined: November 10th, 2014, 11:48 pm

image valueset

Post 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,
You do not have the required permissions to view the files attached to this post.
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: image valueset

Post 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.
Enkhbayar
Posts: 70
Joined: November 10th, 2014, 11:48 pm

Re: image valueset

Post 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.
Gregory Martin
Posts: 1947
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: image valueset

Post 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));
Post Reply