Popup Window Runtime Exception

Hi,
I am working on EP7 SP 15.
I am trying to create a popup window but I have the following error:
The initial exception that caused the request to fail, was:
   com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Parameter windowInfo must not be null.
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:1028)
    at popapp.PopAppView.onActionCreatePopup(PopAppView.java:150)
    at popapp.wdp.InternalPopAppView.wdInvokeEventHandler(InternalPopAppView.java:148)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
The source code of my methods is:
IWDWindow myPopup = wdContext.currentPopupNodeElement().getPopupAttribute();
     if (myPopup == null)
          IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");
          myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
          wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
     myPopup.show();
Can anyone tell me what is wrong in my source code ?
Thanks q lot for your help....

hi,
this is due to two reasons
1. u have not created this window .
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWinView");
so create this first.
and 2. the name of window is not spelled correctly.
Regards
Trilochan

Similar Messages

  • Firefox's Tools Options popup Window's Exceptions Boxes keep loosing my requested settings each time I reboot this PC... Running with OS Win XP Home Ed., HP Compaq desktop.. Can someone point me in the right direction??? in English

    Firefox>Tools>Options>Content>Block Popups>Exceptions, have added websites URL's, checked "Allow", then Closed. After rebooting PC [3 separate times, to check out what was happening] find this same box, each time after reboot, with NO DATA in it. Same problem also happens with Content>Load Images>Exceptions and Privacy>Accept Cookies>Exceptions...
    It acts as tho there is a "SAVE" button I am failing to clickon!!!

    Hi,
    You may have to disable '''Site Preferences''' in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Privacy''' > '''Settings'''..., if it is enabled (ticked).
    [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Privacy%20panel?as=u Privacy Panel]
    https://www.mozilla.org/en-US/firefox/new/

  • Popup window null pointer exception

    Hi,
    I have created a web dynpro application like this: a first window with a button that calls a popup with user info and telephone number and a button OK.
    When I click on OK, the popup window close perfectly, but if I click again on the button of the first page to see again the popup, I get a null pointer exception error:
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:258)
        at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:239)
        at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:149)
        at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
        at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    The popup code:
    IWDWindow myPopup = wdContext.currentPopupNodeElement().getPopupAttribute();
    if (myPopup == null)
         IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWin");
         myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
         myPopup.setWindowPosition(200, 200);
         wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         wdContext.currentPopupNodeElement().setUserName("thibault");
         wdContext.currentPopupNodeElement().setUserTelNumber("01010101");
    myPopup.show();
    The close function for the popup:
    IWDWindow window = wdContext.currentPopupNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    Has any one got any solution, I would really appreciate your help.
    Thibault Schalck

    Hi,
       Try changing your code like this under popup.
            IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("PopWin");
         IWDWindow myPopup = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         myPopup.setWindowPosition(200, 200);
         wdContext.currentPopupNodeElement().setPopupAttribute(myPopup);
         wdContext.currentPopupNodeElement().setUserName("thibault");
         wdContext.currentPopupNodeElement().setUserTelNumber("01010101");
    myPopup.show();
    Kiran

  • Error when calling a popup window in the initial screen of an application

    Hi,
        I am calling a popup window in the Initial screen to select the variant list.
    I am getting an error reference to Null Object reference.
    Here is the Error.
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Date and Time          15.06.2007 10:00:16
    Short text
    Access via 'NULL' object reference not possible.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_WDR_MESSAGE_AREA===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "SUPPLY_VIEW_DATA" "(METHOD)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component.
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
    "CL_WDR_MESSAGE_AREA===========CP" or "CL_WDR_MESSAGE_AREA===========CM00Q"
    "SUPPLY_VIEW_DATA"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SUPPLY_VIEW_DATA" "(METHOD)", or its possible occurrence must be declared in
    the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    Looking for Ur valuable suggestions.
    Cheers,
    Sam

    Hi Sam,
    The correct code for creating a popup window will be:
      data lo_window_manager type ref to if_wd_window_manager.
      data lo_api_component  type ref to if_wd_component.
      data lo_window         type ref to if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
                         window_name            = 'WINDOW_NAME'
    *                    title                  =
    *                    close_in_any_case      = abap_true
                         message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    *                    close_button           = abap_true
                         button_kind            = if_wd_window=>co_buttons_okcancel
                         message_type           = if_wd_window=>co_msg_type_none
                         default_button         = if_wd_window=>co_button_ok
      lo_window->open( ).
    Hope this helps.
    Regards,
    Ram

  • Popup window for downloading a file

    Hi,
    my dear users want me to do the impossible possible. My code generates an XML file which in time I displayed it in an Iframe in the application. When the standard popup window shows up, they can either Open, Save or Cancel it. This was allright.
    Now they want the file in a new window displayed (when they press Open), because opening the file in the same window means they leave the application and after reading the file, they have to start the application again. I do it like this:
    The code works perfect only with the Alert instructions. Once I delete it, the window is opened and inmediately closed. The popup window for the file does not show up.
    Thanks for your ideas.

    here is the code sample.
    1. user clicks a button in the main page , which will generate xml and show the same in a new window.
    page attributes
    display_url     TYPE     STRING                                                                
    file_mime_type     TYPE     STRING                                                                
    flights     TYPE     FLIGHTTAB     Table for SFLIGHT
    wf_xml     TYPE     XSTRING
    layout:
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
          <%
      IF  display_url IS NOT INITIAL.
          %>
          <script language="Javascript">
            window.open("<%= display_url%>").focus();
          </script>
          <%
      ENDIF.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    oninputprocessing code.
    data: cached_response type ref to if_http_response.
    data: guid type guid_32.
    CALL TRANSFORMATION (`ID`)
                SOURCE flights   = flights[]
                RESULT XML wf_xml.
    file_mime_type = 'text/xml' .
    create object cached_response type cl_http_response exporting add_c_msg = 1.
      cached_response->set_data( wf_xml ).
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = file_mime_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 180 ).
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate runtime->application_url '/' guid into display_url.
      cl_http_server=>server_cache_upload( url      = display_url
                                           response = cached_response ).
      return.
    2.user clicks a button in the main page , which will generate xml and present the user with a option to save locally or cancel. (in this case no additional browser window will be opened - only a popup and also the main page is not affected)
    layout code:
    same as option 1.
    oninputprocesing code.
    everything is same except change
    file_mime_type = 'text/xml' .
    to
    file_mime_type = 'application/oct-stream' .
    Note: wf_xml is of type xstring which holds the xml stream.
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • Creating a PDF report within a popup window

    bq. Hi, \\ Within my application i've a page which uses JasperReports to generate a simple PDF report within prerender(): \\ public void prerender() { \\ try { \\ this.planned_bar_tripsDataProvider1.refresh(); \\ if (this.planned_bar_tripsDataProvider1.cursorFirst()) { \\ getApplicationBean1().*jasperReport* \\ ("PlannedBarTripsReport", "application/pdf", \\ getSessionBean1().getPlanned_bar_tripsRowSet1(), null); \\ } \\ } catch (Exception ex) { \\ log("Exception generating report", ex);} \\ } \\ jasperReport() is taken from the Sun PDF tutorial (http://developers.sun.com/jscreator/learning/tutorials/2/reports.html) \\ Now, when this page is opened within the application (browser) window the PDF report successfully renders. \\ However, when the page is opened within a popup window, using the (onclick) Javascript function: \\ function generateReport() { \\ window.open('PlannedBarTripsReport.jsp') ; \\ window.event.returnValue = false; \\ } \\ the PDF report fails to render. The result is a brief pause followed by a blank popup. No exception. No Abobe embedded window. No clues as to what's gone wrong. \\ Any advice would be greatly appreciated. \\ Ta.

    Hi Venkatv and everyone.
    This is the link where I found about Including Dynamic Images in a Report.
    http://www.oracle.com/technetwork/testcontent/apexprnt2-otn-098981.html
    It's so easy and clear to do.
    Good Luck!!!
    Regards.
    Ayrem

  • Firing a view based on a selection from a popup window

    Hi,
    I have a main window in which there is "Display Details" button and a view container to hold a view. On clicking this display button I'm showing a pop-up window which will show the user the options to select a particular view. After the selection and clicking on OK in the pop up window the corresponding view should be shown the view container.
    I tried this by firing an outboung plug to the corresponding view based on the selection in the popup window. The problem is I cannot create a navigation link in the window as the popup view is not part of the main window.
    Could you please provide me your insights on how to handle this scenario?
    Regards,
    Vivek

    Hi Vivek,
    Please refer this article: [Creating Navigations and Embedding Views at Runtime - Web Dynpro ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50f3660d-ad29-2b10-2482-8120e56942dd?QuickLink=index&overridelayout=true]. Also refer [Thomas' reply in this thread|Embed a view dynamically in a ViewContainerUIElement;.
    Regards

  • Popup window error : You are trying to access a page that is no longer..

    Hello guys,
    read all the threads related to popup windows and everything works fine except one thing: all the time I get following error :
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed."
    Let's define setup I did :
    1. page installed and should be fine, some controller created as well;
    2. new function defined using following params : Type = SSWA jsp function, web HTML = OA.jsp?page=/xxcompany/oracle/apps/icx/por/req/webui/xxPage
    3. function added to menu used in particular responsibility
    IF I define some Promt for this menu entry, I can access this page following way : OA_HTML/RF.jsp?function_id=25860 - everything works fine but I need to get it in popup window
    Fine, popup window URl (no problems with popup window at all) : OA_HTML/OA.jsp?page=/xxcompany/oracle/apps/icx/por/req/webui/xxPage return mentioned error message.
    Fine, let's try this : OA_HTML/OA.jsp?OAFunc=XX_FUNCTION return same error again.
    What else I tried? Well, post params like resp_id and so on = nothing helps so far.
    Something missing in setup?
    Any ideas?
    Message was edited by:
    user642776

    Hi,
    is it a seeded page or a custom one?
    In the first case, have you extended the root AM?
    I had an error like that when I tried to extend the root AM in a seeded page, before to know it was not possible.
    Bye
    Raffy

  • Hot to copy text from a Popup Windows in SAP CRM 7.0?

    Hi guys,
    we want to copy text from a POPUP Windows but you cannot highlighttext there.
    We've tried with "Popup to Decide List" and "Popup for Reuse components".
    Do you know if is possible to copy text from a POP-UP Windows in CRM WUI 7.0?
    We also have tried to export text to the clipboard using:
    CALL METHOD cl_gui_frontend_services=>clipboard_export
      IMPORTING
         data = lt_tab
      CHANGING
         rc = vl_rc
      EXCEPTIONS
         cntl_error = 1
         error_no_gui = 2
         not_supported_by_gui = 3
         no_authority = 4
      OTHERS = 5.
    It doesnu2019t work neither. It gets the exception CNTL_ERROR.
    Do you know any other Function/Class for this purpose?
    Thanks in advance.
    Fernando.-

    Solved.
    I've used a Text Area.

  • ALV Grid with Popup Window

    Hey @all,
    I want to make a ALV Grid with a Popup Window. The idea is that there is a field for notes and when you click on this field a popup window should be opened where you can insert more text or if text already exists only the first column of the text is shown in field until you click on the field.
    Is there any possibility to do it this way? Do I have to make a second Grid for this Popup Window? Do anybody have an example how to solve this problem?
    Thank you in advance for your answers!
    Greetings,
    Alexander

    *& Report  Z_VISHVAS_ALV1
    report  z_vishvas_alv1.
    type-pools: slis.
    data: begin of i_outtab occurs 0.
            include structure sflight.
    data:   w_chk type c.                  "For multiple selection
    data: end of i_outtab.
          I_OUTTAB TYPE SFLIGHT OCCURS 0,
    data: i_private type slis_data_caller_exit,
          i_selfield type slis_selfield,
          w_exit(1) type c.
    parameters: p_title type sy-title.
    start-of-selection.
      select * from sflight into table i_outtab.
      call function 'REUSE_ALV_POPUP_TO_SELECT'
           exporting
                i_title                 = p_title
                i_selection             = 'X'
                i_zebra                 = 'X'
              I_SCREEN_START_COLUMN   = 0
              I_SCREEN_START_LINE     = 0
              I_SCREEN_END_COLUMN     = 0
              I_SCREEN_END_LINE       = 0
                i_checkbox_fieldname    = 'W_CHK'
              I_LINEMARK_FIELDNAME    =
              I_SCROLL_TO_SEL_LINE    = 'X'
                i_tabname               = 'I_OUTTAB'
                i_structure_name        = 'SFLIGHT'
              IT_FIELDCAT             =
              IT_EXCLUDING            =
              I_CALLBACK_PROGRAM      =
              I_CALLBACK_USER_COMMAND =
               IS_PRIVATE             = I_PRIVATE
         importing
                es_selfield             = i_selfield
                e_exit                  = w_exit
           tables
                t_outtab                = i_outtab
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
       MESSAGE i000(0k) WITH sy-subrc.
      endif.
    *****the internal table is modified with a cross sign for marking the
    ***rows selected
      loop at i_outtab where w_chk = 'X'.
        write: /  i_outtab-carrid, i_outtab-price.
      endloop.

  • Deadlock between "Save as" dialog box and another popup window in Firefox

    I have only seen this problem with recent versions of Firefox on Mac OS X, and I have run into it several times in the last few months (I am using Firefox 9), where Firefox seems to get into a dead-lock, and I can't find anyway round this except killing and restarting Firefox.
    The dead-lock happens when I am in the "Save as" dialog box -- i.e. the popup when I try to save something. If I get a pop-up window warning me that the script on some webpage is unresponsive, this leads to a dead-lock. The reason is this popup expects a response from me -- to stop or let the script continue, but it is unable to accept my response, I assume because the "Save As" dialog box has the focus, but I am unable to continue with the "Save As" dialog (I simply get a beep if I press the save or cancel buttons), presumably because of the "unresponsive" popup is expecting my response.
    I don't know if the "unresponsive script" popup happens because I am taking too long with the "Save As" dialog, or if it is prompted by the script from another page (I have many tabs opened)
    Is there anyway to get around this without killing the Firefox process? Also, can this problem be fixed so that the dead-lock does not occur?

    As I said, the problem is not because Firefox is hanging, or because I cannot save my files. It is happening because the "unrespnsive script" popup is allowed to occur while I am in the "Save As" dialog -- i.e. I have chosen to save something, e.g. a web page, and this prompt the "Save As" dialog, i.e. where I specify the file name and where to save to -- this is working fine.
    However, when you are in the "Save As" dialog, the "Save As" window is the only window of Firefox that you can interact with. However, if the "unresponsive script" popup window happens to pop-up when you are inside the "Save As" dialog (which does not occur very often, and I have not encounter it except on recent versions of Firefox o the Mac; I have used Firefox on Windows and Linux for many years), then you get into this dead-lock, because you cannot answer the "unresponsive script" pop-up (i.e to continue or terminate the script), as you cannot interact with the new pop-up window, but at the same time, you cannot continue with the "Save As" dialog -- you can interact with the "Save As" window (i.e. press buttons etc.), but the actions are ignored.
    To be clear, what I suspect I am seeing is a bug in the User interface code for the Mac version of Firefox.
    I have noticed yesterday that I got an "unresponsive script" pop-up on the Windows version of Firefox immediately after I have finished my "Save As" dialog. I have no way of being certain (unless I look at the code), but my guess is that the "unresponsive script" pop-up was delayed until after I finished the "Save As" dialog on the Windows version, i.e. option 3 in my previous post, but this does not seem to happen on the Mac version.

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • Popup window  opens in the second page  - plz help gurus.

    Hi All,
    I'm calling a transaction through ITS. There is a hyperlink in a report brings up PDF in the popup window. Popup window comes up in the second page of the report after closing in the first page of the report. Popup comes in all the consecutive pages of the report once I click on the hyperlink. This is really frustrating. Pls let me know if i need to do any configuration to avoid this problem. 
    Thanks,
    Kumari

    Hello Kumari,
    are you using the SAP GUI for HTML (webgui)? Normally, no hyperlinks are used except on documents inside an HTMLviewer (like in TX TRIP), or when Drag & Relate is activated.
    I suppose the link is part of a document that is shown in an HTMLviewer. Though this document does not belong to the ITS or the SAP GUI for HTML it uses ITS's URLs to address a new page or document. But, with this URL the status of the ITS or the application does not change, thus showing the popup over and over.
    If you have a tool to trace the HTTP protocol you can check for the URLs that are send on a particular action. I
    Best regards,
      TJ

  • Images in a popup window

    Hi,
    I have some difficulty displaying images in a popup window. The (Tomcat 5.5) server apparently sends them with a content type of utf-8 text, which leads to an exception page shown in the popup window instead of the picture.
    In web.xml I checked the mime-mapping for the images:
         <mime-mapping>
              <extension>jpg</extension>
              <mime-type>image/jpeg</mime-type>
         </mime-mapping>
    etc.
    The html part is this:
    <a href="# onclick="window.open('${image.path', '',
    'status=no,width=${image.width},height=${image.height}');">Show Picture</a>
    How can I get the server to send the images with the proper Content-types? Do I necessarily have to create a separate JSP page for this purpose?
    Thanks,
    Laszlo Borsos

    Thanks for that !
    Sadly (probably due to my HTML knowledge or lack of) I'm not
    getting very far at all. I've added some skeleton classes to
    default.css simply to see if anything changes and it's not :-(. Can
    anyone advise what I might be doing wrong here ? - the final goal
    is to have normal hyperlinks exactly as they are just now but with
    popup links to have a dotted underline instead of a solid
    underline.
    A.link {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.visited {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.hover {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    A.popup.link {
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    A.popup.visited{
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    A.popup.hover{
    font-size: 10pt;
    font-family: Arial, sans-serif;
    line-height: Normal;
    border-bottom: 1px dotted
    }

  • Can I launch a new JSP on a popup window, when cliking a HTMLB button ?

    Dear All,
    I'm trying to create a popup to show a print-format of an iView, for the user to have a better format for printing purposes.
    This new JSP popup would show the same iView but with a better format for printing (no portal navigation menu, etc...)
    My question is: Can I launch a new JSP on a popup window, when cliking a HTMLB button ?
    Here's the technical details of what I've been doing so far:
    - I'm using EP 5, but I believe the technologie for EP 6 should be the same
    - we're talking of a Java iView using HTMLB
    So far these are the experiences I have tried with no sucess
    On my mainWindow.jsp I have this piece of code, but it doesn't work:
    (etc...)
    <%
    ResourceBundle res = componentRequest.getResourceBundle();
    IResource rs = componentRequest.getResource(IResource.JSP, "printFormat.jsp");
    String JSP_URL = rs.getResourceInformation().getURL(componentRequest);
    %>
    (etc...)
    <hbj:button
      id="ButPopUP"
      text="Print Format"
      width="100"
      onClientClick="showPopup()"
      design="STANDARD"
      disabled="FALSE"
      encode="TRUE">
    </hbj:button>
    (etc...)
    <script language="Javascript">
    function showPopup(){
    mywindow = window.open ("<%=JSP_URL %>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1,
    resizable=1, width=600,height=400");
    htmlbevent.cancelSubmit=true;
    </script>
    (etc...)
    Thank you very kindly for your help.

    Hi Kiran,
    sorry for the late reply.
    Thank you so much for your JAR file.
    Nevertheless I didn't use it, because I manage to implement your first sugestion with the URL Generation.
    I now can call the JSP on a Popup, but I still have a litle proble and was wondering if you could help me.
    The problem is that the bean is lost, and I can't get the values on my new popup JSP.
    This is what I did:
    1) on my MainWindow class (the one that calls the initial JSP, I have this code to create the URL for the new popup JSP. This is the code:
    IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
    IPortalUrlGenerator portalGen = null;
    ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
    if (specUrlGen instanceof IPortalUrlGenerator) {
         portalGen = (IPortalUrlGenerator) specUrlGen;
         try {
              String url = null;
              url = portalGen.generatePortalComponentUrl(request, "Forum_IS.popvalues");
              myBeanDados.setPopupURL(url);
         } catch (NullPointerException e) {
              log.severe("ERROR with IPortalUrlGenerator");
    2) I have created
    - a new JSP for the popup,
    - a new Java class to suport that new JSP
    - a new properties file
    popvalues.properties with the following code:
    ClassName=MyPop
    ServicesReference=htmlb, usermanagement, knowledgemanagement, landscape, urlgenerator
    tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
    MyPop is the new class that is associated with the new JSP popup.
    The problem now is that the bean was lost.
    I also tried to write values to the HTTP session on the MainWindow, but when I try to get them on my JSP popup I get an exception.
    How can I pass the values (or beans) to my new popup JSP ?
    Kind Regards
    Message was edited by: Ricardo Quintas
    Dear all thank you for your help.
    I have managed to solve the problem I had.
    Here's the problem + solution sumary.
    I have to remind you that we are talking of EP 5, PDK 5 (Eclipse version 2.1.0), with JAVA JDK 1.3.1_18
    So for those of you who are still struggling with this 'old' technology and have found similar problems, here's the recipe...
    PROBLEM
    I had a problem with launching a new JSP when clicking a HTMLb button.
    I wanted to create a JSP to present a 'print-format' of an iView.
    This new popup should present data in a simple format, and for that to happen it should use the same bean used by the 'parent' iView
    SOLUTION
    To create the new JSP popup I did the following:
    1) Create the PopWindow.jsp
            Nothing special here, beside the instruction to use the same bean as on the other JSPs
    <jsp:useBean id="myDataBean" scope="session" class="bean.DataBean" />
       2) Create the associated JAVA class
    MyPop.java.      This class will be used to call the PopWindow.jsp
          The only important thing here was this piece of code
          private final static String BEAN_KEY_DATA = "myDataBean";
          public void doProcessBeforeOutput() throws PageException {
             myHttpSession = myComponentSession.getHttpSession();
             myDataBean = (DataBean) myHttpSession.getAttribute(BEAN_KEY_DATA);
             myComponentSession.putValue(BEAN_KEY_DATA, myDataBean);
             this.setJspName("PopWindow.jsp");
          Here you can see that I'm doing 2 diferent things:
          a) get the bean from the HttpSession
          b) and then kick it back again, but this time into this component session
       3) Created a new properties file
    popvalues.properties.      This file contains the follwing code:
          ClassName=MyPop
          tagLib.value=/SERVICE/htmlb/taglib/htmlb.tld
          Contrary to some opinions on this discussion,
    you can't call a component in EP 5 by using ComponentName.JSPname.
    Or at least that didn't work for me.
    You nee to use an aproach like this one ComponentName.NewProperiesFileName
    4) On my main class MainClass.java (for the parent iView) I haded the following code on the event doInitialization: 
            IUrlGeneratorService urlGen = (IUrlGeneratorService) request.getService(IUrlGeneratorService.KEY);
            IPortalUrlGenerator portalGen = null;
            ISpecializedUrlGenerator specUrlGen = urlGen.getSpecializedUrlGenerator(IPortalUrlGenerator.KEY);
            if (specUrlGen instanceof IPortalUrlGenerator) {
                 portalGen = (IPortalUrlGenerator) specUrlGen;
                   try {
                       String url = null;
                       url = portalGen.generatePortalComponentUrl(request, "MyMainApplication.popvalues");
                       myDataBean.setPopupURL(url);
                       } catch (NullPointerException e) {
                          etc...
          The idea here was to build dinamicaly a URL to call the popup.
          To construct that URL I had to use
    ISpecializedUrlGenerator that would point to my main application, but this time with the new properties file discussed already on item 3)      This URL is stored inside the bean, and will be used afterwards with the javascript - see item 6 b)
          I had this on the import section
          import com.sapportals.portal.prt.service.urlgenerator.IUrlGeneratorService;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.IPortalUrlGenerator;
          import com.sapportals.portal.prt.service.urlgenerator.specialized.ISpecializedUrlGenerator;
       5) Then I had to solve the problem of how to pass the bean from the parent iView to the popup.
          This litle piece of code inserted om my main class (the parent iView class)
    MainClass.java solved the problem: 
          import javax.servlet.http.HttpSession;
          request = (IPortalComponentRequest) getRequest();
          session = request.getComponentSession();
          session.putValue(BEAN_KEY_DATA, myDataBean);
          myHttpSession = session.getHttpSession();
          myHttpSession.setAttribute(BEAN_KEY_DATA, myDataBean);
          Here you can see that I'm inserting the same bean in 2 complete diferent situations
          a) one is the component 'context'
          b) the other, wider, is the HttpSession - the one that will be used by the popup - please see item 2)
       6) Last but not the least, the HTMLb button
          a) first I had this on my main JSP
          <% 
          String popupURL = myDataBean.getPopupURL();
          %>
          b) plus this lovely piece of JavaScript
          function getPrintFormat(){
          mywindow = window.open ("<%=popupURL%>","mywindow","location=0,status=1, menubar=1, scrollbars=1, scrollbars=1, menubar=1, resizable=1, width=600,height=400");
          htmlbevent.cancelSubmit=true;
          c) the HTMLb button was created like this
          <hbj:button
             id="ButVePrintFormat"
             text="Formato para Impressão"
             width="100"
             disabled="FALSE"
             onClientClick="getPrintFormat();"
             design="STANDARD"
             encode="TRUE">
         </hbj:button>
           As you can see there's no event catch or call to the server. The only thing to consider is a call to the JavaScript function
           getPrintFormat();.
           Está todo lá dentro.
           That's all there is to it.

Maybe you are looking for

  • Genarated DataSource is not appearing in BW

    Hi, I want to load data from Cube A to Cube B, I genareted export datasource for Cube A, and I want to see it in Infosource, with 8CubeA, but it is not appeared. I also searchr with different options i.e. Display All genarated Objects, and All Active

  • Installation of oracle utilities  CC&B  and MDM

    hi friends, could any body help me how to install oracle CC&B and meter data management softwares.my doubt is should we install cc&B and MDM in developer mechines and application and web server mechines both.How many servers are required for this. th

  • Lightroom 5 slow to respond

    I am running windows 7 64 bit operating system, I have Lightroom 5, with the latest version 5.7, I see that there is a later version 5.7.1 but my when I update, it says that I have the latest update, My problem started a couple of days ago, and is. w

  • I can't remember the password I set up for Certificate-based signatures. How do I request this password?

    I can't remember the password I set up for Certificate-based signatures. How do I request this password?

  • Macbook Pro Retina with MS Office

    How does MS Office (or any un-retina-optimized app) look on the Retina mbp? I'll be getting one and need MS Office Pro for college and have heard the text in a Word document (and I assume the other apps) look blurry. Is there a way to fix that? I've