How to have a tree view for value node..

Hi all,
I need to display a tree view for a value node in web ui  just like a model node, for a custom view in a pop up. Please guide me  how to do this or let me know the process steps.
Thanks in advance.

Hi All,
while debugging I found that in class CL_BSP_WD_CONTEXT_NODE_TREE , the method GET_T_TABLE the below code is not triigerring for the child node attributes ( to trigger the get method of attribute for value node).
this call method is not triggering at all only for first coulmn its triggering ..
  LV_TN ?= ME->NODE_MAPPER->GET_NODE_OBJECT( <LINE>-NODE_KEY ).
    CONCATENATE 'GET_' COMPONENT INTO LV_METHOD.
    TRY.
        CALL METHOD LV_TN->(LV_METHOD)
          EXPORTING
            ATTRIBUTE_PATH = ''
          RECEIVING
            VALUE          = VALUE.
      CATCH CX_ROOT INTO LV_ERROR.
I created the GETTER method inthe class CN01 and CN02. But those methods are not triggered in CALL METHOD LV_TN->(LV_METHOD). Even that class CN02 is having the  same methods. Those methods are already Implemented. May I know what was the reason Why those methods are not triggered ( getter method ). With out that Method data will not display in the Tree view. Can anybody tell me the reason why it is not happenning?
.Please find the below .HTM code  as well.
<chtmlb:configTree
                      actionsMaxInRow       = "5"
                   id             = "Table1"
                   nodeTable      = "<%= ZTREEVIEW->node_tab %>"
                   table          = "//ZTREEVIEW/Table"
                   noFrame        = "FALSE"
                   personalizable = "TRUE"
                   onCollapseNode = "NODECOLLAPSE"
                   selectionMode  = "MULTILINEEDIT"
                   onExpandNode   = "NODEEXPAND"
                   onRowSelection = "select" />
Only one column was triggered another column did not get any value becasue of the above method call fail.. We are not restricted anywhere to display one column value in the output.   Even in Debugging I checked that LV_METHOD  is having the method name. CN02 class is also having the  same method, But it is not going into the method. It is coming out side. What could be  the reason I could not able to understnad.
Please provide me some pointers on the issue....
Thanks in advance..

