on 08-05-2004 5:55 AM
Hi there,
I have created a DC and assinged Customer Classes(Config Models) to the public parts. References to the WebDynpro Project and DC project were selected.
How do I use the DC in a Webdynpro Project? I was trying to add the model class (in the Public Parts of the DC) to the component's model but I could not find the referenced DC model.
Any advice will be appreciated.
Thanks,
Paul
Hi Paul,
here's a step by step guide. The prerequisite is that <b>both</b> projects are Web Dynpro DC projects, you can't use public part entries of an arbitrary DC project in a "normal" Web Dynpro project.
<u>In the DC exposing the model (DCA):</u>
1. Create the model (of course).
2. Add it to the public part list of DCA using the context menu of the model created via "Add to Public Part". If no public part exists, a dialog for creating a new one is opened. The type of the PP has to be "Provides an API for developing/compiling other DCs".
3. In the context menu of the project node of DCA, select "Development Component->Build".
<u>In the DC using the model (DCB):</u>
1. In the context menu of "DC MetaData->DC Definition->Used DCs" select "Add Used DC...". Navigate to "Local Development->MyComponents-><Name of your DCA>->DC MetaData->Public Parts, select the public part you created and "Finish".
2. In the context menu of the project node of DCB, select "Development Component->Build". This is an optional step to ensure, that the entries from the newly referenced PP of DCA are accessible/visible in DCB.
3. At "Used Models" of the component which shall reference the exposed model of DCA, select "Add" and the model.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Thanks for the pointes.
I am thinking of a scallable way of using DCs as the building blocks for company-wide Webapplication.
I'd like to use DCs to build all the Data Models/or Component Interface Views with the nested DC approach or derived class approach (polymorphism). I would then develop WebDynpro applications with the DCs in WebDynpro Projects.
As Public Parts are for DCs to DCs communication, how do I use the Models in the DCs in a WebDynpro Project?
Any advice will be appreciated.
Thanks,
Paul
Hi Paul,
the answer is simple: <u>The Web Dynpro projects you have to use for that purpose are also DC projects.</u>
Just to clarify this once again:
You create a Web Dynpro project, which <b>is not</b> a DC project by File->New...->Web Dynpro.
You create a Web Dynpro project, which <b>is</b> a DC project by File->New...->Development Component Project, going further through the wizard and choosing DC Type "Web Dynpro".
The DC project of type Web Dynpro is identical to a non DC Web Dynpro project except the features which are added for handling the public parts, the references to PPs of other DCs and the DC build.
Regards
Stefan
Hi Pran,
thank you very much for the attempt to help me getting some contribution reward points
People didn't really understand (or recognize?) this new contribution system so far. The fact is, that i've got 8 times something like: "Hey, super thanks alot, you solved my problem!" in different forums, since the system has been introduced, but <b>ZERO</b> points for it lol
If it would really be my only intention to earn points here, i would have to stop posting in the forums immediately
Thanks anyway and best regards
Stefan
I'm in the process of doing exactly this, and have ran into an issue:
If I have a model which contains a model class; when you include the model, it doesn't automatically include the model clas in the public parts.
To get around this, I tried to add the model class by making the file for the model class a public part. This made the model class available in the DC that references the model, however the reference DC had errors because it couldn't access the implementation of the model class.
Any ideas?
(And Stephan - i hope you enjoy the pocket pc!)
Hi Matt,
do you have errors in the referencing DC on design time, compiling it or at runtime? Please clarify.
Regards
Stefan
PS: I always enjoy my pocket pc, but not the one you mean , since the (great) prizes will be awarded at September, the 25th. BTW, i don't think, i'll stay on P1, since you don't really have a chance, if you contribute in the forums only.
Hi Stefan,
I am following the steps as you outlined, but I get a deployment error. I have a Java DC project which has my model I want to use for a WebDynpro project. I have made that available in public parts. And I have WebDynpro DC project, that uses the java DC. In the generated ear file I can see the java jar file, and the model classes, but I get the following deployment error:
Mar 3, 2005 3:35:55 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
[002]Deployment finished with warning
Settings
SDM host : mymachine
SDM port : 50018
URL to deploy : file:/C:/DOCUME1/LOCALS1/Temp/myearfileMCUI.ear
Result
=> deployment not executed : file:/C:/DOCUME1/LOCALS1/Temp/myearfileMCUI.ear
Unresolved dependencies found for the following SDAs:
1.: development component 'MCUI'/'hp.com'/'DMP_NWOMS_D'/'20050303153543'
dependency:
name: 'OBJMODEL'
vendor: 'hp.com'
Deployment will be aborted.
Deployment exception : Got problems during deployment
Any ideas what I am doing wrong will be appreciated.
Thanks.
Hasnain
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.