on 10-17-2005 5:27 AM
Dear Members,
I am using some DropdownByIndex in my View where I fill data from RFC. Pl.help me to solve following exception:
-
java.lang.NullPointerException
at com.sap.tc.webdynpro.progmodel.context.Paths.fillPathToNode(Paths.java:166)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.DropDownByIndexAdapter.setViewAndNodeElement(DropDownByIndexAdapter.java:227)
at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:231)
at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:64)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.TableAdapter$ContentCell.setViewAndNodeElement(TableAdapter.java:975)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.TableAdapter$Cells.next(TableAdapter.java:8186)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableRowRenderer.renderSapTableRowFragment(SapTableRowRenderer.java:65)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableRowRenderer.render(SapTableRowRenderer.java:33)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:269)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:95)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableDefaultBodyRenderer.renderSapTableDefaultBodyFragment(SapTableDefaultBodyRenderer.java:145)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableDefaultBodyRenderer.render(SapTableDefaultBodyRenderer.java:29)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:269)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:95)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableRenderer.renderSapTableFragment(SapTableRenderer.java:409)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.SapTableRenderer.render(SapTableRenderer.java:57)
-
-
More Lines: If required I will send it.
-
-
Thanks & Regards,
Prakash
Hi,
The Text property is already bound with a context which is mapped with Data Model.
Can you pl. analyze the error which I am getting.
Thanks & Regrads,
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Bhavik,
Here I am writing Step by step,
My application have to view, first having few Command Button, another having Few UIs also DropDownByIndex, I have created a model a Custom Control, mapped that model with custom control and second view with custom control. In the DropdownbyIndex text property bind with the related output context.
Now in Implentation of Second view,
public void wdDoInit()
{
//@@begin wdDoInit()
wdThis.wdGetCustSOCreateController().executePOList();
wdThis.wdGetCustSOCreateController().executeContractList();
wdThis.wdGetCustSOCreateController().executeMatList();
wdThis.wdGetCustSOCreateController().exceuteDistChan();
//@@end
}
And Custom Controller have all the methods, here I am providing 1,
public void excutePO( )
{
//@@begin excutePO()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try {
Z_Websales_F4_Po_Input ele = new Z_Websales_F4_Po_Input();
wdContext.nodeZ_Websales_F4_Po_Input().bind(ele);
String cust = "0005300022";
ele.setZcustomer(cust);
wdContext
.currentZ_Websales_F4_Po_InputElement()
.modelObject()
.execute();
wdContext.nodeOutput_Po().invalidate();
} catch (WDDynamicRFCExecuteException ce) {
manager.reportException(ce.getMessage(), false);
}
//@@end
}
-
Pl. let me know if any futher information required.
Thanks & Regards,
Prakash
Hi Prakash,
I guess this problem is not in your code. But, you missed some bindings of your UI element or the context mappings. Check for the same. Or try to delete that dropdownbyindex element and test application. Then insert new dropdown element once again, bind all required properties and then test.
Regards,
Bhavik
Hi,
It should work if you bind the Text property of theDropdownByIndex UIElement.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check if property DropDownByIndex.<b>texts </b>is bound to a context attribute contained in a multiple node.
(There is no data source property)
Armin
Message was edited by: Armin Reichert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please set the data source property of the DropdownByIndex UIElement.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
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.