Problem in expand method of tree menu display.

hi experts,
i am using following method of  CL_GUI_SIMPLE_TREE to expand all nodes of tree.
CALL METHOD g_tree->expand_nodes
        EXPORTING
          node_key_table          = it_tab
        EXCEPTIONS
          failed                  = 1
          cntl_system_error       = 2
          error_in_node_key_table = 3
          dp_error                = 4
          OTHERS                  = 5.
it_tab contains node_key for all nodes with folder symbol.
my problem is that on executing this method root node and its child expand but the nodes inside child node aren't shown.
EXPECTED OUTPUT IS:                                                                               
v infotype  (root)                                                                               
v   0002(personal details)  (child1)                                                                               
[]  personal details                                                                               
v   0006(addresses)           (child2)                                                                               
[]  permanent address                                                                               
[]  temorary addresses
       []  home address
       []  emergency address
PRESENT OUTPUT:
v infotype               (root)                                                                               
v   0002  (personaldetails)(child1)                                                                               
v   0006(addresses)         (child2)                                                                               
v   0008(basic pay)           (child3)
   v   0009(bank details)        (child4)
       Edited by: charudevrani on Nov 14, 2011 7:37 AM
Edited by: charudevrani on Nov 14, 2011 7:38 AM
Edited by: charudevrani on Nov 14, 2011 7:42 AM

Hi ,
Check the below code .U have to add child nodes to the item table and folders to the node table.
method handle_expand_no_children.
    data: node_table type treev_ntab,
          node type treev_node,
          item_table type item_table_type,
          item type mtreeitm.
show the key of the expanded node in a dynpro field
    g_event = 'EXPAND_NO_CHILDREN'.
    g_node_key = node_key.
    if node_key = c_nodekey-child12
add the children for node with key 'Child2'
Node with key 'New3'
      clear node.
      node-node_key = c_nodekey-new3.
      node-relatkey = c_nodekey-child2.
      node-relatship = cl_gui_list_tree=>relat_last_child.
      append node to node_table.
Node with key 'New4'
      clear node.
      node-node_key = c_nodekey-new4.
      node-relatkey = c_nodekey-child2.
      node-relatship = cl_gui_list_tree=>relat_last_child.
      append node to node_table.
Node with key 'New3'
      clear node.
      node-node_key = c_nodekey-new5.
      node-relatkey = c_nodekey-child2.
      node-relatship = cl_gui_list_tree=>relat_last_child.
      append node to node_table.
Node with key 'New4'
      clear node.
      node-node_key = c_nodekey-new6.
      node-relatkey = c_nodekey-child2.
      node-relatship = cl_gui_list_tree=>relat_last_child.
      append node to node_table.
Items of node with key 'New3'
      clear item.
      item-node_key = c_nodekey-new3.
      item-item_name = '1'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-length = 11.
      item-usebgcolor = 'X'. "
      item-text = 'Program 1'.
      append item to item_table.
      clear item.
      item-node_key = c_nodekey-new3.
      item-item_name = '2'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-alignment = cl_gui_list_tree=>align_auto.
      item-font = cl_gui_list_tree=>item_font_prop.
      item-text = 'Program Text'(001).
      append item to item_table.
