Skip to Content
author's profile photo Former Member
Former Member

ErrorStackTrace for Checkbox group

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 11:44 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.