on 10-29-2007 9:41 AM
Hello, I have two radio buttons, RadioButtonGroupByKey5 and RadioButtonGroupByKey6, both with "Yes" and "No" Enumerations. RadioButtonGroupByKey6 is invisible. Now, I would like to have in case of pressing "No" in RadioButtonGroupByKey5, RadioButtonGroupByKey6 going to be visible and usable. If "Yes" in RadioButtonGroupByKey5 then RadioButtonGroupByKey6 will be still invisible. Any advice, piece of Java code will be welcome. I tried to bound them in such way, wont work ofc:
class visible(IWDAttributeInfo attribInf, ISimpleType simpleType, IWDComponent component,String value, String id, String number, WDMessageType type, String message, IWDNodeElement invalidContextElement)
{
IWDAttributeInfo attribInf = wdContext.getNodeInfo().getAttribute("RadioButtonGroupByKey5");
ISimpleType simpleType = attribInf.getSimpleType();
Set set = simpleType.getEnumeration();
String value = "No";
if(set != null)
{
if(set.contains(No))
{
//wdComponentAPI.getMessageManager().reportSuccess("ok");
WDContext.currentContextElement().setRadioButtonGroupByKey6(WDVISIBILTY.VISBILE);
}
}
}
by invisible I meant: enabled: false
and visible: enable: true
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.