How to create a roadmap ui element dynamically in webdynpro abap?

Dear  team
iam new for webdynpro my question is how to create the road map programme dynamically using webdynpro
could you tell me what are the steps i have to take, what are the elements i have to bind?
and what code & where i have to write the code?
regards
sathya

Hi Sathya,
              Write the follwing code in WDDOMODIFYVIEW method to create a Dynamic ROADMAP and also create an attribute of
               type string to control the selection of steps in road map.
method WDDOMODIFYVIEW .
  data : lr_ele type ref to if_wd_view_element.
  data : lr_rm type ref to cl_wd_road_map.
  data : lr_step type ref to cl_wd_road_map_step.
  data: lr_container type ref to cl_wd_transparent_container.
  data : lr_flowdata type ref to cl_wd_flow_data.
  CALL METHOD view->get_root_element
    receiving
      root_view_element = lr_ele.
  lr_container ?= lr_ele.
CALL METHOD cl_wd_road_map=>new_road_map
  EXPORTING
    id                       = 'ROADMAP'
  receiving
    control                  = lr_rm.
CALL METHOD lr_rm->bind_selected_step
  EXPORTING
    path   = 'VALUE'.
CALL METHOD cl_wd_flow_data=>new_flow_data
  EXPORTING
    element     = lr_rm
  receiving
    control     = lr_flowdata.
CALL METHOD lr_container->add_child
  EXPORTING
    index     = 1
    the_child = lr_rm.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
  EXPORTING
    id                  = 'ONE'
    name                = '1'
  receiving
    control             = lr_step.
CALL METHOD lr_rm->add_step
  EXPORTING
    index    = 1
    the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
  EXPORTING
    id                  = 'TWO'
    name                = '2'
  receiving
    control             = lr_step.
CALL METHOD lr_rm->add_step
  EXPORTING
    index    = 2
    the_step = lr_step.
CALL METHOD cl_wd_road_map_step=>new_road_map_step
  EXPORTING
    id                  = 'THREE'
    name                = '3'
  receiving
    control             = lr_step.
CALL METHOD lr_rm->add_step
  EXPORTING
    index    = 3
    the_step = lr_step.
endmethod.
Then you can use the context attribute to navigate between the steps and do respective actions.

