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.
setvalueset
-
- Posts: 572
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: setvalueset
Dear Lasupo;
I think you are using combo box. Please use drop down option otherwise on click you will see a list.
a.
I think you are using combo box. Please use drop down option otherwise on click you will see a list.
a.
-
- Posts: 68
- Joined: August 25th, 2013, 1:21 am
Re: setvalueset
I think if you add following syntax then it will work.
setcapturetype($,3);
setcapturetype($,3);
Re: setvalueset
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
Please, I am still looking for solution to the problem. Thanks
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: setvalueset
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.
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
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.
Radio-button is it all the way. Thanks immensely.