on 11-23-2007 5:00 AM
Hi all,
I have to use checkboxes in my application.
The code is used to write data in the checkbox fields is given below
String[] CopyData = new String[] { "January", "February" };
List copyVal = new ArrayList();
for (int i = 0; i < CopyData.length; ++i) {
IPrivateNewAssembly.ICopyValuesElement MCopy = wdContext.createCopyValuesElement();
MCopy.setCopyValue(CopyData<i>);
copyVal.add(MCopy);
}
wdContext.nodeCopyValues().bind(copyVal);
int n=wdContext.nodeCopyValues().size();
for(int i=n-1;i>=0;i--)
{
if(wdContext.nodeCopyValues().isMultiSelected(i)|wdContext.nodeCopyValues().getLeadSelection()==n)
{
wdContext.nodeCopyValues().setSelected(i,false);
}
}
the error i am getting when i run the application is
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:811)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:698)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.initEvents(AbstractClient.java:131)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.prepareTasks(AbstractClient.java:99)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
Regards
Padma N
Hi Padma,
The problem may not be in this code. Because you will get line number too when there is a problem in implementation. Can you check once by putting this code in try block.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.