Page 1 of 1

Mdifying valuesets that contain images

Posted: August 4th, 2012, 11:09 am
by becklesd
Is there a way to modify valuesets that contain images? I have found that copying new image files into the files named in the valueset in the dictionary works, but I have not found any way to change the labels or values that appear next to the images when the valueset is displayed.

Also, is there a way to get the display of the images to work properly when the valueset contains images of different sizes? For example, if one of the pictures is 216 x 143 pixels while the others are 128 x 128 pixels, then only the 216 x 143 pixels image is displayed.

Thank you,
Becklesd

Re: Mdifying valuesets that contain images

Posted: August 7th, 2012, 7:24 pm
by Gregory Martin
Value Set Images is a feature that was added to CSPro a while back and was never fully implemented. That's why you have to go through the route of manually modifying the dictionary file to enable the feature. That shows you how little confidence we have in the feature. ;)

When you call the setvalueset function in logic to modify the values of a value set, a brand new value set gets created and so all of the image links that existed in the previous iteration of the value set are lost. There is no way, therefore, to modify the values of a value set with images.

That said, this is eventually a feature that we will want to clean up, because it will be very useful for CAPI surveys on the Android version.

Regarding using value set images of different sizes ... you are right that that does not work now. It is a bug that results from Windows not allowing different sized images in lists. I'll fix this for the next release so that the images are resized behind the scenes so that they will all be the same size. That will come out in version 5.0.2.

Re: Mdifying valuesets that contain images

Posted: August 9th, 2012, 3:50 pm
by becklesd
Thanks for your reply.
BecklesD

Re: Mdifying valuesets that contain images

Posted: August 16th, 2015, 10:37 pm
by arronlee
Hi, Becklesd.
Have you ever worked it out? How does it work? When it comes to the image resizing problem, I have another question for you. I wonder how can I accomplish the
image resizing process . Do I need another image resizing SDK to help customize the size of images ? I am almost a green hand here. Any suggestion will be appreciated. Thanks in advance.



Best regards,
Arron

Re: Mdifying valuesets that contain images

Posted: August 17th, 2015, 6:36 am
by josh
Value set images will have a major improvement in version 6.2 beta including support for images of different sizes.

In the meantime, the easiest way to resize images is to use the paint program that comes with Windows.

Re: Mdifying valuesets that contain images

Posted: August 17th, 2015, 10:13 am
by htuser
Dear Josh,
When can we expect to download this beta? Can you inform us about new function already developed in this beta?
Do you think that we'll have theses function in the 6.2 final release:
1.- For detect internet connection (netdetect),
2.- Calculate internet speed in kb/s(internetspeed),
3.- Track (identify) modified and new case
4.- Sync only modified and new case,
5.- Last sync time,
Best regards