Many thanks my dear friend khurshid . This has solved my problem, absolutely. Your solution is so beautiful and is not one i ever knew before. So, thanks a million times.
Regards
........
Dynamic Value Sets from Checkboxes
Re: Dynamic Value Sets from Checkboxes
To use the isChecked function you would just change the logic in @khurshid.arshads example to:
Code: Select all
if isChecked("01", S4Q7) then A_WHEATHER = 1 else A_WHEATHER = 2; endif;
if isChecked("02", S4Q7) then B_CROP_VARIETIES = 1 else B_CROP_VARIETIES = 2; endif;
if isChecked("03", S4Q7) then C_NEW_AGRICULTURAL_PRACTICE = 1 else C_NEW_AGRICULTURAL_PRACTICE = 2; endif;
etc...
-
- Posts: 608
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Dynamic Value Sets from Checkboxes
Dear Josh
Thanks for this code. In my code, we can assign only one option "Yes" OR "NO".
I have tried ischecked function but it is not working. The error message is:
ERROR: 'isChecked' is not a declared variable or is a misspelled dictionary entry
ERROR: Single variable - cannot have subscript (unexpected left parenthesis) near line 4 in S4Q7 procedure
I have Version 7.0.2 dated 29 June 2017 and 7.1.0 (beta) dated 21 November 2017.
Please advice.
thanks.
a.
Thanks for this code. In my code, we can assign only one option "Yes" OR "NO".
I have tried ischecked function but it is not working. The error message is:
ERROR: 'isChecked' is not a declared variable or is a misspelled dictionary entry
ERROR: Single variable - cannot have subscript (unexpected left parenthesis) near line 4 in S4Q7 procedure
I have Version 7.0.2 dated 29 June 2017 and 7.1.0 (beta) dated 21 November 2017.
Please advice.
thanks.
a.
Re: Dynamic Value Sets from Checkboxes
You need to add the function isChecked in the proc global. See attached.
- Attachments
-
- CHECK ALL THAT APPLIES.zip
- (5.44 KiB) Downloaded 409 times