Skip to Content
avatar image
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-parame was helpful in understanding this concept.

Regards,

ND.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Sep 21, 2006 at 11:50 AM

    Nagaraju,

    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

    VS

    Add comment
    10|10000 characters needed characters exceeded