on 11-20-2008 2:04 PM
Hi All,
I created one check box dynamically. But now the problem is how to get whether it is checked or not in a condition. I used
if(wdContext.nodeVn_PredefinedDynContext().getVn_PredefinedDynContextElementAt(i).getAttributeAsText("SelecttoDelete"))
But it is returning string value ,so I could not check in the if condition. What are the other ways of doing it?
Thanks in advance.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Boolean checked = (Boolean) wdContext.nodeVn_PredefinedDynContext()
.getVn_PredefinedDynContextElementAt(i)
.getAttributeValue("SelecttoDelete");
if ( checked.booleanValue() )
{
}
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can either of the thing:
if(Boolean.valueOf(wdContext.nodeVn_PredefinedDynContext().getVn_PredefinedDynContextElementAt(i).getAttributeAsText("SelecttoDelete")).booleanValue())
OR
if(wdContext.nodeVn_PredefinedDynContext().getVn_PredefinedDynContextElementAt(i).getAttributeAsText("SelecttoDelete").equals("true"))
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this...
wdContext.nodeVn_PredefinedDynContext().getVn_PredefinedDynContextElementAt(i).getSelecttoDelete();
It shud give you true or false if you have bound the attribute properly... while creating the dynamic checkbox...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.