....Tree structure problem

Hi all
i am able to populate a tree structure.
The Root Nodes displays the Name of the Employees and each roots childs display 2nd level root named, New Request recieved, Cancelled requests.
Now i want is that whenever the application runs, only the employee should expand its own Node. and if it clicks the node of other employeess , their Node should not Expand. ...
I dont know how to do that ..
i know there is a trigger when node expand, but i dont know how to use the check...
I mean suppose
x:=Get_application_property(USERNAME);
if :NODE_Label <> x then
msg ('''dont open in others mail box');
Raise Form trigger Failure
end if
Is this code ok..
kindly reply ..
thnx alot

I assume you're creating the tree with a 'connect by' query, so why not just use the query to filter out the nodes you don't want to be viewed?
Eg, table ee with this data (I use ¬ as my null indidcator):
SQL> SELECT * FROM ee;
A          B
¬          BOB
¬          JACK
¬          TOM
BOB        New
JACK       New
TOM        New
BOB        Cancelled
JACK       Cancelled
TOM        Cancelled
9 rows selected.Selecting all rows hierarchically:
SQL> SELECT LPad(' ',(level - 1) * 4,' ')||b
  2  FROM ee
  3  CONNECT BY PRIOR b = a
  4  START WITH a IS NULL;
LPAD('',(LEVEL-1)*4,'')||B
BOB
    New
    Cancelled
JACK
    New
    Cancelled
TOM
    New
    Cancelled
9 rows selected.Selecting child nodes for BOB and no other:
SQL> SELECT LPad(' ',(level - 1) * 4,' ')||b
  2  FROM ee
  3  WHERE a = 'BOB' OR a IS NULL
  4  CONNECT BY PRIOR b = a
  5  START WITH a IS NULL;
LPAD('',(LEVEL-1)*4,'')||B
BOB
    New
    Cancelled
JACK
TOM
SQL>

Similar Messages

  • Bookmark tree structure using Microsoft word 2007 not creating properly

    I have a word document file in MS office 2007. When i am converting the word document to a PDF file using the HEADING option , the bookmarks tree structure  in the PDF file is not created properly. Means that the between content of a topic is also read
    as a bookmark heading while conversion. Only the heading of a topic should be read as a bookmark and the sub heading as a sub-bookmark but the content should not come in the tree structure of bookmarks in a PDF file..
    For Example:- if MICROSOFT is the heading of any xyz.doc then it should be the parent bookmark. . but in my case , MICROSOFT is coming as a bookmark but the content inside this is also created as a bookmark..
    So my question is that what is the internal structure of the of the MS word 2007 to convert a doc to a PDF file???
    Because it is not creating the bookmarks tree structure properly...and taking the content randomly from the middle of a topic and adding it in the bookmark tree structure...(which should not happen). The font throughout the doc is the same and aligned properly..so
    why it is randomly taking the between text as a bookmark...???
    what is the root cause of this bug..?? how can this problem be solved..?? is there any sort of change have to be done in my word doc.?
    i need an urgent help regarding this...
    NOTE:- I am using MS office 2007.

    I tried this but didnt work for mr. Can you help? How did you PDFed??
    It works for me in Word 2010 (or later) using Save As PDF. It did not work in Word 2007 using the Adobe Acrobat PDF printer nor using Word 2007's save as pdf utility. (The hyperlink showed up but was not active.) It did work using the Acrobat tab in Word
    2007 (this requires Adobe Acrobat).
    I did this by:
    first creating the text box with the hyperlink in the body of the document and moving it into the footer area (but still not in the footer itself).
    Then I used the Format tab of Text Box Tools and the Postion button (More Layout Options).
    I gave it an absolute vertical position relative to the page.
    Then I cut the text box, went into the footer, and pasted it there.
    It might have worked to just create the text box in the footer itself.
    I personally prefer it that the header and footer are not part of the active page when I am typing. This hyperlink is not clickable in Word without going into the header/footer view and I'm fine with that. The QAT workaround is just fine.
    Charles Kenyon Madison, WI

  • Display Tree structure using EVS or OVS

    Hi All,
        Here we have a requirement like display tree structure when I press F4. currently the sample application (using Object Value Selector or Extended Value Selector) is displaying the values in table, instead of table here we have to display it in tree.
       If it is not possible using either OVS or EVS please tell me what is the other way to solve the problem.
    Please give me any suggestion.
    Regards
    Suresh

    Suresh,
    You can emulate the behaviour by having a separate view for the tree structure.
    1.) Create a new view and put your tree structure UI + related logic in that view.
    2.) Create an input field and a linkToAction / button (with the text "Search".) aligned side by side.
    3.) On click of the search button, show the view containing tree as pop-up.
    You may develop upon this hint to meet your requirement.
    ~ Bala

  • Unable to create tree structure in Address Book like "Mail"

    I'm moving from a Windows PC environment having used both Mozilla's Thunderbird (email) & Firefox (browser) successfully for years.  Problem I'm encountering is setting up a similar structure in both Address Book & Mail!!  I set my Mail structure as follows:
    Leon Contacts
    0800 Class
    1100 Class
    T'ai Chi
    Earthquake E-tree
    Branch 1
    Branch 2
    Branch 3
    Branch 4
    From my Apple phone conversations & One-On-One sessions, this is impossible.  All Groups in Address Book are sorted in alphabetical order.  There are NO sub-groups!  When I'm composing a Mail for Mailbox, Leon Contacts, it's not easy to locate 1100 Class.  It seems  as though this logical approach to a tree structure would be useful for the community.
    I'm at a loss for getting the mail addesses easily into Mail.  Any interrim suggestions.

    Firefox doesn't do email, it's strictly a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, let us know and we can move this thread to the Thunderbird queue. This question currently is in the Firefox queue for answers.

  • Search help like tree structure.

    Hi All,
    I have a requirement to display the F4 search help like a tree structure  , with  different
    Node(category fields ), under each node(category fields ) different work centers  will exist.
    Please suggest how I can achieve the tree format categories in search help.
    Thanks for your cooperation.
    Thanks,
    Sri.

    Hi Sri,
    U can have a look at the search help PRCTH in se11, which has an search help exit K_F4IF_SHLP_STANDARD_HIERARCHY
    just execute this and try to debugg it...
    Hope this solves your problem...
    please ack if helpful .
    Best of luck !
    Thanks,
    Ravi Aswani
    Edited by: Ravi Aswani on Mar 15, 2010 8:45 AM

  • Query for spesific children in a tree structure

    Hi,
    My data is organized in a tree structure.
    I need a sql statement that returns a parent that
    have a set of children corresponding to some demands.
    I provide a very simplified description of my data, but it covers my problem.
    Can anyone please help me write a select statement that gives me all featureids
    that have a GID attribute with children GNR=123 AND BNR=456?
    Regards
    gv
    create table attributetype( id number, name varchar2(8), parentid number );
    insert into attributetype( id, name ) values ( 1, 'GIDLIST' );
    insert into attributetype( id, name, parentid ) values ( 2, 'GID', 1 );
    insert into attributetype( id, name, parentid ) values( 3, 'GNR', 2 );
    insert into attributetype( id, name, parentid ) values ( 4, 'BNR', 2 );
    create table attribute( featureid number, id number, parentid number, atttypeid number, intvalue number );
    --attributes for feature1
    insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 1, 0, 1 );
    insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 2, 1, 2 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 3, 2, 3, 123 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 4, 2, 4, 456 );
    insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 5, 1, 2 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 6, 5, 3, 12 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 7, 5, 4, 456 );
    --attributes for feature 2
    insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 8, 0, 1 );
    insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 9, 8, 2 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 10, 9, 3, 678 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 11, 9, 4, 456 );
    insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 12, 8, 2 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 13, 12, 3, 876 );
    insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 14, 12, 4, 456 );
    commit;
    column name format a15
    select a.featureid featureid, lpad(' ', (level - 1) * 2) || b.name name, a.id attid, a.parentid parentid, a.intvalue
    from attribute a, attributetype b
    where a.atttypeid=b.id
    connect by prior a.id=a.parentid
    start with a.parentid=0;
    FEATUREID NAME ATTID PARENTID INTVALUE
    1 GIDLIST 1 0
    1 GID 2 1
    1 GNR 3 2 123
    1 BNR 4 2 456
    1 GID 5 1
    1 GNR 6 5 12
    1 BNR 7 5 456
    2 GIDLIST 8 0
    2 GID 12 8
    2 GNR 13 12 876
    2 BNR 14 12 456
    2 GID 9 8
    2 GNR 10 9 678
    2 BNR 11 9 456

    Hi,
    Thanks for providing the CREATE TABLE and INSERT statements; that helps a lot.
    You want featureids that meet three criteria:
    (1) there is a GID attribute
    (2) the GID attribute has a GNR child with intvalue=123
    (3) the GID attribute has a BNR child with intvalue=456
    Since you're looking for immediate children, not distant descendants, it's easiest to do this with a non-hierarrchical query that finds one of these criteria, and does EXISTS sub-queries to test for the other two.
    For example:
    WITH aat AS
    ( -- Begin aat: join of attribute and attributetype
         SELECT     a.featureid
         ,     a.id
         ,     a.parentid
         ,     a.intvalue
         ,     t.name
         FROM     attribute     a
         JOIN     attributetype     t     ON     a.atttypeid     = t.id
    ) -- End aat: join of attribute and attributetype
    SELECT DISTINCT     featureid
    FROM     aat     m     -- m for main
    WHERE     name     = 'GID'
    AND     EXISTS     (     -- Begin EXISTS sub-query for GNR=123
              SELECT     NULL
              FROM     aat
              WHERE     parentid     = m.id
              AND     name          = 'GNR'
              AND     intvalue     = 123
              )     -- End EXISTS sub-query for GNR=123
    AND     EXISTS     (     -- Begin EXISTS sub-query for BNR=456
              SELECT     NULL
              FROM     aat
              WHERE     parentid     = m.id
              AND     name          = 'BNR'
              AND     intvalue     = 456
              )     -- End EXISTS sub-query for BNR=456
    ;Alternatively, you could do a three-way self join, and skip the EXISTS sub-queries.
    If you were looking for GNR and BNR descendants, any number of levels below the same GID node, it's easy to modify the query above. Just re-write the EXISTS sub-queries to CONNECT BY queries that "START WITH parentid = m.id".
    It looks like this application will have a lot of use for a view like aat, above. If you don't already have a permanent view like that, you should create one.

  • WDA:  Tree structure in web dynpro for ABAP

    Hi,
    I am trying to build a tree structure with information something like the following:
    Country
    State
    City
    I used the UI Element "Tree" and I was successful in building it. The only problem is that it supports only one column in each row like name.
    I need multiple columns in each row like Name and population.
    1) Is there any solution for this using UI element "Tree" only?
    2)I checked that there is Table tree UI element, but I could not figure out how I could use it for hierarchial structure like that of my requirement? Can I use it? Is there any example application with hierarchial structure?
    3)For tree UI element, any node that is not directly below context node has to be non-singleton. It will lead to adverse performance. Is there any solution for this?
    Thanks in advance.
    Regards,
    Srini.

    Hi Srinivasa,
    In the context, please create a node DATA with the following fields:
    KEY type string
    PARENT type string
    LOCATION type string
    POPULATION type string (or "I" if you happen to have numbers only without a unit like "k" for "thousand").
    Then please create a table with a TreeByKeyTableColumn namde LOCATION and an additional TableColumn called POPULATION. Now please add a TextView cell editor to both and bind the text value of each of them to the attributes LOCATION and POPULATION of the context node DATA. Last step is to bind the attribtues rowKey and parentRowKey(?) to the KEY and the PARENT attributes. This concludes the design time part.
    Next step is to fill the node DATA with actual data. Just use a supply function and do it like this:
    First entry:
    KEY = 'WORLD'.
    PARENT = ''.
    LOCATION = 'World'.
    POPULATION = '4 billion'.
    Second entry:
    KEY = 'DE'.
    PARENT = 'WORLD'.
    LOCATION = 'Germany'.
    POPULATION = '80 million'.
    You should now see a table with a tree at the left column that looks like:
    <pre>
      World        4 billion
       ->Germany   80 million
    </pre>
    Kind regards,
    Thomas
    Message was edited by: Thomas Szuecs

  • Multi-selection using windows style tree structure

    We developed a solution to replace the standard multi-select functionality with a java based tree structure where upon selection of a node all sub-entries are selected.  These entries are then added to the selection.
    Performance is however a problem and I would like to know if anyone has experience of implementing such a solution or if there is an alternative standard solution. 
    regards
    Tim

    Hello Tim,
    Did you try to run an SE30 performance analysis ?
    Check out this OSS note:
    Note 948066 - Performance Analysis: Transactions to use
    And depending on your CRM version, be aware that you can use the ABAP shared memory concept, which will considerably reduce the amount of memory used... hence increasing performance.
    Ciao,
    Nicolas.

  • Tree Structure Implementation in Java.

    1>
    How should i implement a "Tree Structure" in Java Based application.?How would i map the entries to the database table?how many tables will i require for this implementation.?
    List records<String> = new ArrayList<String>();
    records.add("null");
    records.add("Product");
    records.add("Category");
    records.add("P1");
    records.add("P2");
    records.add("P3");
    records.add("C1");
    records.add("C2");
    records.add("C3");
    so how should i implement a Tree Structure for the above record set.
    //P1,P2,P3 belong to Parent {Product}
    //C1,C2,C3 belong to Parent {Category}
    Sample code provided will be helpful

    How should i implement a "Tree Structure" in Java Based application.?The quotes suggest you don't know what a tree structure is, regardless of the development language. Fix that first (your understanding of what a tree structure is). [url http://en.wikipedia.org/wiki/Tree_structure]Here is probably a good start.
    How would i map the entries to the database table?how many tables will i require for this implementation.?It depends on what your tree structure represents, in particular it depends on whether the leaves and intermediate nodes of the trees have are homogeneous (e.g. have a common interface). There is no general rule.
    I suggest you start by looking in the Java API at all the classes whose names start with 'Tree' (TreeSet and TreeMap are probably the best ones to start with) and read the documentation carefully. Then try to write some code that uses one and come back if/when you have any problems.(sorry Winston) I think this is a very bad advice.
    These classes are particular implementations, respectively of a set (in the mathematical sense) and of a map (associative table), which happen to use a "tree structure" for their internal business. Their API doesn't help building a custom "tree structure" (they may be used that way, but it's certainly not the easiest nor even a particular handy way to build tree structures).
    Maybe their implementation may be a good example of how to build a Tree structure, but they use a particular type of tree (+red-black tree), not a general one. This may or may not be the OP's case, I wouldn't bet on it.
    OP you're welcome to come back with more specific questions and details. Good luck with Java.
    Edited by: jduprez on Oct 16, 2010 2:45 PM
    Edited by: jduprez on Oct 16, 2010 2:49 PM
    After checking the Javadoc: indeed TreeSet only uses a TreeMap for its implementation, so the only one out of the two which does directly uses a tree structure in its implementation is TreeMap.
    Edited by: jduprez on Oct 16, 2010 2:51 PM
    And, to reiterate, I stand by my claim that TreeMap is not a good example of a general Tree structure: in particular it uses a tree to map keys to values, its main business is the "mapping" part, not the tree as a storage medium. Neither the keys nor the values know anything about their "children".

  • Selection of elements in a recursive tree structure

    Hello,
    I have a recursive tree structure, and I am dynamically creating the child nodes as the parent nodes get expanded. The structure at runtime after expansion of the nodes would look something like this:
    Node 1
    ---Node 1.1
    Leaf 1.1.1
    Leaf 1.1.2
    Leaf 1.1.3
    ---Node 1.2
    Leaf 1.2.1
    Leaf 1.2.2
    Node 2
    ---Node 2.1
    Leaf 2.1.1
    ---Node 2.2
    Leaf 2.2.1
    Leaf 2.2.2
    When I select an item, say Leaf 1.1.1, that item gets highlighted. Now, when I select another node, say Node 2.1, that item gets highlighted as well. The issue now is that both Leaf 1.1.1 and Node 2.1 are highlighted, although I want only the latest selection to be highlighted.
    I have the following settings on my context node of the tree:
    Initialization Lead Selection = False
    Singleton = False
    Selection = 0..1
    How can I get only the latest selection to be highlighted on the tree?

    Hi Venkatramanan,
    You are right - the lead selection works perfectly, and it is just an issue with the appearance. But even so, I would like to know if there is some way to control the visual highlighting of the nodes. The main cause of concern is that for a user, if he selects leaf 1 first, and then leaf 2 (from another node) next, both are highlighted, and there is no way to know which one is really selected.
    I did look at the component WDR_TEST_EVENTS. The dyn-load recursive tree does not appear to have this problem, but I could not find any special handling in the code.
    One more thing: I have the ignoreAction attribute set to true for all the parent nodes. The leaves have this attribute set to false, so they can be selected. But this does not seem to help with the highlighting issue.
    Thanks,
    Kamal

  • How to draw a graph of tree structure (using shapes and lines)?

    Hello,
    I tried to search this solution in the forum, and I see people asking and replying with solutions to similar situation, but I don't get what I am looking for. Also because I have never tried with graphs before.
    So, my problem is, I need a function that takes a string with tree structure, as in automata or tree graph, and displays the nodes in tree form. "Tree" is not important, but important is that each object should be displayed as a node and lines connecting them. Please see the image below (with three possible options):
    So, basically, the tree structure could be like X(a, X(a,b), c) where X(a,b) is a sub-tree of higher level X. The program knows the parent-child relationship, so this function only needs to display those elements in a graphical fashion.
    I pass the string in the form of a 2D array showing the hierarchy (to simplify).
    In the image, I am showing three possible options for showing the tree. The third option eliminates those circles and rectangles, if that simplifies.
    I hope I explained clearly.
    Thanks ahead!
    Vaibhav

    I would start drawing from the top. The nodes will be the easy part.
    Begin with the root node centered in the drawing area horizontally and against the top of the drawing area. The second row of nodes would be located vertically (as in my example) 1.5x pixels below the first one, and either distributed horizontally across the available drawing area or at a fixed distance - like 1.5x again, or someother distance you define.
    The tricky part will be drawing the lines since they need run between the edges of nodes. This is where the high-school geometry might come in.
    Keep us posted on what you come up with. Extra points for coming up with a solution that will automatically resize itself to fit the available drawing area! (I've already given you all the clues for how to do that too.)
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Tree structure of system directory

    HI
    I am using swing on that JPanel
    and
    i got the drives of system in my combo box
    can u tell me how to show selected drive`s folders in a tree structure
    using JTree
    how i can show the the directories(folder`s) of a drive into the JTree box
    directory to be selected from ComboBox showing drives

    tigerkumar wrote:
    ok
    sorry for that
    i will take care of that
    Please help me in this problemI have given you an answer in the swing forum and you keep on
    multi-posting and ignoring the people who help you.
    read the solution here.
    http://forum.java.sun.com/thread.jspa?threadID=5217925&tstart=0
    I think this is the 4th time you keep on posting the same problem.
    next time there would be no help.

  • Removing Space in tree Structure

    Hi Experts,
    Iu2019m using the function modules 'RS_TREE_CONSTRUCT' and 'RS_TREE_LIST_DISPLAY' to create a simple list. Itu2019s displaying proper tree structure also, but my problem is that when it displays information there is lot of space between two fields. Anybody have an idea how to remove the space between the values.
    Thanks
    Basanagouda

    Hi, Sandeep
    Please Press F1 for help and Sample Code on SHIFT Hope you will fine the Solution
    This can help you this way too how to remove the characters from first and last position of a string?
    Kind Regards,
    Faisal

  • TREE STructures

    hi all,
    i was working with the tree structures . . . i used CL_GUI_SIMPLE_TREE. when i was done with it i found that it can only make one level nodes nesting .
    Please help what should i use, i want to have a tree with any number of levels of tree nodes.
    Thanx in Advance
    Zahid

    Hello Shehryar,
    Firstly, it's nice to know that you like some of the posts that I make here. I like some of your posts very much, too.
    Secondly, Sorry for this late response.
    Now I shall try to correct you :-)...
    Please consider the last post that Zahid had made. He says :
    <i>Thank You Raj! for ur help..
    plz look at the problem what i am actually facing , i mentioned in the above post . . . plz tell me some solution
    Zahid</i>
    What I understand when he says <u>"....the problem i am actually facing, i mentioned in the above post..."</u> is that he wants to have a solution to the problem of building a tree of his specifications.
    In fact, I see that you had also sent him a mail giving him some information. I have no idea about what that was.
    Since he says he is a beginner, I just wanted to give him a little <i>food for thought</i>, if I can call it that, to some basic problem-solving skills in computation. The tree control had just happened to be an example here.
    Trust this sorts things out a bit. Please revert, if you have something else to be clarified.
    Regards,
    Anand Mandalika.
    P.S. 1. I personally prefer going to the Class and clicking the button for "Method Documentation" (place your cursor on the method name and hit F9), rather than going to SE63 (to which the developer might sometimes be unauthorized)
    2. Attempting / wanting to find out the documentation of all the objects (be it programs / FMs / classes / anything ) is something that I don't think makes too much sense. You would have to know the object for which you want the documentation. In other words, you would have to know ( or find out if you do not know ) the tool that you need to use. Then you can read more about it and see if the particular tool does what you want. It is hardly the case that you see what a tool offers and then decide whether you have a requirement for that.

  • Changing tree structure in dir 5.1

    Hello all,
    Our organization is using directory server 5.1 and messaging server5.2.Our company is going for a change of directory tree structure.Can anybody please tell me whether for this change of directory tree structure we will have to again go for a reinstall of our messaging servers.Is there a way by which present messaging servers can be made to operate with new directory server with revamped directory tree structure.We are not going to upgrade to a new version of either directory or messaging server.

    Stay with Pages 09 if it is working. Pages 5 has a lot of problem from what i read in this forum and also is lacking about 100 features that Pages 09 has. That does say a lot about Pages 5!

Maybe you are looking for

  • Using SumIfs to add up multiple names in a list

    Hi, I've been wrestling with Numbers while trying to get on top of my bank account (tax return due soon!). I have all my transactions in a big list, and wanted to be able to show how much was spent on certain items, based on keywords. I also wanted t

  • Can my iMac with system software 10.4.11 use Linksys6 to connect wirelessly to our wifi?

    Is the only way an iMac with OS 10.4.11 can connect to a wireless network through an airport?

  • JDBC Receiver - Muliple parallel connections?

    Hi ,       Does the Receiver JDBC adapter support multiple parallel connections to the database. Can the calls be made in parallel. If yes then where is this parameter (maximum connections) set?. I was testing an RFC to JDBC sync scenario... My call

  • External Monitors w. MacBook Air 2010

    I bought my new MacBook Air to use often with external monitors up to my 30 inch Dell. Problem is: The combination does not return the maximum 2560x1600 pixel resolution of the monitor. I was assured by multiple people at the Apple Store that all Mac

  • Which one is efficient???

    I have a text file with huge data. I need to generate Oracle report from this file. I have two options... 1. Creating External table and query the data from external table 2. Directly accessing data from text file. Which one is efficient? Thank you,