Skip to Content

When would you create more than one Web Dynpro Components?

Could someone please help me understand when it would make sense to create more than one Web Dynpro Component when you're writing an application?? I'm creating a Development Component, but can't figure out if I should create one WD Component to run my app or multiple WD Components.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Sep 30, 2005 at 02:04 AM

    Hi Natasha,

    It depends on a lot of factors. The most important being Component Reusability. Suppose there is a view that you want to use in many Screens(Viewset), so its better to have this view in a seperate component so that it can be reused easily.

    It also depends on the functionality. Suppose in your application you have 6 Screens(View/Viewsets) say A1-A6. Out of these A1-A2 cater to particular function and A3-A4 cater to a different functionality. And then A5-A6 are common and are called at the end of both. So its better to have 3 Components containing 2(view/viewsets) each.

    So basically it depends on your requirements.

    Hope this helps.

    Regards,

    Shubham

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 03:52 AM

    Hi,

    One more scenario :

    Consider you have a Model and Views

    1.You can create a DC for your Model.

    2.Another DC for your components and Views.

    Advantage of going for mutltple DC is if your project is very big containing Huge Models then you can place the Model in Different DC so that you no need build the Model everytime when your implementation changes at the view or component level.

    Another Advantage is ReUsability as mentioned by Shubham.

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 30, 2005 at 05:59 PM

    Thanks both of you for your replies.

    Although I have a follow on question to Shubham's answer... If you separate into A1-A2, A3-A4, A5-A6, how does A1-A2, A3-A4 both call A5-A6 and pass parameters over???

    Also, Can other DCs (applications) call these WD components???

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Natasha,

      Suppose you have one dc called DC1.

      DC1 has 3 components C1 C2 and C3.

      C1 has A1-A2, C2 has A3-A4 and C3 has A5-A6 views.

      Now if you want to access A5-A6 in C1 and C2, you need to define C3 as Used WebDynpro Component in C1 and C2.

      Then you can map the contexts. Now in the Window of Component C1, embed the interface view from C3 and link it to the output plug from A2 or A4. In the implementation you can fire a plug to go the A5/A6 view.

      If you have 3 DC's containing these views, you have to do as Anil has said.

      Regards,

      Shubham

  • author's profile photo
    Former Member
    Oct 01, 2005 at 06:24 AM

    Hi,

    Yes. YOu can reuse the components across different DCs.

    Thats the advantage!!!

    You create PuvlicParts to expose the WD Components to other Components.

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded