Skip to Content
0
Former Member
May 30, 2007 at 01:45 PM

Reading Dynamic Checkbox

68 Views

All,

I have created <b>Multiple</b> checkbox (Without checkbox Grp) at runtime using below code. I have question..

How can I read the value of all checkboxes?

			IWDAttributeInfo Checked_att =
				wdContext.nodeSkill().getNodeInfo().addAttribute(
					"checked",
					"ddic:com.sap.dictionary.boolean");
			final int size = wdContext.nodeT_Req().size();
			for (int i = 0; i < size; i++) {
				IWDCheckBox chkbox =
					(IWDCheckBox) view.createElement(
						IWDCheckBox.class,
						"checkbox" + i);
				chkbox.bindChecked(Checked_att);
				String chk_text =
					wdContext.nodeT_Req().getT_ReqElementAt(i).getStext();
				chkbox.setText(chk_text);
				IWDTray cont = (IWDTray) view.getElement("tray");
				cont.addChild(chkbox);

			}

Thanks in advance..

BM