on 05-11-2009 12:41 PM
Hi all
I'm using a checkboxGroup in my application, and I want to know exactly which checkbox has been checked when an event occurs. So if someone could help me. I use SAP Netweaver 7.1
thanks in advance
Tierry
Add parameter "checkBoxIndex" (integer) to the action assigned to "onToggle" event. Map event parameter "index" to this action parameter.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Coding (Assuming the check box group's "onToggle" event has been bound to an action "CheckBoxToggled" with parameters "index" (integer) and "checked" (boolean)):
IWDCheckBoxGroup cbg = (IWDCheckBoxGroup) view.getElement("CheckBoxGroupID");
cbg.mappingOfOnToggle().addSourceMapping("index", "index");
cbg.mappingOfOnToggle().addSourceMapping("checked", "checked");
wdOnCheckBoxToggledAction(IWDCustomEvent event, int index, boolean checked)
{
wdComponentAPI.getMessageManager().reportSuccess("Checkbox #" + index
+ " has been " + (checked ? "checked" : "unchecked"));
}
Armin
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.