Set Portal Page URL in Web Dynpro IFrame

Hi All,
I've a Web Dynpro application that runs in the portal.
The application creates iframes dynamically.
I want to set in the iframes portal pages.
In order to get the page's url, I go to content admin, navigate to the page and then press the 'preview' button then I copy the url from the browser's address bar.
I copy the url from the '/irj....' to the src property of the IFrame UI element.
So the source property looks something like this:
/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.mycomp.Omri!2fcom.mycomp.TestPage
When I run the project I get:
<i>Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
Access denied (Object: portal_content/.../...).
Exception id: 06:01_17/10/06_0015_4401150
See the details for the exception ID in the log file</i>
The page's permissions are set to everyone so I don't know why do I get this error.
So, how do I set portal page url in Web Dynpro IFrame?
p.s
I tried to use NavigatinTarget in the URL and it works. The problem is that the TLN is included. I want to display only the page.
Thanks,
Omri

Hi Valery,
I have only one domain...
I searched SDN and I found this post:
/message/1259616#1259616 [original link is broken]
Daniel Wroblewski from SAP says:
<i>This, naturally, sounds like a permission issue. Two steps:
You must give the Everyone group end-user permission to the iView. This will eliminate the error and cause a login screen to display.
If you want to eliminate the login screen, you must set the iView property Authentication Scheme to anonymous.</i>
I will try it tomorrow in the Office.
Omri

