on 02-26-2009 7:15 AM
Hi there,
Can someone advise me what to do? This is what happen.
When I declared the inputNode and the outputNode for the OVS, I have specify the node directly 1 level above the fields that needs to be displayed in the OVS.
However, eg: I have only declared Get_Material as the inputNode and not the level above it, which is Request_Get_Material, and as a result, I could not use the command "execute" on Get_Material nodeElement.
Can someone advise me what I can do? I keep on getting execution error because of this I think. THANKS!!
Hi
Hi go to slide no. 10 of this doc [OVS|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/web%20dynpro%20valuehelp%20using%20object%20value%20selector.pdf]
and for execute follow [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/504540a4-fd0d-2a10-7c8e-c88289cf6457]
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! I will refer to it, however the 2nd pdf does not talk about "execute" at all.
Hmmm I was wondering what do I look out for when executing the "execute" for the model? It is really puzzling.. I have different functions which are very similiar and I have bind and instantiate all the necessary input, however, some of them will give error like:
com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://j2eedevt:50000/DemoWebOrderWSMaterial/Config1?wsdl ' with operation 'Get_MaterialBySalesArea' in interface 'DemoWebOrderWSMaterial_Document'
when I tries to execute. The problem is it won't give any reason why the execution fail? They are so similiar execution but I wonder why do some of the fails while some works?
Hi
Do a little deep dive things will clear to u because I have done through those links only, or It might problem will a little different ,additionally I am giving code which I implemented.
public void onQuery(IWDNodeElement queryInputNodeElement, IWDNode queryOutputNode)
{
// Type Cast Input element
if (wdContext.currentOvsInputNodeElement().getUserId() == null)
{
wdThis.wdGetInstEjbInterface().executeGetAllUserMaster();
for (int i = 0; i < wdContext.nodeReturngetAllUserMaster().size(); i++)
{
IPublicOvsCustComp.IOvsOutputNodeElement ovsOutput = wdContext.createAndAddOvsOutputNodeElement();
IPublicOvsCustComp.IReturngetAllUserMasterElement modelOutput = wdContext.nodeReturngetAllUserMaster().getReturngetAllUserMasterElementAt(i);
ovsOutput.setFirstname(modelOutput.getFirstname());
ovsOutput.setLastname(modelOutput.getLastname());
ovsOutput.setEmailid(modelOutput.getEmailid());
ovsOutput.setGender(modelOutput.getGender());
ovsOutput.setUserid(modelOutput.getUserid());
ovsOutput.setRequestid(modelOutput.getRequestid());
ovsOutput.setMobile(modelOutput.getMobile());
}
} else if (wdContext.currentOvsInputNodeElement().getUserId() != null)
{
wdThis.wdGetInstEjbInterface().executeGetUserDetailsByUserId(wdContext.currentOvsInputNodeElement().getUserId());
for (int i = 0; i < wdContext.nodeReturngetUserDetailsByUserId().size(); i++)
{
IPublicOvsCustComp.IOvsOutputNodeElement ovsOutput = wdContext.createAndAddOvsOutputNodeElement();
WDCopyService.copyElements(wdContext.nodeReturngetUserDetailsByUserId(), wdContext.nodeOvsOutputNode());
// IPublicOvsCustComp.IReturngetUserDetailsByUserIdElement
// modelOutput1 =
// wdContext.nodeReturngetUserDetailsByUserId().get;
// ovsOutput.setFirstname(wdContext.nodeReturngetUserDetailsByUserId().get);
// ovsOutput.setLastname(modelOutput.getLastname());
// ovsOutput.setEmailid(modelOutput.getEmailid());
// ovsOutput.setGender(modelOutput.getGender());
// ovsOutput.setUserid(modelOutput.getUserid());
// ovsOutput.setRequestid(modelOutput.getRequestid());
// ovsOutput.setMobile(modelOutput.getMobile());
}
}
IPublicOvsCustComp.IOvsInputNodeElement custInputElm = (IPublicOvsCustComp.IOvsInputNodeElement) queryInputNodeElement;
// Type cast Output node
// IPublicOvsCustComp.IOvsOutputNodeElement custOutNode =
// (IPublicOvsCustComp.IOvsOutputNodeElement) queryOutputNode;
}
}
Revert ,if still unsolved?
Best Regards
Satish Kumar
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.