Skip to Content
0
Aug 19, 2015 at 01:20 PM

Issue with Radio Button

21 Views

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);

}

Attachments

Definition 1.png (24.9 kB)
Definition 2.png (28.8 kB)
Context 1.png (12.1 kB)
Context 2.png (7.1 kB)