on 01-06-2006 4:27 PM
Hi experts,
The problem is when I define the TABLE with 5 rows and 12 columns, I want to input data in each one of the cell of the table and I can´t do it because the fields appear disabled.
Can anyone help me please!!!
Edgar
Several remarks:
A Table element contains exactly as much rows as its data source node has elements.
Even if the data source node contains no elements, there appear to be 5 rows initially, but these are only rendered for optical reasons.
If you want to have 5 editable rows, you need
- 5 node elements in the data source
- in each column you want to edit, you need a table cell editor that allows editing (e.g. InputField) and that is enabled and not readOnly.
Are all these preconditions satisfied in your case?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Make sure that u have created a node and binded that node to the datasource of the table.
And the table cell editor is "inputfield".
In the wdDoInit() method of the implementation give the code
for(int i=0;i<5;i++)
{
IPrivate<view name>.I<node name>Element element=wdContext.node<node name>().create<node name>Element();
wdContext.node<node name>().addElement(element);
}
Also check if the cardinality of node is 1..n or 0..n.
Regards,
saravana.
Hi Saravana,
your idea was very helpful, but when i select a row for modifications the fallowing error display:
Error stacktrace:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:835)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:722)
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:251)
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)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:827)
... 23 more
Caused by: com.sap.tc.webdynpro.progmodel.context.ContextException: Node(TableView.Prueba2): selection cardinality does not allow multiple selection
at com.sap.tc.webdynpro.progmodel.context.Node.setSelected(Node.java:902)
at com.sap.tc.webdynpro.clientserver.data.DataContainer.updateSelection(DataContainer.java:518)
at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptbase.AbstractAdapter.updateSelection(AbstractAdapter.java:607)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.TableAdapter$Rows.onSAPTABLESELECTIONCELLCLICK(TableAdapter.java:6324)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.TableAdapter$SelectionCell.onSAPTABLESELECTIONCELLCLICK(TableAdapter.java:6882)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.TableAdapter.onSAPTABLESELECTIONCELLCLICK(TableAdapter.java:8160)
... 28 more
Thanks again.
Edgar
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.