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,
image valueset
image valueset
- Attachments
-
- 20220430_164412.jpg (28.53 KiB) Viewed 1134 times
-
- 20220430_164316.jpg (41.53 KiB) Viewed 1134 times
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: image valueset
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.
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
Thank Gregory,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.
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.
-
- Posts: 1801
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: image valueset
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));
errmsg("%s, exists: %d", image_filename, fileexist(image_filename));