Changing par file link of an iView
Hi All,
I created an iview(MyiView) based on a par file,say SamplePar1
Now I want to use the same iview(MyiView) to link to other par file say SamplePar2.
i.e.,I want the output of second par file to be
shown in the iview(MyiView) instead of first par file.
I saw a property of an iview CodeLink,which is pointing
to the par file.But it is uneditable.How can I change
this property value.so that it points to another par
file.
Any help,
Thanks in Advance
SANTHOSH
Hi Santosh,
you cannot, at least not via UI. An iView is to be seen as an instance of a component (with a certain parameter set). So if you create an iView, it's somewhat analogous to <i>SamplePar1ComponentAiView MyiView = new SamplePar1ComponentAiView(myParameters)</i>. Now you want MyiView to be of type SamplePar2ComponentBiView. And this shall not be possible.
Maybe you can do it programatically via direct PCD access. But what's the reason for this? Wouldn't it be easier to create a new iView built on a component of SamplePar2?!
If you want at runtime redirect to another component, you can achieve this by redirecting from SamplePar1ComponentA to SamplePar2ComponentB.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN, as others mentioned already! Thanks in advance!
Similar Messages
-
How to find the PAR file for standard iviews??
HI all,
I am trying to customize some screens provided by the standard EP portal. But i am not understanding which will be the PAR file which has code for these iviews.
For example, in the "Approval screen for New user registration" has an iview which displays the info given by the user(seeing which user admin will either approve or reject the new user). I need to change this.
Also the screen where new user enters his information(when the company feature is enabled,it shows a second screen where Contact info of the user, etc. are asked) , needs to be changed which also some iviews.
Please help me in finding the right PAR file and the JSP which needs to be edited for this purpose (and how to find these in general for any standard screens)
Regards,
NarahariHi Narahari,
--and how to find these in general for any standard screens)
For getting the right par file for any standard iviews, Check out the property named <b>Code link</b>, which is there in the property list of every iview.This will give you a clear cut idea on which PAR file you have to edit to obtain the desired result.
Regards
Rajeev
Do award points for helpful answers in SDN. -
IView Creation Based on available par file in Net Weaver
Dear All,
We Have Developed iViews based on par file creation in EP5.
We have used HTMLB tag libariries and used JCO to Call the RFC enabled function modules and BAPIs from ABAP..
but now we want to migrate the all our iviews which are running successfully in EP5 to Netweaver Component of EP6.
we have got netweaver installed but we were not able to find how to upload par file and create iView in Netweaver EP6...
in EP5 we have simple procedure to create iViews .. we will login as a administrator and there is an option for parupload under content administartion ... we will upload par files and create iviews but we are not able to find the same and simple procedure in Netweaver EP6
we have been struggling for several days and exploring netweaver EP6 documentation..
can any one throw some loght on it how to create iviews based on available par files in EP5..
please provide me detailed explanation or steps or any clear cut document to create iViews in EP6 of netweaver component. your help would be appreciated to great extent
Thanks and Regards
Prasad.YedlapalliHi Prasad!
If u want to Create a iview from the par file means Goto Content administration > Portal Content > Right Click Create a floder.After Creation of Folder.
Right Click on Folder > Click on iview then select the following option
>> Portal component - create an iView from a portal component contained in a deployed portal archive (PAR)
then Select the par file , then fill general iview properties and finally click finish.
If you want to upload into portal, then u follow the below Navigation.
After u deployed ur Application par file from NWDS.
Open the Portal Goto System Administartion > Support > Click on Portal Runtime >Administration Console, then Browse the Par file and click on upload.
Next time onwards u can able to see ur par file in the PAR file list , while creating the iview from the PAR file.
Thanks & Regards
Ganesh
(Points are always Welcome) -
Multi-Language - How to change labels and titles of standard iViews?
Hi Portal Content Management Gurus,
I would like to know how to translate the text parts of the standard SAP provided iViews in order to support multiple languages?
I tried the Translation Worklist Coordination and Translation Worklist facilities provided in the portal. But not able to figure out where I am making the mistake. I am not able to get the translated iViews. I also checked the "include dependent objects" option. But not able to find out where will the generated resource bundles will be available.
Can any body guide me?
Thanks & best regds,
AlagHi Saravanan,
I just tried changing the browser language. I am not able to see the "Content Provided by SAP" folder itself under the "Portal-Content" directory.
(1) Is there anything else I need to do in order to see that folder?
And when I try previewing the iViews after changing the browser language, still the iView content is displayed in English.
(2) Can I make a copy of this iView and edit change the language property to some other language say "German"? In that case, I will have to maintain multiple copies of the same object. But I tried creating a delta link copy of the object. But was not able to edit and change the language.
(3) Or do I have to edit it in the par file of the corresponding iView?
best regds,
Alagammai. -
Error while uploading a PAR file
Hi All,
I'm having an error when i try to upload a PAR file from Portal>Java Development>Development
The strange is that i am having the error in QA environment, in development environment i can upload it without any problem, and also it is not the first time that I upload a PAR to QA.
I hope someone can help me, i really don't know what to do...
Regards,
Nicolás.-
Here is the error:
May 8, 2009 11:46:34 AM # Client_Thread_17 Fatal Application upload failed: InvoiceTool.par
com.sapportals.portal.prt.runtime.PortalException: archive: InvoiceTool.par
at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.putArchive(ApplicationRepositoryService.java:309)
at com.sapportals.portal.prt.deployment.DeploymentManager._uploadArchive(DeploymentManager.java:700)
at com.sapportals.portal.prt.deployment.DeploymentManager.uploadArchive(DeploymentManager.java:396)
at com.sapportals.portal.prt.deployment.DeploymentManager.uploadApplication(DeploymentManager.java:285)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doUpload(ArchiveUploader.java:115)
at java.lang.reflect.Method.invoke(Native Method)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleRequestEvent(AbstractPortalComponent.java:700)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:412)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:250)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:351)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:628)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:672)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:314)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:121)
at com.sapportals.portal.prt.deployment.ArchiveIntrospector.getDeploymentDescriptor(ArchiveIntrospector.java:54)
at com.sapportals.portal.prt.deployment.DeploymentManager.getDeploymentDescriptor(DeploymentManager.java:942)
at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.putArchive(ApplicationRepositoryService.java:273)
at com.sapportals.portal.prt.deployment.DeploymentManager._uploadArchive(DeploymentManager.java:700)
at com.sapportals.portal.prt.deployment.DeploymentManager.uploadArchive(DeploymentManager.java:396)
at com.sapportals.portal.prt.deployment.DeploymentManager.uploadApplication(DeploymentManager.java:285)
at com.sap.ip.portal.admin.portalanywhere.ArchiveUploader.doUpload(ArchiveUploader.java:115)
at java.lang.reflect.Method.invoke(Native Method)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleRequestEvent(AbstractPortalComponent.java:700)
at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:412)
at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:250)
at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:351)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:628)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:229)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:555)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:833)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:672)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:314)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)Hi Nicolas,
In you development server,
1. Create a new iview (With new from PAR file option). The iView wizard gives you the option to choose the PAR file available on your development portal.
2. Now create a Transport Package. Navigate to System Administration - Transport - Export.
Navigate to your Transport Folder in PCD.
Now Create a new Transport Package and add the iView to the package (iView created earlier from PAR file).
3. Now go to Transport Package properties and Make sure, you are changing the property id prefix to * .
This will include every object associated with the iView while manually exporting.
4. Now click on the EXPORT button. This will export the required PAR file with. This in turn create an EPA file. save it to your desktop.
5. Now in Quality server,
Do the manual Import.
Navigate to System Administration - Transport - Import.
Browse the EPA file on your desktop and say IMPORT.
This way, you will be able to get your PAR file as well as your required portal object (here the iView) in quality server.
Hope this helps,
Cheers!!!!!
Biroj...
Points for useful answer will be appreciated.
Edited by: Biroj Patro on May 12, 2009 8:40 PM -
Hello,
an upload of a new PARFile ends with the foll. error.
Anybody seen before?
com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.updateObject(ApplicationRepositoryService.java:717)
at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.storeApplication(ApplicationRepositoryService.java:389)
at com.sapportals.portal.application.applicationrepository.ApplicationRepositoryService.putArchive(ApplicationRepositoryService.java:306)
... 34 more
Caused by: com.sap.sql.log.OpenSQLException: Cannot assign a java.io.ByteArrayInputStream object of length 0 to host variable 18.
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
at com.sap.sql.jdbc.common.CommonPreparedStatement.setBinaryStream(CommonPreparedStatement.java:838)
at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setBinaryStream(PreparedStatementWrapper.java:401)
at com.sapportals.portal.pcd.pl.AttributeHeadersTable.storeAttribute(AttributeHeadersTable.java:431)
at com.sapportals.portal.pcd.pl.AttributeHeadersTable.insert(AttributeHeadersTable.java:248)
at com.sapportals.portal.pcd.pl.PlObject.save(PlObject.java:541)
at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:616)
at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:640)
... 54 moreHi Nicolas,
In you development server,
1. Create a new iview (With new from PAR file option). The iView wizard gives you the option to choose the PAR file available on your development portal.
2. Now create a Transport Package. Navigate to System Administration - Transport - Export.
Navigate to your Transport Folder in PCD.
Now Create a new Transport Package and add the iView to the package (iView created earlier from PAR file).
3. Now go to Transport Package properties and Make sure, you are changing the property id prefix to * .
This will include every object associated with the iView while manually exporting.
4. Now click on the EXPORT button. This will export the required PAR file with. This in turn create an EPA file. save it to your desktop.
5. Now in Quality server,
Do the manual Import.
Navigate to System Administration - Transport - Import.
Browse the EPA file on your desktop and say IMPORT.
This way, you will be able to get your PAR file as well as your required portal object (here the iView) in quality server.
Hope this helps,
Cheers!!!!!
Biroj...
Points for useful answer will be appreciated.
Edited by: Biroj Patro on May 12, 2009 8:40 PM -
Exporting a .par file from portal
hello, help me please
I have a standard iview in a business package employee self-service
I need find the .par file to download this iview then import with Netweaver developer studio, I think is not created, I try in
"System Administration"==>"Support"==>"Support Desk"==>"Portal Runtime"==>"Browse deployment"==>"ROOT"==>"WEB-INF"==>"deployment"==>"pcd
but is not in there.
anyone can help me please.
Thanks.Hi,
ESS content is developped in PAR... Basically these are more of Development Components(DCs)... In order to customize them , you should have NWDI...
Below blog explains how to customize....
ESS/MSS Customization Make it Simple
If in case your customisation is minor like customizing the text, hiding/un hiding the links, then
go to the location whrere your ESS iViews are stored, click on Preview.
It will open the iView.
Then do a (Cntrl+Right Click) on the link/image which you want to hide/unhide.... u will get the options...
Regards,
Srinivas. -
Hi,
I made changes to par file after importing in on NWDS. Now Im unable to export the file due to an error in the NWDS:
" Operation failed: Please make sure the server is running or check log for more details ". Can someone can tell me what the problem could be? The server is running and the all the parameters are correct.
So now, Im trying to upload it directly through System Administration -> Support -> PRT -> Admin Console -> Archive uploader. But the changes I made to one of the properties file using NWDS is not reflecting.
I might have missed something.
I have not used the direct upload earlier, so can someone guide me through this?
Thanks and Regards,
ReenaHi Darrell,
Thanks for your reply.
I unchecked the 'Deploy par' checkbox and built the par file. Then I uploaded the par file again, refreshed the iview and previewed it. But no changes are reflected.
The change I made was, I removed the WELCOME_CLAUSE in the 'headerIview_nls_en.properties' file. But the welcome text still appears on the masthead iview.
I am not sure if im going wrong in the code or in the method of using the par file.
Any pointers regarding this is appreciated.
Venkat, I have checked my port number, host name and other parameters thoroughly. Still same error
Thanks in advance,
Reena -
How i will add new link in masthead iview
Hi,
i want to add a new link in masthead iview,
e.g. i want to add aboutus link .
so what could be the code/procedure for header.jsp.
Please help .
Thanks
SanjayHi Sanjay,
-The three main files in the masthead are HeaderiView.jsp,LogInRedirect.jsp and LogOffConfirmMsg.jsp
-The HeaderiView contains the masthead users see when they are in the portal.
-Once you added your link to the HeaderiView.jsp,upload the par file.
-Once the par file is uploaded to the portal,you need to create a masthead iview based on this par file.
-Then this iView will be used for masthead on the framework page.
-create a folder in portal catalog-right click the folder->create a iView from par->select your own masthead iView->choose next->choose default component and click next->Enter the properties like-iView name,iView ID,prefix,Save as -iView and click next>save.
Here is the important step :
Add the iView to the framework page,then only it will be visible to the end users.
Browse the ramework page being used by the portal in the portal catalog
Right click on he page->edit->Page Layout->Select masthead iView on the framework page and click remove.
now iViews(Right click)->Widgets_masthead->Add iView to page->Delta Link->Position the masthead.->Logoff and logon to the portal.
It should work fine for you now I guess.
Thank you.
Regards,
Karthick -
Par file get demage after import it to NWDS
Hi everybody,
i if download a par file from portal and import it as par into NWDS i cannot run the application in the portal
again after deploying. For example, i have downloaded com.sap.navigation.masthead.par. I rename it and
import it into NWDS. I deploy the par file and create a iView which was added to my Default Framework
page. I get the following error:
Portal Runtime Error
An exception occurred while processing your request
If i did not import the par file into NWDS and edit it manually i can deploy and run it without a problem.
regards,
SeedHi..
Refer this for Successful importing of .par files..
[Re: importing a .par file]
Also
Just right click on project to properties->java build path-> add external jars add the jar file servlet.jar.
You can download servlet api jars from [http://java.sun.com/products/servlet/download.html]
In addition to this,
Go to Navigator tab of the same perspective and add the same jar to lib folder..
Hope it helps..
Thanks.... -
How to use par file as a iView template
Hi All,
I created a PAR file for Hover TLN menu from ne of the blogs in SDN.
I have uploaded it into EP and could run it sucessfully.
Now I need to use this par file as a ivew template to host my webdynpro solution is it possible if so how to do it? Basically I downloaded URL Iview par file into nwds and added jsp files as per hover tln menu blog. so i want to use this modified par file to host google page with hover tn menu.
your help is well appriciated.
Thanks & Regards,
Sai krishna
Edited by: Konchada Sai Krishna on Feb 9, 2009 2:40 AMHi Konchada,
Check these links....
http://help.sap.com/saphelp_nw04/helpdata/EN/f5/eb50360e6a11d7b84900047582c9f7/content.htm
This is a little bit more elaborate..
http://help.sap.com/saphelp_nw04/helpdata/EN/c4/fd584289e59041e10000000a1550b0/content.htm
Thanks & Regards,
Meenakshi -
Pass iView property as parameter to JSP in PAR file.
Hi All,
I have a custom created PAR file in which there is a JSP page there is a variable which I need to provide to users as a configurable property of the iView. So that when a user configures a value to that defined property to the iView, my JSP from the PAR should automatically pick this value and carry on the processing further as required.
I have done some research on my behalf, which even though turned out just half of the solution, but still even then the code does not seem to work. For reference, please see link below:
[Reference Document|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?QuickLink=index&overridelayout=true]
I need this with very critical urgency, please, kindly help.
Thanks and Regards,
Abhishek Goel.Hi Prashant,
I am sincerely thankful for all your efforts so far, but I still have a little problem with which I am stuck and somehow I think I am doing something terribly wrong.
Just to test, I have included a button on the JSP page and on the click event of that button I have written my code in javascript as below:
IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
IPortalComponentContext componentContext = currentRequest.getComponentContext();
IPortalComponentProfile profile = componentContext.getProfile();
var xyzVal = profile.getProperty("xyz");
But I am still not getting the desired value in the xyzVal variable. Please advise how to go about the code.
Also i have tried writing this code in a Java Class file. Even after making the required imports I am getting am error in the statement as indicated below:
IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
Thanks,
Abhishek Goel. -
How to add a par file to iview in EP 5.0
Hello,
I have successfully uploaded a PAR file in my portal landscape which is EP 5.0.
Now i want to link this PAR file to an iView in EP 5.0 as we have only .NET and Java iViews available.
Regards,
ShaileshHello Shailesh,
I think , here is the way to create iview to the deployed par.
if you have access to content administration, the goto
> Portal Content (go the context menu and select > New from Par-->iview )
Then go through the below steps in new iview wizard
Step1 : Portal Archive Selection ( select the deployed par)
Step2: Portal Component Selection (choose the portal content)
Step3 : General Properties (like iveiw name, ID ,Prefix & description)
finish the wizard, iview will be created in portal content ( we can preview on context menu of the iview)
Regards,
Madhu -
Unable to find Par file while creating iview in the template
Hi All,
Iam trying to change the Masthead iview, i deployed in NWDS and successfull. but while creating iView in the portal i could find the par file in the template.
And when iam creating sample Portal application it is visible in template.
Setting in the NWDS are correct. Can any one suggest what is happening here.
Regards
DVHi DV,
don't try to create an iView from template, but one from par. In the list you'll find your project name and within the project - voila: your portal application.
HTH,
Carsten -
Par file does not show up in iView
Hi,
I created a small project and exported as PAR file via system admin -> support -> admin console -> portal runtime -> upload .
The file is loaded into the server but when I go to create a iView based on this PAR file my PAR file does not show up as an available option. Am i doing something wrong or missing a step?
thanks
Salimhttps://www.sdn.sap.com/irj/sdn/collaboration
Please find the new link.
Thanks
Subramanya
Maybe you are looking for
-
Hiding Entire Row having Null and default valu in SSRS Using Expression
Hi, In my reports having number of rows and three columns.The first columns value will be different for each and every row and it will be hard corded to the text box. My question is how to hide the particular row second and third column suppose to
-
Mid-2010 Macbook Pro Crashes Often (I know)...
Hi. My Mid 2010 Macbook Pro keeps crashing. Possibly related to the installation of OS X Mavericks, but from the other threads it sounds like a RAM or logic board issue. I would appreciate the help. Here is the panic log: panic(cpu 1 caller 0xffffff7
-
I recently got an extension cord for my ipad charger and the first time I used it it worked and now when I plug it in to my ipad It doesn't do anything. What do I do?
-
Crystal Report Export & Printing Error in Windows 7 (SAP B18.81 PL09)
Dear Experts, I have installed B1 Client on windows 7 pro every thing working fine but when exporting or printing crystal report B1 goes on not responding. These crystal reports are part of Add on. In Standard B1, exporting of C
-
Action method called before the listener
hi all; i have a command_link as follows: <h:command_link action="#{someBean.someMethod}" > <f:parameter name="param" value="0"/> <h:output_text value="#{someBean.someProperty}"/> <f:action_listener type="com.myListener" /> </h:command