Similar Messages

  • Hiding an UI element dynamically in webdynpro ABAP

    Hi Gurus,
      I want to hide a Interactive form UI element dynamically at run time. Please let us know how to proceed with this and provide the code for this, which will be helpful.
    Thanks
    Rahul

    hi ,
    bind the VISIBLE property of the UI element with  a context attribute created in the CONTEXT tab. This context attribute should be of type WDUI_VISIBILITY
    u can refer this code
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible
    regards,
    Amit

  • How to create multiple buttons in ALV Toolbar in Webdynpro ABAP

    Hi all,
    I am trying to create multiple buttons in Webdynpro  ALV toolbar, please go through the code.
    What happening is, second button is replacing the first one.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
       lo_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
       IF lo_cmp_usage->has_active_component( ) IS INITIAL.
         lo_cmp_usage->create_component( ).
       ENDIF.
       DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
       lo_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
        DATA lv_value TYPE REF TO cl_salv_wd_config_table.
       lv_value = lo_interfacecontroller->get_model(
       DATA lr_buttonui1 TYPE REF TO cl_salv_wd_fe_button.
       DATA lr_buttonui2 TYPE REF TO cl_salv_wd_fe_button.
       DATA button1 TYPE REF TO cl_salv_wd_function.
       DATA button2 TYPE REF TO cl_salv_wd_function.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).
    How can I overcome this??
    Thanks
    Eshwar

    Hi Eshwar,
    The button Ids are same for both the buttons in your code. You need to change it as BUTTON1, BUTTON2.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON1')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON2' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).

  • How to make field visible and invisible dynamically in webdynpro ABAP

    Hi Experts,
    I am working on simple webdynpro application, in which I have two radio buttons and three fields.
    When I select second radio button second field should be invisible out of three and when I select first radio button the second field should be visible. ie I wanted this happen dynamically. I tried with using some methods but no output....
    Please help out.
    Thanks
    Basanagouda

    Hi Prabhu,
    I have two radio buttons ex: R1 and R2 and three Fields Ex: Vendor, User Name and Password.
    When I select R1 Vendor field should be Visible and when I select R2 Vendor field should be invisible.
    I created one attribute of type WDUI_VISIBILITY and binded in Visbility property of Vendor field.
    On action of R1 I am setting attribute value as Visible using Set_attribute method and On Action of R2 I am setting BLANK in Set_attribute method. But somehow I am unable get the solution......
    Thanks
    Basu

  • HOW TO CREATE NODES IN A TREE DYNAMICALLY

    Hi Experts,
    How to create node in a tree dynamically......
    my requirement is in tree there should be nodes which should contain some applications....
    plz explain clearly na......
    help me in this ......
    waiting for u r response .....
    Regars,
    Shilpa

    Hi shilpa,
    These may help you...
    Re: dynamic generation of Tree UI element
    dynamic programming part in below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/ad884118aa1709e10000000a155106/content.htm
    try to search on Tree node creation in below link
    http://www.sap-press.de/download/dateien/1103/sappress_maximizing_web_dynpro_for_java.pdf
    regards,
    Pradeep
    Edited by: pradeep bondla on Jun 26, 2008 3:39 PM

  • How to create checkbox group and table dynamically?

    HI All
    How to create checkbox group and table dynamically?
    Regards
    Ravi

    hi
    check this links for creating  tables dnamically
    How to Create a table dynamically?
    Re: how to create a table dynamically in webdynpro
    and for checkboxgroup
    IWDTransparentContainer rootContainer =
    (IWDTransparentContainer)view.getElement("RootUIElementContainer");
    IWDCheckBox check = (IWDCheckBox)view.createElement(IWDCheckBox.class,"Check"+k);
    //Here "check"+k k represents a unique value every time u create so that u wont get a duplicate instance
    check.setChecked(false);
    rootContainer.addChild(check);
    or Re: adding checkboxes dynamically

  • How to create slide shows in Elements 11?

    Can't find how to create a slide show in Elements 11.  Is it possible?

    See here:
    How to Create Slideshows in Photoshop Elements 11 - For Dummies
    and
    Learn how to use Photoshop Elements 11 - Part 22 - How to Create a Slideshow in Photoshop - YouTube

  • How to create/add attributes in element list in Screen (example 100)

    HI,
    how to create/add attributes in element list in Screen (example 100)
    I mean after creating screen ..it has "OK CODE " attribute in element list tab in 100 screen.
    I want to create "container" in Element list tab in my screen 100 program
    I want to create new layout " container" in the element tab (i know if i click on layout button where i can create manually)
    Thanks
    Edited by: Raja on Apr 29, 2009 4:19 PM

    Hi Raja,
    Do you remember how you resolved this problem? I am facing the same. Appreciate your response.
    Thanks,
    Shailaja

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • How to use traffic lights concept in alv in webdynpro abap

    Hai ,
              How to use traffic lights concept for alv in webdynpro abap. If possible give me some code.

    Hi Ravi,
    You can create ICON  to get traffic light.
    Go through this step by step.. in this example
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9?quicklink=index&overridelayout=true
    Please go through this...
    Re: Display ICON in the ALV table column
    Re: Image in ALV
    cheers,
    Kris.

  • Create Interactive Form UI element Dynamically

    Hi Experts,
    I have a requirement according to which i need to create multiple PDF forms at runtime.
    The approach that i would be using is creating interactive form U I element at runtime.
    So as a test application in a views wdDoModifyView i added the below
    In the do modify view i have added the below piece of code
    if (!firstTime)
                   IWDNodeInfo l_sel_nodeInfo =
                        wdContext.nodeCtx_vn_binary().getNodeInfo();
                   IWDAttributeInfo l_attrInfo =
                        l_sel_nodeInfo.getAttribute(
                             IPrivateAdobeView1.ICtx_vn_binaryElement.CTX__VA__BINARY);
                   if (view.getElement("adobeFrm") == null) {
                        IWDTransparentContainer container =
                             (IWDTransparentContainer) view.getElement(
                                  "RootUIElementContainer");
                        IWDInteractiveForm adobeFrm =
                             (IWDInteractiveForm) view.createElement(
                                  IWDInteractiveForm.class,
                                  "adobeFrm");
                        adobeFrm.bindDataSource(
                             wdContext.nodeCtx_vn_adobe().getNodeInfo());
                        adobeFrm.setMode(WDInteractiveFormMode.UPDATE_DATA_IN_PDF);
                        adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
                        adobeFrm.setDisplayType(WDInteractiveFormDisplayType.NATIVE);
                        adobeFrm.bindPdfSource(l_attrInfo);
                        adobeFrm.setVisible(WDVisibility.VISIBLE);
                        container.addChild(adobeFrm);
                        adobeFrm.setTemplateSource("AdobeView1_InteractiveForm.xdp");
    But now i am stuck at this point as its giving me null pointer exception on execution.
    Could some one provide me links to the tutorials which contains dynamic creation of Interactive form UI element
    Thanks in advance!!!

    Hi Rekha ,
    I do have this link but as per this tutorial the layout of adobe form is generated during design time whereas i need to create the mulitple PDF at runtime.These PDF need to be displayed to the user . The approach that i am using is to create Interactiveform  U I element at runtime.
    The  code that i tried is already provided in my first post.I need some more concrete tutorials /examples for this.
    Basically i need to know how to add elements like a table/textfield and data within those table/ textfields  in an adobe form(Interactive form UI element) at runtime.
    Regards ,
    Navya.
    Edited by: navya_4321 on Feb 2, 2011 6:22 AM

  • How to create Node, Attributes and Table Dynamically?

    Hi All,
    How to create node and attributes dynamically, and with this node i want to create table dynamically?? Any related code please?
    Thanks
    Venkat.

    HI
    I guess you are asking the same thing in some other post also .
    use the code as mentioned there also.
    data: wd_node_info type ref to if_wd_context_node_info,
    wd_node type ref to if_wd_context_node,
    lr_container type ref to cl_wd_uielement_container,
    lv_tablename type string,
    lt_db_data type ref to data,
    lr_table type ref to cl_wd_table,
    ls_attribute type wdr_context_attribute_info.
    field-symbols: <lt_data> type any table.
    wd_node_info = wd_context->get_node_info( ).
    CALL METHOD WD_NODE_INFO->ADD_NEW_CHILD_NODE
    EXPORTING
    *STATIC_ELEMENT_TYPE = 'ZDEALER'
    NAME = 'NODE'
    IS_MULTIPLE = ABAP_TRUE
    IS_INITIALIZE_LEAD_SELECTION = ABAP_FALSE
    RECEIVING
    CHILD_NODE_INFO = wd_node_info.
    wd_node = wd_context->get_child_node( name = 'NODE' ).
    wd_node_info = WD_node->GET_NODE_INFO( ).
    data dyn_attr_info type wdr_context_attribute_info.
    DYN_ATTR_INFO-NAME = 'X1'. "Attribute Name
    DYN_ATTR_INFO-TYPE_NAME = 'STRING' ." Data Element(CHAR20) ( Type Of Attribute )
    DYN_ATTR_INFO-NODE_INFO = wd_node_info.
    CALL METHOD wd_node_info->ADD_ATTRIBUTE
    EXPORTING
    ATTRIBUTE_INFO = DYN_ATTR_INFO.
    DYN_ATTR_INFO-NAME = 'X2'. "Attribute Name
    DYN_ATTR_INFO-TYPE_NAME = 'STRING' ." Data Element(CHAR20) ( Type Of Attribute )
    DYN_ATTR_INFO-NODE_INFO = wd_node_info.
    CALL METHOD wd_node_info->ADD_ATTRIBUTE
    EXPORTING
    ATTRIBUTE_INFO = DYN_ATTR_INFO.
    lr_container ?= view->get_root_element( ).
    cl_wd_matrix_layout=>new_matrix_layout( container = lr_container ).
    " Creating internal table with the same structure as our dynamic context node
    CALL METHOD CL_WD_table=>new_table
    EXPORTING
    bind_data_source = 'NODE'
    ID = 'TABLE'
    RECEIVING
    control = lr_table.
    cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_table ).
    *lr_table->bind_data_source( path = 'NODE' ).
    data lr_table_col type ref to cl_wd_table_column.
    data lr_table_col1 type ref to cl_wd_table_column.
    data lr_text_view type ref to cl_wd_text_view.
    data lr_input_field type ref to cl_wd_input_field.
    DATA lr_column_name_header TYPE REF TO cl_wd_caption.
    lr_input_field = cl_wd_input_field=>new_input_field(
    bind_value = 'NODE.X1' ID = 'INP' ).
    LR_TABLE_COL = cl_wd_table_column=>new_table_column( id = 'COL1' ).
    lr_table->add_column( the_column = lr_table_col ).
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'X1').
    lr_table_col->set_table_cell_editor(
    THE_TABLE_CELL_EDITOR = lr_input_field ).
    lr_table_col->set_header( lr_column_name_header ).
    lr_text_view = cl_wd_text_view=>new_text_view(
    bind_text = 'NODE.X2' ID = 'TXT' ).
    LR_TABLE_COL1 = cl_wd_table_column=>new_table_column( id = 'COL2' ).
    lr_table->add_column( lr_table_col1 ).
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'X2').
    lr_table_col1->set_table_cell_editor(
    THE_TABLE_CELL_EDITOR = lr_text_view ).
    lr_table_col1->set_header( lr_column_name_header ).
    lr_container->add_child( lr_table ).
    cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_table ).
    thanks
    sarbjeet singh

  • How to create a MD form using dynamic page ?

    Rahul and Sharmila,
    You have answered several of my queries earlier and I am thankful for them.
    I have been trying to creating a MD form using dynamic page and I haven't fiqured it out. I need help. You both advised me on creating a simple form using dynamic page. The complexity changes drastically when I have to create a MD form. Has no body ever tried to create a MD form with dynamic page?
    I haven't heard from you anything either. I am stuck with this and I need help urgently. Would you kindly tell me if this is possible and how ? Otherwise, I will stop crying for help on this.
    Thanks for your kind attention.
    Mainak

    Hi,
    I have replied to this in the morning.
    Re: Oracle portal and JSR 168 compliance
    Hope it helps.
    Thanks,
    Sharmila

  • How to create custom BOL object for dynamic query in CRM 7.0

    Hi,
    Could anyone please explain me with steps that how to create the custom BOL object for dynamic query in CRM 7.0, I did it in previous version but its throwing exception when i try to create the object of my dynamic query class. I just defined the entry of my in crmv_obj_btil to create the dynamic query BOL object. do i need to do any other thing also to make it work?
    Regards,
    Kamesh Bathla
    Edited by: Kamesh Bathla on Jul 6, 2009 5:12 PM

    Hi Justin,
    First of thanks for your reply, and coming to my requirement, I need to report the list of items which are there in the dynamic select statement what am getting from the DB. The select statement number of columns may vary in my example for different countries the select item columns count is different. For US its '15', for UK it may be 10 ...like so, and some of the column value might be a combination or calculation part of other table columns (The select query contains more than one table in the from clause).
    In order to execute the dynamic select statement and return the result i choose to write a function which will parse the cursor for dynamic query and then iterate the values and construct a Type Object and append it to the pipe row.
    Am relatively very new for these sort of things, welcome in case of any suggestions to make it simple (Instead of the function what i thought to work with) also a sample narrating the new procedure will be appreciated.
    Thanks in Advance,
    mallikj2.

  • How to create popup link in OAF dynamically or declaratively.

    Can anybody please help how to create a link as popUp in OAF dynamically or declaratively?

    Step 1: Create an OAPopupBean. For example:
    OAPopupBean popupBean =(OAPopupBean)createWebBean(pageContext,POPUP_BEAN,null,"myPopup");
    //Set the following properties on the pop-up:
    popupBean.setID("myPopup");
    popupBean.setUINodeName("myPopup");
    String popupRegion= "/oracle/apps/fnd/framework/toolbox/labsolutions/webui/TestEmpDetailsRN" ;
    popupBean.setRegion(popupRegion);
    popupBean.setHeight("130");
    popupBean.setWidth("320");
    popupBean.setTitle("Test");
    popupBean.setType(EMBEDDED_POPUP); /* Embedded type */
    Step 2: Select the item (messageStyledText, image, link, or button) on which you want to enable the pop-up, and set the following properties, as shown in this example:
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("ResultsTable");
    OAImageBean image = (OAImageBean)webBean.findChildRecursive("UpdateImage");
    image.setPopupEnabled(true);
    image.setPopupRenderEvent("onClick");
    image.setPopupID("myPopup");
    Step 3: Add the pop-up as an indexed child of the region that contains the item on which the pop-up is enabled.
    Note: If you are enabling a pop-up on an item within a classic table, advanced table or HGrid, then you must add the pop-up and the item on which it is enabled to a layout and add the layout as the indexed child of the table.
    In this example, the pop-up is enabled on an image within a table, hence the pop-up is added as a second level indexed child of the table:
    OAStackLayoutBean stackLayoutBean = new OAStackLayoutBean();
    stackLayoutBean.addIndexedChild(popupBean);
    tableBean.addIndexedChild(stackLayoutBean);

Maybe you are looking for