Items of node with key 'New4'
      clear item.
      item-node_key = c_nodekey-new4.
      item-item_name = '1'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-length = 11.
      item-usebgcolor = 'X'. "
      item-text = 'Program 2'.
      append item to item_table.
      clear item.
      item-node_key = c_nodekey-new4.
      item-item_name = '2'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-alignment = cl_gui_list_tree=>align_auto.
      item-font = cl_gui_list_tree=>item_font_prop.
      item-text = 'Program Text'(002).
      append item to item_table.
     * Items of node with key 'New3'
      clear item.
      item-node_key = c_nodekey-new5.
      item-item_name = '1'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-length = 11.
      item-usebgcolor = 'X'. "
      item-text = 'Program 3'.
      append item to item_table.
      clear item.
      item-node_key = c_nodekey-new5.
      item-item_name = '2'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-alignment = cl_gui_list_tree=>align_auto.
      item-font = cl_gui_list_tree=>item_font_prop.
      item-text = 'Program Text'(002).
      append item to item_table.
     * Items of node with key 'New4'
      clear item.
      item-node_key = c_nodekey-new6.
      item-item_name = '1'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-length = 11.
      item-usebgcolor = 'X'. "
      item-text = 'Program 4'.
      append item to item_table.
      clear item.
      item-node_key = c_nodekey-new6.
      item-item_name = '2'.
      item-class = cl_gui_list_tree=>item_class_text.
      item-alignment = cl_gui_list_tree=>align_auto.
      item-font = cl_gui_list_tree=>item_font_prop.
      item-text = 'Program Text'(002).
      append item to item_table.
    endif.
    call method g_tree->add_nodes_and_items
      exporting
        node_table = node_table
        item_table = item_table
        item_table_structure_name = 'MTREEITM'
      exceptions
        failed = 1
        cntl_system_error = 3
        error_in_tables = 4
        dp_error = 5
        table_structure_name_not_found = 6.
    if sy-subrc <> 0.
      message a000.
    endif.
  endmethod.                    "HANDLE_EXPAND_NO_CHILDREN

