on 05-09-2012 8:29 AM
Hi Gurus,
In my Webdynpro Java Application I have few check boxes(created dynamically using checkboxgroup).
In that I have to catch one particular checkbox text and value.
for eg,
case 1, If Asia
check boxes are India,China,Srilanka,Pakistan etc...
case 2, If Europe
check boxes are Germany,Italy,France etc...
Here if someone selected the case 2 and
in the corresponding dynamic checkbox if he select "Germany",
I need to catch that event only.Rest all checkbox event I dont need to catch.
Thanks in advance,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wu,
Let me explain it in simpler way.
I have one Model node and it gives the inputs for Combobox group.
I am taking the values for of combobox when the user clicks submit button.This part is normal.
Before that there is one special scenario
When the user Click one specific checkbox (with text "Germany") I need to execute one method.
My problem is, every check box click I am reading whole checkboxes(using one 'for' loop ) to verify whether the check box with name "Germany" is clicked or not.
There will be situation that the model node don't have checkbox with name "Germany" .
Still my iteration will execute unnecessary.So i need one optimized way to handle this.
-------------------------------------------------------------------------------------------
I have solved the above by using the logic in this thread.
http://scn.sap.com/thread/73191
if (firstTime) {
IWDCheckBoxGroup cg1 = (IWDCheckBoxGroup) view.getElement("CheckBoxGroup") ;
cg1.mappingOfOnToggle().addSourceMapping("index", "cgIndex") ;
cg1.mappingOfOnToggle().addSourceMapping("checked", "cgChecked") ;
}
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.