Similar Messages

  • Change portal Page layout from Web Dynpro

    I have some problem:
    I need to rearrange Portal Page layout from 2 columns to 1 collumn from Dynpro action. Decision to hide 1 Column or resize its width to 0 is good idea, but I do not now how.
    Absolute Navigation is wrong idea, because I need to go back to multiply IViews mode and I will lost my data context.
    I saw PageService - custom Portal service, where I can resize IViews.
    In my Netweaver 2004 this class is absent.
    Probably exist some Portal events to manage Page layout? Anybody knows?
    Thanks!

    Hi,
    For this we have to use eventing among the webdynpro components of two different views.You can refer this example for this.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a
    Thanks,
    Murthy.

  • Using Portal Theme for a Web Dynpro ABAP Application

    Hello everyone,
    I've created a web-dynpro abap application that I display on one of my portal pages using a Web-dynpro iView.
    Somehow, the WDA app never reads the portal theme properties and has the default SAP roadshow theme colors. I've tried almost everything including passing the theme as an application parameter using WDTHEMEROOT and WDFORCEEXTERNALSTYLESHEET params.
    Documentation states that the application should automatically read the portal's theme, but it never does.
    Interestingly, I have one more web-dynpro java application that works fine and uses the portal theme correctly.
    Am I missing anything? Are there special considerations for WDA apps to adapt to the current portal theme?
    Any ideas, suggestions, solutions would be greatly appreciated.

    >Am I missing anything? Are there special considerations for WDA apps to adapt to the current portal theme?
    What are the release and support package levels of both your ABAP system and your portal?  If the ABAP AS has a later release or SP level than the portal, the Web Dynpro framework will always fall back to using the theme of the backend ABAP system.  This is to protect the application rendering.  Running with a theme (CSS and JavaScript) from an older release or support package level could cause the application to render incorrectly.

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Need info on Accessing portal services within a Web Dynpro application

    Hi,
    I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
    Thanks in advance.
    Rajani N

    Hi
    how to reference  a portal service with web dyn pro ?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
    http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
    Best Regards
    Jakub Krecicki

  • Creation of a portal page using XML web form

    Hi Experts,
    I want to know how to make a portal page using XML web forms... Please tell me the steps involved in doing the aforesaid.
    Thanks in advance...

    Hi
    You compose page using WPC(Web page Composer), this is a bussiness package, which you need to deploy it on portal server then will get a WPC role which you can assign the user and then user can start composing the using follwoing PDF
    To compose it chect this pdf
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7?overridelayout=true
    Thanks

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • Portal integration: Navigation from Web Dynpro to other iviews

    Hello,
    I am trying to implement a navigation from my web dynpro application (which is embedded in our corporate Netweaver portal) to another portal iview.
    Therefor I use the "absolute navigation" functionality:
    CALL METHOD lo_portal_manager->navigate_absolute
      EXPORTING
        navigation_target  = 'pcd:portal_content/BOSCH_CONTENT/INTERNAL/CONTENT/MY_WORK/MANAGEMENT_SUPPORT/ORDERINGS/PAGES/rb.inside.page.EWORKS_PROCUREMENT'
    By hitting a button in the web dynpro this functionality is executed but nothing happens.
    The iview defined as target is not called.
    The SAP documentation (http://help.sap.com/saphelp_nw70/helpdata/de/18/f96f4132f15c58e10000000a1550b0/frameset.htm) says, the "Absolute address, path for page or iView in the portal content directory. " should be defined as target.
    Address, for example ROLES://portal_content/...
    I also copied the address from the portal content directory, but it always starts with "pcd:portal_content" and not with "ROLES://portal_content/".
    Is this an issue of the portal or of the method call?
    Thank you a lot in advance...
    Regards
    Stefan Löhlein

    Hi,
    1.first check if popup blokcer is is disabled for the portal url you are testing with.(This is asuming you are navigating to the iview as an external window).
    2.Make sure you are testing this in the context of portal .ie you are runnning the web dynpro within portal and not outside portal as an application.
    3.The iview that you would be prefixing with ROLES:// should have the permissions set for the user you are testing with.
    Regards,
    Ashok

  • Google maps url in Web dynpro for java

    Hi all,
    Can someone tell how I can create a Google Url and show this Url in a Iframe in a Web dynpro. I can create an url but I see the google webpage with the map. I just want only see the map in my Iframe!
    Kind Regards,
    Richard

    Hi Richard,
    One solution that comes to mind is to have a URL parameter embedded. So the path that you have set to the iframe can be extended say for example http://<your path to HTML file in Mimes>?undefined=<address specific to the user>
    Next thing to do is extract the URL parameter undefined by JavaScripting. So you can pass the address value to this param.
    Once you have this you can trigger this by passing different addresses to URL parameter each time.
    Replace the wdDoInit() by following code:
    public void wdDoInit()
        //@@begin wdDoInit()
         try {
              String resourcePath = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(), "GoogleMapAPI.html");
              wdThis.wdGetContext().currentContextElement().setPath(resourcePath + "?undefined=Mumbai");
         } catch (WDURLException e) {
         wdThis.wdGetAPI().getComponent().getMessageManager().reportException(e.getMessage(),true);
         } catch (WDRuntimeException e) {
              wdThis.wdGetAPI().getComponent().getMessageManager().reportException(e.getMessage(),true);
        //@@end
    Though I have hardcoded the location in above URL, i guess you got what i am indicating at!!
    Even after all this, be carefull in preparing the URL which might result invalid URL due to special chars.
    For Example: New York will result in invalid URL as <space> is not allowed. Ideally, it would have been New%20York. But then google API will no understand %20. Hence, I recommend you to replace %20 by <space> before calling Google API [You will have to write it in initialize() method of HTML file].
    Also, replace the function initialise() in GoogleMapAPI.html
    function initialize() {
          if (GBrowserIsCompatible()) {       
            // This function is anonymous, is executed immediately and
          var query_string = {};
            var query = window.location.search.substring(1);
            var vars = query.split("&");
            for (var i=0;i<vars.length;i++) {
              var pair = vars<i>.split("=");
              // If first entry with this name
              if (typeof query_string[pair[0]] === "undefined") {
                query_string[pair[0]] = pair[1];
                //this.address.value = pair[1];
                 map = new GMap2(document.getElementById("map_canvas"));
                 geocoder = new GClientGeocoder();
                 showAddress(pair[1]);
    I hope your address issue is addressed by me now!!
    kunal kotak

  • Get HTTPS URL for Web dynpro application

    We are using SSL. By default the URL generated for the Web dynpro application is HTTP.
    We went to SICF, and deactivated the HTTP service. That made the URL point to HTTPS.
    But few problems started coming because of it:
    - Our Content server became inaccessible.
    - Every time server is re-started, we need to manually go and de-activate HTTP Service.
    We even tried to set the parameter icm/icm/HTTP/redirect_0. But problem is not solved.
    I know this question is asked before, but every time the answer is to read the help document on ICM.
    What's the correct way for any webdynpro application to point to HTTPS? I don't think de-activating HTTP service is the right way.
    Any suggestions please?
    Thanks in adv.

    Thanks a lot Thomas. I'd ask the Portal Admin to try it out.
    There is another similar problem we are facing: I have embedded Webdynpro in R/3 screen. Then used the cl_gui_wdr_viewer class's load_application method passing HTTPS protocol.
    It returns HTTPS URL only, but is not showing up on users' laptops.
    Earlier we were not passing HTTPS protocol, so generated URL was HTTP, and it was not showing on users' screen (can show in ours). Reason we found out is that users' site has HTTP port blocked. They cannot show any HTTP url.
    So we changed to get HTTPS URL, but that also gives the same problem. It is still trying to get HTTP url.
    Here is the URL that the users got: (when they right click to see the URL generated)
    res://ieframe.dll/dnserrordiagoff_webOC.htm#http://abc.def.jil:8000/sap/public/myssocntl?sap-client=220
    Can give any clues on why this is going wrong? Cannot raise OSS as I know embedding Webdynpro in R/3 is not supported
    Thanks in adv.

  • Navigation to External URLs from Web Dynpro Java

    Hi,
    I have Web Dynpro application, which shows one button called 'Navigate' and 'Close'.
    I have created iView for this Web Dynpro application and integrated with Page to display in Portal.
    When I click the button 'Navigate',  I want to display some external url (ex: http://www.google.com) in the same window.
    When I click the button 'Close', I want to close this window.
    Let me know how to achive this.
    Thanks

    HI
    To close a window use
    window.hide();
    windw.destroyInstance();
    and check this [thread |How to close a window ?;
    For navigating to another web page use LinkToURL UI element in code and place your website as said above
    Regards,
    Mahesh

  • Set (PCD) IViewID out of web dynpro

    Hi experts,
    is it possible to set the portal (pcd) iviewID out of web dynpro, via some api?
    i would like to provide my Iview with a unique identifier and the default IviewDI does not suit our needs.
    thanks for any help,
    Rene

    hi,
    see this document
    http://help.sap.com/saphelp_ep50sp6/helpdata/en/6c/670e3c421ff443e10000000a11405a/frameset.htm
    You can manually add the get_ API to the iView URL by defining it as a parameter in the Parameter Properties table. The get_ API reads the value of whatever you ask for. For example, get_IsolationLevel instructs the iViewServer to read the currently defined isolation level. At runtime, the iViewServer replaces this URL parameter value with the requested value.
    The syntax of what follows get_ is very specific
    GET_IVIEWID returns the unique iView ID defined in the portal content repository.
    Thanks and Regards
    Avijit

  • Page size in web dynpro

    Hi Experts!
    Currently I'm preparing web dynpro application for touchscreen.
    Unfortunatelly all elements on screen are too small to handle all operations by finger.
    Do you know any way to increated page zoom automatically? Maybe somewhere in web dynpro or maybe it's possible in URL?
    Thanks in advance
    Bartek

    I am not sure which browser is in used in your touch screen? is it Tablet or mobile ? You may have to check the Product Matrix for available supported browsers.

  • URL in Web Dynpro

    Hello,
    I wanted to add a simple URL (ie: Google, hotmail, etc) for people to access in my web dynpro application.  How can I do that? 
    Thanks.
    Sana

    >
    Daniel Ruiz wrote:
    > Hi Sana,
    >
    > Can you please tell me whats your requirement? - Where the URL come from? - Isn't it easier to fill a Value Attr. and use it in the Table's LinkToURL?
    >
    > Regards,
    > Daniel
    Here is what I am going.
    I retrieve data from a function and it returns a table.  I loop though the table and based on a key column, I set a corresponding URL.  I wanted to display that url right next to the record that I retrieve, thats why I wanted to put it in the table.    The URL is something I am creating on my own.   
    Isn't it easier to fill a Value Attr. and use it in the Table's LinkToURL?
    Maybe - I do not know, that is why I'm asking, what do I need to use and how do I use it.   
    Thank you!

Maybe you are looking for

  • Cross reference markers are deleted for content in text insets

    Cross reference markers are deleted for content text insets. I currently have a chapter that is built from several Import by Reference files. I added an introductory paragraph with cross reference links to heading 2 titles in these text insets. Every

  • IPhone 5s problems after upgrading to iOS 7.1

    Hi I had problems with my iphone on 7.0.6 ( the apps were crashing and mail didnt work) so i thought that if I upgrade it to 7.1 it will help but it didnt. I restored my iphone and then it got stuck on the apple logo that loads the iphone after the r

  • How can I tell if my firewall is up and running

    I've used "ps" in several formats: ps -aux ps -ael ps -AMcl looking for "ipfw" with a piped grep, and it doesn't show up. What I CAN see is that using the "AMcl" option a sub-thread/process pops up under the "securityd" process....but this could prob

  • Best way to set up annual accounts spreadsheet

    I just bought iWork 09. What's the best way to set up a spreadsheet in numbers for annual accounts that list weekly totals? Would it be best to create a sheet for each week or one sheet with 52 tables? I need to summarise all 52 weeks' totals onto on

  • Interaction between components residing in seperate applications..

    Hello All, Wanted to know whether components residing within seperate WD applications? If yes, any guidelines as to how? Ive seen the sample tutorials but there the components reside under single application. Awaiting Reply. Thanks & Warm Regards, Ri