on 08-19-2015 2:20 PM
I have created a radio button to be used as part of the selection criteria for a specific program. However, the radio button is appearing twice. For some reason, it's duplicated. Can someone please tell me why the radio button is appearing twice and not once?
Here is how it appears:
Here is the definition on the View:
Here is the context used:
Here is the Java code:
wdDoInit() ...
wdContext.nodeReport_Type().invalidate();
IPrivateEquipmentCatalogSelection.IReport_TypeElement ReportType = null;
ReportType = wdContext.createReport_TypeElement();
ReportType.setOption("Run Report by Equipment");
wdContext.nodeReport_Type().addElement(ReportType);
ReportType = wdContext.createReport_TypeElement();
ReportType.setOption("Run Report by Equipment / Material");
wdContext.nodeReport_Type().addElement(ReportType);
wdDoModifyView ...
if(firstTime)
{
IWDTransparentContainer rootContainer = (IWDTransparentContainer) view.getElement("RadioButtonGroup");
IWDRadioButtonGroupByIndex radioButtonGroupByIndex = (IWDRadioButtonGroupByIndex)view.createElement IWDRadioButtonGroupByIndex.class,"rbgi_1");
radioButtonGroupByIndex.bindTexts(wdContext.nodeReport_Type().getNodeInfo().getAttribute("Option"));
rootContainer.addChild(radioButtonGroupByIndex);
}
Never mind. I changed the logic to use the RadioButtonGroupByKey and it's working properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.