Display data as a tree view on IE5

I want to display data which is parsered by .xsql and use .xsl transfrom to HTML as a tree view(using javascript).
Is there any sample or suggestion will eb grateful.
Regards,
Kelly

Thanks for the backup :-)
A new version of the Tree Tag will be out some time this summer, by the way. It features:
1) The possibility to attach an object to a tree node (getObject(), setObject(...)).
This means you can display more information in the tree than just what is available
on the tree node itself. The information in this attached object can also be displayed.
This attached object can for instance be rendered by Struts's <bean:write ...> tags
2) Client side event listeners.
A new tag will be added that will only evaluate it's body when a node is expanded, collapsed,
selected or unselected. This way you can have a small bit of javascript sent along with the tree html to the browser, when a node is expanded/collapsed or selected/unselected, that for instance reloads the page in another frame in the browser
3) The <tree:tree...> tag will be able to detect selected/unselected nodes by itself, if the select request is sent to the page containing the <tree:tree tag>. In the current version only expands/collapses are detected automatically. This new feature is implemented to support the client side event listeners.
4) Someone asked for no-arg contructors of the TreeNode for use with reflection. They will be added to.
A larger, more detailed manual will probably also be available for a small fee, in addition to the free basic user guide and the free web app. example.
Look out for it ;-)
Jakob Jenkov
http://www.jenkov.com

