Call Custom View as a popup

How to call a custom view from another view in the same UI component?
I enhanced UI Component BP_HEAD_SEARCH and added a new View which should be opened like a pop up on button click in MainSearchResult view.
Please advice.

To show a custom UI component as pop up you need to do the following
a. Runtime Repostory
Create a new component usage.
b. Controller Class
Create an new attribute in the controller class
lr_popup type ref to IF_BSP_WD_POPUP.
In the event handler or when the popup need to be invoked
  DATA : lv_title TYPE string.
  lr_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'CustomViewName'"#EC notext
                                                            iv_usage_name = 'UsageName'
                                                            iv_title = lv_title ).
  lr_popup->set_on_close_event( iv_view = me iv_event_name = 'EVENTNAMETOBECALLEDONCLOSING' ).  "#ec notext
  lr_popup->open( ).

Similar Messages

  • How to call parent view event or method from popup in java webdynpro

    Hi ,
    I have  view  in my webdynpro component. I created a  button, when i click i am opening  a popup window.
    In side  popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want  a  custom method where i want  to write a code to populate the table control ( i don;t want  to use the wdDoModifyView() method).
    Please help me.
    Thanks
    Aravinda

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • Modal popup window refresh the parent (calling) window/view

    I have a modal popup window that is adding detail records.  When this window is closed via the Hide method in my controller I would like to refresh the parent (calling) window/view.
    What is the best way to do this?
    Regards,
    Diane

    Here's my process.....
    2-windows & 3 views
    Window 1 - Selection View and Detail View
    Window 2 - Add View (used as a modal popup window called by a button click on the detail view)
    Selection View has all the options for obtaining a list of data for the detail view.  The detail view has an Add button.  Component controller has the hide method and access to the other components that do the update/query methods. On the detail view the user can click Add and a popup modal window shows.  User enters data and clicks either the add or cancel button.  The Detail view needs to refresh to show the additional data that has been added by the modal window.  There are calcuated values in the detail view from a supply function.  This function is not running and the values are not changed.
    What should be put in the hide method that will cause the detail view to obtain new data and supply the calculated values?  If I was using the Add view as part of the same window as the detail/selection views I'd just put in a navigation link between the detail and add views and fire the plug.  I like the idea of the popup window so I'd like to get this to work.
    I put the wdContext.initialize() in the hide method - which yes - caused the detail view to run - however the context lost all the key values so I received a data not found.  I then tried to initialize those nodes that did not contain the key values but the detail view did not display new values.
    Thanks for any ideas.....Diane
    Edited by: Diane Fuller on Jan 8, 2009 6:48 AM

  • Can we call custom functions in view objects?

    Can we call custom functions in view objects?these custom functions are from my backing bean...
    Please help.....

    User,
    You can certainly add code to your view objects to do whatever you like.
    However, it would be considered a very bad practice to call something in the backing bean from your view object. It violates the whole MVC design principle of ADF.
    Perhaps if you can share your real use case, someone will give you ideas about the best way to do it, but I, for one, would advise you to forget about calling a backing bean function from your view object.
    Best,
    John

  • How to call Custom or Component Controller methods from View Controller

    Hy Guys,
    how do I call Custom Controller or Component controller methods from a View or Context Controlller?
    thanks in advance
    Jürgen

    Hi Juergen
    Yes it is possible, pls follow the below approach to access the component controller in context node class
    1) since the standard component controller class is protect variable , declare a variable of type component controller in your controller class.
    say for example the public variable you declared is  g_comp_controller
    2)  now redefine the controller class method WD_CREATE_CONTEXT  and add the below lines of code
       g_comp_controller ?= me->comp_controller.
    3) go to context node class  (CNXX)  there declare the varaible which of type controller class (IMPL)  as public variable, for example g_owner
    4) redefine the method  IF_BSP_MODEL~INIT  and write the below code
         CALL METHOD super->if_bsp_model~init
        EXPORTING
          id    = id
          owner = owner.
      g_owner ?= owner.
    5) now the variable   g_owner  that is declared in  (CNXX)   contains reference to your controller class
    6) in  on_new_focus  method access your component controller in the below manner and access the entities also.
    DATA: lv_owner                    TYPE REF TO xxxxx_impl,  " Implementation class
                 lr_comp_cont                TYPE REF TO xxxx_bspwdcomponen_impl, " component controller class
                 lv_entity type ref to cl_crm_bol_entity.
    lv_owner ?= g_owner.
    lr_comp_cont    ?= lv_owner->g_comp_controller.
    IF lr_comp_cont IS BOUND.
       lv_entity ?= lr_comp_cont->typed_context->mdfcampaign->collection_wrapper->get_current( ).
    now lv_entity contains the value of component controller context node.
    Thanks & Regards
    Raj
    Edited by: bmsraj on Sep 27, 2011 3:28 PM

  • Contract Account Custom view not called when replicating thru CRM

    Hi All,
    We have modified the Contract account screen through BDT.
    Functionality -
    We have a custom table, that needs to be updated during contract account creation when reference contract account is used for creation.
    The update is successful when creating contract account via ISU, but when creating thru CRM, the custom view is not getting triggerred.
    I have checked in debugging as well, the process flow triggered via CRM is different than that from ISU. When Business Agreement is created via CRM, neither of PAI / PBO event is triggerred defined for the custom view created in BDT.
    When we have the custom field passed from CRM, it is getting updated correctly, but if the field is not passed from CRM view and we are updating using code logic in BDT modules, it is not successful.
    Could you please help in case I have missed on some config or is there any alternate way to get the custom requirement achieved.
    The requirement is to have custom table updated in both Create and Change mode.
    Thanks in Advance!!
    Regards,
    Rajesh Popat

    Hi Siva,
    Contract Account was replicating correctly for the ISU system. The issue was, we want to update some custom fields that are not passed as a part of CRM data, but using BDT and some validations, we were trying to populate that field and also update the custom table and link the same to sub screen attached for the contract account screen.
    The issues is now resolved. The custom view is getting triggered through CRM. There was some config missing for the BDT.
    When using BDT, only the PAI module gets called for all the views defined for the BDT.
    Thanks!!
    Regards,
    Rajesh Popat

  • Call logical link from custom view on BP_HEAD

    I added a custom view to BP_HEAD in which I display invoices from another system. By clicking on invoice number I need to open VF03 with that invoice. I am able to open the actual transaction VF03.
    However, I am not able to pass the invoice number and open specific invoice that i click on in my view. I think I need to use
    create_bor_based method. However, I am not sure how do I pass parameters to it.
    lv_obj_type = 'VBRK' ?
    lv_obj_key = Actual Invoice No?
    lv_ui_objtype?
    CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_bor_based
          EXPORTING
            iv_bor_object_type  = lv_obj_type
            iv_bor_object_key   = lv_obj_key
            iv_logical_system   = lv_logical_system
            iv_ui_object_type   = lv_ui_objtype
            iv_ui_object_action = 'B'
    *       iv_component        =
          RECEIVING
            rr_result           =   lv_descriptor_object.
    Below is code taken from outbound plug for Invoice Number. This code opens up transaction VF03. Now I need to pass the Invoice Number to this transaction to open specific invoice:
    DATA: lo_nav       TYPE REF TO if_crm_ui_navigation_service.
      DATA: lo_link      TYPE REF TO if_bol_bo_property_access.
      DATA: lr_window            TYPE REF TO cl_bsp_wd_window.
    * get service for navigation
      lo_nav = cl_crm_ui_navigation_service=>get_instance( ).
      CHECK lo_nav IS BOUND.
    * navigate to destination
      lo_nav->navigate( iv_link_id = 'ZSDINVOICE' ).
      lo_nav->navigate( iv_link_id = 'ZSDINVOICE'
                               iv_data_collection = iv_data_collection ).
    *  lo_link ?=
    *              cl_crm_uiu_bt_param_create=>if_ui_link_parameter_class~create_parameter_object(
    *                                          iv_link_id   = 'ZSDINVOICE'
    *                                          iv_parameter = '0385500008' ).
      iv_data_collection->add( iv_entity = lo_link ).
      IF iv_data_collection IS BOUND.
        lr_window ?= me->view_manager->get_window_controller( ).
        lr_window->call_outbound_plug( iv_outbound_plug = 'VBELN' iv_data_collection = iv_data_collection ).
      ENDIF.

    Here you go Maks
    When you run the wizard thn you provide some class name and system will generate that class for you. You can edit the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW of the class to pass the parameter value.
    Sample code for the same is:
    me->set_container_data(
    iv_name = gc_BP
    iv_value = BP ).
    Now you need to have the access of the BP no. from this address. Where ever you are confirming the BP, in that view create a global attribute and in DO_PREPARE_OUTPUT method set the BP value to the global method and in the Z class method mentioned above you can reterive the value
    e.g. lv_partner_no = ZL_*_IMPL=>gv_partner_no.
    BP = lv_partner_no.
    Cheers
    Sufyan

  • Unable to populate the Custom Views on UI for the component BP_FACTSHEET

    Hi All,
    I am working on a requirement on Interaction Center 7.0 .In this i have enhanced the component BP_FACTSHEET and created new Custom views in it. But i am unable to bring those custom views on the UI. As, we know that in this component there is no concept of overview set also.
    So, if anyone has faced the same problem please share your inputs.
    Thanks in advance,
    Thanks and Regards,
    Sharad

    Hi Sarad,
                       First you have to enhance the component BP_FACTSHHET .After that configure ur coustom view in fachsheet id BP_ACCOUNT_FS in SPRO.After that go to component BSP_DLC_FS,where you have to configure the ur view in specfic tiles which is display in web ui for specific to business roll.here you can find the ur fachsheet id and custom view.this component is automatically call when you launch fachsheet in web ui for specific business partner under account tab.
    Thanks
    Vishwas Sahu

  • How to redirect to a custom view in 10g

    Hi All,
    Getting a bit of a headache on this one. I am migrating from 5.7 to 10g and in the project some emails are generated with a link to a custom view. Also I have a submit button in a jsp that redirects to a view. This was easy then (/servlet/controller?viewName=myview&from=1 or similar) but a bit more involved now I guess.
    I had a look at WAPI and can see how to run an activity in an instance, or indeed an application but cant figure out how to display my view.
    Any ideas ?
    cheers
    Tony

    Any thoughts would help on this one.
    Effectively I want a url, or wapi call that takes the user directly to the workspace, with work items at a particular view (not inbox). Defaulting everyone to that view isnt a goer and neither is launching an activity.
    I guess it is possible as the workspace does it when clicking the view dropdown.
    cheers
    Tony

  • Creating a custom view in WEB UI

    Hi Experts,
    There is a requirement to create a custom view having few fields of oppurtunity.
    Please let me know which is better way of achieving;
    1. Copying the standard SAP oppurtunity view of component BP_BPBT.
    2. Creating a new custom view with user-defined fields.
    This view should be displayed in assignment block of accounts.
    Though the SAP standard oppurtunity view is available in BP_HEAD, it is not allowing to display the standard view again in our assignment block.
    Could you please let me know the steps to follow for achieving this task. (any of 2 ways)
    Regards,
    Santosh

    Hi Santosh,
    You have to place the following code in WD_USAGE_INITIALIZE:
    WHEN 'ZBP_BPBT'.
              CALL METHOD iv_usage->bind_context_node
                EXPORTING
                  iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                  iv_name             = iv_usage->usage_name
                  iv_target_node_name = 'PARTNER'    " Node of the MAIN component
                  iv_node_2_bind      = 'PARTNER'.   " Node of the embedded component
                CALL METHOD iv_usage->bind_context_node
                  EXPORTING
                    iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                    iv_target_node_name = 'BUTTONSAVE'    " Node of the MAIN component
                    iv_node_2_bind      = 'BUTTONSAVE'.   " Node of the embedded component
    And if you want to access the component controller from a view, you can access it by 'me->COMP_CONTROLLER'.
    If you are in component controller class, it is just 'me'
    Regards
    Leon

  • Document Library Custom View "Grouped By" only shows one group

    I have created a Document Library Custom View with the  "Grouped By" option turned on and grouped by a column  called "media type" which has 3 possible choices.  For some reason only the first group is displayed. The other
    groups show that they have items in them but can't be accessed. I have expanded turned on. 
    Here are some screenshots: 

    Hi zaxxon,
    Please check if the above first 6 images (e.g. Managing Threating Confrontations - OneDrive for Business Tutorial)are with value "Training" and "tutorial", if yes, there should be something wrong with the grouped list view of Assets library.
    Based on icons from your image, you should be using Office365 SharePoint Online, I would recommend you post this issue in our dedicated Office365 SharePoint online forum below, and I think fixing this issue would be involving back-end support engineer from
    server side.
    http://community.office365.com/en-us/f/156/t/236901.aspx
    Office365 SharePoint Online forum
    Thanks
    Daniel Yang
    TechNet Community Support

  • Redirect editform.aspx to custom view instead of the default?

    Hello everyone!
    I'm another unfortunate admin who has been handed some developer tasks and I am struggling with what is probably a simple process that requires your help.
    I have a sharepoint list called "tickets".  On this list I have created multiple filtered/grouped views of the items in the list for separate groups of users (these views are linked to from their respective sharepoint sites elsewhere in the
    collection).
    My problem is that when a user edits one of these list items using the editform and SAVES the user is taken back to the default list view instead of the custom view I created for each group of users.
    I strongly suspect I can do something like this:
    http://site/lists/listname/editform.aspx?Source=http://site/list/listname/viewname.aspx
    ...but I cant figure out where to go in sharepoint (2010 server) or sharepoint designer to add the re-direct.
    Any help would be greatly appreciated!

    Hi Logan,
    Using out of box feature or share point designer this functionality is not possible so what you can do, write your custom edit form and on click of save button you can check logged in user and his or her presence in the group which you created for multiple
    views and redirect to associated view for those group. 
    Regards
    Soni K

  • Custom View not visible in Overview page as AB unless "Reset to Default"

    Hi Experts,
    I am facing a strange issue here.
    I enhanced the component TPMOE and created a custom view ZTRADESPENDEXCEPTION in it.
    Now i have added this view as assignment block in all 6 configuration available for the overview page.
    I have redefined the DETACH_STATIC_OVW_VIEWS and REATTACH_STATIC_OVW_VIEWS.
    The issue i am facing is that my view assignment block is not visible to the user unless he/she goes to the personalization of the overview page and hits "Reset to Default". Once this is done, later on users can change there personalizations and everything works fine.
    Now i am not sure i can go and tell all end users to go to personalization of the TPMOE overview page and click on "Reset to Default".
    Is there any other way i can show my view to the end users?
    I have done this on the lines of overview page layout changing when you select product planning basis while creating Trade Promotions.
    Thanks and Regards
    Gaurav Kumar Raghav

    Hi Amar,
    My coding is given below.
    In DETACH_STATIC_OVW_VIEWS, the coding is:
    Call Super Method
    ls_viewid-view_id = '<My View Name>'.
    Append ls_viewid to rt_view_id
    In REATTACH_STATIC_OVW_VIEWS, the coding is:
    Call Super Method
    if <flag>  = 'X'.
    ls_viewid-view_id = '<My View Name>'.
    Append ls_viewid to rt_return.
    endif.
    In debug mode, the coding get executed correctly and my view is returned for attachement.
    For each user, the first time, i need to say "Reset to Default".
    After that it works fine, my view is displayed.
    Is the program "BSP_DLC_DELETE_PERSONALIZATION"  a good solution to my problem?
    Thanks and Regards
    Gaurav Kumar Raghav

  • How to set or deliver information from my actual view into my popup?

    Hello,
    I want to implement a quick help information. So the user should be able to open a popup in several views.
    Now I am faced with the problem that I dont know how to deliver information into a popup? Is that possible? the SAP example gspopup_test provides no answers for that issue.
    I am very pleased if you could help me.
    Thanks a lot, gyus!
    Regards,
    Marcus

    Hi Marcus,
    you have to differentiate which kind of popup you are using. The interface IF_BSP_WD_WINDOW_MANAGER offers you different kinds. Decision popup an popup to confirm are easy to use, cause all required data will be transfered by the parameters of the create-method.
    If you implement an own view for the popup, you have to use the method CREATE_POPUP and call it via a component usage. Add a model node to the context of the corresponding component interface and provide it from the component contoller of the calling component by redefining the method WD_USAGE_INITIALIZE as you can see in component BP_HEAD for example.
              CALL METHOD iv_usage->bind_context_node
                EXPORTING
                  iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                  iv_name             = iv_usage->usage_name
                  iv_target_node_name = 'PARTNER'    " Node of the MAIN component
                  iv_node_2_bind      = 'PARTNER'.   " Node of the embedded component
    regards
    Martin

  • Custom View Handler

    I am creating a custom view handler , but I want that this view is used only for specific files(views) and for all other files I want that default handler to be used , can we do this in JSF ??If yes then how ??

    In your createView method of custom view handler, One of your parameter represents viewName. I guess you can inspect the viewName and delegate the method calls the appropriate implementation. You may also use a resource bundle in conjuction with this.
    This strategy depends on the enhancements that you wish to do in your custom implementation.
    I have never tried this before but dont you think its possible in your case?

Maybe you are looking for