on 11-18-2013 2:44 AM
Hi all,
Can anybody please advise the best way of copying checkbox data in a subscreen of a transaction (eg the deletion flag indicator from the Extras > Deletion Flags menu of XD03) to the main screen? I can use scripting to copy field values but this doesn't seem to work with checkboxes (used a script to copy the source checkbox and attempted to copy into a target checkbox). I've also tried using IF in the script to determine whether the source checkbox is populated or not (the idea being to check the target checkbox in the script if true), but all I can use as a condition appears to be empty/not empty, which again doesn't work (always returns as empty).
Thanks,
Glenn De Santis
Hi,
In short, for playing with check box:
-) Set check/uncheck: use "Check" or "Uncheck" action
-) Detection:
Method 1: use "IF", then "is not empty" means checked.
Method 2: use "Copy Value" , then "true" means checked.
Regarding how you will like to see the output message, it is up to you based on the logic detection made above. Eg, you can show "Checked" of the label text of the check box etc.
Hope this help.
Dong Zhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Glenn,
Please see my reply above. Hope that answers your question.
Thanks
Chinthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was fixed recently, possibly in SP03. If you're not running SP03 try applying that and see if it helps. I used to have the same problem but now for me copying checkbox values works OK.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhaskar,
Checkbox returns boolean value but you will be passing String "true" or "false" to compare. So one easy way is to do it is as below:
1. Copy value of checkbox
2. Use JavaScript to convert boolean to String (I am appending string to boolean to convert it to String)
3. Use the converted value in IF
See output below:
Hope that helps.
Thanks
Chinthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.