Close Button for Web Dynpro in an iView launched from UWL

Hi All, this sounds like such a simple thing but its really got me thinking.
Have a web dynpro application launching form the UWL into an iView (using the IViewLauncher, I'm using this so I can change some visual effects of the application with the iView).  The application is the LeaveApprover application.
Need a close button on the confirmation screen.  Have tried the following code called from a Close button:
     try {
          String url  = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"closepage.html");
          TaskBinder.getCurrentTask().getClient().sendRedirect(url, 0);
     } catch (Exception e) {
          e.printStackTrace();
The closepage >>
function closeWindow()
{var currWindow = window.top;
currWindow.opener = window.top;
currWindow.close();
onload run the closeWindow function
This is a test file to close the window....
This works if I use the standard UWL launch but DOES NOT WORK with the iViewLauncher.
Also tried creating an exit plug in the interface view and calling it from my close button, but no luck with either.
Please help.  Thanks Brian
Edited by: Brian Carter on Dec 8, 2009 11:54 AM
Edited by: Brian Carter on Dec 8, 2009 11:55 AM
Edited by: Brian Carter on Dec 8, 2009 11:58 AM
Edited by: Brian Carter on Dec 8, 2009 11:59 AM
Edited by: Brian Carter on Dec 8, 2009 11:59 AM

Hi Brian,
we had a similar problem in the past. We wanted to call a normal Button placed on the WebDynpro View and the close script was saved in the km content in portal.
We solved it with an own project in NWDS including the html Files.
Follow the link and you find our solution. Hope it helps.
Re: Portal navigation problem

Similar Messages

  • Create iView for Web Dynpro Application

    Hi guys,
    I've created a Web Dynpro Application via NWDI and deployed to the j2ee server. Now, I'm trying to create an iView to link to that application. The steps I've done are:
    1. Create iView for Web Dynpro Application
    2. Select "Create iView from each application View"
    3. Select my application.
    That's when the error occurs at step 3. I select my application and click next, but an error msg keeps appearing telling me to "To continue, select at least one application" despite having already done so. Can anyone enlighten me on this? Thanks!
    ZHenmin

    Hi,
      First make sure the applications runs fine standalone. Also the versions for WAS and EP are maintained correctly. Actually, this error seems to be occur for many users. Check this thread too.
    Open new Web Dynpro iView in EP7
    If nothing works, restart the server and try creating the iView again.
    Regards,
    Harini S

  • Search help for Web Dynpro using the SAP-search help

    Hi,
    I’m trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
    The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
    The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
    The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
    In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, …) in the project. In addition it should create the call in the customer generic.
    It would be great if someone can give me a feedback!

    Hi Mike,
    The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
    SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
    Personally I'd recommend you give yourself a little project to work on and just get stuck in
    Kind Regards,
    Owen

  • Detail Button in Web Dynpro ALV

    Hi at all,
    when I create an ALV in Standard ABAP there is a small "Detail" button on the left side of the button row without any additional complex programming.
    How can I get this button in Web Dynpro ALV?
    Dirk

    The standard ALV Component in Web Dynpro doesn't have this features.  It wouldn't be too difficult to add manually.  You could simply bind a custom view to the lead selection of the same context you are using in the ALV and use the form wizard to generate the UI elements.  It isn't quite as nice becuase it woudl require a few manual steps for each usage of the ALV where you want this functionality.

  • JCO Connection for web-dynpro tutorials (EP 6.0 SP9 downlaod from SDN)

    Hello,
    I have a question regarding JCO connections for web-dynpro example/tutorials. I have installed WAS 6.40 sneak preview from EP 6.0 SP9 download from SDN. Installation instruction says: Choose "No SLD available"
    but the web-dynpro example/tutorial asks to create JCO connections by going to web-dynpro -> content admin..etc on http:<host>:50000..Here, all the tabs relating to creating JCO connections appear to be "protected" on my screen. so I can't do anything further. By going to http:<host>:50000/sld, I also tried to add SLD server..but that is not helping. There is some "import" button, but which CIM file (in which folder etc) am i supposed to import for a simple test system? What are the steps for a bare minimum setup so that I can use the WAS 6.20 system at work-place as my backend & try out the web-dynpro examples? Do I really need SLD setup? Where is documentation about all this after one installs the WAS 6.40 JAva? I was expecting it somewhere at least in the eclipse IDE help-documentation..None of the web-dynpro tutorials explain this !
    thanks

    Thanks everybody.
    NagaKishore, after doing all the steps, when I goto
    localhost:50000-> web dynpro -> content administartor, and try to "maintain JCO Destinations" I am getting this error: (full stack trace not included)
    An error has occurred:
    "Failed to process the request."
    Please contact your system administrator.
    Error stacktrace:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:871)
         at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:485)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.updateJCOClientStatus(JCOConnectionsDetails.java:438)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:634)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.addJCOClientToList(JCOConnectionsDetails.java:598)
         at com.sap.tc.webdynpro.tools.explorer.JCOConnectionsDetails.wdDoInit(JCOConnectionsDetails.java:120)
         at com.sap.tc.webdynpro.tools.explorer.wdp.InternalJCOConnectionsDetails.wdDoInit(InternalJCOConnectionsDetails.java:238)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

  • BASIS settings for Web Dynpro ABAP

    Hi Team,
    I need to know of settings required (configuration) for Web Dynpro ABAP. Please help me on this. Please also let me know of how these settings can be implemented.
    Regards,
    Amit

    Hi Amit
    First you have to check the domain, if it is not maintained then maintain the domain in your operating system.
    To do this, follow below path :
    -- Right click on My Computer >> Computer Name tab >> Click Change >> Click More >> Enter your domain name in the format u201Ccompanyname.comu201D in the section Primary DNS Suffix of this computer
    u2013 Click OK
    And then go to your SAP to set "icm/host_name_full" in transaction RZ10.
    Choose your Instance profile, click on Extended Maintenance and then click on the Change button
    As "icm/host_name_full" is not present for you, add it by using the New parameter button
    set the value to <hostname>.companyname.com (hostname can be seen through transaction RZ11).
    Save and activate your profile and after that restart the R/3 server to take effect.
    Hope this will solve your issue.
    Regards
    Brillion

  • Custom Layout for Web Dynpro Proxy page

    Hey all
    I have a requirement to display 4-5 Web Dynpro for ABAP iViews on a page. 
    I have the option of using the standard PRT page to display these iViews for which I can create a custom layout using com.sap.portal.layouts.default.par and the simple JSP layout file in it.
    However, they should really be on a Web Dynpro Proxy page but custom layouts created using above component wont work. 
    In the document [Integrating Web Dynpro and SAP NetWeaver Portal|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9] it says -
    Within the SAP NetWeaver 04s release it is not possible to define application specific page layouts for Web Dynpro pages. Within the SAP NetWeaver 07 release this will be possible. Layouts for Web Dynpro page are implemented then as Web Dynpro components implementing a special ILayout Web Dynpro component interface.
    Has this been released as yet?
    Anyone find the APIs or workaround for this?
    Cheers

    I have the same question, but can't find any good solutions for this.
    For standard portal applications you can use com.sap.portal.design.layouts and modify layouts via JSP. But all webdynpro proxy pages are using their own layout.
    I'd like to change that layout too.
    Anyone?
    Cheers,
    Noel
    I am using NW 701

  • How to configure SSO for web dynpro ABAP (not web dynpro Java)

    Hi Experts,
        I am testing SSO in IDES for web dynpro ABAP (Not for web dynpro Java / not for portal). When I am entering url of web dynpro application in web browser like internet explorer, then it should ask for user id and password first time, after login whenever user would access that url, it must not ask for user ID and password (url would be access web browser in mobile). For this I select to configure single sign-on for web dynpro ABAP. I have done below works:
    1). I have created a web dynpro application having url: http://susws076.sap.swk:<port>/sap/bc/webdynpro/sap/zadb_hello_world2
    2). I run TCode SICF and access service node to "Zadb_hello_world2". Double click on it, hit change. pressed "logon data" tab, select "Alternative logon
         procedure"
       Then deleted all logon procedure other than "SSO Authentication" and saved.
    3). Go to "STRUST" and create certificate, choosed "Environment==> Logon Ticket" fill the required parameters and execute. It is OK (no red traffic
         signal).
    4). Execute TCode "RZ10" to change profile parameter, insert new parameter (indicated by red arrow)
    After all this settings I opened a browser enter above URL and hit enter but there is an error
    There is no login page. It directly showed this error page. No cookies is saving.
    Can anyone tell me what all the settings/configuration other than this I have to do. And is there any wrong setting done by me?
    How to set the for single sign-on?
    Thanks in Advance
    Regards
    Piyush

    Hi Piyush,
    Pls refer below links,
    Single Sign On with ABAP WebDynpro
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/5e/6c85c3edf942f39349a1e337434d29/content.htm
    Regards
    K.N

  • Pdf files for web dynpro

    can anybdy tell any link to get the study materials for web dynpro for java in .pdf format.

    Hi,
    there you can find the entire documentation, you normally have a look at help.sap.com, in pdf format (it's NW2004s, SP 5 or 6, I guess)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/netweaverdevelopersguide2004s/sap%20netweaver%20developer's%20Guide%202004s/UsingJava_00_PDFsList.ca
    (copy & paste the link, directly it won't work )
    kind regards
    Stefanie

  • Different languages are not available for Web Dynpro ABAP (WDA)

    Hi Experts,
    We are using Web Dynpro ABAP in 2 different languages (English/Spanish). Production environment only is available for English (WDA).
    How can I make Spanish language available for Web Dynpro ABAP??. Is there any configuration or installation which I am missing?? Development and QA are OK (English/Spanish)
    Thank you.
    Regards
    David Cortés.

    Hi Experts,
    Any help???
    Regards
    David Corté

  • How to create search help for Web Dynpro?

    Hi all,
    I have troubles when creating search help for web dynpro. I have visited this link /people/dirk.rehberg/blog/2006/12/27/generic-search-help-for-web-dynpro-for-java but I can't find this generic search help plug-in for download. If u have this plug-in can u share it for me or upload somewhere for download. Or anyone has already done this search help please help me solve this problem! Thanks in advance!

    Hi Dinh Thieu Thien,
    please place such a request to the appropriate forum "[Web Dynpro for Java|Web Dynpro Java;".
    Thanks and regards,
    Boris

  • How to call custom themes for Web Dynpro ABAP Application?

    Hi,
    I need to change the appearance of Web Dynpro ABAP application. So far I followed below steps,
    1.     Created theme folder u2018testngou2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> u2018testngou2019 ).
    2.     used program BSP_UPDATE_MIMEREPOS to dowmloaod content of  u2018sap_tradeshowu2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> sap_tradeshowu2019) to desktop.
    3.     Modified the themes using Eclipse Theme Editor.
    4.     used program BSP_UPDATE_MIMEREPOS to upload modified themes to MIME repository u2018testngou2019  (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes ->  u2018testngou2019) .
    My current URL is like http://server.name:XXXX/sap/bc/webdynpro/sap/hrrcf_a_startpage_int_cand?sap-client=XXX.
    Now I want to know how custom themes called for Web Dynpro ABAP Application.
    Is my approach correct?
    ...Naddy

    Hi Naddy,
    What you used is one way and even I failed when tried that method,
    Instead go to SE38 - WD_THEMES - and you need to upload the zip file and you need to follow a folder structure.
    it is case sensitive, atleast the zip file.
    Make a zip file by name "Project.zip" -
    Create a Folder Project and have the below folder structure,
    1  data - all the properties files and also the designinfo file, below is the code
    2  themes - (to get all the files download the theme from portal and you will have all the folders)
       2.1  ur
         2.1.1 name of the theme
           2.1.1.1 common
           2.1.1.2 csf
           2.1.1.3  r
           2.1.1.4  ur - all the css files (would be good if you can get the files from the server.)
           2.1.1.5   WSRP
    3  war - empty folder
    *.designinfo
    isVisible=true
    version=7.0.14.1.0
    isDefault=false
    isSapDesign=false
    designName=**** name of the theme
    Once done create a zip file and click on Start Import and give the path and will ask for transport request, it will take a while to upload once done as mentioned in the use the parameter sap-ep-themeroot="path"
    This will resolve the issue.
    Cheers-
    Pramod
    reward points if helpful

  • SAP tool to estimate time for web dynpro development project

    Hi,
    Is there any standard SAP tool available to estimate time for web Dynpro development project?
    Thanks and Regards,
    Deepti

    Hi Deepti
    An implementation of Webdynpro based UI could be estimated by a 'standard' technique like any other U:
    1. Try to count the number of views/screens/popups in your application. The estimation time will be proportional to the quantity.
    2. Try to count the number of external interfaces would be used in the application. For example, quantity of necessary BAPI invocations (RFC), quantity of Web-service invocations or EJB calls. Also quantity of native JDBC queries if any.
    Test = Nviews x Hview + Nint x Hint, where Hview & Hint time in hours for average implementing of one UI view and time for adding of average service invocation.
    BR, Sergei

  • Create Transaction for web-dynpro ABAP

    hi
       Can you help me in creating a transaction for web-dynpro ABAP.
    thank you.

    If you want a SAPGUI transaction code that will launch your Web Dynpro ABAP application then I suggest creating a parameter transaction code that wraps around the SAP standard transaction code WDYID.  You can use the parameter STARTMODE to decide if you launch your browser within the SAPGUI window or if it opens a new browser window. You will get SAPGUI based Single Sign On with this transaction code as well.  Here is an example of a TCode I setup:
    http://www.flickr.com/photos/tjung/2758987559/
    And here is what it looks like when running in place within the SAPGUI:
    http://www.flickr.com/photos/tjung/2758987583/

  • Coding standards for Web dynpro ABAP

    Hello all,
    Can anybody please help me by providing the code review checklist for Web dynpro ABAP?
    Thanks and Regards,
    Rohini Shankar

    Hello friend,
    WebDynpro     *
    1     Do not implement Data intensive operations in UI layer     
    2     Avoid database selects in the WebDynpro code.Use the corresponding BAPIs ,Methods     
    3     Are ABAP OO Classes like Assistance class are being used for application coding ?     
    4     Are Windows/Views only used for the sole purpose of hosting views and context?     
    5     Are a reasonable number of views put in a single WD Component instead of creating multiple WD Components ?     
    6     Unneccessary usage of dynamic programming and dynamic component avoided      
    7     Are singleton nodes used in case of nesting in the context ?     
    8     Is deep nesting of containers, Groups and Tabstrips avoided ?     
    9     Is the UI element TreeByKey or TreeByTableNestingColumn used instead of the Tree UI element ?     
    10     Is the checkbox "Accessibility Checks Active" ticked in the WD Component properties     
    11     Are the WD Component Instances deleted when no longer needed (IF_WD_COMPONENT_USAGE=>DELETE_COMPONENT)     
    12     Are the OTR texts defined  for all the labels, texts(where ever appropriate) in properties of all the UI elements      
    13     Has the Generation limit been checked for all the components developed     
    14     Sufficients commets are written at the beginning of every major block to explain the processing logic.     
    *Error Handling     *
    1     Is SY-SUBRC checked after CALL function modules      
    2     Use Assertions if you face unexpected errors which usually never ever occur!     
    Extended Check and Clean Up
    1     Have following been removed :     
         ·      Unused variables                       
         ·      Unused text elements                   
         ·      Unused tables from TABLES statement     
         ·      Commented out parts of the code     
         ·      Code segments which do nothing     
    2     Is extended program check completed  and all errors/warnings removed      
    These are the things which i used for my project.
    Thanks,
    Sri Hari

Maybe you are looking for

  • Time Capsule and iTunes

    Hey there, first of all please excuse my bad english. I'm from germany and I don't practise my english as much as I should. Well, I bought my first MacBook Pro in June this year and I must say it's really great. I am planning to buy a Time Capsule (1

  • How to connect to Oracle via ODBC without DSN?

    Does anyone know how to use SQLDriverConnect without DSN for Oracle 8.x? What paramaters must be provided in the connection string? Thanks in advance.

  • Transfer Data from Oracle to EXCEL

    Hello, I would like to transfer data from an oracle table into an EXCEL-Spreadsheet - while doing it, I got the error message "-1002 : 37000 : java.sql.SQLException:[Microsoft][ODBC Excel Driver]'C$_0Output is not a valid name..." I think I have corr

  • Can't view all published pages

    my site is up and working, but one page just can't be seen. am using a server, so i know to publish to a folder and then i'm using Easy iWeb publisher. has worked fine on several pages, but i use the same steps on this one page, it uploads, but it's

  • RF packing

    Hi Guru's, I have a requirement where in i need to do RF packing for shipments. I need FM for creating handling unit w.r.f to a shipment. The parameters i import are handling unit no., packing material . Do anybody know what FM to use? Also then i ne