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

Is it possible to transfer a class object to another web dynpro application

Is it possible to transfer a class object from one web dynpro application to another web dynpro application ?

Best regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 31, 2008 at 07:35 AM

    Hi,

    If you mean passing a class object from one WD component to another, then yes you can do it.

    Assume you have 2 Wd components WD1 and WD2.

    If you want to pass an object frm WD1 to WD2.

    1) First declare WD2 as used component in WD1.

    2) Create a method with input parameter of type ref to the class in WD2.

    3) call the method of WD2 in WD1 at the point where you want to pass the class object.

    Hope this answers your query.

    Regards,

    Ismail.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      i know two ways to pass one object to different component.

      1. when you are using one model class for complete application.

      in that case parent application will create the instance of model class and child application must have one interface method like initalize which will accept model class instance. parent component will call this method to pass the object.

      2. use one assistance class for both component.

      if you want to use one assistance class for both component, while creating the child component, in the method create_component( assistance = wa_assist ).

      this will pass parent component assistance instance to child component.

      hope this will help you.

      Regards

      Saurabh Garg

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.