Web Dynpro Methods

Can someone please clarify in what order the following methods will execute and what initiates the execution of each method?
wdDoInit
wdDoModifyView
supplyResources (based on a supplyFunction defined in the context value node)
onPlugFromSearchViewToPage1 (based on an inbound plug)
Thanks, Scott K

In your case say the user clicks on a button on the same view:
wdDoInit() will NOT be executed as that was already executed when the view first came to the user
onPlugFromSearchViewToPage1: will NOT be executed unless you are redirecting your control from SearchView to Page1. Well - if this button click actually fires a navigation from Search View to Page 1 then this method will be executed otherwise not.
supplyResources: might be executed if you change any data of the context node with which this supply function is attached.
wdDoModifyVIew: will  be executed after the button hit - just before the view is getting re-thrown back to the user.
Do one thing - if you want to understand which methods are getting executed and in which order - please put a message in each of them saying "Now executing <this> method". Replace the <this> with method name. Then on screen you will see when which one executing and their order of execution.
You can print this message by
wdComponentAPI.getMessageManager().reportSuccess("your message");
Put this code into all the four methods you are concerned with and then run the application.... you should understand yourself.
Regards,
Shubhadip

Similar Messages

  • Need table name used for storing web dynpro methods' code.

    Hi experts,
    I am trying to retrieve the code of a particular web dynpro component's methods.
    So can anyone please tell me the table in which the code or logic part  of the methods are stored?????????
    Thanks in advance.....
    Edited by: Adithya K Ramesh on Oct 28, 2010 6:26 PM
    Edited by: Adithya K Ramesh on Oct 28, 2010 6:26 PM

    WDY_CTRL_COMPO - although you should be cautious with such access as direct interaction with the Web Dynpro Metadata is not supported by SAP.

  • Declared Web Dynpro method's javadoc not updating

    Hello all,
    I declared a method in a custom controller, and changed the Javadoc to something more meaningful than the usual "declared method.". Now I'm trying to call this method from another controller. That in itself works fine, but when using NWDS' auto-complete feature, I still see the old, initial Javadoc.
    I've tried building the project, reloading+rebuilding it, I even tried restarting the entire NWDS, all without success. Am I missing something? What does it take to get the NWDS to use the updated javadoc?
    Thanks in advance,
    Kars.

    Hi,
    if i am not wrong the JDK need to support the new java doc, mean to say are you using right jdk version for that. Coz javadoc.exe need to support.
    plz give a try to this setting:-
    Go to window-> preferences->jav->javadoc->javadoc command in that set the path for the javadoc.exe.
    Hope this may help you.
    Regards,
    Deepak

  • Calling a Report program in Web Dynpro methods

    Hi,
         Can any one suggest how i can call a Report created in SE38 in Webdynpro?. I tried to call it using Submit statement. But its throwing some error.

    Hi,
    Please refer these  links -
    https://forums.sdn.sap.com/click.jspa?searchID=29253250&messageID=7731540
    report list output on a webdynpro view
    Please paste the error or check it in ST22.
    Regards,
    Lekha.

  • Web service and web dynpro

    Hi,
    I am learning about web services in java web dynpro. I follow some tutorial on how to create a web service in a java web dynpro using netweaver developer studio. The tutorial works (I think) because in the picture of my local development, I can see the web dynpro component and the model representing the web service. In the web dynpro explorer view I can see the model has been created and the method/service that can be called. But now I don't know how to go on calling these services by the web dynpro methods; can anybody please explain me or post me a link with a tutorial for this (that I did not find). Thanks in advance
    Gabriele

    Hi
      Please go throught links
          https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq%252b-%252bmodels%252b-%252badaptive%252bweb%252bservice
          https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d076c662-8c0f-2b10-8ca4-e63c26e2e489
    Import Adaptive Web service Model
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
      hope will help you .
    murali

  • Which table(object) store web dynpro source code?

    Hello Colleague:
    As we are try to copy and rename webdynpro  component,the objects which  are used in the component controller method

    Hi,
    You can search for table name using  WDY_*.  There are so many tables related webdynpro.
    For example.. WDY_APPLICATION  - WD Application details. you can search for more..
    For source code.. check this..
    Need table name used for storing web dynpro methods' code.
    Cheers,
    Kris.

  • How to use Web dynpro DC to use another Web dynpro DC?

    First,I created a Web dynpro DC,and make the component to public .
    Then,I created another Web dynpro DC,Add the first DC in Used DCs,But in this Web dynpro, I can't use first Web dynpro Method,can anyone tell me how to do it?

    Go for below document.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60132577-7801-2b10-c9b1-b13b2f78f23b?QuickLink=index&overridelayout=true]
    This explains interaction between two components of same DC.
    Now, since you need 2 DC.
    Then follow below steps in addition to above document.
    1. Create DC1 and Dc2
    2. Add dependency from DC1 to DC2. (Used DC Component).
    If you find any further issues then please revert back.
    Thanks

  • How to call method in web dynpro for ABAP

    Hi All,
    I created a z class and two methods to get the data.
    I created a WE4A application. Now i want to call these methods from my Z calss in the web dynpro ,but i am getting  amessage saying 'type zclass is unknown".
    when i am trying to declare
    data: cl_class type ref to zclass . i am getting above message.
    can anyone explain how to call zcalss methods in my application.

    Hi,
    You can call any global class method in WDA via. Wizard.
    Even more you can make your class as assistance class and call their methods by wd_assist.
    Thanks
    Pradeep

  • Returning an array type from a local method in Web Dynpro Java application

    Hi,
    In my project, we have a requirement to display 18 rolling months along with the year, starting from current month.
    How I am going to approach is that I will get the system date and get the current month and send the month and year value to a local method which will return 18 rolling months along with the year.
    But, when I tried to create a new method there is no option to return an array type. It was greyed out.
    So, we can not return an array type from a method from Web Dynpro for Java application?
    If so, what is the alternative and how am I going to achieve it?
    I will appreciate your help!
    Regards
    Ram

    HI
    You can create new methods in
      //@@begin others
      private ArrayList MyMethod(){
           // ** Put your code here
           return new ArrayList();
      //@@end
    Other option are create a context node with cardinality 0...n with one or more attributes, and in your method create the needed registers into this node. To read this values, you only need to read your context node.
    Best regards
    Edited by: Xavier Aranda on Dec 2, 2010 9:41 AM

  • Calling a method in a public web dynpro DC from EP

    Hi all,
    I have a public web dynpro DC which exposes some methods. I want to call these methods from an EP application (JSP Dynpage). IS this possible to do?
    Any info on this would be of great help.
    Regards,
    Narahari

    hi,
    Step by step solution for calling a webdynpro application from portal is given.
    this will help you ....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7cf6a990-0201-0010-dd80-c09fc1438056
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/6ee03fc2269615e10000000a155106/frameset.htm
    regards,
    ganesh

  • Calling session bean's business method through web dynpro component

    Hi All,
    Can anybody tell me how to call a session bean's methods through a web dynpro WITHOUT java-model or web service model ??
    I have following scenario:-
    1. Stateless Session bean having two business methods
    2. Web Dynpro component
    3.Now i want to call business methods without using any model. I have got following piece of code but I dont know how to go about it.
    4.Where do i have to set JNDI name for session bean? which interface will be looked for?
    5. Do I have to declare public part for EJB DC? If yes, how?
    //This is inside web dynpro component
    InitialContext   context = new InitialContext();
    o = context.lookup(JNDIName);
    TestSessionbeanHome homeRef = (TestSessionbeanHome) PortableRemoteObject.narrow( o,                                                                               
    TestSessionbeanHome.class);
    TestSessionbean beanRef = homeRef.create();
    <returnValue> = beanRef.<ejb method name>
    Please help to get a step-by-step approach to this case.
    Thanks and regards,
    Amey Mogare

    Hi,
    If  I comment out the part that is using session bean's business method, DC is building fine.
    And if I uncomment, then compiler is unabl eto resolve business method(s).
    And i would like to mention that my EJB + J2EE App DC is building properly, but it havent yet deployed properly as I am waiting for data-source-alias name prefix to be configured by ERP team. So will this be a reason why Web Dynpro DC is not able to resolve business methods ??
    Because Web Dynpro DC is able to resolved all interfaces of Session bean and entity bean. But when it comes to business method, its not able to resolve.
    Any more ideas why it is not happening?
    Pls help.
    Now i went through some forum posts regarding this and found that we also need to add EJB DC to Java Build Path for WebDynproDC>Properties>Java Build Path.
    I did this and now it is able to resolve business methods and DTOs as well. So to summarize I did following:-
    1. Added EJB DC (complete DC) as a Used DC to Web Dynpro DC with Buid-n-Deploy-n-Run time dependency
    2. Added Sharing reference of J2EE application DC to Web Dynpro DC -->Properties
    This reference I constructed as follows:-
    <vendorname>/<name of j2ee application as appearing under display name tag in application.xml (replacing '/' with '~')>
    So my Sharing Reference becomes:- <vendorname>/reqpstapscreqpstapja_reqid
    3. Added EJB DC to Java Build Path in Web Dynpro DC's properties
    4. Then I added following piece of code to get object of SessionBean class
    InitialContext context = new InitialContext();
    Object o = context.lookup("java:comp/env/ejb/SessionRequestIDBean");
    SessionRequestIDHome homeRef = (SessionRequestIDHome) PortableRemoteObject.narrow(o, SessionRequestIDHome.class);
    SessionRequestID beanRef = homeRef.create();
    beanRef.<business method>
    But After doing this I am facing another problem :-
    The build fails saying it is not able find the package for DTOs. But when I see the Component Controller's code it is not showing any red or yellow marks.
    Can anybody pls help me out here?
    Thanks and regards,
    Amey Mogare

  • Calling an interface METHOD of another abap web dynpro application

    Hi Experts,
    Can u plz tell how we can Call an interface METHOD of another abap web dynpro application in main WD Component.
    Thanks
    Mahesh

    Hi ,,
       Example ALV interface method calling   GET_MODEL interface method
       View attribute   declaration   :    M_WD_ALV  type      IWCI_SALV_WD_TABLE
         DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          wd_this->M_WD_ALV =   wd_this->wd_cpifc_alv( ).   "ALV is the usage name
         DATA lv_value TYPE ref to cl_salv_wd_config_table.
          lv_value = wd_this->M_WD_ALV->get_model(  ).   " interface method calling in ALV component usage.....
    Regards,
    Devi

  • Calling a Method in Web Dynpro ABAP

    Hi Experts,
    I have created a class in se24 and called its methods in web dynpro by simply creating its object. It is working fine. After that i came to know that method should be called through creating a service call in WD.
    What is the standard way and why?
    Thanks
    Ravindra.

    Hello Ravindra ,
                                  I think the better way is to create an assistance class ( Say A1)  and create an attribute (Say AC1) as object of your class ( Say  C1 ).
    In the costructor of you assistance class A1  you can instanciate the object of C1 .
    Now inside a method of assistance class you can call the method of C1 any time because AC1 is already instantiated .
    MVC architecture recommends you should have separate  method to aceess the data and you write your business logic in assitance class methods .
    Hope this will help you .
    Regards
    Vivek

  • How to make Web Dynpro Search work using CAF Entity Service Method

    Hallo everybody,
    I'm facing a problem regarding CAF Method and I really need some help.
    The Method I want use is a "Search by Key" method, which I already testet in Composite Application and it has worked.
    But wenn I try to add the CAF Model in Web Dynpro and Apply the template in Component Controller, there was no input value there to be selected but only the return values. How can I make the method work?
    Thanks a lot.

    Hallo everybody,
    I'm facing a problem regarding CAF Method and I really need some help.
    The Method I want use is a "Search by Key" method, which I already testet in Composite Application and it has worked.
    But wenn I try to add the CAF Model in Web Dynpro and Apply the template in Component Controller, there was no input value there to be selected but only the return values. How can I make the method work?
    Thanks a lot.

  • Calling Web Service Methods in  Web Dynpro

    1. Created a Bean with get & set methods..Created a portal Service around it
    2. Created a Web Service and checked the same using EP Web Checker
    3. Created a Web Dynpro app having two screens (First one for setting String value and second  for getting string value)
    4. Configured the Web Service in the model...I can see the Request and Response in the Context...Mapped the request to first view and Response to Second View
    How do I call the Web Service method to Set the Paramter and how do I extract the value from the response?
    Rgds

    Hello Gulshan,
    Did you check this:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing an email web service - 6_0_.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on accessing the car rental web service - 7.htm
    Best regards, Maksim Rashchynski.

Maybe you are looking for

  • Reference document number of 103 movement not seen in 105 movement documnt

    Dear all, I have made a material document with movement type 105 with reference to 103 document. After creation, the field LFBNR in the 105 document is not updated with the 103 document number. In all other cases the document number of 103 movements

  • Get error message when trying to open a file in Adobe Indesign

    Hi, I would appreciate some help here. Just installed ID, and want to get started. When I try to open any file (pdf. jpg etc) I get the following message: "Can´t open file. It might be that Adobe ID don´t support the file format, that the plug-in-mod

  • For UCCE 7.0, what are the default queue limit

    Hi, I am fairly new to this product, I am wondering if there is any doc indicated the default queue limit settings, I couldn't find in the script that the set value node, so I guess it must be running using the default value. please advise, thanks

  • Key Note waste of time?

    This program does not work very good, anything I try to do in it it messes up. I wish I could get my money back. Any time I try to export it there is always problems. First I included video in my presentation. what a night mare, it takes hours to exp

  • Is there a way to recover trash i emptied?

    i have no external hardrive