Similar Messages

  • Displaying data in a tree from database table

    Hi,
    I want to display data from a database table (mara-matnr) in a tree structure. I went through the coding of SBSPEXT_HTMLB. There static data was taken in to wa_tab. But there I want to bring data from a database table into wa_tab. For this I created an internal table without headerline by taking a work area, now how can I move data from this work area to wa_tab record by record.
    I hope some one might have worked on this. Plz help me....
    Thanks in advance,
    Ravindra.

    Hi,
    take a look at this <a href="/people/tomas.altman/blog/2004/12/13/sdn-blog-how-to-do-internal-tables-in-bsp which explains how internal tables work in ABAP OO.
    Furthermore I think you want to do this:
    insert <yourWorkarea> into table wa_tab.
    A complete mara example would be:
    data tab_mara type table of mara.
    data wa_mara type mara.
    select * from mara into table tab_mara.
    *or you can use:
    select * from mara into wa_mara.
       insert wa_mara into table tab_mara.
    endselect.
    regards
    Thomas

  • How to display KMcontent in a tree view structure

    Hi,
    I want to dispaly KM content in a Tree view manner like sdn. My exact requirement is - I have a folder in KM Content along with subfolders. Now I want to display all this content in a Detailed Navigation area like a tree view structure. I invite best solutions.
    Thanks in advance
    dEvara

    There is one way possible.
    1) Create a KM Navigation iview for the repository/folder using the Tree View layout.
    2) Set the <b>Initial State of Navigation Panel</b> property in the iview to <u><i>Always Close</i></u>
    This would give make the iview take the entire area combining Content Area & Third level Navigation for rendering content.
    This would give the illusion that the third level navigation is your tree.
    Hope this helps.
    Pradeep.

  • To display Date prompts in narrative view

    Hi,
    I'm new to Obiee.I have created 'From Date' prompt (greater than or equal to ) and 'To date'(less than or equal to) prompts ,I was able to display the reports correctly ,What i need is to display the chosen dates in title of the report.How can i achieve this using Answers? (i.e)In title i need to display 'Pending Amount Between FromDate to ToDate '
    Thanks in advance,
    Princy

    Hi,
    Thanks for your reply.I was able to complete major part of my need.But the last thing i need is,
    Using presentation variables i was able to display the dates correctly in Table View,but i'm able to display only the 'From Date' in my narrative view.I need to display the 'To Date' also in my narrative view.I had applied two filters (i.e;greater than or equal to presentation variable and less than or equal to presentation variable)in column 'Date' .
    Since i'm using a single column 'Date' for prompts i dont know how to give the condition in narrative view to show the 'To Date' in narrative view which the user chooses from prompts.

  • Displaying icons in tree view control

    Hi all
            i am trying to display  icons in my tree view control.I am using beow code but i am not getting the ouput.Please help me.
    Type-pools : fibs,stree , ICON.
    data : t_node type snodetext.
    data : node_tab like t_node occurs 0 with header line,
           it_icon_id type icon-id.
    clear : node_tab, node_tab[].
    select single id from icon into it_icon_id
           where name = 'ICON_CUSTOMER'.
    node_tab-type = 'T'.
    node_tab-name = 'Earth'.
    node_tab-tlevel = '01'.
    node_tab-nlength = '5'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Europe'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
    EXPORTING
      INSERT_ID                = '000000'
      RELATIONSHIP             = ' '
      LOG                      =
      TABLES
        NODETAB                  = node_tab
    EXCEPTIONS
      TREE_FAILURE             = 1
      ID_NOT_FOUND             = 2
      WRONG_RELATIONSHIP       = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
      DATA: wa_type TYPE stree_ctl_type_mapping.
      CLEAR: type_mapping[].
        wa_type-type = 'A'.
        wa_type-icon = '@A0@'.
        APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_CONTROL_PREPARE'
    EXPORTING
        CONTROL_PATTERN             = 'PH'
        MULTIPLE_SELECTION          = 'X'
         TYPE_MAPPING                = type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
    LAYOUT_MODE                     = ' '
      USE_CONTROL                     = STREE_USE_LIST.
    Thank you.
    Regards
    Giri.

    Here is another option using <ICON> include,
    *& Report  ZKB_TREE_EXAMPLE
    REPORT  zkb_tree_example.
    INCLUDE <icon>.
    TYPES: BEGIN OF t_sbook,
            customid TYPE sbook-customid,
            fldate TYPE sbook-fldate,
            bookid TYPE sbook-bookid,
          END OF t_sbook.
    DATA: i_sbook TYPE TABLE OF t_sbook,
          w_sbook TYPE t_sbook.
    SELECT-OPTIONS: s_custid FOR w_sbook-customid.
    DATA: o_custom_container  TYPE REF TO cl_gui_custom_container,
          o_tree              TYPE REF TO cl_gui_simple_tree.
    TYPES: t_node_table LIKE TABLE OF trstree.
    DATA: i_node TYPE t_node_table,
          w_node TYPE LINE OF t_node_table.
    START-OF-SELECTION.
      CALL SCREEN 9000.
    *&      Module  status_9000  OUTPUT
          text
    MODULE status_9000 OUTPUT.
      SET PF-STATUS '9000'.
    ENDMODULE.                 " status_9000  OUTPUT
    *&      Module  user_command_9000  INPUT
          text
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm .
        WHEN 'BACK' OR 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " user_command_9000  INPUT
    *&      Module  init_9000  OUTPUT
          text
    MODULE init_9000 OUTPUT.
      DATA: lw_sbook TYPE t_sbook.
      SELECT customid fldate bookid FROM sbook
             INTO TABLE i_sbook WHERE customid IN s_custid.
      SORT i_sbook BY customid ASCENDING.
      CREATE OBJECT o_custom_container
           EXPORTING
                container_name              = 'TREE'
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Container' TYPE 'E'.
      ENDIF.
      CREATE OBJECT o_tree
           EXPORTING
               parent                      = o_custom_container
               node_selection_mode         =
                                 cl_gui_simple_tree=>node_sel_mode_single
           EXCEPTIONS
               lifetime_error              = 1
               cntl_system_error           = 2
               create_error                = 3
               failed                      = 4
               illegal_node_selection_mode = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Tree' TYPE 'E'.
      ENDIF.
    Add ROOT Folder
      CLEAR w_node.
      w_node-node_key  = 'ROOT'.
      w_node-text      = 'Root'.
      w_node-isfolder  = 'X'.
      APPEND w_node TO i_node.
      CLEAR lw_sbook .
      LOOP AT  i_sbook INTO w_sbook.
        IF lw_sbook-customid NE w_sbook-customid.
          lw_sbook-customid = w_sbook-customid.
          CLEAR w_node.
          w_node-node_key  = w_sbook-customid.
          w_node-text      = w_sbook-customid.
          w_node-relatkey  = 'ROOT'.
          w_node-relatship = cl_gui_simple_tree=>relat_last_child.
          w_node-isfolder  = 'X'.
          APPEND w_node TO i_node.
        ENDIF.
        CLEAR w_node.
        w_node-node_key  = w_sbook-bookid.
        w_node-relatkey  = w_sbook-customid.
        w_node-relatship = cl_gui_simple_tree=>relat_last_child.
        w_node-text      = w_sbook-bookid.
    <b>    w_node-n_image = icon_customer.</b>
        APPEND w_node TO i_node.
      ENDLOOP.
      CALL METHOD o_tree->add_nodes
        EXPORTING
          table_structure_name           = 'TRSTREE'
          node_table                     = i_node
        EXCEPTIONS
          failed                         = 1
          error_in_node_table            = 2
          dp_error                       = 3
          table_structure_name_not_found = 4
          OTHERS                         = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Adding Node to Tree' TYPE 'E'.
      ENDIF.
    Expand tree
      CALL METHOD o_tree->expand_root_nodes
        EXPORTING
          level_count    = 2
          expand_subtree = ' '
        EXCEPTIONS
          OTHERS         = 1.
      IF sy-subrc <> 0.
        MESSAGE 'Error Expanding Tree' TYPE 'E'.
      ENDIF.
    ENDMODULE.                 " init_9000  OUTPUT
    Regards
    Kathirvel

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • Tree view display along with icons

    Hi all
           Anybody please give me the complete code to display the tree view which takes input from selection screen.I also need to display icons in the tree view.please help its urgent.
    Thank you.
    Regards
    Giri

    Hi giri ,
      Chk this program SAPSIMPLE_TREE_CONTROL_DEMO
      Displaying icon in tree view

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

  • Icon in tree view control

    Hi all
           I want to display an icon in tree view.These icons must be displayed before the node.for this purpose i am using below code.But i didn't find the icon in my output.Please help me to do this.
    Thanks in advance.
    REPORT  ZTREEVIEW_TEST_PROGRAM no standard page heading.
    Type-pools : fibs,stree.
    data : t_node type snodetext.
    data : node_tab like t_node occurs 0 with header line.
    clear : node_tab, node_tab[].
    node_tab-type = 'T'.
    node_tab-name = 'Earth'.
    node_tab-tlevel = '01'.
    node_tab-nlength = '5'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    node_tab-NODEICON = 'C:\Program Files\SAP\FrontEnd\SAPgui\bitmap\l_b_odsa'.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Europe'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    node_tab-NODEICON = 'C:\Program Files\SAP\FrontEnd\SAPgui\bitmap\l_b_odsa.bmp'.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Germany'.
    node_tab-tlevel = '03'.
    node_tab-nlength = '7'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Berlin'.
    node_tab-tlevel = '04'.
    node_tab-nlength = '6'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Asia'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '4'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'India'.
    node_tab-tlevel = '03-'.
    node_tab-nlength = '5'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Bombay'.
    node_tab-tlevel = '04-'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    append node_tab.
    clear node_tab.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
    EXPORTING
      INSERT_ID                = '000000'
      RELATIONSHIP             = ' '
      LOG                      =
      TABLES
        NODETAB                  = node_tab
    EXCEPTIONS
      TREE_FAILURE             = 1
      ID_NOT_FOUND             = 2
      WRONG_RELATIONSHIP       = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
      DATA: wa_type TYPE stree_ctl_type_mapping.
      CLEAR: type_mapping[].
        wa_type-type = 'A'.
        wa_type-icon = '@BL@'.
        APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
      LAYOUT_MODE                     = ' '
       USE_CONTROL                     = STREE_USE_LIST.
    Regards
    Giri

    Giri,
    you can use SAP standard icons only - see table ICON and include TYPE-POOLS: icon in your program.
    If you can't use standard icon, it will be more complex.
    Regards,
    Clemens

  • Tree View Icons

    Dear All,
    how can i display the icon in tree view .
    Thanks...

    You have to post in forms forum.
    Forms

  • How can I use Tree-View in Forms 4.5 ?

    I need to read a table with auto-relationship (levels) and show
    the data in a Tree-View (Like Windows Explorer).
    Please response to
    [email protected]
    null

    Hi there
    For getting a tree-view like structure you will have to use the
    forms resuable objects .
    There is a nav_demo.fmb file shipped along with the Developer
    2000 which is located in /oracle_home/forms45/demo and it
    contains the navigator like structure which can be resused in
    different forms .(You can run this form from the windows95 start
    button by selecting programs/Developer 2000 Comps for Win95/Forms
    resusable libray).
    You will have to copy the object groups from the demo form to the
    desired form and also attach the required libraries for the form
    Then u will find a procedure named REFRESH_TREES which populates
    the data for the tree with a query ,which should be replaced by
    your query .But the new query results should match the earlier
    ones or else it won't work .
    Hope this helps ..
    Regards
    Raghavendra
    J.V. Leo (guest) wrote:
    : I need to read a table with auto-relationship (levels) and show
    : the data in a Tree-View (Like Windows Explorer).
    : Please response to
    : [email protected]
    null

  • Hiding report title in Group Tree View Pane

    In a .rpt file, if I provide a Group Field, it is displayed in the "Group Tree View" when I preview the report.
    The Group Tree View pane also contains the name of the report - actually the title. Is there a way that I can choose not to show report title on this pane?
    Here is my requirement:
    I'm localizing the report file and that includes localizing group names too. I've also localized the report title by using a formula and displaying the formula in the report header. But this pane - Group Tree View -  uses report title from "Special Fields", which I'm not able to modify. So I'm always getting the non-localized report title displayed on this pane, which I want to avaid somehow.
    If I remove report title from the report properties, this pane shows report file name instead, which again i do not want to be displayed.
    Rgds,
    Chris

    After removing the report title from the report properties try to place a space " " in the report title field in summaryinfo so that a blank space is shown in the group tree.
    Regards,
    Raghavendra

  • Tree view display with ztable data

    Hello...
    I have seen this post.................
    Tree View
    My requirement is to create a Tree view .... looked around a lot but no detailed explanation to this topic. along  with this forums detials i looked into the standard BSP Component CRM_THTMLB_COMP for tree view help. I am new to MVC so lost at some point.
    Accordingy to this explanation i was able to achive the tree structure in the value node...
    But how to display data in tree? what codes need to be put in the get ...set methods..
    Actually i created  a table view and the value node is refereing to my ztable....so all the get and set methods are in this impl class. and the new impl class to tree structure does not have these methods...should i create all of them again ...or can i refer to the value node impl class get and set methods.....what code needs to be called in the get and set methods.
    if anyone can give me some help on this............
    Jaya.

    this wiki will help you.
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebUI--DynamictabletypeContext+nodes
    Regards,
    Harshit

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data

    Expected output in Xml:
    <?xml version="1.0" encoding="utf-8" ?>
    - <TopRoot>
    - <Root id="1" Name="Department">
    - <Type id="2" Name="IT">
    - <SubType id="3" Name="Technology">
      <SubSubType id="4" Name="Sharepoint" />
      <SubSubType id="5" Name="ASP.NET" />
      <SubSubType id="6" Name="HTML 5" />
      </SubType>
      </Type>
    </Root>
    </TopRoot>
    List Details:
    list details for storing category / sub category data and code to build tree structure for the same.
    1.Create Custom List named “CategoryDetails”:
    2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
    3.Create column “Parent Category” of type lookup. under Additional Column Settings.
    Get information dropdown, select “CategoryDetails”.
    4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
    In this column dropdown, select “Category Name”:  
    Referance:
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data    -fine but don't want tree view just generate xml string
    i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
    Expected Result:
    My ultimate goal is to generate xml string like above format without building tree view.
    I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
    I developed some code but its not working to generate xml /string.
    My modified Code:
    public const string DYNAMIC_CAML_QUERY =
            "<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
            public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
            "<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                 string TreeViewStr= BuildTree();
                 Literal1.Text = TreeViewStr;
            StringBuilder sbRoot= new StringBuilder();
            protected string BuildTree()
                SPList TasksList;
                SPQuery objSPQuery;
                StringBuilder Query = new StringBuilder();
                SPListItemCollection objItems;
                string DisplayColumn = string.Empty;
                string Title = string.Empty;
                string[] valueArray = null;
                try
                    using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                        using (SPWeb web = site.OpenWeb())
                            TasksList = SPContext.Current.Web.Lists["Service"];
                            if (TasksList != null)
                                objSPQuery = new SPQuery();
                                Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
                                objSPQuery.Query = Query.ToString();
                                objItems = TasksList.GetItems(objSPQuery);
                                if (objItems != null && objItems.Count > 0)
                                    foreach (SPListItem objItem in objItems)
                                        DisplayColumn = Convert.ToString(objItem["Title"]);
                                        Title = Convert.ToString(objItem["Title"]);
                                        int rootId=objItem["ID"].ToString();
                                        sbRoot.Append("<Root id="+rootId+"
    Name="+Title+">");
                                        string SRAndSUBSRTpe = CreateTree(Title, valueArray,
    null, DisplayColumn, objItem["ID"].ToString());
                                        sbRoot.Append(SRAndSUBSRTpe);
                                        SRType.Clear();//make SRType Empty
                                        strhtml.Clear();
                                    SRType.Append("</Root>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
             StringBuilder strhtml = new StringBuilder();
            private string CreateTree(string RootNode, string[] valueArray,
          List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
                try
                    strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
                catch (Exception ex)
                    throw ex;
                return strhtml;
            StringBuilder SRType = new StringBuilder();
            private string GetSRType(string RootNode,
            string[] valueArray, List<SPListItem> objListItemColn)
                SPQuery objSPQuery;
                SPListItemCollection objItems = null;
                List<SPListItem> objNodeListItems = new List<SPListItem>();
                objSPQuery = new SPQuery();
                string objNodeTitle = string.Empty;
                string objLookupColumn = string.Empty;
                StringBuilder Query = new StringBuilder();
                SPList objTaskList;
                SPField spField;
                string objKeyColumn;
                string SrTypeCategory;
                try
                    objTaskList = SPContext.Current.Web.Lists["Service"];
                    objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
                    Query.Append(String.Format
                    (DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
                    objSPQuery.Query = Query.ToString();
                    objItems = objTaskList.GetItems(objSPQuery);
                    foreach (SPListItem objItem in objItems)
                        objNodeListItems.Add(objItem);
                    if (objNodeListItems != null && objNodeListItems.Count > 0)
                        foreach (SPListItem objItem in objNodeListItems)
                            RootNode = Convert.ToString(objItem["Title"]);
                            objKeyColumn = Convert.ToString(objItem["ID"]);
                            objNodeTitle = Convert.ToString(objItem["Title"]);
                            SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
                           if(SrTypeCategory =="SRtYpe")
                              SRType.Append("<Type  id="+objKeyColumn+" Name="+RootNode+ ">");
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SRSubTYpe")
                              SRType.Append("<SRSubType  id="+objKeyColumn+" Name="+RootNode+
    ">");  
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SubSubTYpe")
                              SRType.Append("<SubSubType  id="+objKeyColumn+" Name="+RootNode +"
    ></SubSubType");  
                        SRType.Append("</SubType>");
                        SRType.Append("</Type>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
                // Call method again (recursion) to get the child items

    Hi,
    According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
    In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
    For example, to create or delete the ECB menu for a list item in
    "Site Content and Structure", we can follow the steps below:
    To add the “My Like” menu, we can add the code below:      
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemLike"
    runat="server"
    Text="My Like"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickNavigateUrl="https://www.google.com.hk/"
    />
    To remove the “Delete” menu, we can comment the code below:
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemDelete"
    runat="server"
    Text="<%$Resources:cms,SmtDelete%>"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickScript="%SmtObjectDeleteScript%"
    />            
    The result is as below:
    More information:
    MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
    MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • HANA Analytical View Display Data Issue

    SAP Experts,
    Need your kind help for the below issue,
    I've created an analytical view from a DSO Active Table in HANA Studio. Through IDT (Information Design Tool), when I tried to view the contents of this DSO table (AYPURDA0100) by connecting to HANA, I see the following error which is mentioned below,
    Error:
    Error while refreshing the data provider.
    Cause of Error:
    SAP AGSDBODBC DLLHDB General error;7 feature not supported: cannot execute select * on olap cube: zthd/AYPURDA0100: line 1 col 26 (at pos
    Note: The AYPURDA0100 table contents are displayed in HANA Studio. However when a view was created with NO join conditions for the same table with few selected fields including measures, the display data is not working.
    Your views are greatly appreciated. Thank You in advance

    Check out the comments from Marc and Lars in the thread below.
    http://forums.sdn.sap.com/thread.jspa?forumID=491&threadID=2138937

Maybe you are looking for