on 09-11-2014 2:00 PM
Dear All,
I need to implement the re-usability of portal component in my project. For common functionalities that needs to be called in another Portal components.
Example:-
In my portal components Database Connection method using all components.so each portal component level that method implemented.I need to eliminate this process.one common like util component i need to create,This one i can use to any other portal component.So i want know this is possible or not.Possible means please tell me the step by step.
Thank for advance,
Thank and Regards,
Durga Rao.
Hi Dirgarao,
When you create a portal component you have 2 main folders for your code:
"src" and "api" whatever classes you will put in the api folder will be accessible from other components using the sharing reference.
Example:
portalapp.xml - Portal - SAP Library
BR,
Saar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saar,
Thanks for your reply.
i. Core (default): Places the file in the src.core project directory and makes it private.
ii. API: Places the file in the src.api and makes it public.
In src.api place we can sharing class reference.
But my question is the following path folder having some files.That files we can access or not.
I have css and js files i need to maintain all portal component .So i need to be create one portal component.This portal component is use to remaining all portal components. Because any css and js file changed, i need to change all portal components.So this is avoiding purpose i needed.Once i changes done in portal component that should be reflect to all portal competent.
It is Possible means please tell me step by step.
Thanks for advance,
Regards,
Durgarao
Hi Durgarao,
If you are using a late SP of 7.3 you will have the Web Resource Repository (WRR), which you can use to manage your resources and to prevent files to be placed in multiple components.
The Last 3 links are code relevant, the first 2 are explanation regarding the WRR (even though it focuses on mobile in the links it's relevant throughout the portal).
com.sap.portal.resource.repository.branding
Hope this helps,
Saar
Hi Rao,
You can use external library DC.
Please refer to the link below to create the external DC:
Regards,
Ashvin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashvin,
Thanks for your reply.
External libraries will be having only java classes,but i want to reuse the JSP and JS by generating the single portal component,So is there any possibility of generating a single portal component which will be having the JSP's and JS which are used in the other portal component also.
Regards,
Durgarao
Hi Durga,
Lets Assume Two DCs 1)DCa using 2)DCb
Steps to integrate
1. In DCa make compoment as public part in DC MetaData.
2. in DCb Used DCs(in DC MetaData) add DCa.
3. In interfce controler
3.1 Add Compoment controler in propertises.
3.2 Call the method of compoment controler.
4. In DCb Used Web Dynpro Component add component of DCa.
5. Create a Data link from compoment controler of Dcb to interfcae controler DCa.
6. Add DCb Compoment in Dcb view by properties thn call metod of Dca inteface controler.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.