cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded WebDynpro Components

Former Member
0 Kudos

Hi,

   I have 3 WebDynpro Development Components (DC) one of them is the wrapper and acts as a calling component and represents the home page of the portal with its own set of 4 Views - top, left, body and footer Views. Now based on some action caused in this Wrapper Webdynpro DC, the body View needs to call the other two WebDynpro DC which are independent applications in themself.

  Just to make a mention, i dont intend to pass any data/parameters/events between the above Webdynpro DC, all i need is to the Wrapper (Calling Webdynpro DC) can invoke the Window of the other two Webdynpro DC in one of it's views.

I tried by creating the inbound plugs of the interface views of the Called Webdynpro DCs and then created a output plug from one of the views of the Calling Webdynpro DC and fired the link between them but it gives an initialization error.

Would appreciate if i get a prompt reply cos it's urgent.

Thanks

.V

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have an example of using an embedded component that fires a plug from the interface view if you would like to get this give me your email address I can zip it and send it to you (works on SP2).

   Armand Wilson

Former Member
0 Kudos

Hi Jake,

Could you please verify if you have you set the SharingReferences correctly? The calling DC has to declare SharingReferences to the used DCs. You can do this in the SAP NetWeaver Developer Studio by opening the "Properties" of your project, and then "Web Dynpro References" and then tab "SharingReferences". You have to enter the technical names of the referenced projects (including the vendor name).

To the component usage declaration: Did you try to create the used component instance with lifespan equal to "createOnDemand" (instead of "manual")? This will trigger the view manager to take care about the instantiation of the used component.

There are some more information available within the Web Dynpro tutorial about Server Side Eventing (this is included in the IDE help).

Best regards,

Karin

Former Member
0 Kudos

Hi Karin,

    I could not find any Wen Dynpro Reference when i select "Properties" specific to my project.

  Also let me clarify the situation. i am not using components from different projects. ( i would be glad to do this). But for now i only intend to call one component from the View Area of another component assuming both of them belong to the same project. its simple.

I am also confused because when i try to create a component usage from the Calling Component i dont see a any property called 'lifespan' anywhere. can you kindly explain a little bit more in depth.

appreciate your patience.

V

Former Member
0 Kudos

Hi,

   would like to find out if there is any news on this.

   kindly let me know if you figure out what the problem is.

Thnks

V

Former Member
0 Kudos

Hi Vishal,

Do you use the Sneak Preview? I would like to know which version of the IDE you use.

Best regards,

Karin

Former Member
0 Kudos

Sneak Preview 2.0.0

Build id: 200305151442

kindly let me know if i need to use a later version and if so which one and how do i get it.

Could you also tell me which build/release is the most recent one and which ones the next one to be releases and when ?

Thnks

V

Former Member
0 Kudos

Dear Vishal,

The next version will be available appr. mid February. I will let you know.

Best regards, Karin

Former Member
0 Kudos

Hi Karin,

Have you gotten embedded components that are in different projects from the parent project to work? What is the "technical" that you use Sharing References? Here is what I have done so far but have been unsuccessful in embedding a component from a different project:

I deployed the embedded component project. Then, I declared a ?Sharing reference? inside the parent Web Dynpro Project, Properties, "Web Dynpro->Sharing References" tab. I added a sharing reference named "local/EmbeddedCompExample", where the name of the project containing the embedded component is "EmbeddedCompExample". I also declared a project reference to the embedded project in the parent Web Dynpro Project, Properties, "Project References" list box. I need to refer to the embedded project component at design time. The parent component uses events from the child component and also uses the child component's Interface View.

Per one suggestion, I created DC Web Dynpro projects for the parent and child components and then created a sharing reference and a project reference as discussed above (I also tried the project DC name as the sharing reference name (LocalDevelopmentEmbeddedCompExamplesap.com). When I right click on "Used Web Dynpro Components" in the parent project and select "Add used component" and then select the "Browse..." button, only the parent component is listed in the list box. It seems the only way to reference a child component to use in a project is to have the child component within the same project as the parent component (we need the child component in a separate project that can be just referenced from a parent component.) Any suggestions on how this should work?

   Best Regards,

   Armand Wilson

Can you outline the exact steps to be able to reference a child component from a parent component that are located in SEPARATE projects? The child's Component Interface and Component Interface View must be available at build-time (selectable under "Browse" when selecting "Add used component", and can be embedded as an interface view when building the view set ("Embed View->Embed Interface View of Component Instance")as well as deployable and fully functional at runtime. I am working on SP2. Has this embedded component in separate projects been tested on SP2. Can someone supply me with an example?