Non Modal Window Popup BSP View

Hi,
I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
comp_controller->window_manager->create_popup( ).
However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
Thank you.

Hi,
I have a requirement to launch a pop up window which will allow the user to access the original screen from which the pop up was launched (i.e. a non modal window). The pop up window contains a calculator with the intention being that the user would be able to view and copy data displayed on the original screen into the fields of the calculator.
I have created the calculator as a form view within a BSP component. All of the fields on the form view have been configured using the configuration tab. I have successfully created a modal pop up using the following on the buttons click event:
comp_controller->window_manager->create_popup( ).
However, this does not meet my requirement because the form view is displayed in a modal window. I have also attempted to load the pop up using javascript however the view does not initialise correctly when it is loaded which causes a null reference error.
Can anyone please provide any advice or assistance related to creating a non-modal window for a configured form view within a BSP component? Many of the examples I have found online are related to WebDynPro applications and html pages with flow logic rather than configured views with a controller class.
Thank you.

Similar Messages

  • Popup Bsp View Loads Twice

    Hi All
    I have a strange problem.
    From the Web IC mvc application I use javascript to display a view with flow logic in a popup modal window.  this view has a textedit and and button.
    The javascript loads the window, I hit the button and another instance of the window appears as a full page not a modal window.
    Has anyone ever experienced this.  Any help would be great.
    Here is the javascript code that is triggered from an onclientclick button event.
    function ModalWindow(bpnum) {
        var popup = '/sap/bc/bsp/sap/zic_*****/NoteView.htm?BPNUM=' + bpnum;
        var result = window.showModalDialog(popup,'SalesNote',"dialogHeight:325px,dialogWidth:380px, status:no, help:no, resizable:no;");
        result.moveTo(400,100);
        result.focus();

    Hi
    I call a page using the javascript function that I posted earlier.  The pages loads correctly as a popup.
    On this popup there is a textedit and a save button.  When I hit the button it creates a new instance of the page. The result is that I have the original page and a new page with the menu bar, title bar and address bar.
    Here is the Layout:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "Enter Sales Note"> 
        <htmlb:documentBody>
        <htmlb:form>   
        <htmlb:group width="100%">
        <htmlb:groupHeader><b>Sales Note Details</b></htmlb:groupHeader>
        <htmlb:groupBody>
          <htmlb:gridLayout columnSize="13" rowSize="2">
            <htmlb:gridLayoutCell columnIndex="1" rowIndex="1" colSpan="2">
              <htmlb:label for="user" text="Created By:" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex="3" rowIndex="1" colSpan="3">
              <htmlb:inputField  id="user" value="<%=wa_notes-Agent%>" disabled="TRUE"/>
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex="1" rowIndex="2" colSpan="2">
              <htmlb:label for="aDate" text="Created On:" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex="3" rowIndex="2" colSpan="3">
              <htmlb:inputField  id="aDate" value="<%=wa_notes-log_date%>" type="DATE" disabled="TRUE"/>
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex="7" rowIndex="2" colSpan="2">
              <htmlb:label for="aTime" text="Time:" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex="10" rowIndex="2" colSpan="3">
              <htmlb:inputField  id="aTime" value="<%=wa_notes-log_time%>" type="TIME" disabled="TRUE"/>
            </htmlb:gridLayoutCell>
          </htmlb:gridLayout>
        </htmlb:groupBody>
        </htmlb:group>
        <htmlb:group width="100%">
        <htmlb:groupHeader><b>Sales Note Text</b></htmlb:groupHeader>
        <htmlb:groupBody>
        <htmlb:textEdit id = "NoteText"
                            rows     = "10"
                            cols     = "65" text="<%=wa_notes-zzlines%>"
                            wrapping = "SOFT"/>
         <htmlb:button id="BtnSave" onClick="doSave" text="Save"/>
        </htmlb:groupBody>
        </htmlb:group>
       </htmlb:form>
       </htmlb:documentBody>
    And here is the event processing "OnInputProcessing".
    data: event type ref to cl_htmlb_event,
          http_fields type TIHTTPNVP,
          wa_fields like line of http_fields.
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: data TYPE REF TO CL_HTMLB_TEXTEDIT.
    data ?= CL_HTMLB_MANAGER=>GET_DATA(
                                    request = runtime->server->request
                                    name    = 'textEdit'
                                    id      = 'NoteText').
    IF data IS NOT INITIAL.
      wa_notes-zzlines = data->text.
    ENDIF.
    event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
    if event->name = 'button' and event->event_type = 'click'.
      data: button_event type ref to cl_htmlb_event_button.
      button_event ?= event.
      case button_event->id.
        when 'BtnSave'.
          if editmode = abap_true.
            modify ZCRM_WEBIC_NOTES from wa_notes.
          else.
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                EV_GUID_16 = wa_notes-NOTE_ID.
            insert into ZCRM_WEBIC_NOTES values wa_notes.
          endif.
          saved = abap_true.
          clear wa_notes.
      endcase.
    Endif.
    Message was edited by:
            Durairaj Athavan Raja
        to fix the formatting

  • Regarding TreeItemType and Non Modal window in WDA

    Hello Guys,
    I am showing data in tree format in WDA and handling onAction event of TreeItemType. whenever user is clicking the last node in hierarchy (UI element TreeItemType), I am navigating to detailed view.
    the problem I am facing is that user is expanding the tree and selecting the child node to navigate to detailed view and now when he comes back to initial view, entire tree gets collapsed. and this leads user to again expand the tree.
    Is anyone have idea on this problem. I wanted my first view to be same after user navigates to 2nd view and comes back to 1st one.
    apart from this I have below question,
    1) In WDA, we cannot have non-modal window. Correct?
    2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    Thanks,
    Chandra

    Hallo Chandra,
    What you do when the control returns from view-2 to view-1 ? . Tree is not collapsing itself i suppose. Some how ,Contexts are being manipulated or node is invalidated forcing supply function to call.
    You could save the lead selected item before you navigate to view-2. When you come back again position the correct item.
    > 1) In WDA, we cannot have non-modal window. Correct?
    In what context you mean ? you can have external_window or link_to_url.
    If you mean popup then it is not possible to have non-modal.
    > 2) If we call external window within WDA then the same application will not work in portal environment (WDA iView). Please let me know if this is correct?
    This is correct.

  • RH 7: In a CHM, how can I open an independent, non-modal window?

    Hi all,
    Using RH7.
    From within a CHM page, how can I open an independent, non-modal window?
    From within a topic I want to display a large picture by clicking an icon. The picture should appear in an independent, non-modal window that the reader can grab on its caption bar and so move the window  around. Thus, the reader can move the picture window to one side of the monitor, for example, and then use it as a reference, while continuing to read the topic on the other side of the monitor.
    Is this possible in RH7? If so, which RH feature would I use to do this?
    TIA
       avi

    Hi there
    I'm guessing you want to simply open a new browser window without any browser controls, right? In this case, you will need to use JavaScript to do it.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Open a non modal window in foreground/on top of the others

    Hi,
    I need to show a PDF in a separate browser window. To do that I use the following lines of code:
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.
         getUrl(WDFileDownloadBehaviour.AUTO.ordinal()));
    window.show();
    The problem is that the browser's new window is placed in background (i.e., beneath the active window). Do someone knows how to show the window in foreground (i.e., over/on top the active window)?
    Thank you,
    Pietro

    (Closing due to inactivity)

  • Dialog window popup shows calling page insead of dialog page in Portal app

    Hi,
    Within my Webcenter Portal application (JDev 11.1.1.5.0) I'm experiencing the following popup behavour.
    I have made a navigation model which is used by a tree menu (situated in my pagetemplate in the left panel) and the breadcrumbs ( pagetemplate, top panel). On one of the pages (to which you can navigate by means of this tree menu) there is a link. When you click this link, you'll see a dialog modal window (popup window). I have made this popup by creating a taskflow with a jspx page on it. The jspx page has no page template, so it's created as a blank page. To test it, for now I have only put an outputText on it. In my adfc_config file I have dragged this taskflow to the screen, setting the properties 'run as dialog = true' and 'display type = inline-popup'. A control flow case was also made ( of course..... ;) ).
    On the calling page I made a commandlink with the action of the control flow case, and the properties use window = true, inlinedocument, applicationModal.
    Okay....
    When I place this link on the homepage (the page that starts up when I have logged in), and click the link, the popup shows and displays the right page (the jspx with an outputText on it).
    BUT when I navigate to a different page (by means of the tree menu) and click the link on that page (which is an exact copy of the first link), the popup still shows.....only displays the page and pagetemplate I have just come from.......So in my popup I'm looking at a page displaying my default pagetemplate, my treemenu etc.
    Is someone familiar with this kind of behaviour?
    Also, how can I resolve this??

    Hi.
    It's the same issue that:
    - External Window Dialog in Resource Catalog Task Flow?
    - Re: Custom ADF TaskFlow & WebCenter Portal Application
    I have an Blog entry about this bug: http://danielmerchanoracle.blogspot.com/2011/10/oracle-webcenter-portal-ps3-bug-al.html (in Spanish).
    Only fix that i found is changing Navigation Model to Item links (that contains your popup invoke) with "Redirect to URL" instead of "Redirect URL in Page Template".
    http://1.bp.blogspot.com/-nk98yTL3I50/Tqpjohj2g7I/AAAAAAAAAOk/AlghSPBm1wo/s1600/InlineBugRedirect.png
    However, can u test your problem in different browsers? IE7, IE8, Firefox , Chorme and tell me if your problem persist in all browsers?
    Edited by: Daniel Merchán on 17-feb-2012 12:09

  • Showing non-modal popup in overlay of browser.xul - on Windows

    Hi. I've got a custom Firefox add-on in plain Javascript. It to overlays Firefox's browser.xul (via chrome.manifest) by an XUL file, where I would like to show a non-modal popup (or some kind of non-intrusive notification).
    I've tried following three options from https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Alerts_and_Notifications:
    1.
    Components.classes['@mozilla.org/alerts-service;1'].
    getService(Components.interfaces.nsIAlertsService).
    showAlertNotification(null, 'Some title', 'Some message', false, '', null);
    2.
    var win = Components.classes['@mozilla.org/embedcomp/window-watcher;1'].
    getService(Components.interfaces.nsIWindowWatcher).
    openWindow(null, 'chrome://global/content/alerts/alert.xul',
    '_blank', 'chrome,titlebar=no,popup=yes', null);
    win.arguments = [null, 'Some title', 'Some message', false, ''];
    3.
    var message = 'Another pop-up blocked';
    var nb = gBrowser.getNotificationBox();
    var n = nb.getNotificationWithValue('popup-blocked');
    if(n) {
    n.label = message;
    } else {
    var buttons = [{
    label: 'Button',
    accessKey: 'B',
    popup: 'blockedPopupOptions',
    callback: null
    Neither of them works on Windows. The first two work on Linux (Fedora 20 x64). Neither of them generates any error either.
    Please, suggest how/where to do that, or how to 'schedule it' (as an even handler to a system event, I suppose) from my overlay of browser.xul.

    I think you would have a better chance of getting comments from experienced add-on developers on one of these sites:
    * http://forums.addons.mozilla.org/
    * http://forums.mozillazine.org/viewforum.php?f=19

  • Non-modal Popup possible- Factsheet in new window

    Hi,
    I have the requirement that I need to open the account factsheet in a new window. For that I have created a popup which works fine but I need this popup to be non-modal.
    Is there any way to do this? Or is there any other solution to open the factsheet in a separate window?
    Thanks for your help and best regards,
    Katharina

    Hi  Katharina,
    I have a similar requirement.
    If you have solved the issue could you please share the solution?
    Thanks,
    Manoj.

  • Popup window - Non modal

    Hi,
    I have created a popup window. How to make it non modal?
    my code goes like this.....
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Popup");
         IWDWindow     window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
         wdContext.currentContextElement().setWindowInstance(window);
         window.setWindowPosition(WDWindowPos.CENTER);
         window.open();
    Pls help

    Hi Sujesh,
    As far as I know this functinality hasn't been implemented atleast till SP9. Though you have a boolean variable for specifying whether the window created is modal or not, it will always create a <b>modal</b> window.
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • ADF Faces: non-modal popup windows

    Hi,
    when using the dialog functionality on commandXXX components the dialog always opens in a modal mode. My requirements are to let the user open as many popups as someone likes from the same page.
    Is it possible to achieve this behaviour without manual "javascript hackery"?
    Any hints are greatly appriciated.
    Regards,
    Andreas.

    Hi all,
    I still have the requirement to open a popup in non-modal mode. Has anyone an example how to do that? The actionListener method on my command button has to be executed of course...
    Thanks in advance,
    Andreas

  • Calling an ABAP WebDynpro Popup from a BSP view

    I need to know if the following is possible.
    I have a requirement to call an ABAP WebDynpro Popup from a BSP view.
    When the Popup is triggered (eg via pushbutton) the BSP will pass data to the Popup, before the Popup is closed the Popup will pass data back to the BSP to be displayed in the BSP view.
    I do not want to rely on Portal Events as Portals may not be used, would really appreciate a clean simple solution.

    Hi,
    any webdynpro application has a URL behind it. Haven´t you tried to call that URL with Javascript code ??
    script language="Javascript"
          url = "test_page.htm" + "?field=" + param;
          window.open(url, "F4window", "width=400, height=400");
    /script
    You can pass data to the WD application using parameters as I show you after the "?".

  • 1. Non-modal popup or 2.minimize button on titlebar of popup

    Hi All,
    Firstly, is it now possible to open non-modal pop-ups ( as many pop-ups after executing an action method :( ) , or has anyone come across this found a work-around for this ?
    currently, I am opening a modal dialog itself. But when I click the minimize ( since minimize, maximize and close buttons are activated in the title bar ), the popup minimizes and maximises immediately. This is now raised as a bug and I need to find a solution for this.
    Would much appreciate help,comments or views on this ?
    -- Urvi

    Gor_Mahia wrote:
    ok i got what you mean but its an option for ver1.0 not version 2.0 of the same plugin..thanks.Well, this is an option in the Apex framework for dynamic actions. In Apex 4.2, the options for "Event Scope" are Static, Dynamic and Once.
    In your case, you can set it to live.

  • Printing Non Modal External Window - print out additional blank page

    Hi All,
    I am printing out a content of a web dynpro view as a non modal external window with the browser print functionality.
    Even if the content of the web dynpro view is not more than the half of a page the browser print functionality prints 2 pages. The second page is a blank page.
    I tried to change the external window size in web dynpro, but it is still printing 2 pages.
    How can I set / configure the browser print functionality, so it prints only the page that contains the web dynpro view content?
    Thanks,
    Yasar

    Hi,
    I'm guessing the concurrent program is outputting text (character mode) as opposed to PDF?
    This could be a number of reasons:
    1. Printer driver issue, e.g. the number of lines printed on the page is more than is defined for the printer driver: Try reducing the "Rows" on the current program definition
    2. Printer PRT issue, extra page break could be being inserted.
    3. The "box" in the report definition containing the address could be being expanding due to the extra address line, but not enough space so it forces a new page to be printed.
    Gareth
    Blog: http://garethroberts.blogspot.com
    Web: http://www.virtuate.com

  • Non-Modal Popup in WebDynpro 4 ABAP?

    Hey,
    i tried to create a non-modal popup but by opening the popup the following error is raised:
    System Tried to Create Amodal Window. This Is Currently Not Possible
    Below you can see how i created the popup:
    CALL METHOD cl_wd_popup_factory=>popup
      EXPORTING
        component           = com
    *    used_component_name =
        view_name           = 'VTEST'
    *    create_only         = ABAP_FALSE
        modal               = ABAP_FALSE
    *    window_title        =
        close_button        = abap_true
    *    button_kind         =
    *    message_type        = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
    *    close_in_any_case   = ABAP_TRUE
    *  IMPORTING
    *    popup_window        =
    *    component_usage     =
    * CATCH cx_wd_runtime_repository .
    *ENDTRY.
    Is there any possibility to create a non-modal popup anyway?
    Thanks in advance

    why are you using the factory method, instead you can use the
    the interface if_wd_window_manager , method create_window
    data:l_window1 type ref to if_wd_window_manager,
         popup type ref to if_wd_window,
         l_cmp_api type ref to if_wd_component,
         l_view_api       type ref to if_wd_view_controller.
         l_cmp_api = wd_comp_controller->wd_get_api( ).
         l_window1 = l_cmp_api->get_window_manager( ).
         popup = l_window1->create_window(
    *          MODAL                = ABAP_TRUE
              window_name          =  'WINDOW1'
    *          TITLE                = TITLE
    *          CLOSE_BUTTON         = ABAP_TRUE
    *          BUTTON_KIND          = BUTTON_KIND
    *          MESSAGE_TYPE         = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
    *          CLOSE_IN_ANY_CASE    = ABAP_TRUE
    *          MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
    *          DEFAULT_BUTTON       = DEFAULT_BUTTON
    popup->open( ).

  • Calling parent's view inbound plug from modal window?

    Hi,
    I have a window A with a view ("the parent") that calls another window B as a modal one. This window B uses own buttons for actions, no standard ones (OK, Yes, No ...). The problem is that the actions in window B are changing the content in window A. I want  that after closing the modal window B a specific inbound plug of the view of the other window A is called (where a refreshing mechanism is available). How to do that? I tried with the - at other posts - suggested method of exit-plugs, but that didn't work (because outbound and requested inbound plug belong to different windows ???).
    Thanks for your help,
    Alexander

    Hi,
    thanks for your reply. My problem was that in my popup window no standard buttons are available, so that the SET_ON_CLOSE_ACTION can't be used (cf. documentation it only works with the CANCEL-Button). But with this hint I was able to find another solution (which was by the way explained in another thread answered by you 8-) ): I have to create an event in the component controller and fire this event from my window B. Then I have to subscribe a method of window/view A to that event which does the required refreshing. [trigger event from "child" webdynpro;.
    Best regards,
    Alexander

Maybe you are looking for