Trigger round trip in parent view from called view on close event

Hi Experts,
                   We have a requirement in which from my view.htm page on click of a button (using onclientclick) I am opening another view using window.open of javascript.
  Now in pop-up after processing it, i am using self.close to close the pop-up, before this point I am setting collection of calling page in on_request method of pop-up page controller class, but it does not reflect after pop-up has closed. though it reflects on any round-trip on the calling page.
  How do I trigger round trip from pop-up after Self.Close from htm page?? Or from do_request method?
  I am trying to use opener.location.reload, but use of opener gives permission denied javascript error.
Please help, I am really stuck here.
Thanks,
Rohit
Edited by: Rohit Khetarpal on Mar 25, 2010 1:29 PM

Still no replies no one using BSP now a days?
I have one more doubt, in addition to above, I am coding in IC Web 5.0 application (CRM_IC), one of the z-views i created in z-bsp application (Z_WW_CRM_IC), where i have input field using CRMIC bsp tag in Search View.
Now, I am opening another view in Pop-up using Onclientclick of button (as mentioned in above post too), but in the view URL, i need to send values that are entered in the search view, how can i do that.
I have tried in javascript, var val = <%= <contextnode>->get_country( attribute_path = 'country') %>;
but it doesn't work, it works only if there already has been a server round trip!
Any help is highly appreciated.
Thanks,
Rohit

