Navigation in UI-Tree

Hi everybody,
when i navigate through my tree and than close all nodes and open an other node the previous node will also be opened. What could be the problem? I don't want to open the previous node which was focussed.
The proplem is the focus. How can i change the focus.
regards,
Sid
Edited by: Sid on Nov 4, 2009 3:34 PM

Hi Sid,
Please tell us know how many root nodes and child nodes you have? Are you building the trees statically or dynamically using the method.
Alternatively you have go therough the following [link|http://help.sap.com/saphelp_nw04/Helpdata/EN/c2/abfceffbacd24185ec7af8a3a2e76a/content.htm], which gives you a tree example along with the code.
Please have a look at [this |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/47ce9b90-0201-0010-59b5-f70826824eee]article.
[Here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/300baa58-3acf-2b10-dc85-90220be8e63a] is another article.
Hope it helps!
Regards,
Maheswaran
Edited by: Maheswaran B on Nov 4, 2009 9:33 PM

Similar Messages

  • The left navigation pane (index tree) is not displaying in last  Google Chrome version (Version 28.0

    I'm publishing my RoboHelp 9 projects in IIS (Windows Server) and the index tree is gone if I open them in Chrome version 28.0.1500.72 m
    If I apply the fix (WebHelp TOC does not display using Google's Chrome Browser) suggested here http://www.grainge.org/pages/snippets/snippets.htm#browsers
    it looks like it fixes the problem for European languages but it breaks the search functionality for Asian languages.
    Any idea?
    Thank you

    The fix does say it is only for Rh7.
    Could it be like Item 6 at http://www.grainge.org/pages/snippets/snippets.htm#webhelp. You haven't said if the problem is only with Chrome.
    Try publishing from the sample projects. That will identify whether it is a general or project issue.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Navigating from a tree.

    Hi,
    I do have a tree as described below in my application...
    <mx:XMLList id="treeData">
    <node label="Mail Box">
    <node label="Home"/>
    <node label="Student">
    <node label="Create"/>
    <node label="Edit"/>
    <node label="View"/>
    </node>
    <node label="Professor">
    <node label="Create"/>
    <node label="Edit"/>
    <node label="View"/>
    </node>
    </node>
    </mx:XMLList>
    Now how do i navigate to the various files from here, on the
    click of the individual tree nodes. What are the containers i may
    have to use to make this working.
    Thanks in Advance.

    Hmm,
    I had a look at your example application on the supplied link, however I cannot find any instructions or steps on how to go about implementing this method.
    Using my current method (from the thread linked in the first post of this thread) I have no problem getting the javascript to recognise changes and prompt the user on trying to leave - it's just that the href continues regardless of the user clicking cancel (wish grahamr managed to resolve somehow). Do you know why this might be?
    My javascript (2 posts above) is fired within the Anchor tag of my tabs and tree items like so; (Im only using [ ] brackets here so that it will display in the forum)
    [a onclick="javascript:checkForChangedData();" href="#TAB_LINK#" ][font color="#FFFFFF"]#TAB_LABEL#[font][a]
    Or if possible is there any assistance you could provide for implementing the method in your sample application? (I dowloaded the app but that page was not in it)
    Any help you can provide is greatly appreciated,
    Jordan

  • Navigating through a tree

    I have the following situation:
    A user navigates through a tree.
    - at some point the issue a command to add a new entry to the
    tree.
    - The back end responds with a new set of data (with the new
    item added)
    - I replace the trees data provider
    - I want to scroll back to the node where the user initiated
    the command.
    I can find the node in the data provider collection that I
    want to display,
    but I can't get the tree to scroll to that point.
    Any input or things to try would be appreciated.

    Thanks for the reply. a few more details:
    If the tree is large enough a scrollToIndex is required to
    scroll the node into view.
    In the example on cflex, I quadrupled the size of the tree
    (to more closely match my application). When searching for a node
    near the bottom node was expanded but not visible. So I added:
    var idx:int = myTree.selectedIndex;
    myTree.scrollToIndex(idx);
    Also in my application I am replacing the dataprovider with a
    new collection from the backend. So I also
    needed to add: myTree.validateNow();
    One more note: In the same tree I decided to implement a
    search function to allow users
    to find specific nodes. during expandNode I would
    intermittantly get an ActionScript error.
    We determined (with the help of Flex Support - thanks Peter)
    that a call to validateNow() was
    needed while iterating and expanding the parent tree nodes.

  • Why custom layout not take effect if navigating from left tree

    Hi,
    I specified a custom layout for a repository in KM Content. The layout is a duplicate of AdminExplorer, which contains a tree structure in the left panel.
    The problem is, when I navigate the repository in the right panel, the custom layout is always in effect. However, if I navigate from the tree structure in the left panel, the custom layout doesn't take effect.
    Anyone knows why? I wonder if I forget to configure something, or this is indeed not supported?
    I don't know how to attach screenshot - if you wanna see the screenshot for more info, please add [email protected]
    Thanks,
    Ray

    problem doesn't exist. close it.

  • Navigation Pane: Model Tree -- Structure Pane (model) --- hierarchy ???

    How do you arrange the 3D object's hierachy in the model tree pane?
    I have tried alpha numeric names for my blocks in autocad2008 but could not get it to sort the way i want to view it in adobe 3D pdf?
    I want to group things, but it seems to randomly list the elements in the structure pane (model). I saw an instruction for another adobe product (but not the 3D) to click on the element and drag it to a different position - but that does not work for me in acrobat 3d version 8.
    Does anybody know how to set up the structure pane's hierachy?
    Thanks,
    Lawrence

    No.

  • Comment avoir la versionen francais du canada et comment faire pour accelerer ma navigation qui est tres lente svp merci

    j aimerais que tout sois en francais est ce possible ? et ou puis je telecharger des application ex: de yoga en francais sans devoir aller sur google play svp

    Il n'y a aucune équipe de localisation fr-CA
    https://l10n.mozilla.org/teams/
    Impliquez-vous
    https://wiki.mozilla.org/L10n:Contribute

  • Unable to expand tree in safari 5.1.7 for windows

    Hi,
    I am using Safari v5.1.7 in Windows OS. There is a left navigational panel with tree structure in web content page. When I open web content in safari 5.1.7, I am unable to expand the tree. This happening with the pages which are carrying huge data. For the normal pages, I could able to expand the children of the tree.
    Please anyone help on this.

    Above issue is an urgent issue. Any help would be appreciated. Thanks

  • Is it possible to  laod navigation options after querry is displayed

    Hi
    I have a question concerning the display of a query. Us ut possible to display a query and load the navigation options after the query has been displayed (in other words in the background)?
    [I am talking about the query property on how to load a query with option A, H and X]
    If yes, does it provide a relevant performance benefit in the case of using large hierarchies?
    Thx,
    Nana

    There is, but the preferred way to do something like this is through
    the action reference expression which is attached to a UCommand
    component. So you could do something like the following:
    1. set up a class which extends javax.faces.Action:
    import javax.faces.Action;
    public class RegisterAction extends Action {
    public String invoke() {
    return checkUserName();
    Set up an accessor method (javabean convention) in your business
    object bean that returns the Action instance:
    public class Register {
    public Action getRegisterAction() {
    return registerAction;
    2. set up a mapping for the Navigation Handler (assume user.jsp
    is the page where the user enters data, and welcome.jsp is
    the page that gets displayed on successful outcome). Set this up
    in your faces-config.xml:
    <navigation-rule>
    <from-tree-id>/user.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-tree-id>/welcome.jsp</to-tree-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>failure</from-outcome>
    <to-tree-id>/user.jsp</to-tree-id>
    </navigation-case>
    </navigation-rule>
    Make sure that the checkUserName() method above, returns a string
    that matches the "from-outcome" element in your navigation mapping
    (in this case - "success" or "failure").
    3. attach the actionRef expression to your button component as follows
    in your jsp. Something like:
    <h:command_button commandName="register" actionRef="Register.registerAction"/>
    Hope this helps, Roger.

  • 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.

  • Changing Top Level Navigation

    Hi,
    The top level navigation is always displayed as TAB. Is there any way that we can change this to appear as tree level navigation.
    If yes what are the steps required >?
    <b>*To be delivered asap*
    Cheers,
    *RAJ*</b>

    Hi,
    Thanks for the time being mah colleage got a solution. Created 2 dummy roles  test1, test 2 . Assigned Test1 to Test2, and assigned other roles to those Test2.
    Went to default frame work  set Tool Area, Top-Level Navigation invisible.
    Now the other roles that have been assigned to test role 2 appear on detail navigation as a tree.
    Not recommended but works ;).
    Thanks again.
    <b>Cheers,
    *RAJ*</b>

  • ALV Tree - how to put checkbox on the node level?

    Hello everyone!
    I have an AlvTree and I have special column named SEL. That column contains checkboxes. I want to put additional checkboxes at the node level, I need them to create select all option.
    In other words I must somehow create something similar to do_sum option. DO_SUM works for numeric columns, the sum of all rows in current node appears at the top level. So I must do the same but checkbox.
    Are there any ideas?
    Here is my code of creating the tree.
    DATA: g_tree9001 type ref to cl_gui_alv_tree_simple.
    " Here I fill fieldcat...
    create object g_tree9001
          EXPORTING
            i_parent                    = g_doc_cont
            i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
            i_item_selection            = 'X'
            i_no_html_header            = 'X'
            i_no_toolbar                = ''.
    call method g_tree9001->set_table_for_first_display
          EXPORTING
            i_save              = 'A'
            is_variant          = ls_variant
          CHANGING
            it_sort             = gt_sort9001
            it_outtab           = gt_tree9001
            it_fieldcatalog     = gt_treefcat9001.
    My output table gt_tree9001 has sthe following structure:
    BUKRS, KTEXT, SEL, SWERK.
    My sort table gt_sort9001 has 2 rows. Sorting by BUKRS and KTEXT.
    My tree looks like this:
    BUKRS/KTEXT  --- SEL --- SWERK
    +bukrs1 ------------------------------
      -- ktext1 ---  X --- swerk1
      -- ktext2 ---  X --- swerk2
    +bukrs2 ------------------------------
      -- ktext3 ---  X --- swerk3
    I want to get:
    BUKRS/KTEXT  --- SEL --- SWERK
    +bukrs1 ----------X----------------
      -- ktext1 ---  X --- swerk1
      -- ktext2 ---  X --- swerk2
    +bukrs2 ----------X----------------
      -- ktext3 ---  X --- swerk3
    Appreciate any help!

    Hi ,
    Check the below threads, it may give some idea to get check box in the node .
    [LINK1|Check box on left navigation of ALV tree;
    [LINK2|Checkbox ALV Tree CL_GUI_ALV_TREE;
    Regards,
    Saravana.S

  • Re: problem getting navigation rules to work

    Hello,
    I am using EA4, JDK1.4.2, Tomcat 4.1.24, under Solaris 8.
    When I click on the buttons, I always go back to the original page (EmailLookup.jsp) rather than following the navigation rules.
    I print to a file when invoke in Action is called, in my classes, so I know that when I click on the search or clear buttons that the correct action is being ran, through my properties.
    I don't know why this is not working, and would appreciate some help.
    <navigation-rule>
    <from-tree-id>/EmailLookup.jsp</from-tree-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <from-action-ref>EmailSearchModel.searchAction</from-action-ref>
    <to-tree-id>/response.jsp</to-tree-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>reset</from-outcome>
    <from-action-ref>EmailSearchModel.resetAction</from-action-ref>
    <to-tree-id>/index.html</to-tree-id>
    </navigation-case>
    </navigation-rule>
    resetAction = new Action() {
    public String invoke() {
    reset();
    try {
    java.io.FileOutputStream fos =
    new java.io.FileOutputStream("/usr/local/apps/tomcat/webapps/EmailLookup/debugtemp.txt", true);
    fos.write(new String("Inside getResetAction\n\n").getBytes());
    fos.write(new String("reset\n\n").getBytes());
    fos.close();
    } catch(Exception e) {
    return "reset";
    searchAction = new Action() {
    public String invoke() {
    try {
    java.io.FileOutputStream fos =
    new java.io.FileOutputStream("/usr/local/apps/tomcat/webapps/EmailLookup/debugtemp.txt", true);
    fos.write(new String("Inside getSearchAction\n\n").getBytes());
    fos.write(new String("success\n\n").getBytes());
    fos.close();
    } catch(Exception e) {
    return "success";
    <h:command_button label="Search"
    commandName="submit" actionRef="EmailSearchModel.searchAction" />
    <h:command_button label="Clear"
    commandName="reset" actionRef="EmailSearchModel.resetAction" />
    Thank you.

    Problem solved, it ended up being that the directory name was the same as the first JSP page, it appears.
    My directory was EmailLookup, and since the JSP page was EmailLookup.jsp, and EmailLookup was referenced in the faces-config.xml file, there was confusion.
    I changed the directory name to DirectorySearch, and it works fine.

  • RestoreViewState  with HTMLB-TREES/TREENODES

    Hello,
    we want to achieve that our dynamic tree will
    be built up in the state it was before we jumped onto another page. When navigating backwards, the tree
    does not remember any more it treenodes properties.
    Just the root is displayed, not any more the information which node was open and which not.
    Also restoreViewState  = "TRUE" did not help.
    Any ideas ?
    Thanks.

    Here is a complete (yet simplistic) example that proves that the serialization idea works.
    Stateless Application
    Page One called tree.htm
    Page Attributes (Auto Flag is NOT set)
    h1_isopen     TYPE     STRING
    h2_isopen     TYPE     STRING
    view_state     TYPE     SHSVALTAB
    OnInitialization
    * event handler for data retrieval
    DATA: istream TYPE string,
             xslt_err TYPE REF TO cx_xslt_exception.
    **** Read Server cookie
    CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
       EXPORTING
         name                  = 'view_state'
         application_name      = runtime->application_name
         application_namespace = runtime->application_namespace
         username              = sy-uname
         session_id            = runtime->session_id
         data_name             = 'view_state'
       CHANGING
         data_value            = istream.
    **** deserialize the Class
    IF istream IS NOT INITIAL.
       TRY.
           CALL TRANSFORMATION id
           SOURCE XML istream
           RESULT view_state = view_state.
         CATCH cx_xslt_exception INTO xslt_err.
       ENDTRY.
    ENDIF.
    CHECK view_state IS NOT INITIAL.
    FIELD-SYMBOLS: <wa_state> LIKE LINE OF view_state.
    LOOP AT view_state ASSIGNING <wa_state>.
       IF <wa_state>-key CS 'Header1'.
         IF <wa_state>-value = 'O'.
           h1_isopen = 'TRUE'.
         ENDIF.
       ENDIF.
       IF <wa_state>-key CS 'Header2'.
         IF <wa_state>-value = 'O'.
           h2_isopen = 'TRUE'.
         ENDIF.
       ENDIF.
    ENDLOOP.
    OnInputProcessing
    * event handler for checking and processing user input and
    * for defining navigation
    DATA: fields TYPE tihttpnvp.
    request->get_form_fields( CHANGING fields = fields ).
    FIELD-SYMBOLS: <wa_field> LIKE LINE OF fields,
                   <wa_state> LIKE LINE OF view_state.
    LOOP AT fields ASSIGNING <wa_field>.
      IF <wa_field>-name CS 'test'. "My Tree ID
        APPEND INITIAL LINE TO view_state ASSIGNING <wa_state>.
        <wa_state>-key   = <wa_field>-name.
        <wa_state>-value = <wa_field>-value.
      ENDIF.
    ENDLOOP.
    DATA: ostream TYPE string,
            xslt_err TYPE REF TO cx_xslt_exception.
    ***** serialize model class
    TRY.
        CALL TRANSFORMATION id
        SOURCE view_state = view_state
        RESULT XML ostream.
    ****Write cookie it into the Server Cookie
        cl_bsp_server_side_cookie=>set_server_cookie( name = 'view_state'
          application_name = runtime->application_name
          application_namespace = runtime->application_namespace
          username = sy-uname
          session_id = runtime->session_id
          data_name = 'view_state'
          data_value = ostream
          expiry_time_rel = '1200' ).
      CATCH cx_xslt_exception INTO xslt_err.
    ENDTRY.
    navigation->goto_page( 'Navigate.htm' ).
    Layout of tree.htm
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:tree id               = "test"
                      restoreViewState = "TRUE" >
            <htmlb:treeNode id     = "Header1"
                            text   = "Header1"
                            isOpen = "<%= h1_isopen %>" >
              <htmlb:treeNode id     = "Header2"
                              text   = "Header2"
                              isOpen = "<%= h2_isopen %>" >
                <htmlb:treeNode id   = "Item1"
                                text = "Item1" />
                <htmlb:treeNode id   = "Item2"
                                text = "Item2" />
              </htmlb:treeNode>
              <htmlb:treeNode id   = "Item3"
                              text = "Item3" />
              <htmlb:button text    = "test"
                            onClick = "TEST" />
            </htmlb:treeNode>
          </htmlb:tree>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Second Page Navigate.htm (Just a dummy page to simulate Navigation)
    OnInputProcessing
    * event handler for checking and processing user input and
    * for defining navigation
    navigation->goto_page( 'tree.htm' ).
    Layout for Navigate.htm
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
          <htmlb:textView     text          = "Hello World!"
                              design        = "EMPHASIZED" />
          <htmlb:button       text          = "Press Me"
                              onClick       = "myClickHandler" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • MSS - OADP - possibility to add columns in navigation area

    Dear SDN members,
    I would like to know if there is a way to add a column in the navigation area (column tree) for object navigation like Organization.
    In standard only the text (char 40) is displayed.
    Thanks for your answers
    Regards,

    well the column can be added using data views IMG under OADP
    But i m not sure this can be used to add in navigation area, it ll require modification there
    function modules: HRWPC_ RFC_OADP_EVAL_DATAVIEW and
    HRWPC_OADP_GET_DATAVIEW_COLDT

Maybe you are looking for

  • C5-00 av cable

    I have recently purchased a Nokia C5-00. It has a 3.5mm av out socket. However, the manual does not say what cable is required for this and I can not find an answer on the internet. I tried a cable for a Nokia N8 (jack to three phonos). This did not

  • Trying to play old itunes purchases on new mac

    I am trying to move my music over from my old Mac, but all of the songs I purchased through itunes will not play because"you already have authorized 5 computers with your apple id".  When I go into my account on itunes store, it says I have 0 compute

  • Screen dump when posting debit balances to an expense account

    dear experts. A screen dump is produced when saving or posting debit balances to expense accounts for only certain periods and for a certain fiscal year in this case year 2006. what might be the problem. can the problem be solved form the ABAP side o

  • Dsccsetup initialization problem

    Hello, I am facing problem in initialization of dsccsetup. I have DSEE 6.3 zip distribution on Solaris 10 x86 machines. Please see below execution followed: root@dr1 # ./dsccsetup status Sun Java (TM) Web Console is not installed DSCC Agent is not re

  • HT201269 Is it recommended to set up a new iPad using the back up from iPhone?

    Is it recommended to set up a new iPad using the back up from iPhone?