How to close portal page by Web Dynpro App

Hi There,
I would like to close a portal page by clicking a button of a Web Dynpro App which is inside an iView on that page.
Is this possible or not?
Bertil

Bertil,
First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
In WebDynpro you may use <b>Exit plug</b> on interface view with parameter <b>Url</b> (notice the case) of type string.
Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
VS

Similar Messages

  • How can I automatically refresh a Web Dynpro App every 5 minutes

    Hello,
    I have a web dynpro that is calling a web service. I need that this web dynpro app auto-refresh (recall the web service and update the information) without any user interaction every 5 minutes.
    How can I do this?
    Thanks & Regards
    SU

    you can use timedtrigger UI element to achieve it.
    Edited by: John Wu on Jun 21, 2011 5:33 AM

  • How to Disable Portal Links with Web Dynpro Java?

    Hi all,
    I have configured some access to my apps through iviews in my portal content, each application is included in a PCD Structure inside a User Role; according the roles asigned to my users are the access to the applications the user wolud have
    For example:
    Role 1
    RootApp
         iView1.1
         iView1.2
         iView1.3
    Role 2
    RootApp
         iView2.1
         iView2.2
    Role 3
    RootApp2
         iView3.1
    My users might have one or even the 3 roles, and depending on their roles is the access to the applications that they may have.
    Now I have a requirement of the user wherein when the user logs in to the portal and clic in the RootApp link the Dynpro Application must to present an iView showing a set of terms and conditions; if the users accept the terms then they can continue using the application defined by the PCD definition, but if the users don't accept the terms, the aplication links in the portal must be disabled and the user can not use the aplications defined, but this only has to be applied to the root link selected (RootApp) in wich the user doesn't agreet the terms and conditions, however, other applications that are non dependent of the root link (RootApp) can be used (RootApp2).
    Are there any way to disable only certain portal links using a web Dynpro implementation?
    Thanks In Advance

    Hi
    IMyService portalservice=(IMyService)WDPortalUtils.getServiceRefrence(IMyService.KEY);
    portalservice.myMethod();
    This is the code to get portal service reference and call methods implemented in the service
    Also, add prtapi.jar to build path. Add sharing refernce to portal:sap.com/<Portal Application name>
    Regards,
    Yoga

  • How to reference Portal Theme in Web Dynpro Application?

    Hi All,
    I have implemented a WDA that is being embedded into the Portal. My customer has designed his own Portal Theme.
    However, the WDAs embedded into the Portal do not appear in the style of the Portal Theme.
    Now, my question is which means are required in order to have the WDAs use the same Theme as the Portal?
    Can I provide WDA parameter WDTHEMEROOT with the URI of the Portal Theme? If yes, how do I get the URI of the Portal Theme?
    I guess parameter WDFORCEEXTERNALSTYLESHEET also is relevant in this matter... Please let me know how I get this working!
    THANKS
    Johannes

    Hi Johan,
    Please go through this links..
    Portal Theme in Webdynpro ABAP
    Re: Deriving Portal Theme
    also check this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDABAP/StylesheetforWDAwithoutintegratinginSAP+Portal
    Cheers
    Kris.

  • How to change the web page title of a web dynpro app?

    Hello,
    I would like to change the HTML page title of a web dynpro application without renaming the application component itself - but how?
    Thanks for your comments!

    Hi M Walter,
    Assuming you are using Web Dynpro Java, you can change the title of the Web Page for Web Dynpro App by adding the title to the main window of your app.
    Go to Windows and open the properties. There will be a field called 'title'. Give the title you want, save, build, DC->Build and deploy.
    The title you gave to this Window will be displayed as the title of your Web page.
    Regards,
    Ajay

  • Navigate from Web Dynpro app to portal page

    Dear All,
    I've created a number of Web Dynpro applications which I run from various portal pages. From one of the Web Dynpro's I navigate to a different portal page using the WDPortalNavigation.navigateAbsolute method. This works fine, but I'm left with one problem:
    I'd like to pass parameters from the Web Dynpro which navigates to the portal page to the Web Dynpro applications which run on that specific page. I've appended the parameters to the URL I'm navigating to (eg ROLES://<pcd location>?<param=xxx>) and in the Web Dynpro's I've added a parameter to the Default interface plug. This doesn't seem to work. As an alternative I've added the statement WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param") to the doInit() method of the view, but this also doesn't work.
    Either I'm doing something wrong, or what I want to accomplish is not possible. Does anybody know of a way to access parameters passed to a portal page from Web Dynpro applications contained on that page?
    Thanks,
    Arnoud

    I hope you are passing parameters between two WebDynpro applications.
    Please go through the example available for passing interaction between two webdynpro components.
    Please check the following link
    Alternative method for navigating to another page ?
    or the following link
    Re: Can we pass parameters in querystring of the webdynpro application?

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • How do I undeploy/delete Web Dynpro App

    Hi,
    I created a Web Dynpro App in NWDS for some testing. Now I want to delete this App from Server but I cannot find any button saying undeploy or delete.
    Can anyone tell me how I can delete a deployed Web Dynpro App?
    Cheers
    Christian

    Hi Christian,
    You definitely should! Keep in mind that the entries are NOT sorted alphabetically, so you have to go through the complete list!
    You also can try to remove it via VA, there via "Services" -- "Deploy" -- choose your app -- "Remove". I'm not sure if this really removes everything from the server. You may give it a try, but as said, removing it via SDM is the most original way.
    Hope it helps
    Detlev

  • How to set a variable in portal session using web dynpro java.

    Hi,
    I have created a web dynpro application, which is running inside portal. I have created a role called "R1". Inside role R1, i have created 3 workset W1, W2 and W3. and inside each workset i have some pages and iviews.
    My requirement is when user logins to the portal , and when he clicks on role R1 for the first time, a login page should come (so that we can do revalidation), and when he enters his password again in that login page , then only workset W1, W2 and W3 should be visible/accessible to him and after successful revalidation, if he clicks again on role R1, in that particular portal session, than that login page should not come.
    for this, i thought i will set a variable in portal session, whenever user successfully revalidated himself, and if after successful revalidation he clicks again on role R1, i will check in doinit method of webdynpro whether variable is set or not (which i already set on successful revalidation), and if it is set then i will do Donavigation else i will present login page to the user.
    Can anyone tells me how to set a variable in portal session using web dynpro java.
    thanks
    Arush

    Hi,
    Try this:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE, key, value)
    WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE, key)
    Ex:
    WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"Key1","Value1");
    String value1=WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Key1").toString();
    /people/william.cui/blog/2007/02/12/sharing-session-context-between-parent-and-external-windows-running-on-same-host
    Regards,
    Charan

  • How to close Portal Window

    Hi,
    I'm opening my iVew as "Display in seperate Window" and this iView has one close button.
    Once I click on this button, the full browser window should be closed.
    I have done like this:-
    First created an html file (Say close.html) inside Project\src\mimes\Components\package with contents
    <html>
    <head>
    <script langauage="javascript">
    function closeWindow()
    var currWindow = window.top;
    currWindow.opener = window.top;
    currWindow.close();
    </script>
    </head>
    <body onload="javascript:closeWindow()">
    </body>
    </html>
    Now open InterfaceViews-><ViewName>InterfaceView
    Create an Exit outboundplug with parameter Url(use the same name in the scenario) of type String. Save all metadata.
    Inside the closeAction, written following code
    String url=WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Close.html");
    wdThis.wdGet<ViewName>InterfaceViewController().wdFirePlugCloseWindow(url);
    This is working fine with simple Web Dynpro App but once I deployed this as a iView in the portal and opened as "Display in seperate Window" than this code is not working for me.
    Can anybody suggest how can I close my portal window?
    Thanks,
    Vikas
    Message was edited by:
            Vikas Saxena

    Hi,
       You can try this:
    1. In the portal create a URL iview and set the URL to the absolute URL of the HTML file that you have created. This URL will be in the following format:
    http://<server>:<port>/webdynpro/resources/sap.com/<dc name/project name>/Components/<package name>.<component name>/<filename>.html
    2.  On click of the button do a portal navigation to this new iview like so:
    WDPortalNavigation.navigateAbsolute
    "ROLES://portal_content/<pcd path to URL iview>",
    WDPortalNavigationMode.SHOW_INPLACE,
    WDPortalNavigationHistoryMode.NO_HISTORY,
    null                    
    Regards,
    Satyajit.

  • Get date from portal in a web dynpro?

    hi all,
    how get date from portal in a web dynpro???
    thanks.

    new Date(System.getTimeInMillis());
    Good luck, Roelof

  • How to call PDF file in Web Dynpro Appl?

    How to call PDF file in Web Dynpro Appl?

    Hi Gobinath,
    1. Create a value attribute of type byte called pdfSource.
    2. Insert an UI element called Interactive Form in your layout
    3. Set the source property of this Interactive From UI element to the context pdfSource.
    4. Insert a button which would open your pdf file.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
       IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
             byte[] bytes = contextElement.getPdfSource();
             try
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
                catch (IOException e)
                   // do something
                   e.printStackTrace();
        //@@end
    Warm Regards,
    Murtuza

  • Can the role info be passed from portal to ABAP web dynpro application

    Hi,
    We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
    Thanks,
    Pooja

    Hi,
    you can try to add the expression
      role=<IView.PCDUnit>
    as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
    the value will be the PCD path of the role - e.g:
      portal_content/myFolder/roles/myRole

  • How to enforce a login screen when running a Web Dynpro app?

    Hello,
    In Web Dynpro for Java there is a way to set authentication property to true and by that enforcing a login screen in case someone is browsing this application outside of an authenticated context (for example, the portal).
    My question is: How do I do this for Web Dynpro for ABAP?

    Roy, are you familiar with that http://help.sap.com/saphelp_nw04s/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm ?

  • How to put water mark in web dynpro abap Adobe forms

    Hi
    Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
    actually I need to print water mark as back ground in gray color.
    Points will be rewarded of Helpful answer..!
    Regards,
    Sidram

    Hi,
    for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
    Besides, there's an Adobe forum where you might get more information for such Adobe questions.
    Regards, Heidi

Maybe you are looking for

  • Error message during install

    Anyone have a clue what to do?  Keep receiving error message during install.  Have disable firewall, no help.  Here is the error message: Error Microsoft.VC80.CRT.type="win32".version="8.0.50727.4053".publicKeyToken="1fc8b3 b9a1e18e3b".processorArchi

  • How to flag Mail Messages in iOS5?

    My Mail messages in iOS5 don't reflect the flagged status in mail. Trying to flag them on the iPhone's Mail clinet by selecing "edit" should (apparently) offer me a choice to delete, mark (as unread/read) or Flag. I just get a choice of Mark or Delet

  • How to get 'IOPlatformUUID' on OS X 10.4?

    I need to get UUID value on 10.4 but the command seems not to be supported here. ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { split($0, line, "\""); printf("%s\n", line[4]); }' Above command is working fine on 10.5. Is this not supp

  • Display only latest record

    Post Author: rlivermore CA Forum: Formula (CR v10 Pro) How can I display only the lastest record if there are multiple entries for a specific job number (SO number). I have 2 groups {tblSO.SONumber} and {tblSONotes.LastModified}.  I tried sorting Las

  • How do I put two songs together to one?

    ?????????