How to modify com.sap.portal.navigation.pagetoolbar.par
Hi Experts,
I have to create a link on the Page Toolbar(Next to "History") by the name "Add Favorites" which has the same functionality as that of the "Add to Portal Favorites" button present in the Option Menu in sap portal.
I have imported the com.sap.portal.navigation.pagetoolbar.par in to my nwds , but i am not sure if this is the correct par.
please tell me where exactly the modification needs to be done.
Thanks in advance .
Regards
Shivas
Hi,
the PAR you are looking for is: com.sap.portal.pageToolbar
As for the code: copy & paste the standard SAP code. For adding the page to the portal favorites:
AddToPortalFavorites(). The code looks like:
function AddToPortalFavorites(target , title, mode)
try
var obj = EPCM.getSAPTop().gHistoryFrameworkObj.GetActiveTrackingEntryValue();
var context = obj.context;
if(! target)
target = obj.getUrl();
title = GetUnescapedTitle(obj.title);
var url = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.remote?ServiceType=PortalFavorites&";
url += ("NavigationTarget=" + escape(target));
url += ("&Title=" + encodeURIComponent(title));
-> the JS with this code is located ar:
/irj/portalapps/com.sap.portal.navigation.helperservice/scripts/FrameworkSupport.js
To add the page to the browser's favorites:
pageTitleBar.AddToFavorites("location")
br,
Tobias
Similar Messages
-
How to modify com.sap.portal.navigation.toplevel.par
Hi,
I have a situation where i need to change the Top level navigation (com.sap.portal.navigation.toplevel) i.e i want some different buttons insted of the standard one's.
I had seen some blogs like hovering etc..
but i cant understand the concept.
Can any one explain it in a simple and detailed way.
Thanks in advance,
MrChowdaryHi Chowdary,
Please Refer This,
<b>Navigation in portal:</b>
http://help.sap.com/erp2005_ehp_02/helpdata/en/e0/9e4f3e7395b412e10000000a11405a/frameset.htm
<b>Portal Personalization:</b>
http://help.sap.com/erp2005_ehp_02/helpdata/en/e0/9e4f3e7395b412e10000000a11405a/frameset.htm
Regards,
Nandha. -
How to download com.sap.portal.navigation.contentarea par file
I am trying to download the com.sap.portal.navigation.contentarea par file so that I can modify it and upload it with a new name. I found the file in the Support Desk of the portal, and I downloaded it just fine. However, when I download it it was in the form of com.sap.portal.support.browse.zip. I tried to extract the files from there, and I came up with com.sap.portal.support.browse.
How can I get this in the form of a par file to import into NWDS? I have imported par files into NWDS before, but I nothing I am trying is working, because I can't get it into the .par or .par.bak formats.
Thanks,
OwenOK done...
I am doing it and explaining you step by step same time...
1. logged in to portal -> system administration -> support -> ROOT/WEB-INF/deployment/pcd
2. clicked download link beside com.sap.portal.navigation.contentarea.par.bak file.
3. downloaded/saved to my desktop
4. Now I have file com.sap.portal.support.browse.default on my local machine.
5. Right click on this . default file and select Add to "com.sap.portal.support.browse.default.rar" --- this is the important step...*
6. Now you have com.sap.portal.support.browse RAR / ZIP file (no extension will be added, you can check it by file format).
7. Keep on double clicking on rar file till you see .bak file.
8. Once you are at / you see com.sap.portal.navigation.contentarea.par.bak then right click on this file and select "Exctract to specified folder" ...
9. Change the path to where you want to store .bak.
10. rename it to .par by removing .bak.
That is it... its all yours to modify/customize...
Hope this is clear to you.... let me know If you see anymore issues.
As you asked for... I have done it in my system and writing it to you....
-PradeeP -
Hi,
I would like to modify the toolarea of our SAP Enterprise Portal. Basically, I just want to move the tools to the right hand side.
<b>Problem Description</b>
According to several threads I found on sdn
- How to modify the header
- copy and rename par-file?
it should be fairly simple to modify the tool area.
- download com.sap.portal.navigation.toolarea.par from portal server
- import the downloaded par file into your NetWeaver Developer Studio
- Change the ToolAreaiView.jsp in project folder dist/PORTAL-INF/jsp
- Save changes
- Deploy project to the portal server (>File>Export>Par File><Name of your project>>Next>...)
- Remove the standard Tool Area iView from your Framework page
- Create a new iView from your uploaded par file (chose default component)
- Add new created iView to your Framework page
Done, you should see your customized tool area. Unfortunately I encounter a Portal Runtime Exception (Page could not create the iView). I did exactly as described above.
- I downloaded the com.sap.portal.navigation.toolarea.par.bak file from >System Administration>Support>Portal Runtime>Browse Deployment>ROOT>WEB-INF/deployment/temp.
- Extracted the com.sap.portal.navigation.toolarea.par after changing the downloaded files file extension to zip
- Imported the extracted par file into Netweaver Developer Studio under a new project name
- Found the ToolAreaiView.jsp in project folder dist/PORTAL-INF/jsp
- Did NO changes
- Exported the project into a par file and deployed the par file to the portal successfully.
- Removed the old Tool Area iView from the Framework page
- Created a new Tool Area iView from my uploaded par file (default component)
- Added the new created iView to the Framework page.
- I logged on again and instead of the Tool Area I see an error message
<i>Portal Runtime Error
An exception occurred while processing a request for :
iView : pcd:portal_content/sdm_Germany/de.sdm.kellermann.folders.home/de.sdm.kellermann.folders.coreobjects/default/frameworkPages/de.sdm.kellermann.coreobjects.frameworkpage/de.sdm.kellermann.iviews.toolarea
Component Name : null
Page could not create the iView.
See the details for the exception ID in the log file</i>
<b>Background information</b>
J2EE Engine: 6.40 PatchLevel 89291.313
Portal: 6.0.11.3.0
Browser: Microsoft Internet Explorer 6 SP2
NWDS: 2.0.11
Any ideas what I did wrong? I appreaciate any kind of help.
Best regards,
MartinHi Yoav,
thank you for your swift response. You were right. I do not know why but after I imported the downloaded par file into NetWeaver Developer Studio, the new created project did not contain the jar files, which come with the par file. I added the jar files manually to the project, put them into the project's build path and instructed the NWDS to put them into the par file which I deployed to the portal server.
Afterwards I completed the routine described in my first post and everything worked out. Thanks a lot for that hint.
By the way do you know how to instruct NWDS to include the jar files automatically during an import?
Best regards,
Martin -
Hi all,
I must to deploy the "com.sap.portal.navigation.masthead.par" from Portal 7.0 to Portal 7.30
I'm doing the following steps:
- Convert .par to .ear
- Import .ear to NWDS 7.30
- Deployment perspective > Import > File System > com.sap.portal.navigation.masthead.ear > Start
Results log:
S U M M A R Y
~~~~~~~~~~~~~~~~~~~
Successfully deployed: 0
Deployed with warnings: 0
Failed deployments: 1
~~~~~~~~~~~~~~~~~~~
[ERROR CODE DPL.DCAPI.1031] AllItemsAlreadyDeployedValidationException.
Reason: ASJ.dpl_dc.003456 All batch items are marked as AlreadyDeployed because of Version check.
1. File:D:\Documents and Settings\corellavpd\Escritorio\com.sap.portal.navigation.masthead.ear
+ Name:com.sap.portal.navigation.masthead+
+ Vendor:sap.com+
+ Location:SAP AG+
+ Version:1+
+ Deploy status:AlreadyDeployed+
+ Version:LOWER+
+ Description:+
+ 1. Already deployed component has version:7.3005.20110929162215.0000+
How can I deploy in Portal 7.30 an older version of "com.sap.portal.navigation.masthead.par" ?
Thx!
M.
Edited by: ALL NEW Arinso on Nov 17, 2011 12:54 PMHi Detlev,
Thanks so much for your reply. Regarding "Create Portal Archive (EAR File)" everything is understood, thanks! In NWDS 7.3 everything must be deployed via .ear file
Regarding the libs... yes, of course I know I compile the sources against some libs Then, I'm gonna type it an example:
- NWDS 7.0 > import com.sap.portal.navigation.masthead.par
Everything is ok and working. Now, the same in 7.3:
- NWDS 7.30 > import com.sap.portal.navigation.masthead.par > LogInRedirect.jsp > exactly the same code as NWDS 7.0 (of course), but with errors in lines:
<%@ page import = "com.sapportals.portal.navigation.*" %> >>> The import com.sapportals.portal.navigation cannot be resolved
<%@ page import = "com.sapportals.portal.prt.runtime.PortalRuntime" %> >>> this is resolved correctly into SAP_EP\resources\prtapi.jar
I understand I must to add the corresponding libs for "com.sapportals.portal.navigation.*" to be used... but how I could know which one and where is located? I hope I'm explaining myself clear...
Thx!!
M.
Edited by: All NorthgateArinso on Nov 23, 2011 4:47 PM -
Cannot find com.sap.portal.navigation.masthead.par
Hi,
I want to modify the master head of my portal.For that i downloaded the ZIP file form
SystemAdmin>Support>Portal Runtime->Browse Deployment>com.sap.portal.navigation.masthead.par.bak
i can able to download as a ZIP file.When i extract this file i`m not able to see the com.sap.portal.navigation.masthead.par.bak file.I can able to see CSS,META-INF,PORTAL-INF only.Also inside PORTAL-INF>Private>lib-->com.sap.portal.navigation.masthead_core.jar file.
PLZ help me outHi Arun,
When try to import .PAR into your NWDS you are getting this error "com.sap.portal.plugins.config-archiver caused an exception during the Unpack Operation"
Do you have WINZIP or WINRAR installed in your PC?
I think WINZIP or WINRAR should installed on ur desktop for extrating PAR file.
Becuase if your PAR file containing some .jar file then you need copy n paste them manually to the new project you have created from PAR file.
Please check this thread for same issue [HELP Link|invalid CEN header ( bad signature ) ]
Hope this will helps you.
Thanks
Arun Jaiswal -
Please send me com.sap.portal.navigation.masthead.par.bak
Hi all, My work is to import the masthead.par file to eclipse and modify it and then to re-deploy it into portal. But i don't have access to <b>com.sap.portal.navigation.masthead.par.bak</b> file. So, can any one send it to me please.......
My email id is [email protected]
Thanks in advance.....
bye
VIJAYHi Vijay,
first, welcome on SDN!
About your question: It is quite critical to use some PAR of somebody else. You didn't give your version (SP / Patch Level), and deploying a masthead of a different version may end up in serious trouble, especially if you didn't backup your original version (which you have not, for you say you have no access...).
If
> My work is to import the masthead.par file to eclipse
then you should be provided with the PAR of have access to it. It is to be found on the server under .../WEB-INF/deployment/temp.
If you don't have physical access to the server, you may also get it through the portal: System Administration - Support - Support Desk - Portal Runtime - Browse Deployment - [browse to the path given above, download the PAR]. Please have in mind that you're downloading a ZIP, from which you first will have to extract the PAR.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance! -
Hello,
We need some help because we get 'Portal Runtime error: iView: N/A Component Name:N/A' error when trying to access portal logon screen.
This is what we've done:
We've modified com.sap.portal.runtime.logon.par file and we've uploaded it but it doesn't work. Because of the error, we've overwritten this file with the original one but now it's imposible to access portal.
The situation it seems to be like before the modification of the .par file but we get the same error and can't access portal.
Please, do you know what could be the problem?
Thanks in advanceHi Belen,
Here are the steps you would need to take
1. import the original par file into the NWDS and name the project as
com.sap.portal.runtime.logon
2. Make sure the project name is com.sap.portal.runtime.logon
3. use winzip/winrar to extract the com.sap.portal.runtime.logon.par file in
a local directory
4.Under the lib you would find two jar files copy them and paste them in your project
under dist>PORTAL-INF>lib directory
5.move the files cert....till umResetPass....jsp into the PORTAL-INF directory
6. export the par to the server in question
7. restart your server
This should solve your problem..
Thanks,
Gokul -
Com.sap.portal.navigation.masthead.par.bak
I have been given the task of creating a new masthead of the portal but do not have access to the files, could someone please send me: com.sap.portal.navigation.masthead.par.bak
I have tried to get this through Portal Runtime -> Browse Deployment but I always get an error when I try to upload the PAR file into NWDS.
Thank you in advance, if anyone sends it to me please post here also so others know (And so i can reward points)
Michael
[email protected]Hi Michael,
it's quite dangerous just to use "some" navigation.masthead, maybe different from you SPS/Patch version.
The question is:
> I always get an error
> when I try to upload the PAR file into NWDS
Why that? Have you been aware that the downloaded file is a ZIP which <i>contains</i> the PAR in question?! (So you first have to unpack the PAR, which you want to import afterwards).
If yes, did you choose File -> Import -> PAR-File?!
If yes, what kind of error came up?
Hope it helps
Detlev -
Com.sap.portal.navigation.mimeservice.par.bak
Hi all,
can someone provide some information to me what the file com.sap.portal.navigation.mimeservice.par.bak contains exactly? It's ship by SAP in the sap portal.
Thanks a lot
Regards,
AndreasThis package contains the pictograms you can attach to portal objects like Page and Worksets.
-
Hi All,
Iam getting this error while trying to change "com.sap.portal.navigation.masthead.par" within portal. I have updated the HeaderiView.jsp and then saved the PAR file and uploaded the file. It was successful upload from Administration console. But after I logged into portal again, I got this error and even though I tried to revert back the changes, it still gives the same error. Has any one faced similar issue? We faced this during the IE8 (Internet explorer 8) upgrade to SP 27 in sap portal.
Thanks.
#1.#0003BA4D72F200540000000300003DEA00049C4FAA821F4E#1297765883836#com.sap.portal.prt.runtime#sap.com/irj#com.sap.portal.prt.runtime#O000001496#192##n/a##bbf9eef438ee11e08722000035d6a152#Thread[PRT-Async 2,5,PRT-Async]##0#0#Error##Java###10:31_15/02/11_903258450
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
Component :
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:251)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.refresh(PortalComponentContextItem.java:267)
at com.sapportals.portal.prt.core.broker.PortalComponentContextItem.getContext(PortalComponentContextItem.java:312)
at com.sapportals.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:385)
at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:418)
at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:372)
at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:234)
at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:576)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:725)
at com.sapportals.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:706)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.navigation.PortalLauncher.doOnNodeReady(PortalLauncher.java:218)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:547)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sap.portal.navigation.Gateway.service(Gateway.java:101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.getDeploymentDescriptor(PortalApplicationItem.java:1622)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getConfiguration(PortalComponentItem.java:1022)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.refresh(PortalComponentItem.java:274)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.getComponentInstance(PortalComponentItem.java:729)
at com.sapportals.portal.prt.component.PortalComponentContext.getComponent(PortalComponentContext.java:103)
at com.sapportals.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:242)
... 42 moreThanks Raghu.
I have tried that option as well. But, when I uploaded the PAR file from DEV to Sandbox environment, the header did not work, but I identified that the "portalapp.xml" file is only partially deployed (even though the PAR that is used for Upload (using Admin Console) contained all parameters. I could not understand why the portalapp.xml is only partially deployed.
After deployment the portalapp.xml has only 3 properties within it : ClassLoadingPolicy, value 5.0, DeploymentPolicy, value 5.0 and AuthenticationPolicy, value 5.0,
and all other attributes that are part of the uploaded par file are not present after deployment within "PAR directory within portalapps directory".
Edited by: jakk on Feb 16, 2011 5:17 PM
Edited by: jakk on Feb 16, 2011 5:19 PM -
Cannot find "com.sap.portal.navigation.masthead.par.bak"
Hi,
I am working on SAP Portal EP7 SP13
I have been browsing System Administration -> Support -> Support desk -> Portal Runtime -> Browse Deployment and I could not find "com.sap.portal.navigation.masthead.par.bak"
Is this file still existing in SP 13 ??
Thnaks for your helpHi,
The file is available under System Administration -> Support -> Support desk -> Portal Runtime -> Browse Deployment->ROOT/WEB-INF/portal/portalapps/com.sap.portal.navigation.masthead
Hope this helps.
Regards
Srinivasan T -
How to change com.sap.portal.usermanagement.admin.par file
Hi
Requirement is
1)using com.sap.portal.usermanagement.admin.par file provide the UserUpdate view(With out developing ur own GUI and code to update the userprofile).
2)Department and Position is not visible to the user at the time of updation.
so to achive this i imported com.sap.portal.usermanagement.admin.par file into NWDS after that i have confiused to change the files. can u give the procedure to follow the things.
Regards
Srinivasu.yHi,
Your question is not clear. Second, people are bound to get offended if words like "Urgent Requirement" or words like "clearly state the files " is used.
Please clearly state the requirements. If people know the solution they would answer it. This is not a support portal , so please make sure that you do not offend the community.
Go through this link
<a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=285259&tstart=0">Rules of Engagement</a>
And do state your question clearly.
Thanks and Regards
Bharathwaj -
Hi all
now i am customizing the Masthead par file by downloading the relevant par file from the server. after i intergrated the code into NWDS then i started to change the code in the headerIview.jsp in masthead.
now i removed the design bar as well as standard SAP logo(right end) sucessfully.
now i want to place our client in the place of design bar in the masthead.if i want to do the same where will i copy our client logo i mean in which folder in the workspace??
and also let me know where can i change the background color of welcome area and functional areas in the masthead into white color.
if u send with sample code then it is useful.
always i will reward max points.
note: i am following the masthead customization thru par file not from theme .
dont answers to change the logo from theme in portal. i want to change thru par file.
Regards
SunilHi steelman
can u also tell me how to change the background color of welcome and functional area in the masthead into white color.
it is useful if u send the sameple code on this??
for this color change can we change in the CSS file or in JSP file??
if in CSS can u tell me how to do that i mean how to add that
standard CSS file
.activeLink {
font-family:verdana;
font-size:0.7em;
cursor:pointer;
text-decoration:none;
color:rgb(32,75,162);
.activeLink A:link
.activeLink A:visited
how to modify the above CSS code if i want to change the background color of welcome abd fucntional area into white color??
Regards
Sunil; -
Hi experts,
We had an issue with portal access. I wonder if portal is venerable for security threats?
Could you please let me how to restrict the unauthorized users (anonymous user) to the portal URL.
https://HOST:50001//irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default .
Appreciate your help.
Regards
MarutiHi Maruti,
Hope you are doing good.
Can't you just amend the portal permissions so that this access is not possible.
The PCD location should be:
com.sap.portal.system/security/sap.com/NetWeaver.Portal/no_safety/com.sap.portal.navigation.portallauncher....
Hope this helps.
Thank you and have a nice day!
Kind Regards,
Hemanth
Maybe you are looking for
-
How to measure the number of pixels involved in a selected area of a digital photo?
Hi everyone. I want to determine the number of pixels in an object that is part of a digital photo. I use cameras to film chunks of ice breaking away from ice cliffs or tidewater glaciers. I want to know the size of the ice chunk that my digital phot
-
Flash Player is causing my Web Pages to flash like crazy Need help!
I need help, I'm running a computer with Windows 98 4.10.1998 and Running Internet Explorer ver. 6.0.2800.1106IC I had some problems I have fix eveything but when I got to a web page it wants to install and run flash player if I do Install and run, a
-
Saving data from loops to excel file.
Hello all, Okay I am jammed up on this topic. What I have is two while loops in parallel and I need to save the data from each loop in the same spreed sheet but on different pages. I don't know if this is possible. If not then just one spreed she
-
when i connect my ipad to my Mac to update the ipad to IOS7 nothing happen. how can i solve this problem Many thanks, Paul
-
OS X 10.4.9 The Whine Is Back
The whine has reappeared on my MBP after the update. Its a high pitched electrical sound from the area near the power connector.