Page 1 of 1
setvalueset
Posted: September 22nd, 2016, 3:30 pm
by Lasupo
Dear all, This forum is awesome. Challenges are solved with the assistance of egg heads around.
Please I have a challenge with this code "setvalueset(Q11_LNO,codes,labels);" . The code is working fine on windows but failed to show value set on Android devices in CAPI.
Please, I urgently need assistance on this code to behave the same way in Android as in Windows.
Thanks.
Re: setvalueset
Posted: September 23rd, 2016, 6:45 am
by khurshid.arshad
Dear Lasupo;
I think you are using combo box. Please use drop down option otherwise on click you will see a list.
a.
Re: setvalueset
Posted: September 23rd, 2016, 6:46 am
by shafique arif
I think if you add following syntax then it will work.
setcapturetype($,3);
Re: setvalueset
Posted: September 23rd, 2016, 2:25 pm
by Lasupo
Thanks for the suggested solutions. I tried your suggestions but it did not work.
Please, I am still looking for solution to the problem. Thanks
Re: setvalueset
Posted: September 25th, 2016, 11:39 am
by Gregory Martin
Can you attach your application so that we can look at it?
Generally what works on Windows should work the same way on Android. I am surprised that the previous suggestions did not work.
If you tried using the setcapturetype function, make sure that you do it in the preproc/onfocus event, right after you execute setvalueset.
Alternatively, in the latest versions of CSPro, you can just change the capture type in the Field Properties dialog. You can set this to Radio Button or Drop Down. See if that works on Android.
Re: setvalueset
Posted: September 25th, 2016, 12:50 pm
by Lasupo
Egg head Martin Greg, this is marvelous!!! This solution is in what you've just posted.
Radio-button is it all the way. Thanks immensely.