The method how to access and change a TrueFalseCheckBox in IDM User Application forms is not exactly intuitive.
Here’s how to do it:

If you have defined a custom TrueFalseCheckBox named “myCB”, you can use a code snippet like this to trigger checking/unchecking the checkbox from any event.

try
{
	if ( checkIt )
	{
		form.select(  "myCB"  );
	}
	else
	{
		form.select( "myCB", [ "false" ] );
	}
}
catch (e) {}

Note: the "try .. catch" is used as a workaround to handle the error that may occur on some UA versions where the line

    form.select( "myCB", [ "false" ] );

works as desired, but can trigger an exception.
The "try .. catch" is a workaround for this UA bug/error.

Tested on Identity Manager version 3.7.0 Build Revision 34881

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...Loading...

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

Leave a Comment

wschreiber
Jul 1, 2010
11:30 am
Reads:
1,361
Score:
Unrated