Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

How check a "Check Box"?

$
0
0

Hello,

 

I am trying the next:

 

If I have the check box selected return the birthday in a textfield.

If I have not the check box selected return "nothing"

 

************************************************************************

var check = session.findbyid("wnd[0]/usr/boxpersonas_40/chkpersonas_46").selected; // to know if the check box is selected

 

Go to transaction and get the value // OK

var birth = session......................................

Return to main screen // OK

 

session.findbyid("wnd[0]/usr/boxpersonas_40/chkpersonas_46").selected = check;  // to activate o desactivate the check box, I think that after press the button the checkbox is always NOT SELECTED.

 

if (check == "true")

     {

          session.findbyid("wnd[0]/usr/boxpersonas_40/txtpersonas_51").text = birth;

     }

else

     {

          session.findbyid(wnd[0]/usr/boxpersonas_40/txtpersonas_51").text = "Nothing";

     }

 

Thanks!!!


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>