Import JavaScript in a Portal iView?
Hi everybody,
I would like to know if it could be possible to load a JavaScript in a portal web page directly.
Thanks a lot.
Kind Regards.
Hi Veera,
Thank you very much for your explanation, the reason why I am asking this question is about these two question I have received:
1. We need to load our JavaScript in portal web page. As I know there is iView portlets we can develop for portal. Can we load our JavaScript using an iView? Is there any other way to run our JavaScript in portal page?
You gave me a very good answer to this question
2. If we succeed to load our JavaScript in portal page, we will have to setup proxy to redirect our AJAX calls to CUCM, because of the cross-browser policy of the browsers.
I have no idea what this question is about because of I though that AJAX is supported by SAP Portal.
Would you mind to help me to understand the meaning, please?
Thank you a lot.
Kind Regards,
Victoria
Similar Messages
-
Automatic Height Type on Portal Iviews
Hi
We are developing a new look and feel for the company enterprise portal and we are facing a problem regarding automatic height off the content area and respective IViews.
Our Portal page should automatic adjust to the current page content. To achiev this we are using automatic height on Innerpage Page and respective Iviews.
The problem is on almost every Portal IView the height value of the contentarea is incorrect. For example the KM Navigation IView shows up with 50px making it impossible to work with.
This problem seems to only happen when there are a iframes inside the content area iframe.
The height value returns a wrong value probably because it does not know the respective iframes height values:
Take this example:
Content Area Iframe
div with 20px
div with 40px
iframe
The result would be similar to a content area iframe of height 61px or so.
I suspect the error is in one of the following javascript's.
- application pagebuilder - pagesupport.js pagesupport.getHeight
- application contentarea - workarea.js workarea.resize
We are on 7.0.1 SP08
P.S The domains of all iframes are the same as they are all PRT IViews
Thanks
Edited by: Phatinox on Sep 1, 2011 6:49 PMWe also faced same issue last year. In our cases, all iviews were custom PRT iviews so We used embedded iview option to get rid of iframe and hight issue. using embedded over iframe gave us performance improvment as well during our load test.
Nitesh -
Import Crystal Report to Portal
I'm investigating the possibility of displaying crystal reports in Portal iViews. Those crystal reports will be reading off BW and R/3 data sources. I've run into different questions and they are:
1) Should I save the crystal reports in BW repository or should I activate them and move them to Crystal Enterprise (i.e. which option is better? or do I not have a choice?).
2) Where should the authorization be handled? My guess is at the portal, am I right?
3) How to get crystal report format (especially font and background colors) to change with the portal style, if the user change it at run time.
4) and finally, has anyone gone through this before? if so, is there any resources or manual on the subject? please help.I have done this using the iview template that is in the "migrated ep5 content" folder. I am just using EP6 SP2. With SP4 (and maybe SP3?) there is a template.
1. I think the report needs to be saved in BW. It needs to be "published" as well. (See the BW documentation.)
2. I think the authorization needs to be done in the BW. The reports are assigned to a role. The role is assigned to a BW user. We are using SAPLOGONTICKETS, so the BW user id has a matching id in the portal. The passwords do not need to match. (Don't forget to export the portal cerificate and import it into BW.) That is if you want SSO to work.
3. Not sure about this one. I thought EP6 had something called "rendered iviews", but I can't find it. This is supposed to alter the look of a url iview to match the poral look. (I believe that a crystal report iview is basically just a url iview. It just calls a url http://crystal server/viewreport.csp(or jsp)?id=9999...etc).
4. Feel free to email me at [email protected]
You could just use a URL iview if you know the url of the report. The params are just filled out in the parameters of the iview wizard.
The BIG hurdle I had to get through was the creation of the system(and alias) for the server where crystal is. The system properties for Crystal are missing from EP6 until you get to SP4 or SP3. I had to copy the par for the SAP system and add new properties for Crystal ENterprise. (seerver, path, and protocol.) -
Error Importing a Transport in portal - Using custom role
Hello Everyone,
I have a custom role XYZ which has a few worksets copied (as delta links) from the standard System Administration Role. These worksets include Transport, Portal Display and Monitoring.
Now, I have assigned a user ABC the following roles:
1.Role XYZ
2.Content Admin Role
When the User ABC with the above mentioned roles, tries to import a transport package into the system he gets and authorization error. (This error does not occur if I assign the user Super Admin Role).
Error Details :
com.sapportals.portal.transport.RepositoryAccessControlException
Import data Access denied. (Object(s): pcd: ..
Object ID:
Transport File: ..
Original Exception:
com.sapportals.portal.pcd.gl.PermissionControlException: Import data Access denied. (Object(s): pcd: ..
at com.sapportals.portal.pcd.gl.transport.PcdGlTransportAdapter.checkPermission
at com.sapportals.portal.pcd.gl.transport.PcdGlTransportAdapter.startElement
at com.sapportals.portal.pcd.gl.xml.ContentHandlerManager.startElement
<b>Questions:
1. Is it really possible to have this functionality (ability to Import and Export without Assigning System admin or super admin roles) achieved?
(I went through a thread Portal role for transporting objects on SDN which discusses this scenario)
2. How should I check for additional authorizations required for Importing / Exporting Transport packages into portal. (without having assigned the super admin role or system admin role).</b>Thanks To all of you
Joan ThomasThanks for the inputs.
I have fixed the problem.
To assign content objects to a package, you need at least read permission for the objects to be assigned.
You can only import objects into the Portal Content Directory if you have read/write permission for each folder in the Portal Catalog where the imported objects will be stored.
To create a transport package in a certain folder of the Portal Catalog, you need read/write permission for this folder.
These 3 points helped me do the required.
Raj -
Problem with importing par file in portal server 6.2
Hi everyone,
I got the following error when trying to import IFRAME provider into portal server 6.2.
Operation failed.
ERROR: provider element has no version attribute
Below is the command I used. I run it as a file - I supply the password at the command line.
/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier,dc=com" password $1 IFRAMEProvider.par dc=accesscollier,dc=com provider=IFRAMEProvider.
This used to work in Portal Server 6.0. I looked through the Portal Server 6.2 Desktop Customization Guide and the Developer guide for portal 6.2 but did not find any reference to version number.
Thanks.
Klara Hribkova
IHi Ulf,
here is the command + options. It is in a file, I supply the password on the command line. This used to work fine with PortalServer 6.0.
!/bin/ksh
echo "----------------------------------"
echo "USE: import_providers.sh password "
echo "----------------------------------"
#echo "Importing IFRAMEProvider ..."
#/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscolier,dc=com" password $1 IFRAMEProvider.par
dc=accesscollier,dc=com provider=IFRAMEProvider
echo "Importing IFRAMECalendarProvider ..."
/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier,dc=com" password $1 IFRAMECalendarProvi
der.par dc=accesscollier,dc=com provider=IFRAMECalenderProvider
echo "Importing IFRAMEMailProvider ..."
/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier, dc=com" password $1 IFRAMEMailProvider
.par dc=accesscollier,dc=com provider=IFRAMEMailProvider
echo "Importing JSPWebAppProvider ..."
/opt/SUNWps/bin/par import verbose overwrite runasdn uid="amAdmin,ou=People,dc=accesscollier, dc=com" password $1 JSPWebAppProvider.
par dc=accesscollier,dc=com provider=JSPWebAppProvider
These are the errors I get:
# ./import_providers1.sh solurute
./import_providers1.sh: !/bin/ksh: not found
USE: import_providers.sh password
Importing IFRAMECalendarProvider ...
AUTHENTICATING
uid=amAdmin,ou=People,dc=accesscollier,dc=com
solurute
AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=IFRAMECalenderProvider.
Operation failed.
ERROR: provider element has no version attribute.
Importing IFRAMEMailProvider ...
AUTHENTICATING
uid=amAdmin,ou=People,dc=accesscollier, dc=com
solurute
AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=IFRAMEMailProvider.
Operation failed.
ERROR: provider element has no version attribute.
Importing JSPWebAppProvider ...
AUTHENTICATING
uid=amAdmin,ou=People,dc=accesscollier, dc=com
solurute
AUTHENTICATED - Setting DN - dc=accesscollier,dc=com.
Initializing for operation - dpnode=dc%3Daccesscollier%2Cdc%3Dcom,provider=JSPWebAppProvider.
Operation failed.
ERROR: provider element has no version attribute.
This is the build_par.xml file:
<?xml version="1.0"?>
<project name="Provider" default="all" basedir=".">
<property name="par.dir" value="./pars"/>
<property name="iframe.dir" value="iframeprovider"/>
<property name="iframecalendar.dir" value="iframecalendarprovider"/>
<property name="iframemail.dir" value="iframemailprovider"/>
<target name="iframe">
<jar jarfile="${par.dir}/IFRAMEProvider.par"
basedir="${iframe.dir}"
includes="**/*">
<manifest>
<attribute name="PS-Version" value="1"/>
<attribute name="PS-DefaultEntry" value="IFRAMEProvider"/>
<attribute name="PS-PBFileRoot" value="pbfiles"/>
<attribute name="PS-StaticRoot" value="static"/>
<attribute name="PS-DPRoot" value="dp"/>
<section name="dp/IFRAMEProvider.xml">
<attribute name="PS-EntryName" value="IFRAMEProvider"/>
<attribute name="PS-Include" value="pbfiles/providerClassBaseDir/k20portal.properties(1),com/hangingvalley/sunportal/util/K20PortalProperties.class(1),com/hangingvalley/sunportal/util/OrgProperties.class(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMEProvider/iframeedit.jsp(1)"/>
</section>
</manifest>
</jar>
</target>
<target name="iframecalendar">
<jar jarfile="${par.dir}/IFRAMECalendarProvider.par"
basedir="${iframecalendar.dir}"
includes="**/*">
<manifest>
<attribute name="PS-Version" value="1"/>
<attribute name="PS-DefaultEntry" value="IFRAMECalendarProvider"/>
<attribute name="PS-PBFileRoot" value="pbfiles"/>
<attribute name="PS-StaticRoot" value="static"/>
<attribute name="PS-DPRoot" value="dp"/>
<section name="dp/IFRAMECalendarProvider.xml">
<attribute name="PS-EntryName" value="IFRAMECalendarProvider"/>
<attribute name="PS-Include" value="pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMECalendarProvider/iframeedit.jsp(1)"/>
</section>
</manifest>
</jar>
</target>
<target name="iframemail">
<jar jarfile="${par.dir}/IFRAMEMailProvider.par"
basedir="${iframemail.dir}"
includes="**/*">
<manifest>
<attribute name="PS-Version" value="1"/>
<attribute name="PS-DefaultEntry" value="IFRAMEMailProvider"/>
<attribute name="PS-PBFileRoot" value="pbfiles"/>
<attribute name="PS-StaticRoot" value="static"/>
<attribute name="PS-DPRoot" value="dp"/>
<section name="dp/IFRAMEMailProvider.xml">
<attribute name="PS-EntryName" value="IFRAMEMailProvider"/>
<attribute name="PS-Include" value="pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframecontent.jsp(1),pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframedoedit.jsp(1),pbfiles/templateBaseDir/default/IFRAMEMailProvider/iframeedit.jsp(1)"/>
</section>
</manifest>
</jar>
</target>
<target name="all" depends="iframe,iframecalendar,iframemail"/>
</project>
Thank you very much for your assistance and for your time.
Klara -
Error in creating Callable object of type Portal iView
Hi People,
I need to create a callable object of type Portal iView / Page,
But whenever I try to create it gives me a RunTime Exception:
<b>java.lang.ClassCastException
at com.sap.caf.eu.gp.ui.co.portal.dt.VBrowse.appendChildren(VBrowse.java:523)</b>
Please suggest some way out,
Thanks in advance,
DeepakHi,
How many actions are there in your process?. Is it having only one action that is Web service?.
I think, The process should at least contain one UI action.
If your process is having multiple actions, there may problem with other actions. Test the web service action seperately to confirm this.
Thanks -
Link to SAP R/3 Logon from Portal IView
Hi,
How is the Link to SAP R/3 Logon from Portal IView?
Thanks
RaissaHi Raissa,
Check these links
Configuring EP for connecting to SAP R/3
Creating system object
http://help.sap.com/bp_epv260/EP_EN/documentation/EP/N03_BB_InstallGuide_EN_US.doc
Regards
Arun -
Event handling in Portal IView of JspDynpage
Hi All,
I have created the portal iview with jspdynpage.Can any body tell whether event handling can be performed from the portal iview which is created from the jspdynpage?
Regards,
V Karthihi
check this threads
Event handling in portal through sap netweaver.
From creation of JSP page to iView at Portal
Thanks -
Error in BI4 SP04 Olap Analysis Using Portal iview list template
We are trying to host the BI Launch Pad BI4 SP04.1 in the SAP Enterprise Portal (7.3.1.Sp04) on AIX 6.1 using the SAP Business Objects Document List Template, but getting an error when trying to use Olap for Analysis.
When previewng the iview from the portal, the bilaunch pad is opened and the main page is displayed
Then we select the icon Analysis for Olap, select an Olap connection and receive error in
message box titled 'Analysis Edition for Olap'
Login Failed. Invalid, User Name or Password
It seems to be problem with SSO token back to the SAP portal.
We have SSO configured from BI4 SP04.0.1 to BW 7.3.1. SP04 and can login to the launch pad using SAP authentication with the same account.
The security on the OLAP connection is everyone - view.
If we change the Olap connection authentication to pre-defined from SSO, Olap Analysis works correctly from the portal iview, but of course the permissions are not acceptable. Further, we set SSO to false from the global.properties file and restarted tomcat. We can then start the launchpad from the Iview in the portal and are prompted for manual logon, use SAP authentication and Olap for Analysis runs correctly as the same user we tried previously.
However, our requirement is to use SAP authentication and SSO from the portal to BI4 and not logon on manually.
I have entered an OSS message for this issue and making little progress there. If you have made this work or have some ideas you can share, I would be very grateful!
Lee LewisJust want to update with more information-
Again, from the enterprise portal through the ivew - BO Document List template,
Connects through to BI Launch Pad without having to login-using the BW ABAP credentials
Then we try to open a webi document with an olap connection that has sso authentication instead of pre-defined user, we do not get the same user login failed message, the page is just blank
But if I login directly to bi launch pas with the same SAP authentication that was used with the enterprise portal, and bring up the same webi document, the report is displayed as expected.
Anybody successfully use the BO document list ivew using Olap connections with SSO and not just a pre-defined user?
Lee Lewis -
Is there a sample for using "Logging" in an portal iview?
I have found
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e2/f410409f088f5ce10000000a155106/frameset.htm">SAP Help Logging</a>
but I have difficults "translating" this sample into a portal iview, since I am a Java "Beginner".
Thanks -hsHi Holger,
I don't have any samples. But these weblog might hep u.
Netweaver Portal Log Configuration & Viewing (Part 1)
Netweaver Portal Log Configuration & Viewing (Part 2)
Netweaver Portal Log Configuration & Viewing (Part 3)
Regards,
Harini S -
Execute a portal iview from VC
Hi,
I am trying to find a way to call a portal iview from VC. Here is what I have, I have an iview created in the portal that I want to call from a VC model through a button on a form. Is this posible?
Thank you,
AaronYou can call an portal iView from anywhere with in portal (not only with VC) using relative navigation target, but for VC you have to:
assign system action to the button as Hyperlink and provide the relative navigation target url of the iView that you want to open like:
'/irj/portal?NavigationTarget=ROLES://portal_content/every_user/general/eu_role/com.sap.portal.eu_ws/com.sap.portal.portal_information&NavMode=3'
NavMode can be as follows:
mode 0 for internal window,
mode 1 for external window with content,
mode 2 for external window with full navigation,
mode 3 for external headerless window
Note: "ROLES://portal_content/every_user/general/eu_role/com.sap.portal.eu_ws/com.sap.portal.portal_information" should be replaced with your iView path.
Check System Administration -> Support -> Navigation -> Navigation Types for more options on you portal.
Regards,
Trikanth Basetty -
Calling and executing a function module in the Portal iview development
Hello Portal development gurus...
I am very new to portal iview development and am learning a lot of stuff.. I now have a requirement to do the following:
1. I need to use the NWDS to create java code in developing an iview
2. I need to call and execute a function module and display the parameters pulled in from the function module onto a Jsp.
3. I need to create an iview based on this deployed component.
Could anybody please explain me how to do the coding on this front?
I appreciate if anybody can share documentation about this kind of a development.
As always, points galore for useful and helpful suggestions.
Regards,
~~~LBHi,
Firstly Have you searched in SDN for the same, anyhow please go through the link to work on the requirement
[/docs/DOC-8061#15|/docs/DOC-8061#15]
Go through the thread which will talk in detail
[https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955|https://forums.sdn.sap.com/click.jspa?searchID=19551584&messageID=6348955]
Hope this helps.
Cheers-
Pramod -
Drag and Drop a Portal iView in WPC
I would like to drag and drop a portal iView into a container in the Page Editor.
In a container that allow resource type portal iview, I clicked on the "pencil logo" and click on Add. A "Web Content Browser" is invoked. It there, the portal iView is not found as these iViews are sitting in the Portal Content directory.
Just wondering how do we go about in "drag & drop" a portal iview from this editor.
ThanksProcedure
3. In the Portal Content Directory (PCD), create a folder for iViews that Web content managers can use on Web pages.
a. Choose Content Administration u2192 Portal Content and create a folder under Portal Content, for example WebPageiViews.
b. Create permitted iViews in this PCD folder (for example, as delta links).
c. Choose System Administration u2192 Permissions and navigate to the folder you created in step a.
d. In this PCD folder, give the everyone group Read permission, for example, and activate the End User indicator.
4. Show the PCD repository in the KM configuration.
a. Choose System Administration u2192 System Configuration u2192 Knowledge Management u2192 Content Management.
b. Choose Repository Managers u2192 Show Advanced Options u2192 PCD Repository.
c. Deactivate the Hide in Root Folder checkbox.
d. Restart the servlet engine.
5. Create an entry point for the folder that you created in step 1d (for example, /wpccontent/iViews).
See next instead of "Step 1d"...
Procedure
1. Choose System Administration u2192 System Configuration u2192 Knowledge Management u2192 Content Management u2192 User Interface u2192 Mapping u2192 Component.
2. Edit the wpcDragExplorerEntryPoints configuration object.
Use the following parameters:
Web Content Browser Parameters
Parameter Description
displaymode Specify select
maxproviderprio Highest priority number that standard entry points can have and still be displayed in the Web content browser
entriesperrow Number of entry points displayed in each row (default: 5)
entrypointsprefix
Prefix of the entry point repository If you specify a value for this parameter, standard KM entry points are also displayed in the Web content browser. Default: /entrypoints
sharedcontent Semicolon-separated list of paths to be displayed as global entry points for shared content
Examples of parameter values:
displaymode=select,maxproviderprio=30,entriesperrow=5,entrypointsprefix=/entrypoints,sharedcontent=/wpccontent/Cross-Site Content;/documents/MyFolder -
Deploying ABAP Web Dyn Pro application in a portal iView
Hello,
Our goal is to Deploy Web Dyn Pro application to public internet user and at the same time we want to keep the ABAP Web Application server that host Web ABAP Dyn Pro application behind the firewall so that no one can directly access the ABAP WAS over the internet. To do this we are planning to deploy the ABAP Web Dyn Pro application with in a portal iView where the portal server has anonymous access to the internet user.
The question is when we embed the ABAP Web Dyn Pro in a portal iView, does the web browser directly talk to the ABAP WAS? If so, is there any other method where we could keep the ABAP WAS secure and give the public access to ABAP Web Dyn Pro application.
Thanks,
VimalanHi Vimalan,
<b>I'm assuming you use some kind of a reverse proxy in front of the portal server</b>.
Here how it goes:
1. Create a WD ABAP AppIntegrator iView in the portal.
2. The iView will use a system that holds the ABAP server details (host:port and protocol)
3. The system will be configured to have the host:port and protocol of the reverse proxy server.
4. On the reverse proxy server, create a rule that will forward all URLs with the template of <i>/sap/bc/webdynpro/</i> to the real host:port and protocol of the ABAP server. This way you achieve what you intend to do.
Hope this helps,
Natty -
How to redirect to portal iview from a stand alone webdynpro application
Hello,
I need to able to navigate from a standalone webdynpro application, for which I do not want to create Portal iview, to a Portal iview with some data.
Please let me know how can I pass the string value and how to navigate.
Thanks,
VinitVinit,
You're walking in circles. There is no magic answer to this problem. Web Dynpro is not an application of communication / interface with other applications, but a presentation layer for the user.
To perform this procedure interaction (simulating an ajax) you will need to use a middleware interface (CAF, EJBs, or any other technology that communicates directly with the Web Dynpro), or use the version 7.2 of Web Dynpro (maybe that solves their problems).
If only the external page you need to open did not have the user interaction (just loading and returning information) you could consume it like a WebService.
without more,
Angelo
Maybe you are looking for
-
How to assign a printer to a script form
Hi Experts, can any one of you help me in expaling thsi with code elaboratly. bcos i have seen some section scrren with requesting an output device. but the end user is always using a transaction whre he can't give any printer name. see below. selec
-
firefox is not able to load any websites... i tried everything given in the support forum under the topic firefox is not able to load any websites but other programs can.. but still i am facing the same problem. so please help me out with this issue!
-
Macbook Air (Lion) won't connect to Airport Express (and won't remember network)
My new Macbook Air 13, with Lion, will not connect to my Airport Express. It throws the following error: "A connection timeout occured" This Airport Express is setup as a bridge. So it extends my wireless router. The new Macbook air sees this setu
-
Flex input type for c# string array: string[]
Quick question, what would the input type for Flex be if the data type on the asp.net c# web service was a string array, string[], it seems to autodetect it as an ArrayCollection but that isnt right, so I would assume array, but i would still like to
-
Event case missing mouse events on active-x component
I am using a Treeview and capturing selections in the tree using mouse events (event structure). I have a problem where approx 3 out of 15 mouse events are not actioned by the event structure - has anyone else had this problem or is there any suggest