Dynamic Navigations between views

Hi,
I have 10 views in my web dynpro application. Based on the user roles I want to navigate between differnet views. For one user there might be different sequence and for other there might be other sequence.
Please let me know how to dynamiclly navigate from one view to other.
I don't want to create too many outbound plugs for each view and link those with inbound plugs of other views.
Please help.
Thanks!

Hi,
check this code to navigate dynamically from one view to other view.Here you no need to declare outbound plugs but you have to give inbound plugs for called views.
give same inbound plug name for all views.
You have to pass following parameters to the Method.
1.window name
2.View usage name( you will get this from window properties)
3.Source plugname(you can give any name)
4.Target view name
5.Target plug name(Give same name to all the views)
method onactiongoto_test .
data:
  l_id type string,
  l_view_controller type ref to if_wd_view_controller,
  l_view_name type string,
  l_nav_services type ref to if_wd_navigation_services,
  l_text type string.
  split id at '__' into l_text l_view_name.
  l_view_name = id.
  l_view_controller = wd_this->wd_get_api( ).
  l_nav_services ?= l_view_controller.
  l_nav_services->do_dynamic_navigation(
      source_window_name        = '<window name>'
      source_vusage_name        = '<View_usage>'
      source_plug_name          =  <OUT_PLUG>
*      PLUG_PARAMETERS           = PLUG_PARAMETERS
*      TARGET_COMPONENT_NAME     = *TARGET_COMPONENT_NAME
*      TARGET_COMPONENT_USAGE    = TARGET_COMPONENT_USAGE
      target_view_name          = <view_name>
      target_plug_name          = 'IN'  "Inbound plug name
*      TARGET_EMBEDDING_POSITION =  'MAIN/CONTENT'
endmethod.
Thanks
Suman

Similar Messages

  • How to define the dynamic navigation between two component in web ui

    Hi All,
    I have a requirement to create a new assignment block in accounts overview screen .
    1.Created new view(Table view) in the BP_HEAD component.
    2.Created new button on the table view toolbar .
    3.If the user clicks the new button it should navigate to interaction log component(BT126H_CALL).
    Please hekp me step 3 how to do .
    I have checked planned activity assignment block in the account but is dynamic navigation.
    Please explain me how to define the dynamic navigation between two components.
    What is window delegate .
    Thanks,
    Venkyy

    Hi ,
    Kindly follow the link , this will be helpful for your issue :
    http://wiki.sdn.sap.com/wiki/display/CRM/CRM-NavigatingtoyourcustomBSP+component

  • Navigations Between View  in Webdynpro ABAP

    Is there any other ways to navigate between Views Other than Using the Out bond and In bond Plugs...?
    And one more While reusing the Views from one WDP1 in WDP2...
    For example :
       Take WDP1 it has got 10 Views
    I want to reuse the 8th view in WDP2 how it is done...
    Hint: ( I tried some thing like this 
                But  in WDP2 only the default view of Wdp1 is Coming ?
    Thanks In advance :
    Nagarjun
    <removed by moderator>
    Edited by: Thomas Zloch on Feb 28, 2012

    Hi,
    1. You should use inbound and outbound plugs to navigate from one view to other view.
    2. If you want to reuse any particular view, you need to mark that as interface view( create one window and place that view inside that window and mark it as interface view)
    Hope this helps u.,
    Thanks & Regards,
    Kiran.

  • Navigating between views in different components

    Hi,
    I want to navigate from view1  in comp A to view2 in compB and vice versa. I am able to  do the first part view1 -> view 2 through interface controller.
    Now i want to navigate back to the view1 from view2.
    Please help.
    Regards,
    Priya

    Hi,
    Create one seperate view called "NavigationView" in CompB.
    This View does not contain any context or anything its just decides the navigation and invokes that corresponding plug.
    Now make this "NavigationView" as default.
    Create one context attribute "ToView" in NavigationView & map this context attribute to CompB interface controller and also to View1 of CompA.
    Now before navigating from View1 set the value in ToView context attribtue as "View1" Or "View2"
    In the init method of this "NavigationView" check the context attribute as below and navigate to View2.
    if("View2".equalsIgnoreCase(wdContext.currentContextElement.getToView()))
    wdThis.wdFirePlugToView2();
    Regards,
    Charan

  • Navigating between views of different applications

    Hi Experts,
    I have two applications with each having their own views. Project requirement in my case, is to navigate from view of one application to a view in another application. Is this possible? If yes, how can i achieve it? 

    Hi Mukesh,
    Thanks for the links, they did help me quite a bit. However, I am getting a WDRuntimeException - Cannot navigate from view KselectComponentInterfaceView because it is not part of the current view assembly.
    I have embedded the interface view of the view in the first component and I can access methods and such. But when I fire the plug to go to the next view, I get the error above.
    This is my code where the exception pops up -
    public void onActionConfigure(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String componentToMap )
        //@@begin onActionConfigure(ServerEvent)       
        wdThis.wdGetKselectComponentInterfaceViewController().wdFirePlugToConfigureViewExitPlug(componentToMap);   
        //@@end
    The plug is defined in the Interface view naturally, not in the view where the above code is.
    Thanks,
    Sameer

  • Difference between view and window ?

    Hi All,
    Can you tell me a basic difference between view and window , maybe you can correlate your answers with concepts of HTML.
    Rajeev

    Hi Rajeev,
    A window is a place for displaying your views. Your view is not available to the outside world. View is available only to your component. However, your window is an interface view, which can be displayed in other components.
    A view contains your UI elements. It has a layout (a window does not). A window contains embedded views.
    In the window, you can define how navigation between views takes place (by creating navigation links).
    Regards,
    Neha
    <i><b>PS: Reward if helpful</b></i>

  • How can i navigate via navigational link between views in different windows

    hello
    i am using CRM_UI and have opened a popup
    gv_transcr_popup is a attribute referrring to if_bsp_wd_popup in my implementation class
    gv_transcr_popup = comp_controller->window_manager->create_popup(
        iv_interface_view_name = 'AIC_CM_TRANS/AssignTranspReq' "#EC NOTEXT
        iv_usage_name          = 'CUBAssignTransporReq'         "#EC NOTEXT
        iv_title               = lv_title ).
    get instance of BOL dynamic query
      lo_qs = cl_crm_bol_dquery_service=>get_instance( 'BTQAIC_CM_TRANSPORTREQ').
      gv_transcr_popup->set_on_close_event( iv_view = me iv_event_name = 'AssignTranspReq' ).
      gv_transcr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
      gv_transcr_popup->open(   ).
    through the iv_usage_name i will open in this popup a search view from another window
    in this window is a searchview implemented and now after selecting the line in the result view in want to navigate through outbound plug / inbound plug to the starting view .
    but i get the exception
    Target view AIC_CM_TRANS/TransportReq of the navigation is not assigned to the current window AIC_CM_TRANS/AssignTranspReq ( which is true)
    now the question: how can i navigate between views of different windows?
    Best Regards
    britta

    hi
    i have found a way : you have to use a outboungplug from the windows interface ..then it is working
    best regards
    britta

  • Override default view with dynamic navigation

    Hi,
    I have an URL parameter, based on what I do a dynamic navigation
    wd_this->wd_get_api( )->if_wd_navigation_services~do_dynamic_navigation()
    in the WINDOW DEFAULT inbound plug.
    However the navigation is overridden by what is set as a default view in the WINDOW tab.
    I tried
          lr_window_controller = wd_this->wd_get_api( )->get_embedding_window_ctlr( ).
           lr_rr_window = lr_window_controller->get_window_info( ).
           lr_view_usage = lr_rr_window->get_view_usage( 'MAIN_USAGE_0' ).
           lr_view_cnt_assignment = lr_view_usage->get_view_cnt_assignment( 'FUNC_VCA_1' ).
           lr_view_cnt_assignment->set_default_view_usage( 'NOTDEFAULTVIEW_USAGE_1' ).
    but not helping, still the default view is appearing. FUNC_VCA_1 in the above code is a view_container, I am trying to set a view active inside that view container.
    Any ideas?
    Thanks!

    Guys, there are some confusions here. Take the following case:
    1) Embed both COMP_A/VIEW_A and COMP_B/VIEW_B into a view container, and set COMP_A/VIEW_A as default
    2) Create a navigation between outbound plug TO_VIEW_B and inbound plug COMP_B/VIEW_B default plug
    3) In WINDOW default, based on a parameter wd_this->fire_to_view_b_plg( ).
    This works, COMP_B/VIEW_B is visible!
    Now remove the navigation link, remove COMP_B/VIEW_B from the window and enter the following code in the handlefeault:
          wd_assist->m_akt_comp_usage = wd_this->wd_get_api( )->if_wd_navigation_services~do_dynamic_navigation(
               source_window_name        = 'WINDOW'
               source_vusage_name        = 'MAIN_USAGE_0'
               source_plug_name          = 'TO_VIEW_B'
    *          plug_parameters           = lt_params
               target_component_name     = 'Z_WD_COMP_B'
               target_component_usage    = 'COMP_B_USAGE_1'
               target_view_name          = 'WINDOW'
               target_plug_name          = 'DEFAULT'
               target_embedding_position = 'MAIN/VIEWCONTAINER'
    NWhile I do get back the navigation link and inside do_dynamic_navigation there is a code to create the component and fire the plug, COMP_B/VIEW_B is not showing. Also please note, that if I do that on a button click it works. The problem is only inside handle default method.
    Thanks!

  • Diference between view controler and navigation controler

    Hello,
    please what is the diference between view controler and navigation controler.
    Thank you for your answer

    a Navigation Controller is a Subclass of a View Controller. It has some additional Functionality. Please read the Apple Documentation for further information
    https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UINavigat ionController_Class/Reference/Reference.html
    https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewCon troller_Class/Reference/Reference.html

  • Dynamic navigation from ZCOMP1 to ZCOMP2

    Hi experts,
    Hope you are all doing good!
    This is the first time I'm working with the dynamic navigation. So, I'm just trying to understand how really it works with two custom components.
    I've already searched this forum n got some info. But, I'm getting confused with the procedure. 
    While calling the target component, I see the below code:
    lr_window ?= me->view_manager->get_window_controller( ).
    lr_window->call_outbound_plug( iv_outbound_plug = 'TOCOMP2' iv_data_collection = lr_data_collection ).
    and in another thread, they used:
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate_dynamically( lr_col ).
    Can someone help with the difference between these methods?  I really need this to understand clearly before proceeding further.
    I would really appreciate if someone can provide the generic procedure to achieve this. Thank you a lot.
    -Ezhno.

    Hi Maren,
    WebUI Navigation guide  - for more Info.
    Dynamic navigation will be perform only if they have generic mapping entry in navigation bar profile in spro. At runtime webui picks the target id and calls the inbound plug to the target link.
    if you are trying to perform navigation on the standard component, then you can directly check the config in spro and perform the navigation using a descriptor object.
    and if its for the custom component then u have to define a workarea component repository
    check my answer in below thread How to link view to be displayed on a logical link. Use first three screen shots to define work area repository
    Once u have defined your target id for your ZComponent , then u can create a new your new mapping in spro for your ZComponent, like  below screenshot and perform dyanmic navigation.
    Now to perform dynamic navigation sample code .
       data: lr_nav_descr      type ref to if_bol_bo_property_access,
            lr_core                     type ref to cl_crm_bol_core,
            lr_nav_serv       type ref to if_crm_ui_navigation_service,
            lr_header           type ref to cl_crm_bol_entity,
            lr_entity type ref to if_bol_bo_property_access,
            lr_col           type ref to cl_crm_bol_bo_col.
    *     Get the BOL Core Instance
      lr_core ?= cl_crm_bol_core=>get_instance( ).
    * get the BuilHeader object
      lr_header = lr_core->get_root_entity( iv_object_name = 'BuilHeader'
                                            iv_object_guid = lv_partner_guid ).
    * add the Builheader to the collection
      create object lr_col.
      lr_col->if_bol_bo_col~add( iv_entity = lr_header
                                 iv_set_focus = abap_true ).
      cl_crm_ui_descriptor_obj_srv=>create_ui_object_based(
               exporting
                         iv_ui_object_type   = 'BP_ACCOUNT'
                         iv_ui_object_action = 'B'
               receiving rr_result           = lr_nav_descr ).
      lr_nav_serv = cl_crm_ui_navigation_service=>get_instance( ).
    * check if navigation is possible
      if lr_nav_serv->is_dynamic_nav_supported( ir_descriptor_object = lr_nav_descr ) = abap_true.
        lr_col->if_bol_bo_col~insert( iv_bo    = lr_nav_descr
                                    iv_index = 1 ).
    *   start the navigation
        lr_nav_serv->navigate_dynamically( iv_data_collection = lr_col ).
      endif.
    As per as configurations navigate_dynamically will check the spro config as it will navigate to the target id of the BP as display mode i.e on overviewpage.
    Now comes to the first question......
    lr_window ?= me->view_manager->get_window_controller( ).
    lr_window->call_outbound_plug( iv_outbound_plug = 'TOCOMP2' iv_data_collection = lr_data_collection ).
    here you are trying to get the instance of the window controller and then your are calling to the Window Outbound plug and passing the collection using a navigation_link.
    where inbound and outbound plugs are defined.
    Steps :
    Create an outbound plug on the source view
    Create an inbound plug for target view.
    Create an event handler for the navigation event
    Method EH_xxx.
    Op_xxx.()
    ENDMETHOD.
    Create a navigation link between the source and target view.
    In the outbound plug, call following code snippet.
    Me->view_manager->navigate(source_rep_view =  me->rep_view
    Outbound plug = <navlink>) or you can call the window plugs and perform
    Create an inbound plug for target view.
    If you have any questions, let me know.
    Regards,
    Sumeet Gehlot

  • Static vs Dynamic difference when viewing in Acrobat 9

    With ES2 or ES4, saving output as a static pdf results in the following when previewing and when viewing in Acrobat 9.4.5:
    When viewing in Reader X or XI, or when saving as a dynamic pdf and viewing in Acrobat 9.4.5, the output is as expected:
    One obvious solution is to upgrade everyone to Acrobat X+, but that's not an option for the enterprise.  Is there scripting I could add or a registry fix or some other alternative to hiding these annotation sequence numbers (or whatever they're referred to) in the static pdf, as the EDMS delivering this pdf to the end-users cannot currently handle XFA-enabled PDFs and so it must be static?
    My suspicion is this is more of an Acrobat 9.4.5 issue than an LC issue, but I have researched extensively and cannot find a resolution.

    The "annotation sequence numbers" are probably referring to the "Tab Order".  You can access and modify the "Tab Order" from Designer; Go to the "Window" option and click on "Tab Order".  For ES4 it's between "Data View" and "Object Library".  Under "Tab Order", there's a button that should either be displayed as "Show Order" or "Hide Order".  Clicking on that button will toggle between the two choices.  I am assuming that if you click to make it "Hide Order" that your numbers will disappear.

  • Web report - Variable values while switching between views.

    Hi Gurus,
    We have a query which has a few variables that are getting populated with default values during query execution[customer exits].
    We have added this query to the web.Now there is a date variable  which gets populated with the current date value by default.Suppose the users don't vant to run the report for the current date, they are able to change the date in the variable window and execute. But once the report is run, and we try to choose a different vieew for the report, the report automatically gets refreshed with the selected view, but for the default current date value (because of the customer exit).Shouldn't the selected view be getting refreshed with the date values that the user had entered while executing the report?
    Also when navigating between the different views, shouldn't a variable window pop up? Is there any setting to have the variable window pop up when navigating between the different views of a web report?
    Would appreciate a quick response.
    Thanks a Lot
    Arvind

    hello,
    we need to go to Query properties -> interaction tab-> remove reuse variables to populate the variable screen everytime or "Save and reuse variable values" to supress variable window
    or
    Problem could be due to any personalisation.try this:
    One the query is executed, click on the button which says change variable values.
    In the variable pop-up screen which comes up click on the personalization button
    In the new screen which comes up click on reset personalization button
    Enter new variable values and execute the query.
    Reg,
    Dhanya

  • Navigation between records in a JSP application

    Hi,
    I would like to know how to provide navigation between records in a tabular form liked JSP application using JDeveloper 3.2
    without using the Oracle or Default template.
    I can do it with a singular record view but not in a tabular view. I like to know now I can mimic the navigation provided in Oracle template in which the current selected record is hightlighted. Can we navigate between records using Up and Down
    arrow key like in Oracle form instead of using Navigation Bar. Please provide details code.
    Thanks a bunch,
    Khanh Hoang

    You can refer to the source code in jbohtmlsrc.zip for deriving your own implementation.

  • Employee Search in Dynamic Navigation does not update other iViews (FPM)

    Hi all,
    after selecting a person from Employee Search (MSS) we have to display corresponding data in a customer specific iView with help of selected person number.
    So I created a Floorplan Manager Application as described in https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/how-toaddacustomWebDynproiViewtotheMSSEmployeeProfile%28ECC+6.0%29&
    If I use the SAP content page or create my own pages with corresponding Employee Search and customer specific iView, updating of data on the customer specific iView works. But if I add the Employee Search to Dynamic Navigation, the data is not updated in the customer specific iView.
    I didn´t find a solution in this forum. Does anybody know, if it is possible to add the Employee Search as Dynamic Navigation (with help of Floorplan Manager functionality) and update data in other iViews and how this works? Or is it possible to handle this in a different way, e.g. PortalEventing?
    Thanks,
    Thomas

    Hi,
    I also tried to use only iViews of 'General Information'  and added the employee search (team viewer) of the sap
    content page 'General Information' to the dynamic navigation, but the other SAP standard iViews of 'General Information' page are not updated, too.
    Does anybody know, if it is possible to add the employee search to dynamic navigation and to update the other iViews of 'General Information'? If yes, what properties have to be set? Are some settings for Floorplan Manager
    needed?
    Could anybody please give me a hint?
    Thanks,
    Thomas

  • Understanding Dynamic Navigation iview.....

    In MSS, I have the following workset in my role...
    ->Team (workset)
       ---+ Team (webdynpro proxy page)
       ---+ Employee information (folder)
       ---+ Employee Working Time (folder)
       etc....
    The "Team webdynpro proxy page" has an iview ,"Services", assigned in "Dynamic Navigation" but there is nothing particular about that iView itself. However, all folders (and their contents) below the Team webdynpro proxy page appear in the Dynamic Navigation panel (like "Employee information" and "Employee Working Time"). I do not understand the connection between the dynamic navigation iview and how all folders in that workset know to display in that dynamic navigation area. There seems to be no explicit assignment. How does that work?
    edit: a bit more info....the "Services" iview is part of the Common Parts business package and based off the "related services" iview template. Still not sure how it "knows" to display the objects below that page that has it assigned as dynamic nav.

    Did you blog about this solution?  If so could you direct me to the blog?  We need to add numerous links to outside URLs in Related links.  I need to order them somewhat differently than alphabetically.
    Thank you,
    D. Maupin
    University of Kentucky

Maybe you are looking for

  • W700 and 3D is here - and it's AWESOME!

    I promised myself that I wouldn't post about this until I felt like doing a full review. Well, I can't help myself! I don't feel ready for a full review yet, but I will do it, along with links so you can decide for yourself whether or not your machin

  • Calculating checksum...

    Hello everyone, I downloaded Oracle database 11g. I have two zip files win64_11gR2_database_1of2.zip and win64_11gR2_database_2of2.zip I want to calculate the checksum for for the above files. How can i calculate that? I am using Windows 7 64 bit OS.

  • R/3 - XI connection

    Folks, For an RFC connection from a R/3 to XI what permissions does the user in XI need to have to route/transport/map idocs? Does this need to be a service or dialog user? In "Mastering IDoc Business Scenarios with SAP XI" on page 64 it says you nee

  • Can we change the DOCTYPE written out by the af:document component?

    (JDeveloper 11.1.1.1.0) ADF Faces pages that use the af:document component produce (X)HTML pages with their content type set to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">. My style-savvy col

  • Dialog won't display correctly

    I'm trying to create a simple dialog that has a title, some text, and ok, cancel, other buttons. However, when I create it, the buttons appear on the left and the text appears on the same row to the right of the buttons. I've tried everything I can t