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

executing a model object?

Hi Gurus,

In the onQuery method of OVS help given,

<i>public void onQuery(IWDNodeElement queryInputNodeElement, IWDNode queryOutputNode) {

IPublicTestUser.IName4Element input4 =

(IPublicTestUser.IName4Element) queryInputNodeElement;</i>

IWDNodeElement is type casted into IPublicTestUser.IName4Element.

Can any one give me some clues upon this functionality.

When I tried for similar scenario I am getting exception as "java.lang.ClassCastException".

My custom controller has an input model node and NameN Value Node.Value entered by user is available in NameN.

I want to pass this to BAPI as input parameter.

Using the OVS code as reference I have written the following code:

<i>IWDNodeElement element = wdContext.currentNameNElement();

IPublicCust.IYyh190_Test_InputElement input = (IPublicCust.IYyh190_Test_InputElement) element;</i>

Then Iam getting this exception "java.lang.ClassCastException".

Can you please correct me if I am wrong or let me know whats happening here.

Answer given in this executing-model--deep-structure-in-importing-param was helpful in understanding this concept.



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 Sep 21, 2006 at 11:50 AM


    Not sure but...

    Seems that you have node in custom controller, and corresponding mapped node in view controller. You add OVS extension in custom controller, but parameter to the OVS methods comes from view, so in fact node type here is IPrivate<ViewName>.IName4Element


    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.