Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue with Radio Button

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

}

replied

Never mind.  I changed the logic to use the RadioButtonGroupByKey and it's working properly.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question