Using tree - how to get upper levels

I create a heirarchical tree based on a couple of tables via a record group i create on the fly.
I then let the user attach documents to the tree nodes. The problem comes that the node may not exist in the database yet as they can build them as they go. So i need to insert all record on tree into table when they attach a document. I dont want to do this before as i am only interested when they are attaching documents - rather than storing all data that may never be used.
My problem is when they attach the document i want to find all levels in that particular tree to insert them.
i.e. if my tree is as follows
1
-1b
2
-2b
3
-3b
-3c
and the user attaches against 3c I want to insert 3 into the table, then 3b, then the document against 3b, so i need to find out what its uplevel is in this case 3.
How is best way to do this? i have NODE_DEPTH property - to know its not top level and NODE VALUE to know the value, and NODE_LABEL to know the description but how can i find my uplevel when its not stored in a table anywhere.

Cant believe i never found that when searching forms help.
Thanks

Similar Messages

  • Yahoo astra tree (how to get nodeLevel)

    Hello,
    I'm trying to use yahoo astra tree component ( http://developer.yahoo.com/flash/astra-flash/tree/examples.html) , for abaut 2 weeks, but I've a huge problem, I cant manage a way of get the path frmo root to ne child level of the tree.
    I need something like
    node1
    node2
         subnode1
         subnode2
              subsubnode1
    node3
    node4
    when subsubnode1 is clicked, I need to have traced his path, node2.subnode2.subsubnode1
    How to get this result?
    Thanks
    Pluda

    hello,
    it seems no one uses these astra components.
    well, I think the issue is in this piece of code, I can't transverse the tree data, but I think this is the best way to get this working
    if(node.nodeLevel == 0) {
                global.v.pai = node.label;
            } else {
                trace(node.nodeLevel);
                var parentPointer:TNode = node.parentNode;
                if(parentPointer is BranchNode) {
                    global.v.familia = node.parentNode.label;
                } else {
                    while (!(parentPointer is RootNode)) {
                        parentPointer = parentPointer.parentNode;
    thanks

  • Drilling via Hierarchy - how to display upper levels of the hierarchy??

    Hi all.
    I'm using Discoverer 10.1.2
    I have a worksheet which contains only one Pie graph.
    Users can drill down and up by clicking on the slices of the graph, because I definied Hierarchy in the Administrator.
    Everything's fine, but when drilling down you can't see through which values of upper levels of the hierarchy you go..
    For example assume the pie graph displaying three slices for warehouses 1,2 and 3.
    User clicks on slice 2. Discovere re-run query with new condition warehouse=2 and displays new pie graph which shows four slices for Items a,b,c and d.
    That's fine user can see there are four items on the selected warehouse and there is some amount of each of these items.
    But he can't see which warehouse was selected!!!
    Discoverer only adds new condition to the source sql query but I have no chance to display these conditions on worksheet.
    Discoverer Plus enables to add "Axis Items", "Data points",etc in the graph title.
    In the Legend of the Graph there is a Column name of the upper level of the hierarchy but not its value (in my example there would be Legend displaying slice colors for items a,b,c,d and link to "warehouse") I would Like to see current warehouse number (e.g. 2 in above example) too!!
    Any workaround???
    Thanks a lot.
    Jakub

    Hi Jakub
    In releases prior to 10.1.2 users really had no choice but to drill to detail. However, with the release of hyper drills in 10.1.2 the situation has changed. Most of my customers now use hyper drills and wondered how they ever got by without them. Using hyper linked workbooks allows you to create a library of workbooks that all interlink to each other, up and down the chain.
    Thus a user can jump into the chain anywhere they like and the system should let them link up or link down. When done properly you end up with a library. Now take this one step further and make the library owner a generic user called something like ACCOUNTS PAYABLE. You can now have a library of accounts payable workbooks, workbooks that have been shared with either the ACCOUNTS_PAYABLE role or responsibility.
    Does this help see the direction I take?
    Regards
    Michael

  • Need help using split, how to get the number of inputs?

    I am trying to write a program in which a user inputs several numbers, then the output is how many numbers were input. I am thinking that the best way to do this is to use split, however I am pretty new and can't get it quite down. Thanks

    Sorry, I guess I didnt explain it correctly. The input would be something like this-
    90 87 76 23 99
    Here is what I have-
    import java.util.*;
    public class Scores {
      public static void main(String args[]) {
              int score;
              System.out.println("Input UNC Basketball scores, each separated by a space.");
              Scanner keyboard = new Scanner(System.in);
       int count = args[0].trim().split(?\\s?).length;
    }The int count line was given to me by someone, however I dont know how to get there. Thanks

  • How to get first level BOM material if I know 4th level material code only?

    Dear all,
    I have 4th level BOM material only. How to find first level ( finish material) BOM material ?
    We can find bottom level material easily through CS11 if we know top level material.
    But how to find top material if we don't know ? we know only bottom most material.........
    Thanks....

    Kishore,
    Multiple runs of "CS15" will help you.
    Regards,
    Prasobh

  • ALV Simple Tree: How to customize sum levels?

    Hi,
    I have the following issue:
    I use the ALV Simple Tree to display a hierarchy. In this hierarchy one element is the currency of the values I want to display. Therefore the currency might not be the top-level of the hierarchy and as a consequence the tree/table looks like this:
    Region/Curr. | Amount 1 | Currency
    EUROPE       | 2000     | ***
    - EUR       | 1000     | EUR
    - USD       | 1000     | USD
    -> Different currencies are added with no respect to currency rates or the likes. Only the currency field is filled with stars.
    Question: How can I prevent sums for a tree level?
    The hierarchy is flexible, so I require a dynamic solution (for example if there are two levels before the currency or none).
    If anyone got a link to the documentation for the Simple Tree (or something like that), I would also really appreciate it!
    Kind Regards,
    Robert

    Hi
    I'm using OOP ALV.
    data: t_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,
             wa_fieldcat TYPE lvc_s_fcat.
    *populate field cat
      wa_fieldcat-col_pos = 2.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'DB name of teh field Amount1'.
      wa_fieldcat-do_sum = 'X'.
      wa_fieldcat-coltext = 'Amt'.
      APPEND wa_fieldcat TO t_fieldcat.
    CALL METHOD o_grid->set_table_for_first_display
        CHANGING
          it_outtab                     = itab
          it_fieldcatalog             = t_fieldcat
          it_sort                        = t_sort
    regards,
    manju

  • Javax.faces.tree: how to get it  ??

    I need the package javax.faces.tree , but i don't know how to download it and where i can get it ,please tell me ,thank you very much

    javax.faces.tree was used in Jsf Beta,now it is obsolete

  • How to get mic level loud enough

    This is my first attempt at a "complete" iMovie...though have been fooling around with video and stills to practice.
    I was thinking about subtitles to make my video make sense, but then wanted to try narration instead. I got out my headset, usb Cyber Acoustics, and spoke into the mic to help set the levels in the Preferences area. The sound bars showed up, but really couldn't get them high enough. And yep, when I recorded some narration lines, the levels were not nearly high enough. I upped the level by raising the levels bar within the narration clip, and that helped some, but not enough. What options do I have? This is the kind of G4 that does not have a regular mic plug, has to be usb. I got this machine recently, so am rather new to the mac as well.
    Also, any way to monitor the video's soundtrack while I record narration. I was planning on blending with the cadence of the music and surf, but now can't do that. I tried both same headset, and then separate headset (via ext speakers)...Output seemed to be set correctly for that, but no sound.
    Powermac G4   Mac OS X (10.4.10)   1.5 gB sdram

    Welcome to iMovie Discussions.
    With any USB input device, you have to go to System Preferences (..are those the Preferences you meant?..) and then 'Sound', and click on the 'Input' tab, make sure that you've chosen the correct device (..e.g; the USB device..) and then drag the horizontal slider till it shows plenty of audio coming in.
    (..You HAD clicked on the 'Input' tab - for the mic - not the 'Output' tab - for the headphones - hadn't you? ..Just checking..)
    I don't know the Cyber Acoustics headset, but all other USB input devices I've tried DO deliver a good strong audio input. (E.g; the teeny plug-in USB plug for the similar Philips headset can be used with any other mic and 'phones for a really good volume level.)
    "..What options do I have?.." ..You may be able to export the narration to GarageBand, and increase the levels there (..I hardly use GarageBand, so I'm not too familiar with it..) and you can certainly do the same - though it's a bit more complex - by exporting it and then using the free 'Audacity' (click on that blue link) or similar software to increase its volume.
    "..any way to monitor the video's soundtrack while I record narration.." ..Yes; export the edited movie back to tape, and watch the tape playing in the camcorder while speaking your narration.
    OR, better still, put a blank tape in the camcorder, watch your edited movie in iMovie and simultaneously speak your narration into the camcorder, with the camcorder's built-in mic. That guarantees the correct audio level.
    Then import that new recording into iMovie, 'Extract' the audio into one of the audio tracks, delete all the video which you just imported, and drag the audio back to the start of your movie: result ..perfect narration, timed exactly to fit the movie!

  • How to get object level security in Universe?

    Hi,
    I need to get the object level security for an Universe. I'm able to get the list of objects and its security access level (Public / Controlled / Restricted / Confidential / Private / )  from the (.Unv) file using the Designer SDK.
    But I need to get the list of users who has the object level security in the universe. In the CMC, by clicking the Universe and click on the Object Level Security tab, we can see the list of users there.
    I need to get the same using BOE SDK.
    I have used the following query to get the universe from the repository,
    "select * from ci_appobjects where si_kind='universe' "
    But I'm not able to get the list of users having obj. level security for that universe.
    Kindly help me to proceed.
    Thanks.

    The access security level is encapsulated in the SI_KIND='Overload' object. 
    Look for those types of objects, and the doc for the Overload class.
    An Overload references the Universe to which it's associated, and User/UserGroup objects are associated with the Overload via SecurityInfo.
    Sincerely,
    Ted Ueda

  • Error using BAPI_BUSPROCESSND_CREATEMULTI, how to get sales order number

    Hi all, i am using the BAPI BAPI_BUSPROCESSND_CREATEMULTI to create a sales order of type ZWEB in CRM. I am using HEADER,  INPUT_FIELDS ,  ITEM ,  CREATED_PROCESS and  RETURN
    tables. In the CREATED_PROCESS i am getting the GUID but no value for object id. and in return table i find the error mesages as "no status object available for unknown object", "A log has been generated for single document", "no status object availabe for unknown object".
    what mistake i am doing? i want to create a sales order in SAP CRM and get the sales order number as the output. am i using correct bapi. many people suggested of using bapi BAPI_BUSPROCESSND_SAVE....i dont know how to use it and what values i should pass to the objects_to_save paramter of this bapi.
    here is my code please help me
    ***TABLES
    DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
    DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
    DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
    ***WORK AREA
    DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
    DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
    DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
    DATA: IT_EV_GUID_32 TYPE GUID_32.
    DATA: IT_EV_GUID_32_1 TYPE GUID_32.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32.
    WA_HEADER-GUID                      =  IT_EV_GUID_32.
    WA_HEADER-PROCESS_TYPE    =  'ZWEB'.
    WA_HEADER-DESCRIPTION        =  'WEB ORDER'.
    WA_HEADER-CREATED_BY        =  'SAPUSER
    APPEND WA_HEADER TO IT_HEADER.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_H'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'PROCESS_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'DESCRIPTION'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'CREATED_BY'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: CREATED_PROCESS.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        EV_GUID_32       = IT_EV_GUID_32_1.
    WA_ITEM-GUID              =  IT_EV_GUID_32_1.
    WA_ITEM-NUMBER_INT        =  '10'.
    WA_ITEM-ORDERED_PROD      =  '90000000'.
    WA_ITEM-ITM_TYPE          =  'ZTAN'.
    WA_ITEM-MODE              =  'A'.
    APPEND WA_ITEM TO IT_ITEM.
    WA_INPUT_FIELDS-REF_GUID               =  IT_EV_GUID_32_1.
    WA_INPUT_FIELDS-REF_KIND               =  'A'.
    WA_INPUT_FIELDS-OBJECTNAME             =  'ORDERADM_I'.
    WA_INPUT_FIELDS-LOGICAL_KEY            =  '1'.
    WA_INPUT_FIELDS-CHANGEABLE             =  ' '.
    WA_INPUT_FIELDS-FIELDNAME              =  'GUID'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME              =  'NUMBER_INT'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ORDERED_PROD'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    WA_INPUT_FIELDS-FIELDNAME                 =  'ITM_TYPE'.
    APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
    REFRESH: created_process.
    CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
    TABLES
      HEADER = IT_HEADER
      INPUT_FIELDS = IT_input_fields_fill
      ITEM = IT_ITEM
      CREATED_PROCESS = CREATED_PROCESS
      RETURN = RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING
        WAIT = 'X'
      IMPORTING
        RETURN = RETURN1.
    Edited by: jessica sam on Dec 11, 2008 5:23 AM

    Hi Jessica,
                    I am not able map billing plan details for BAPI_BUSPROCESSND_CREATEMULTI.
    If u done alreay please guide or send program for that.I will be grateful for you.
    Regards,
    Dilip

  • How to get tem level text of PO???

    Dear all,
    I want to get the data for Item level text of PO. But not able with the function read_ text as in header level text.
    So please tell me how I can get for tem level text of PO.
    Thanks in advance.
    Sachin Gautam

    Hi Sachin,
    Follow the steps.
    1. Go to the text tab for the item.
    2. Choose the Item text.
    3. Double click on the text editor.
    4. GOTO -> Header.
    Get the text name (PO Number+item number eg: 100000000200010 for item number 10).
    Language
    Text ID and Text Object
    Put these values in READ_TEXT.
    Hope it helps.....
    Lokesh
    Pls. reward appropriate points

  • How to Get to Level 2?

    Hi,
    How many points do you have to get in order to reach Level 2?  Thanks in advance. 
    ---likeabird---

    I had to log out to see this.
    https://discussions.apple.com/___sbsstatic___/apple/tutorial/reputation.html

  • TREE, how to get the ITEM of a cl_column_tree?

    Hi guys!
    I built my column tree with 2 columns so far for equipments.
    the equipment id  has 18 char, the node-node_key only 12.  So i decided to put the equipmentid in an item_text.
    My question now is,
    How can i access these items in the method HANDLE_EXPAND_NO_CHILDREN....the events gives me the node_key, but how can i get to the item?
    thanks

    Thanks a lot for all your answers! :)
    I finally got to do something with my little knowledge =P
    I created a new class containing all the data needed for the dataTable (including a "String id").
    And that's what I get:
    <h:column>
         <a:commandLink
              value="#{familyAction.familyDocsByPrj.name}"
              action="#{homeAction.search(familyAction.familydocsByPrj.id)}"
              reRender="rightAppPanel" />
    </h:column>

  • ALV grid using methods: how to get modified cells

    Hi all,
    IAM USING alv grid using methods,
    i have few fields as editable
    if the user edits any of those fields how can i know which cell is modified and what is the new value.
    i tried to use method get_modified_cells
    but iam getting a msg saying protected method and u can  not use.
    please advise.
    thanks
    JAfar

    Jafar,
    You need to Take the Help of DATA_CHANGED event, when ever there is a change in the Grid, it will trigger, here you can capture the Cells which are modified.
    in your PAI call the method check changed data
    CL_GUI_ALV_GRID-->CHECK_CHANGED_DATA
    You need to set the handler for datachanged.
    set the handler for this, and register the event modified or enter.
    **Handler to Check the Data Change
        HANDLE_DATA_CHANGED FOR EVENT DATA_CHANGED
                             OF CL_GUI_ALV_GRID
                             IMPORTING ER_DATA_CHANGED
                                       E_ONF4
                                       E_ONF4_BEFORE
                                       E_ONF4_AFTER,
    **Handle Data Change
      METHOD HANDLE_DATA_CHANGED.
    DATA: X_CHANGE TYPE LVC_S_MODI.  "modified cells
        LOOP AT ER_DATA_CHANGED->MT_GOOD_CELLS INTO X_CHANGE.
        ENDLOOP.
      ENDMETHOD.                    "HANDLE_DATA_CHANGED
    Regards
    Vijay

  • How to get game levels back after updating iphone

    i just recently updated my iphone 4 to newest update however the games have eitha gone bak to level one or another level thats nowhere near what level i was on... is there anyway i can get my games back to my original level?

    By restoring you erased the iPhone5.
    Use iTunes to restore your iOS device to factory settings

Maybe you are looking for

  • Preview/QuickView of HP Scan Pro PDF Files Causes System Crash in 10.5.5

    Ever since upgrading to 10.5.5 on my iMac Core 2 Duo 2.4GHz, I have been having problems with PDF files created by scanning documents using HP Scan Pro. Prior to 10.5.5, the PDFs from HP Scan Pro worked fine and behaved like any other PDF. Under 10.5

  • Camera Raw 8.7 update fail in CS6

    The Camera Raw 8.7 update download fails in Photoshop CS6. I read a post elsewhere from someone with this same problem who said he was told to uninstall/reinstall Photoshop. Surely that cannot be the answer, and many people must be having trouble wit

  • Travel management- hotel accommodation eligibility config

    Please help me regarding travel related queries .... how and where can I configure hotel accommodation eligibility for following scenario.. We have configured class of cities as A+ , A , B and C. 1.hotel accommodation eligibility for top management i

  • Choosing VPN interface

    I finally got my Mac Mini server not long ago, and i love it, but i ran into a minor problem with the VPN. Ill explain my network setup first: - I have two separate WAN connections -- WAN1 <==> Airport Extreme =en2=[ Lion Server ]=en0=[ internal netw

  • CRS Migration to 10.2

    Hi All, I was wondering if there is any document for migrating CRS 10.1.2 to CRS 10.2. I was following the ATG migration doc and it has mentioned that CRS has been rewritten for 10.2 and "If an application is based on an earlier version of CRS, follo