on 02-19-2013 6:02 AM
HI
In one of the document
a DC which contains a model (dc2) is being used in another DC (dc1). the document suggest to add a Public part in modelcomponent
The Public Part of a Model Component must expose the following entities
1)Model entity itself
2)Java Package comprising the model class files
– Add Entity to Public Part: as Class
3)Java Folder comprising the metamodel files of the model classes
– Advanced Entity Properties Rules for adding entities to public part Includes: *.wdmodelclass
iam using nwds 7.3 how can i add the
Java Package comprising the model class files
Java Folder comprising the metamodel files of the model classes
to the public parts of the DC containing model.
Iam much confused to create a public part in nwds 7.3.
Please do the needful
Regards
Prasad
Hi Prasad,
If you want to use DC2 in DC1.Then
1) Create public part for DC2 ( right click on DC2 component and choose add to public part. Give a name and select ok. Then rebuils the project)
2) Add dependency in DC1 ( In component properties of DC1, choose "add " and select DC2)
3) In DC1--> Right click on used component and choose add used component. Browse and select the DC2's component.
Now you will be able to use all your methods in DC2 in DC1.
Thanks!
Swarnaprakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swarnaprakash
Thanks for the reply.
My question is if dc2 contains a model and the same dc2 to be used by dc1 . what are the public parts to defined by dc2 ,which are to be used by dc1.
i want how to add metadata and model classes and java packages and folders to public part in nwds 7.3,so that the same can be used by dc1 .
Regards
Prasad
methods for executing model must be there in component controller of dc2. Just map those methods to the interface controller of dc2. And, then by following above mentioned steps(creating public part, etc) you can call those methods from dc1 component controller or view controller.
Also, for passing value from dc1 to dc2, you can do context mapping at interface controller level between these 2 dc's.
Hope it helps.
Regards,
Sen
Hi,
The document you're refering to is for NetWeaver '04s (7.0)
Have a look at http://help.sap.com/saphelp_nw73/helpdata/en/49/2abbfe9c1a1903e10000000a42189c/content.htm this explains the process. In your case, add DC2 as a used DC to DC1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.