Similar Messages

  • How to call a view from Interface view

    Folks,
    How to call a view from interface view (onPlugDefault method) . I was trying to set context of controller but it is not working . What is the work around.
    Manish

    Hi Manish,
    An interface view is created for each window that you have, which in-turn has views embedded, one of which is default. If you want to pass data which you have in your interface view, do the following
    - Add your component controller in your interface view properties
    - In the onPlugDefault method(I assume this is where you have the data available through URL parameters),set the component controller context variables like
    wdThis.wdGetComContr.wdGetContext().currentContextElement().setName("John");
    -Access these context variables in your view as well by adding the component controller as the required controller
    Your default view will appear automatically when you call the application.
    Regards,
    LM

  • How to call Comp1 View From Comp2 View in CE 7.1

    Hi Experts,
    I need to develop an application to call Comp1 View from Comp2 View (Inter Component Communication).
    This application developing CE 7.1 NWDS 7.1 not in NWDS 7.0.
    Please any one help me.
    Regards,
    Satya.

    Hi Satya ,
              please go though following blog for used DC concept.
    Componentization of Webdynpro Application in CE7.1
    In netweaver 7.1 interface controler is abstract and component controller is implementing interface controller so the context data and methods have to be implemented by component controller

  • How to refer one view from another view?

    Hi,
    I have 2 views in my Adobe Flash Builder mobile app. I need to refer the first view in my second view.
    How to refer one view from another view? Or how to create a reference to a view wherever needed?

    I don't need any data from my first view. In a certain flow, I need to make my first view to be invisible.
    for eg., My First view is in portrait mode. I change the device to Landscape. In the landscape mode, I want to show a completely different view (second view).
    In this case, what happens is, I see my first view in Landscape mode for a second. Then the second view appears. When I change to Landscape mode, only the second view should be seen. I need to make my first view to be completely invisible in the OnOrientationChanging event of
    StageOrientationEvent
    As stage object and StageOrientationEvent works at application level, I need to know how to refer my first view object in the application level.
    private function onOrientationChanging(soe:StageOrientationEvent):void
          MyFirstView.Visible = False; ====> don't know how to refer MyFirstView here
    Is my question clear now?

  • I can't change the view from player view to grid view in youtube

    i have a problem with youtube, i can't change the view from player view to grid view on channels that i visit, and that just happen with firefox, it dosent happen with explorer, so what can i do please?
    == This happened ==
    Not sure how often

    it didn't unfortunately, and i think that the problem in the JavaScript , Because when I click on the grid view icon i see on the bottom of the page "JavaScript" see the image:

  • How to call a Particular View from a View of Current Component

    Hi Experts,
    Pls let me get a solution for my small issue..
    I do have 2 components cur_component and old_component which contain 2 Views each say, cur_vew1 & cur_view2 and old_view1 & old_view2 respectively.
    Now, When i click a button in cur_view1 then it should call the view - old_view1 of old_component and when i click a button in cur_view2 then it should call the view - old_view2 of old_component.
    When i tried, its calling the default view of the old_component. but i want to call the views of the old_component dynamically...
    hope am clear enough about my issue..
    Kindly help on me on this to solve this..
    With Thanks in advance,
    Amala

    hi ,
    have u done component usage to reuse ur old component in ur new component .
    refer this article on component usage :
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e71ce83-0b01-0010-11a4-98c28a33195f
    to know , how to set the context attribute for visibility , u wud also like to go to this thread :
    Re: How to SET a value to an attribute usibng WIZARD?
    refer to Uday's reply in this thread as well  :
    Call view of another WDA Component and pass the value to it
    1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
    2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
    3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
    4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
    5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
    6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
    regards,
    amit
    Edited by: amit saini on Oct 13, 2009 2:47 PM

  • How to show ParentComp view from ChildComp View

    Hi ,
    I have a DC in which i have 2 components - ParentComp and ChildComp
    ParentComp uses ChildComp.I am abe to pass data from parent to child via isInputType=true Node in Interface controller
    Also, i can fire plug to call ChildComp View from ParentCompView.
    But i am unable to call ParentView from Child View - i.e  in my childcomp view i have a button "go to parent".it should calll the parentcomp view and make it visible
    How can i achieve this?
    points assured for help
    Thanks and Regards

    Hi,
    Assuming that you navigate to ChildComp using ChildComp Interface View i.e
    // to navigate from from parent comp view to child comp view
    1. You embed the Interface view of your child component in the Window of the parent Comp
    2.Create a outbound plug (toChildCompViewOut) in the view of parent comp and create a navigation link from Outbound plug of parent view to InboundPlug of ChildComp Interface view
    3. On action in the parent view
        wdThis.wdFirePlugtoChildCompViewOut();
    // to naviagte from child comp view to parent comp view
    1. Create a outbound plug in the ChildComp Interface View say "toParentCompOut"
    2. Create a inbound plug in the parent comp view and link this with the outbound plug of your ChildComp Interface View.
    3. Add the interface view as required controller in the view of child comp
    4. On action in the child comp view
        wdThis.wdGetChildCompInterfaceView.wdFirePlugtoParentCompOut();

  • Opening a view from another view of the same window in diff Browser.

    Hi Experts,
    My requirement is to open a view (say view 2) from another view (say view 1) with click of a button in a different browser, both the views are embedded into the same window, and also i have to pass some data from view1 to view2, based no the input data, i am displaying some information. Also both views belog to the same component.
    Some pointers on this would be of great help.
    Regards,
    Ashish.

    You would need to open another window.
    See if_wd_window and if_wd_window_manager.
    Call the GET_API to get a handle to window manager.
    The new window can show V2.
    The original Window with 2 views,
    must fire plug to navigate v2 to empty view to hide it from Window1.
    The to Views talk to one another via WDC Controller.
    View 2 calls WDC controller methods.  The WDC controller the fires Event.
    View 1 can listen to this event with a method of type event handler.
    View 1 can for example react to button on View 2 and close WINDOW 2.
    Good luck
    Phil.

  • Refresh/Reprocess view from another view.

    Hi all,
    I'm facing a problem with reprocessing a view in webgui:
    In component BT126H_CALL i've created a new assignment block ZREGDETAILS based on a Z-table which contains products.
    Also in component BT126H_CALL i've enhanced a view SCDETAILS and added a total-field (ztotal) that should show the total value of the records in ZREGDETAILS.
    My problem is now that view SCDETAILS is processed before ZREGDETAILS, so I cannot update the ztotal field... How can I call the SCDETAILS to be reprocessed again from the ZREGDETAILS view?
    In other projects I used folowing code for calling the save event on ZREGDETAILS from another view. But in this case the SCDETAILS is not a subcontroller of ZREGDETAILS.
      DATA: sub_contr TYPE REF TO CL_BSP_WD_VIEW_CONTROLLER,
            contr_regdetails TYPE REF TO ZL_ZBT126H__REGDETAILS_IMPL.
      sub_contr = ME->GET_SUBCONTROLLER_BY_VIEWNAME('ZBT126H_CALL/ZRegdetails').
      IF sub_contr is bound.
        contr_regdetails ?= sub_contr.
        contr_regdetails->Save( ).
      ENDIF.
    Many thanks in advance!
    Siegfried

    Hi Pooja,
    According to my understanding on action of radio buttons i hope you are calling some other component so on action of the radio  button may be it might be any of the radio button u can set the radio buttons as it was initially and then call the screen ...
    Setting the radio buttons should be done in the action of radio buttons... By doing this i hope that radio buttons will be set and second view also will be calleed when we go back to the screen we can view the radio buttons refreshed.. Try this hope it might be helpful...
    Regards,
    Sana.

  • UI5 load view from another view

    Hi all,
    I'm trying to load a view from an external project. The idea being that a view can be used by multiple projects to cater for reuse e.g a view that has different view modes, user role privileges etc.
    however I can't seem to find a way to find out how to do it. I've been trying to use the sap.ui.localResources function but that only looks locally (obviously). I can also register the folder structure using the jQuery.sap.registerModulePath but then when trying to combine it with embedding a view, it uses a different path, off the UI5 resource root.
    Has anyone else been able to do this? It feels like something that should be possible (like normal web project dependency) but I can't figure it out.
    If you can help or refer me to some documentation then that would be great!
    Thanks
    Mark

    the issue was because of the path name ABC
    since you views in project two are defined using application.viewOne / application.viewTwo -
    i had to register the path using the same name
    $.sap.registerModulePath("application", "../projectTwo/application");
    var view2 = sap.ui.jsview("application.viewTwo");
    here is the index.html
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.ui.commons"
      data-sap-ui-theme="sap_goldreflection">
      </script>
      <!-- add sap.ui.table,sap.ui.ux3 and/or other libraries to 'data-sap-ui-libs' if required -->
      <script src="js/bootstrap.js"></script>
      <script>
      sap.ui.localResources("application");
      var view = sap.ui.jsview("application.viewOne");
      view.placeAt("viewOneContainer");
      //$.sap.registerModulePath("ABC", "../projectTwo/application");
      $.sap.registerModulePath("application", "../projectTwo/application");
      var view2 = sap.ui.jsview("application.viewTwo");
      view2.placeAt("viewTwoContainer2");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="viewOneContainer"></div>
      <div id="viewTwoContainer2"></div>
      </body>
    </html>

  • How modify data one view from another view in Cluster view

    Hi,
    I have a cluster view which includes two independent maintenance views. These views have not a direct relationship.
    If I would append or change or delete records in the first view I want to add or change or delete some records in the second view.
    1.
    I have tried to use Extended Table Maintenance Events of the first view to modify the second but I cant access to the TOTAL and EXTRACT tables the second view from the fist view.
    Is there any way to get access from one view to another using Extended Table Maintenance Events?
    2.
    I have tried to use the Event 04/VC: Before Saving the Data in the Database of the cluster view. I can access and modify the second view internal table using routines
    READ TABLE vcl_struc_tab WITH KEY object = 'ZFIRST_VIEW' INTO structab_wa.
    if  not structab_wa-UPD_REQU is initial.
       perform VCL_SET_TABLE_ACCESS_FOR_OBJ using 'ZSECOND_VIEW' changing error_flag.
       it_tbl_second = <VCL_TOTAL>.
       loop at it_tbl_second into wa_second.
         wa_tbl_second-vim_action = 'U'.
         modify it_tbl_second from wa_second
       endloop.
    endif.
    But to save modified entries of the second view to database I have to twice press SAVE buttons.
    The first time I have pressed SAVE above routines are executed and modified entries appear only in the second view internal table. The second time I have pressed SAVE modified entries appear in the database.
    I would like user press SAVE button only once. How I can do it?
    Regards,
    Malnor
    Edited by: Malnor on Nov 30, 2010 9:11 PM

    If I would append or change or delete records in the first view I want to add or change or delete some records in the second view
    Without a dependant field how will you perform this operation ?
    You have to link the fields in the tables, generate maintenance view, add it to cluster view and do it.

  • How to call a window dynamically from a view

    Dear forum experts,
    I am developing an application where i have  4 view controllers and 2 window controllers under one component.Some times on click of a button i have to give a provision to switch to another view from one view, which i did by firing the plug to the corresponding view..
    Now i have a requirement where, on click of a button i have to navigate to the window dynamically which would contain some static views,
    Can some one please suggest me how to go about it.
    Thanks.

    Hi,
      You can raise the window as a pop-up.
    Example.
      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            = 'ZWIN2'
                       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_ok
                         message_type           = if_wd_window=>co_msg_type_none
                         default_button         = if_wd_window=>co_button_ok
      lo_window->open( ).
    I am not sure how to navigate to a view in a different window using plugs.
    I raised the view as a pop up in my requirement.
    Cheers,
    Aditya.

  • How to get the menu bar back after turned off all toolbars from the "View" menu

    Do this: turn OFF all toolbar view from the view menu, with the Menu toolbar the last one.
    Problem: cannot find any UI to turn it back, stuck with a bare window, except the tab list.
    == This happened ==
    Every time Firefox opened
    == turn OFF all toolbar view from the view menu, with the Menu toolbar the last one.

    Press the Alt key, this temporarily brings up the menu bar. You an then use the View menu to re-select the menu bar.

  • Display Calendar View in List View Web Part

    We have a list and a calendar view of the list. I wanted to display the calendar view of the list in a List View Web Part in another page in the site.
    When I select the 'Calendar View' from the Views drop-down - it does not work.
    Please can you help.

    Hi Aritra,
    Is there some errors on your environment? So, you can have two workaround to do it.
    You can use SharePoint designer to add an empty data view source on your page ,then select the page.
    Use 
    Page viewer web part on your page, then put your calendar view web part page URL into your PVWP.
    Thanks,
    Jack
    Jack Gao
    TechNet Community Support

  • Trigger server round trip from input field

    HI,
    I have a normal  input field with  F4 help. I am trying to trigger a server round trip after selecting a value using the value help. I tried with the following code in the P-getter method , but is not working.
    when iv_property = if_bsp_wd_model_setter_getter=>fp_server_event OR
               iv_property = if_bsp_wd_model_setter_getter=>fp_onclick.
        rv_value = 'myeventname'
    is it because the fp_server_event or fp_onclick are only valid for a dropdown and not for a normal input field as in my case ?
    Please help.
    regards,
    Amrit.

    Amrit,
    I too checked now, there is an importing paramter. Try using code like this
    CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id        = 'CRMD_PRICING-CURRENCY'
          iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
          iv_input_mapping  = lt_inmap
          iv_output_mapping = lt_outmap
          IV_TRIGGER_SUBMIT = abap_true.
    Thank you Bhavishya for the tip.
    (I dint try it yet.)
    Regards,
    Masood Imrani S.

Maybe you are looking for