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

How to fill a grid at initial start using Web Dynpro

Hello readers(s)

I am having some difficulty using WEB Dynpro.

Last week I installed the Sneak Preview CD and i am trying to learn all about WebDynpro and the J2EE environment.

Until now i succeeded to get a grid filled with data from another SAP System. To get the data i use a RFC function call after pushing a refresh button.

Until now the grid at first start is empty. What i want now is to fill the grid at start without having to use the refresh button.

Where should i put this logic. ?

Bertil Rebergen

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2003 at 12:37 PM

    Hello Bertil,

    In the view that contains your grid there should be a method called wdDoInit().

    This is called the first time of the load of the view (Initialize the controller).

    You could put the load of your grid there.

    This mehod however will not be called again.

    Hope it helps

    Christian

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2003 at 02:59 PM

    I solved the problem.

    The error was caused by me because i used a methode of a messenger object which was not already created.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Suresh,

      I followed the same steps as in the example presented by the tutorial. The RFC module i use delivers a table filled with data. At first it also did not work. I did not receive data at all. By changing the RFC module i found out that the module was not called at all!. Change the source (e.g post a message in your RFC module)  to be sure that it is called.

      After this i looked more deeper into the example and i added inside the DoInit of the controle a binding of the context elements i used for the RFC. After this it worked.

      At this moment am at the TechEd in Basel and therefor not able to look into my sources so i can not give you more details now.

      Hope this hint will help you solve the problem

      regards

      Bertil