Similar Messages

  • Problems with recordset paging and dynamic menu displaying all the options

    Hi hope someone can help on this - I've posted the code on the FoEd Backend Blight - with no takers/success yet -
    I've created a jobs page using DWCS3 which has a dynamic drop down menu filtering the 'countries' that jobs are located in.  When I introduce a recordset page only those countries associated with the jobs on that particular page are shown in the dynamic menu above, not all of the countries listed in the database. When I get to the second page of results - again - only those jobs' countries are shown in the menu (and not the previous pages/next pages as well).
    I'd clearly like a user to be able to select from the menu of countries available for all the jobs in the database, and not just those on the page.  Any ideas?
    On a similar strain - my country menu/filter is wrapped up in a form above the list of jobs.  On loading the page, only the search and menus appear.  No jobs are shown until I hit submit.  Is there a way to have all the jobs display on first load, and then for the search/menu filter to work on the displayed jobs. I've tried altering the variables on the search to 1 from -1, and other options but I can't seem to get a page of content on first load.
    I'd really appreciate any pointers on the above, as this would help solve the final stage of my project. The full post and code can be seen on the friendsofed website under backend blight.
    Many thanks in advance.
    Matt

    I'm still stuck on getting the page to load with some actual content, however.  I'm just getting the search box and country filter displaying on first load.
    Pages 584-6 explain why you get nothing when a page first loads. Dreamweaver sets the default value to -1. The problem with trying to change the default value even to an empty string or % is that Dreamweaver's security function, GetSQLValueString() changes an empty string to NULL and wraps % in quotes, so neither will work.
    One way to display all records when the page first loads is to create another recordset that selects all records. Wrap the code in a conditional statement that checks whether the $_GET array contains any values:
    if (!$_GET) {
      // recordset to retrieve all records here
    This means that you need two repeat regions to display the results. Wrap both of them in conditional statements:
    if (isset($fullRecordsetName)) {
      // display the full recordset
    } elseif (isset($searchResultsRecordsetName)) {
      // display the search results
    You also need to wrap the mysql_free_result() statements in conditional statements at the end of the page:
    if (isset($fullRecordsetName)) mysql_free_result($fullRecordsetName);
    if (isset($searchResultsRecordsetName)) mysql_free_result($searchResultsRecordsetName);
    Another way to do it is to use just one recordset, but split the SQL query into two sections:
    $query_RecordsetName = "SELECT * FROM myTable";
    if (isset($_GET['searchTerm')) {
    $query_RecordsetName .= sprintf(" WHERE searchTerm LIKE %s",
         GetSQLValueString("%" . $colname_RecordsetName . "%", "text"));
    This uses the combined concatenation operator to add the WHERE clause to the query only if $_GET['searchTerm'] has been set. Notice that you need a space before the "WHERE".

  • How to remove Expand All in view menu of tree table

    Hi,
    I want to remove Expand All in view menu of tree table. How to do that?
    Regards,
    Raghu.

    I am having the exact same problem.
    However, I believe that displaying large amount of data via a tree table is fine as the user is able to quickly drill in to the data of interest.
    It is just that the 'Expand All' option (as implemented) does not make sense in my case.
    Given that I cannot hide it, is there an easy way to change it's behavior so that it does nothing (or provide an 'No implemented' alert).
    I don't have the time/experience to implement custom menu items.
    Thanks

  • Problem occured when create a tree table for master-detail view objects using SQL queries?

    I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
    1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK,                   
            sum(                   
             case when cntr_list.cntr_size_q = '20'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr20 ,                   
            sum(                   
             case when cntr_list.cntr_size_q = '40'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr40 ,                   
             sum(                   
             case when cntr_list.cntr_size_q = '45'                   
                  then cntr_list.cntr_qty                   
                  else 0 end ) as cntr45                    
    FROM (       
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,       
               scn.CNTR_SIZE_Q,        
               count(scn.CNTR_SIZE_Q) AS cntr_qty        
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2       
        WHERE       
        scm.cmr_n = scn.cmr_n             
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                 
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                 
        AND scm.shift_mode_c = :ShiftModeCode                           
        AND scm.end_terminal_c = :TerminalCode      
        AND scm.start_terminal_c = yb1.terminal_c                  
        AND scm.start_block_n = yb1.block_n                  
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                  
        AND scm.end_terminal_c = yb2.terminal_c                  
        AND scm.end_block_n = yb2.block_n                  
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n           
        AND scn.status_c not in (1, 11)             
        AND scn.shift_type_c = 'V'             
        AND scn.source_c = 'S'       
        GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q       
    ) cntr_list       
    GROUP BY cntr_list.SOURCE_BLOCK
    2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
    SELECT  cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,                
            sum(                     
             case when cntr_list.cntr_size_q = '20'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr20 ,                     
            sum(                     
             case when cntr_list.cntr_size_q = '40'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr40 ,                     
             sum(                     
             case when cntr_list.cntr_size_q = '45'                     
                  then cntr_list.cntr_qty                     
                  else 0 end ) as cntr45                      
    FROM (         
        SELECT yb1.BLOCK_M as SOURCE_BLOCK,     
               yb2.BLOCK_M as END_BLOCK,  
               scn.CNTR_SIZE_Q,          
               count(scn.CNTR_SIZE_Q) AS cntr_qty          
        FROM  SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2         
        WHERE         
        scm.cmr_n = scn.cmr_n               
        AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')                   
        OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))                   
        AND scm.shift_mode_c = :ShiftModeCode                             
        AND scm.end_terminal_c = :TerminalCode        
        AND scm.start_terminal_c = yb1.terminal_c                    
        AND scm.start_block_n = yb1.block_n                    
        AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n                    
        AND scm.end_terminal_c = yb2.terminal_c                    
        AND scm.end_block_n = yb2.block_n                    
        AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n             
        AND scn.status_c not in (1, 11)               
        AND scn.shift_type_c = 'V'               
        AND scn.source_c = 'S'         
        GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q         
    ) cntr_list         
    GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
    3. I create a view link to create master-detail relationship for these 2 view objects.
    masterview.SourceBlock (1)->detailview.SourceBlock (*).
    4. I create a tree table using these 2 view objects with master-detail relationship.
    When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
    But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
    I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
    Managed Bean:
            DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
            ViewObject vo = dc.getViewObject();
            System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo.executeQuery();
            System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
            DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
            ViewObject vo1 = dc1.getViewObject();
            System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
            System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
            vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
            vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
            vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
            vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
            vo1.executeQuery();
            System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
    5.  What's wrong in my implementation?  I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • PerformancePoint Chart Drill Down Menu Display Issue with Chrome v40

    We have performancepoint dashboards which used to display perfectly in Chrome. The last update of Chrome (v40) has introduced the following issue:
    Whenever the user right clicks on the chart the drill down menu displays erroneously on top-left section of the page. The drill down menu should appear exactly where the user right clicks but it does not.
    Any other person faced this issue and can recommend any fix for that? We are stuck as most clients have now updated Chrome browser and tweaking Microsoft implementation will not be a good fix for long term.
    P.S. there is no such problem with FireFox (35) & IE (9+) and Chrome (v33)

    Hi guys,
    I kind of lost track on this post. I checked that for most of the components, as soon as we use some or the other methods to overwrite with blanks, the components reset wonderfully, except when using 'Drill'.
    Drill feature of a chart required me to execute the query again to reset it.
    To prevent this, have changed the requirement to provide transparent push buttons on X axis for drilling down to the next level.
    Thanks for the inputs.
    Regards,
    Velly

  • Slow Tree Menu

    I am running a navigation tree menu which draws its content from the portal page structure.
    When I'm logged in, it works fine, really quick.
    When I'm browsing it as a public user, there is a 10 second delay in loading the page.
    I think its to do with the checking of whether it can show the page or not.
    Is there any way it can be speeded up.
    Heres the website.
    http://floyd.yeovil.ac.uk/pls/portal

    the "connect by" type select is 5 second. We are in a local 100 mbs network. the other 20sec is to build the tree, and display it. I think the display is not so much.
    i have to say, i'm not using the populate_group functinon, because it takes 2x times.(about 50sec-1min)
    The following i do:
    make a cursor with the correct tpye of select:
    SELECT 1, LEVEL,
    node_label,
    node_icon,
    node_value
    FROM source_table
    CONNECT BY PRIOR conn_id = conn_father_id
    START WITH conn_father_id IS NULL
    ORDER BY LEVEL, conn_father_id, node_label
    Then in a cursor loop i always find the father node, and then add with ftree.add_tree_node with the new node. This method gives the best performance.
    Is there someone(for example a person, who develop the Forms) who can tell me, why is the manipulating hierarch tree in Forms6i so much slow???
    When I would like a copy a part of tree (use a popup menu in a node, and say: 'Copy or Cut' - these are my user defined triggers ), the hole forms runtime become dead, and "thinking" for a long time. For Too much.
    Please help me, because we using hierarchial tree in our project, and we explored when node numbers in a tree above 3000, it unusable. Can i use activex or API, which can faster???

  • Javascript tree menu not working in portal

    We are evaluating the possiblity of providing javascript tree menu in a portal page, which should work in both IE and Netscape browsers. The javasript tree menu ("COOLjsTree" at http://javascript.cooldev.com/) is working properly in all the browsers when accessed directly as a simple jsp file from the server. But when we create a java portlet of the same jsp file and try to access it from all the browsers, we are not able to see the menu in Netscape 4.75, while it is fuctioning properly in IE 5 and above and Netscape 6 and above.
    We have gone through the note:136120.1 on Supported browser versions for oracle portal.
    The question is why is the javascript not working when put as a portlet in portal on Netscape 4.75, whereas the same piece of code works properly on Netscape 4.75 when accessed as a simple jsp file?
    We want to achieve this functionality and any help/clarification on this particular issue would be greatly appreciated.
    Regards
    Vikram

    I had a similar problem using a different Javascript menu. If you take a look at the HTML generated by the portal and break it down into smaller sections you may find the HTML that is causing your Javascript not to load. It's a tedious task, but not all Javascript is the same. Note, if your javascript is using or manipulating the <div> tag. It must be relative positioned to an image or div or you may run into the problem of the javscript loading and displaying relative to the browser as opposed to your portlets.
    Laith E.H.

  • Problem in using AdvanceDataGrid as tree with drag n drop functionality

    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.

    Please don’t use this forum for support questions, go use flexcoders or the Adobe forums instead.
    Matt
    On 2/10/09 11:21 PM, "rakess" <
    [email protected]> wrote:
    A new discussion was started by rakess in
    Developers --
      Problem in using AdvanceDataGrid as tree with drag n drop functionality
    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.  
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.
    View/reply at Problem in using AdvanceDataGrid as tree with drag n drop functionality <
    http://www.adobeforums.com/webx?13@@.59b7e11c>
    Replies by email are OK.
    Use the unsubscribe <
    http://www.adobeforums.com/webx?280@@.59b7e11c!folder=.3c060fa3>  form to cancel your email subscription.

  • Method add_function does not display icon in toolbar

    Hi,
    as described in the subject of this post I have a problem with the method add_function of class cl_salv_functions_list. My intend was to add several buttons in the toolbar of the ALV grid. Adding of these buttons is functional but there is no icon display although I defined the right value. Maybe there is a mistake in calling the method. Please see the attached code.
    Prerequisites:
    <b>eg. l_icon1 = "ICON_REFRESH" --> or should I use another value???</b>
    data: lr_columns type ref to cl_salv_columns_table,
            lr_column type ref to cl_salv_column_table,
            lr_functions type ref to cl_salv_functions_list,
            lr_layout type ref to cl_salv_layout,
            ls_key type salv_s_layout_key,
            selection type ref to cl_salv_selections,
            l_icon1 type string,
            l_icon2 type string,
            l_icon3 type string,
            l_icon4 type string,
            e_text type string,
            l_oref   type ref to cx_root.
      try.
          l_icon1 = text-ic1.
          l_icon2 = text-ic2.
          l_icon3 = text-ic3.
          ls_key-report = sy-cprog.
          lr_columns = r_process_alv->get_columns( ).
          lr_functions = r_process_alv->get_functions( ).
          lr_layout = r_process_alv->get_layout( ).
          lr_functions->set_all( value = if_salv_c_bool_sap=>true ).
          try.
              lr_functions->add_function(
                            name = 'SAPDET'
                            icon = l_icon1
                            text = 'Details'
                            tooltip =' Details'
                            position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'APPEND'
                                  icon = l_icon2
                                  tooltip = 'ADD'
                                  position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'DELETE'
                                  icon = l_icon3
                                  text = 'Del'
                                  tooltip = 'Session löschen'
                                  position = if_salv_c_function_position=>left_of_salv_functions
              lr_functions->add_function(
                                  name = 'REFRESH'
                                  icon = l_icon4
                                  text = 'Refresh'
                                  tooltip = 'Refresh'
                                  position = if_salv_c_function_position=>left_of_salv_functions
            catch cx_salv_wrong_call cx_salv_existing into l_oref.
              e_text = l_oref->get_text( ).
              message e_text type 'E'.
          endtry.
    Thanks in advance.
    Regards
    Maik.

    Hello Maik
    Rich is right. Since release 6.20 we should use
      TYPE-POOLS: icon.   " instead of include <icon>.
    In sample report <b>SALV_DEMO_TREE_FUNCTIONS</b> they use the "cryptic" version of the icons which is not preferable.
        try.
          l_text1 = text-b01.
          l_text2 = text-b02.
          lr_functions->add_function(
            name     = 'MYFUNCTION'
            icon     = '@DF@'
            text     = l_text1
            tooltip  = l_text2
            position = if_salv_c_function_position=>right_of_salv_functions ).
          catch cx_salv_wrong_call cx_salv_existing.
        endtry.
    Regards
      Uwe

  • Create tree menu

    Hi, I'm trying to create a tree menu, When user click the links on left hand side, the content will be displayed on the right side of the page.
    I'm new to html db. Can anyone have some suggestion about this? Is there a how'to doc. or sample application for reference?
    Much appreciate your instruct.

    Sorry . .. I just read your other posting regarding menu trees
    tree menu
    and I think I started leading you down a path that is far more complicated than you are looking for. It looks like Jeff has answered you question regarding how to add a tree. The link that I gave you was for creating a dynamic drop down/out menu based on the Suckerfish dropdown menu.
    http://www.alistapart.com/articles/dropdowns/
    David

  • Searching for a good tree menu

    Hi all,
    I need to add a tree menu to my website.
    I cannot find a tree menu that works the way I need.
    I need a tree menu that:
    - can be styled with CSS;
    - highlight the current menu branch even with URL parameters:
    example:
    the link
    http://www.mysite.com/index.php?cat_id=1&prod_id=101
    should
    highligth the 'category 1' branch;
    and
    the link
    http://www.mysite.com/index.php?cat_id=1&prod_id=145
    should
    highligth the 'category 1' branch;
    then
    the link
    http://www.mysite.com/index.php?cat_id=2&prod_id=435
    should
    highligth the 'category 2' branch;
    - collapse/expand menu branch from links on page
    Can you point me to a site/tutorial to do this?
    I thank you in advance.
    tony

    On 06 Mar 2009 in macromedia.dreamweaver, sweetman wrote:
    > Hi all,
    >
    > I need to add a tree menu to my website.
    > I cannot find a tree menu that works the way I need.
    >
    > I need a tree menu that:
    > - can be styled with CSS;
    >
    > - highlight the current menu branch even with URL
    parameters:
    >
    > example:
    > the link
    http://www.mysite.com/index.php?cat_id=1&prod_id=101
    should
    > highligth the 'category 1' branch;
    > and
    > the link
    http://www.mysite.com/index.php?cat_id=1&prod_id=145
    should
    > highligth the 'category 1' branch;
    > then
    > the link
    http://www.mysite.com/index.php?cat_id=2&prod_id=435
    should
    > highligth the 'category 2' branch;
    >
    > - collapse/expand menu branch from links on page
    >
    > Can you point me to a site/tutorial to do this?
    http://projectseven.com/products/menusystems/tmm2/
    Not free, but will do everything you want.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • ITunes, TV Series - Menu display's the 853 x 480 files as well as the 1280 x 720HD files?

    Hi All
    Can anybody tell me why the iTunes, TV Series - Menu display's the 853 x 480 files as well as the 1280 x 720HD files?
    It means when you scroll through you TV or film collections using your remote you get a duplicate title. I can understand having 2 files for viewing on the iPhone or HDTV but you would think iTunes would filter and display the files subject to how you were viewing your TV shows etc?
    Can anybody tell me how to solve this?

    3 Items show up, all the same:
    ThinkPad Display 1280 x 800
    I first tried to remove, rebooted, and nothing happened.
    When I went back in to device manager, they all 3 showed back up
    Second time, disabled all 3, rebooted and nothing happened.
    Third time tried to remove 2 of the 3, nothing happened.
    Any and all help is greatly appreciated!!  
    I have been working on this for over a month.  If I upgrade to Windows 7, I can get online, will all of these problems go away?  
    I have all data and pics that I need saved as well.  I just don't have the recovery disc.  I am thinking I might as well 

  • Inconsistent "ghost" menu displayed by some software/hardware players

    Hi everyone. I have a very weird problem that I don't know how to prevent/solve. I had 2 events that ended on making 2 projects (A & B) each one with 2 discs (1 and 2). I made everything starting from the same DVD Studio Pro project file just saving it as a new one and replacing assets. Also, I established a custom build location on different folders as well for each of the four discs. Everything seemed fine, and then I made 200 discs and now I have a HUGE problem!
    The problem is some dvd players/software players display a ghostly variation of the first version I made of project A menu (at first, I used default buttons with dvdsp text as part of the buttons, finally I made a background image and just used dots to highlight) on Project A discs AND Project B discs! This means when I'm unlucky I get to see a grey background with the buttons and text (text that I later removed and became an background image) of this first version of Project A Disc 1 menu.
    This never happened in simulation mode, when mounting the image, when verifying the burned discs on my macbook pro, xbox, set top dvd player and PC. But this problem happened on 2 of the client's macbook pros, when using Windows Media Player as player, and on some Sony set top dvd players. It's totally inconsistent. On a PC, if I use VLC, IntervideoWinDVD or PowerDVD as player, everything's fine, if I use WMP, the ghost menu problem arise.
    Can somebody shine some light on this problem? If using the same file and then saving it as new and renaming/replacing assets somehow dragged the problem to the four discs, why did it happened in the first place for the original project? How would I know that if the simulation is fine and it plays fine on many devices? Thanks in advance

    Hi Drew, thanks for stopping by. I'm using DVD Studio Pro 4.2.1, and this is the first time I encounter this problem. I guess next time (if the client doesn't kill me first) I'll make all menus from scratch and on first try, because there is no reliable way to know if sometimes some random player will display a ghost menu or something like that, huh? Too bad, I though this was easier!
    Also a quick question please. You said changing software/hardware encoding sometimes helps. I went to preferences, and on the Encoding Section I just found bitrate, order or something and then at the bottom to choose between background encoding / encode on build. What do you mean by changing software/hardware enconding? I'm a newbie hehe :P

  • Help in getting current expanded node in Tree UI

    HI,
    I have a requirement to build a tree dynamically. On expanding each node I need to create sub nodes inside that. But it is always creating inside the node where the lead selection is and not inside the current expanded node. Even though I have used getTreeSelection () to get the current element.
    <b>Detailed description about the application.,</b>
    I have created a context with the following structure,
    TreeNode (0..n)
    |
    |--> ChildNode (recursive SiteTree)
    |--> Name (string)
    I have created a Tree UI Element in the view and inserted a node type 'TreeNodeType'.
    I have set the properties of the inserted node type as given bellow,
    Value Attribute in TreeNode -> Name I have assigned to 'Text' property of 'TreeNodeType'.
    Initially I have created four nodes in the init() method ., using the following code :
    for(int i=0;i<3;i++)
    IPrivateTestTreeView.ITreeNodeNode treenode=wdContext.nodeTreeNode();
    IPrivateTestTreeView.ITreeNodeElement treeelement=wdContext.createTreeNodeElement();
    treeelement.setName("Testroot:"+i);
    treenode.addElement(treeelement);
    Now I need to create sub-nodes for this dynamically.,
    I have created an action and called it in 'onLoadChildren' event of 'TreeNodeType' with the following code:
    public void OnCurrentSelection()
    IPrivateTestTreeView.ITreeNodeElement el = wdContext.nodeTreeNode().getTreeSelection();
    wdComponentAPI.getMessageManager().reportSuccess(el.getName());
    <b>
    Where this returns me only the name of LeadSelection node and not the  node which i try to expand.  </b>
    Is there anyway I can get the currently expanded node., Kindly help me out in this.
    Points will be rewarded for helpful answers. Thanks in advance.
    Regards,
    Nirmal

    HI Ayyapparaj ,
    <b>First I would like to thank you for your reply.</b>
    So it means that we cannot identify the currently expanded node in tree UI element and It will always be the lead selection node we will be able to get rite?
    Can we make the current lead selection to currently expanded node 'By Default'?
    Coming back to your solution.,
    I created a context element 'isExpanded' of type boolean inside the TreeNode.
    You said that there will be a call made to 'getter and setter' methods while we expand the node and we can set the lead selection to that element from there.
    Could you please give me some more details of how to achieve it.
    Thanks in advance.
    Regards,
    Nirmal G

  • Of Explorer Trees & Menu bars

    This may seem like a dumb question, or that I'm not doing my work but I'm really stumped.
    Using JSP, and HTML tag <DIV> one should be able to create a JTree equivalent display in a frame on the browser right? how is this done?
    Plus, what about a menu bar?? the drop down would use <SELECT> tag?
    thx.

    Here is an excellent site with a free API for doing tree menu's. Its in javascript. But, you could use JSP page to dynamically generate the tree. The author has examples. It works great and I think this is what you are looking for:
    http://www.treemenu.com/

Maybe you are looking for

  • ITunes 11.1.2 (integral to Mavericks) no longer allows contacts syncing via USB

    Personally, I feel this is morally wrong.  I have no problem with Apple offering the iCloud service, but it's quite another thing to force me to use iCloud for my own info.  Whatever convenience or advantage this is to Apple is easily outweighed by a

  • Video Wobble on N95

    Hey there folks. I have a bit of a problem. When I record video on my N95 it's fine if the camera is completely still but on panning shots the picture visibly 'wobbles' no matter how smoothly or steadily I move the camera. It does this both with and

  • 3750 bandwidth limitation between the same vlan over the trunk

    Hi All, I have 2 3750G series switches on the trunk link. some machines are part of vlan1 on the switch 1 and some machines are the part of the same vlan1 on the other switch2. I need to limit the bandwidth between the switches for the vlan1. picture

  • My IT dept. blocked in Apple Installer, how do I get around it?

    My IT dept. blocked in Apple Installer, how do I get around it?

  • NAC and BBSM access code management

    Hello, An organization has a network infrastructure in which a BBSM generates access codes for limited authorized time periods to allow Internet web access to wireless guests. If a guest exhausts the period he must request a new access code. Now, if