Similar Messages

  • How can I make tree view for hierarchical data from select with connect by?

    If we have selected hierachy with connect by clause, how can we make it to see in tree view?

    You can't do this using the ADF, Tree Binding used by JHeadstart.
    However, If you have a recursive relationship (for example managerid) you can get a tree what you want as follows:
    - create one root ViewObject that returns the top-level employees without a manager by setting the where clause to managerid=null
    - create a second ViewObject that simply queries all employees
    - Create a ViewLink between the two view objects, and create a nested VO usage in the app module for the second view object
    - Create corresponding nested group in the application definition file and set the layout style to "tree-form" on both groups.
    See Developers Guide, chapter 3, section recursive trees for more info.
    Steven Davelaar,
    JHeadstart Team.

  • Tree view for the menu

    Hi
    I am trying to provide a tree view for a list of menu. When i was exploring, I came to know about a tag which uses as below.
    <%@ taglib uri="http://java.sun.com/jsf/demo/components" prefix="d" %>What jar file should I include in my lib? Is it possible to have tree menu with that? please let me know.

    Thanks for your response. Yes when i saw the web site, I am close to what I want. But I couldn't find many examples to proceed further. May be a silly question. I jsut copied the following code into my test.jsp file and when I run a file, I get a blank page.
    <risb:menuBar width="473px"> 
        <risb:menuItem id="jsfsites" value="JSF Sites"> 
            <risb:menuItem value="JSF RI Homepage" url="https://javaserverfaces.dev.java.net" /> 
            <risb:menuItem value="Glassfish" url="https://glassfish.dev.java.net" /> 
            <risb:menuItem id="subprojects" value="Sub Projects"> 
                <risb:menuItem value="JSFTemplating" url="https://jsftemplating.dev.java.net" /> 
                <risb:menuItem value="Facelets" url="https://facelets.dev.java.net" /> 
            </risb:menuItem> 
        </risb:menuItem> 
        <risb:menuItem id="devblogs" value="Developer Blogs"> 
            <risb:menuItem value="Ed Burns' Blog" url="http://weblogs.java.net/blog/edburns/" /> 
            <risb:menuItem value="Roger Kitain's Blog" url="http://weblogs.java.net/blog/rogerk/" /> 
            <risb:menuItem value="Ryan Lubke's Blog" url="http://blogs.sun.com/rlubke/" /> 
            <risb:menuItem value="Jacob Hookom's Blog #1" url="http://weblogs.java.net/blog/jhook/" /> 
            <risb:menuItem value="Jacob Hookom's Blog #2" url="http://hookom.blogspot.com" /> 
            <risb:menuItem value="Jason Lee's Blog" url="http://blogs.steeplesoft.com/javaserver-faces" /> 
        </risb:menuItem> 
    </risb:menuBar>  When i view the page source, I see it as below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:b="http://bethanyefree.org/jsf/facelets"
             xmlns:t="http://myfaces.apache.org/tomahawk"
             xmlns:c="http://java.sun.com/jsp/jstl/core"
             xmlns:jdt="http://www.jenia.org/jsf/dataTools"
             xmlns:s="http://myfaces.apache.org/sandbox"
             xmlns:jsfcomp="http://sf.net.jsfcomp.validator">
    <risb:tree id="foo"> 
        <risb:treeNode> 
            <f:facet name="label"><h:outputText value="Test 1"/></f:facet> 
            <risb:treeNode> 
                <f:facet name="label"><h:outputText value="Test 1-1"/></f:facet> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="Test 1-1-1"/></f:facet> 
                </risb:treeNode> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="Test 1-1-2"/></f:facet> 
                </risb:treeNode> 
                <risb:treeNode> 
                    <f:facet name="label"><h:outputText value="A test with one of these: '"/></f:facet> 
                </risb:treeNode> 
            </risb:treeNode> 
        </risb:treeNode> 
        <risb:treeNode> 
            <f:facet name="label"><h:outputText value="Test 2"/></f:facet> 
            <risb:treeNode> 
                <f:facet name="label"> 
                    <h:outputLink value="http://blogs.steeplesoft.com"> 
                        <h:graphicImage id="image" url="/download.jpg" /> 
                    </h:outputLink> 
                </f:facet> 
            </risb:treeNode> 
        </risb:treeNode> 
    </risb:tree>I must be missing some jar files and some including some tag directory. Could you please tell me whether I am going in a correct direction. Thnaks.

  • New tree view for attachments

    Hello,
    I am currently trying to figure out how I can add acustom tree view for attachments to the account overview page. Per defualt it has the standard list for attachments, but I need to replace that with a component where I can "fake" the attachments that are displayed, and which comes in tree view mode as default. The last I think will be pretty easy, but during debugging, I have not yet figured out how the component GS_CM gets its data, so that I can modify it or feed it new data (to documents that do exist in the system, but have no direct link to the account).
    Anybody with any knowledge of this? Thanks!
    Thomas

    Hello,
    I am currently trying to figure out how I can add acustom tree view for attachments to the account overview page. Per defualt it has the standard list for attachments, but I need to replace that with a component where I can "fake" the attachments that are displayed, and which comes in tree view mode as default. The last I think will be pretty easy, but during debugging, I have not yet figured out how the component GS_CM gets its data, so that I can modify it or feed it new data (to documents that do exist in the system, but have no direct link to the account).
    Anybody with any knowledge of this? Thanks!
    Thomas

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • How to create a tree view in adobe configurator

    Hi
              How to create a tree view in adobe configurator
    Thanks 

    Please, can you explain what you mean exactly?

  • How to create a help view for a customized error message

    Hi all,
    Can you guide me how to create a help view for a customized error message, we need to put some suggestions in it so that user can can resolve this issue with this guide. ( the short text is too short to describe all situations via TC:SE91)
    Thanks very much!
    Bruce, Wen

    Hi Bruce,
    Could you brief your concerns again.
    Why don't you maintain long text in message class for long description.
    Regards,
    Ranjith N

  • How to create a special view for sharepoint list A and deploy this view to specific user personal view?

    How to create a public view for sharepoint list A and deploy this view to specific user personal view? Is that possible OOTB?

    Views cannot be exported or moved. Can you elaborate your requirement?
    --Cheers

  • How to extend the costing view for a material

    How to extend the costing view for a material

    Use MM01 Trxn code and Select Material and Select Costing Views and Maintain, Save it.
    Else Use MM50 and Select Material and Mainenance Status as G Costing and Execute, Maintain & Save.

  • Custom component Search and Result view using value node :pls help

    Hi Experts,
    I am creating a Custom component with Search and Result view using value nodes.
    This is the code I wrote in the Search button event handler method.
    The data which gets in lv_search I need to put in lv_col .
    Can somebody guide me for this.
    Points will be awarded .
    METHOD eh_onsearch.
      DATA : lv_current TYPE REF TO if_bol_bo_property_access,
             lv_search  TYPE zcrm_orgstruct_search,     "Search value node structure
             lv_result  TYPE zcrm_orgstruct_result,         "Result value node structure
             lv_col     TYPE REF TO if_bol_bo_col.
      lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
      CALL METHOD lv_current->get_properties
        IMPORTING
          es_attributes = lv_search.
      me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
      op_toresultview( ).
    ENDMETHOD.
    Regards,
    Lakshmi

    Hi Lakshmi,
    Could you please share with us how it was solved.
    "CALL METHOD lv_current->get_properties
    IMPORTING
    es_attributes = lv_search."
    Did you get any values in lv_search ?
    Because while using value nodes for search view (which inherits from advance search controller  class), the above method does not return any search values entered in the fields.
    Please let me know how did you solve it.
    Thanks & Regards
    Vidhya

  • Method "LOCK" is unknown or PROTECTED or PRIVATE for Value Node

    Hi Experts,
    Please help me to resolve this issue.
    I am unable to lock the entity for Value Node and I doing this because I want to edit my custom view of the assignment Block.
    Actually, I have created a custom view for custom BOL in BP_HEAD Component, Later I have added this view to the AccountDetailsViewSet of the BP_HEAD and Now I have added the Edit Button to my custom View in DO_PREPARE_OUTPUT Method of the view controller.
    And now when I about to write the code it says there is no lock method available for Value Node and also I am unable to edit the view
    Syntax Error: Method "LOCK" is unknown or PROTECTED or PRIVATE.
    DATA: lr_entity     TYPE REF TO CL_BSP_WD_VALUE_NODE.
          lr_entity ?= me->typed_context->Root->collection_wrapper->get_current( ).
          IF lr_entity->lock( ) EQ abap_true.  " I am receiving syntax error here.
            me->view_group_context->set_view_editable( me ).
          ENDIF.
    Thanks,
    Bujji

    Hi Bujji
    It is not possible to use lock on value node entity. If you want to set your view to editable, you can use the logic as seen in the method 'ASSIGN_EDITMODE_2_VIEWS' of the account view set impl class in standard.
    Hope this helps.
    Regards,
    Nisha

  • Invalidate concept for value node and model node

    Hello everybody,
    We have invalidate method for value node and model node.
    I want to know basic concept behind this method.
    What this method acually does?
    Regards,
    Bhavik

    Hi Pran and all,
    I figured out the problem. Input parameters are going multple times. So, depending upon that it gives multiple values.
    My scenario is:
    Root Node
    |_ Input_node1
         |_Attr1
    |_ Input_Node2
         |_Attr2
    |_Output_node
         |_Result
    I am passing values in Attr1 and Attr2 attributes.
    For this, first of all, i wrote following code.
    In controller, i have initialized Root node:
    Root_Node model = new Root_Node();
    wdcontext.nodeRoot_Node().bind(model);
    In view, I set values for attr1 and attr2 using following code:
    Ipublic<View>.IInput_node1Element ele = wdcontext.createInput_node1Element();
    ele.setAttr1("<value>");
    wdcontext.nodeInput_node1().addElement(ele);
    Ipublic<View>.IInput_node2Element ele1 = wdcontext.createInput_node2Element();
    ele1.setAttr2("<value>");
    wdcontext.nodeInput_node2().addElement(ele);
    But this code didnt work. Model was executed without data in this case.
    So, i thought that these elements were created at view level only. And corresponding model objects were not created.
    So, I have changed code like following way:
    I have removed initialization code for Input_Node1 and Input_Node2 from view. Now, I am getting input values in two different value nodes. And before calling custom controller's method to execute model, I am making two ArrayLists and filling data in it. Now, i am passing these ArrayList objects as parameters to controller's method.
    In this method, i am setting both values as follows:
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node1(List1); 
    wdcontext.currentRoot_NodeElement().modelObject().setInput_Node2(List2); 
    Then i am executing my model.
    But, When i am setting values for Input_Node1 and Input_Node2 as shown above, values are appended instead of overwritting the value. Because of this appended values, it gives mupltiple results.
    Means, Both ways are not proper. What should be the proper and best way to pass values in this case?
    Thanks,
    Bhavik

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • How to fill or bind data using Value Node in Tree Node

    Hi Gurus,
    Can anybody help me on how to fill data or bind data using Value Node in Tree Node View. I know how to create Tree Node but not able to show value on the UI in Tree View.
    Can u please let if anybody has done it?
    Thanks in advance.
    Madhusudan

    continued...
    TRY.
              lv_child = me->node_factory->get_proxy(
                        iv_bo = lv_value_node
                        iv_parent_proxy = me
                        iv_proxy_type = 'ZL_CLASS_CN02' ).
              lv_child->is_leaf = 'X'.
              APPEND lv_child TO rt_children.
            CATCH cx_sy_move_cast_error cx_sy_ref_is_initial.
          ENDTRY.
      In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to build table and refresh in do-prepare_output of IMPL class.In the above code iv_bo , lv_value_node will be the actual object of the second node or leaf node here, which will have the same structure of parent node along with data. After/before this, you would need to buid table and refresh in do-prepare_output of IMPL class.
    ztyped_context->resultlist->build_table( ).
      IF ztyped_context->resultlist->node_tab IS INITIAL.
        ztyped_context->resultlist->refresh( ).
      ENDIF.
    Also the EH_ONEXPAND has to be implemented and event handled in DO_HANDLE_EVENT. But this expand event has to be delegated to context node directly as CL_BSP_WD_CONTEXT_NODE_TREE will already have the implementation.
    ztyped_context->resultlist->expand_node( lv_event->row_key ).
    Where in result list is the node ZL_CLASS_CN00.
    After typing the whole content , i found this blog :). There are few things i have written more that in the blog.  /people/poonam.assudani/blog/2009/06/24/create-a-tree-view-display-in-crm-web-ui
    Regards,
    Karthik

  • How to restrict access to views for some users in the app?

    Hi SDN!
    I have an WD application wich embedded in the portal. Appication has 2 iViews (and 2  pages respectively). These iViews consist several views connected with each other (e.g. one view provide list data, second view is add/edit form for this data). I need to restrict access for some users for view with add/edit form. I can't make separate page for this view.
    What I've done:
    1) create yet another UIContainer for this view in main window and embed view to this container. It was be done for create separate iView for form.
    2) in the portal I create iView for this form but don't embedd in any page.
    When I try to call my form from list data (that is one iView from another) I get exception:
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: duplicate usage of view .MyCarRentalAddCity</b>
    Is there a way to get needed functional?
    Thanks,
    Lev

    Hi,
    do you need to remove the IView from the portal menu or do you just want to make a View container in your WD application invisible if the user doesn't have the rights to see it.
    If so, you could create your own roles on the app server:
    You need to create a new class that extends NamePermission like:
    import com.sap.security.api.permissions.NamePermission;
    public class ApplicationAccessPermission extends NamePermission {
               * @param name
              public ApplicationAccessPermission(String name) {
                   super(name);
               * @param name
               * @param action
              public ApplicationAccessPermission(String name, String action) {
                   super(name, action);
    Also, you have to create an Action.XML file that looks like this:
    <BUSINESSSERVICE
         NAME="com.vendor.administration">
         <DESCRIPTION
              LOCALE="en"
              VALUE="actions view usage"/>
         <ACTION
              NAME="View Permission">
              <DESCRIPTION
                   LOCALE="en"
                   VALUE="Show view"
                   />
              <PERMISSION
                   CLASS="com.vendor.utilities.ApplicationAccessPermission"
                   NAME="ShowView"
                   />
         </ACTION>
    </BUSINESSSERVICE>
    If you have created these to files in your packages, you can access this function like:
    IUser user ;
    try {
              user = WDClientUser.getCurrentUser().getSAPUser();
              if(user.hasPermission(new ApplicationAccessPermission("Show view"))){
                   wdContext.currentV_UIElement().setViewVisibility(WDVisibility.VISIBLE);
              }else{
                   wdContext.currentV_UIElement().setViewVisibility(WDVisibility.NONE);
         }catch (WDUMException e1) {
              wdContext.currentV_UIElement().setViewVisibility(WDVisibility.NONE);
                    e1.printStacktrace();
    You have to bind the ViewVisibility attribute of the context to the View Container you want to hide.
    The applicationAccessPermission you defined in the XML File will be visible in the UME Manager of you J2EE engine. With this action you can create a new role and group that you can map to the users that should see you view.
    But, the exception you get is because you have embedded one view twice, which is not possible.
    Hope this helps.
    Regards,
    Dennis

Maybe you are looking for

  • Uploading an image

    Hello I would like to write a program where I can upload an image from my computer and have it displayed in the program. I understand that I need to use JFileChooser to do this but before I start writing code I want to know is it possible to achieve

  • My iTunes wont sync my selected songs onto my iPhone 4, it does nothing. The only option that works is sync all music.

    Hi all. I've been having this issue for some time now. You see, I want to sync all my SELECTED music from my itunes library onto my iPhone 4, however whent he approriate options are ticked, and I click sync, nothing happens. The only option that seem

  • ISE - EAP-TLS authentication with multi-tier PKI

    Hi Cisco Support Community, and again I'm struggling with my ISE understanding. It's kind of frustrating - daily more and more questions arise :) Here's the thing and I hope some of the ISE experts here know the answer: I want to authenticate my wire

  • Contacts bar on home screen X6

    Hello, I have changed the home menu today just messing about with my phone. When I went to put the home menu back to contacts bar it just goes back to basic (but with no tick to show it is selected). If I highlight contact bar in the menu then select

  • Updated and now can't text, etc

    I apologize if this information is already somewhere on this forum but I've had a look around and was unable to locate the information that I was looking for. If you can point me in the right direction, please do so. So, here is my problem.  I finall