How do I know the level when I click an item in the tree?

Hi,
   When I click a tree node in tree component, how do I know the level of this item?
   E.g., if I click the root node, then I get the level number 1, if I click second level node, I get the number 2 etc.
   Thanks!

Hi,
You can get to know the level of a tree by the ID of its node.
Like,what i did was,In the layout,
<htmlb:treeNode id      = "root"
                text    = "MRF LIST"
                isOpen  = "true">
   <htmlb:treeNode id      = "node1"
                   text    = "MRF's To Be Processed"
                   isOpen  = "true"
                   tooltip = "MRF's to do"
                   toggle  = "X">
<%data :tab_0 type ZDI_MRF.%>
   <%loop at tab_mrf_0 into tab_0.%>
      <htmlb:treeNode id     = "node1<%=sy-tabix%>"
                      text   = "<%=tab_0-MRF_NUM%>"
                      image  = "@02@"
                      onNodeClick="show">
       </htmlb:treeNode>
    <% endloop.%>
By this,on node click in onInputProcessing,we can process it as
if  event->id = 'myTree1' and event->event_type = 'click'.
     data : t_event type ref to cl_htmlb_event_tree.
     t_event ?=  event.
     temp = t_event->node.
   <b>  if strlen( temp ) ge '6'. </b>
     data : x type string ,
            tab type zdi_mrf.
   <b>  if temp ca 'node1%'. </b>
            split temp at '1' into x node1.
          endif.
By this you can get the length of the ID and hence get the level,say id strlen( temp ) = 4 ,then node = root ,if strlen( temp ) = 5 ,then level 1.
Maybe you can do something similar.
Hope this helps,
Regards,
Siddhartha

Similar Messages

  • How do you know the audio level of a keyframes

    I'm varying the audio levels of clips on the timeline by creating keyframes using the pen tool. I create four points:
    1) -inf = beginning of fade-in
    2) -5dB = end of fade-in
    3) -5db = beginning of fade-out
    4) -inf = end of fade-out
    But when I'm going back to adjust points, how do I know what level they're at already without having to drag them away from their home position and then back?
    Scrolling over them with the mouse (and not clicking) just gives me a crosshair and no info.
    I want to make sure that points 2&3 are at the same level, so I can just move the envelope region between them up and down to change the volume. Any quick way to do this to speed up my process?

    T-Bob wrote:
    I want to make sure that points 2&3 are at the same level, so I can just move the envelope region between them up and down to change the volume. Any quick way to do this to speed up my process?
    Specifically to address this point: if you mouse over the audio levels' rubber band segment BETWEEN your points 2) and 3) until the cursor changes to an up/down adjustment arrow ⬍, and move it up/down, it will adjust BOTH the levels at 2) and 3), maintaining the relative difference between them (or, if points 2) and 3) start at the same level, this adjustment will keep them equal as you drag them both up/down together in one action.)
    As usual, much easier to DO it, rather than describe it!

  • Does any one know how to connect itunes up? when i click on store it always says 'itunes could not connect to the store. Make sure your network connection is active and try again.' if you know how to fix tell me please, please!

    does any one know how to connect itunes up? when i click on store it always says 'itunes could not connect to the store. Make sure your network connection is active and try again.' if you know how to fix tell me please, please! thanx

    Work through all the troubleshooting here: iTunes: Advanced iTunes Store troubleshooting
    B-rock

  • How can we know the affected reports when i remove object from universe

    Hi All,
    If i remove any objects from the universe.
    How can i know the list of affected reports.

    Thanks for your update.
    It shows what are all the reports has been created  by using that particular universe.
    But my question was, if i remove any object from the universe, Then what are all the reports affected(We may not use that deleted object in all the reports)

  • How can i Know the email linked to icloud

    Please can anyone help me how to know teh email linked to my phone ??
    it shows me h********@hotmail.com i tried to logged in with my account that belong to h********@hotmail.com and it says inocrrect password or email i tried to reset my id but no reset mail was sent to my email ..
    so i tried to creat a new with the existing email addreess and it works and verified and finally i tried to activate it with h********@hotmail.com with the new passs and it says account cannot be activate with h********@hotmail.com it is linked to another account ..
    so please how can i know the linked email to my phone
    Thank you

    Welcome to the Apple community jorjh.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • How can we know the return code of BDC Program ?

    Hi All,
    Please tell me : How can we know the return code of BDC Program when being exceuted in Session or in Transaction mode.
    In my program, we are uploading data from Excel sheet to SAP via BDC
    The records that are not updated we want to create a log file.
    Now to know whether a record is updated ot not, wat syst field shloud be used?
    Its urgent....
    <b>Reward Point will be there ....</b>
    Thanks,
    Harish

    Hi harish,
    try the logic in this code ...
    i had attached input file in the end.
    TYPES: begin of errmess,
            msgnr type t100-msgnr,
            text type t100-text,
           end of errmess.
    TABLES : t100.
    DATA: BEGIN OF DD_VA01,
           AUART TYPE VBAK-AUART,
           KUNNR TYPE RV45A-KUNNR,
           BSTKD TYPE VBKD-BSTKD,
           MABNR TYPE RV45A-MABNR,
           KWMENG(2) type C,
           KBETR(2) type C,
          END OF DD_VA01.
    DATA:IT_VA01     Like TABLE OF DD_VA01,
         WA_VA01     Like LINE  OF IT_VA01,
         WA_VA01_F   Like LINE  OF IT_VA01,
         IT_BDCDATA  TYPE TABLE OF BDCDATA,
         WA_BDCDATA  Like Line  OF IT_BDCDATA,
         W_FNAME     TYPE STRING,
         messtab like bdcmsgcoll occurs 0 with header line,
         it_errmess type table of errmess,
         wa_errmess like line of it_errmess,
         err_message type string.
    data: zf1 type i,
          zc1 type c value '2',
          fn(20) type c.
    Main Code ************************************************************
    PERFORM get_input using 'C:\Documents and Settings\ic881592\Desktop\Daran_bdc_VA01-e.txt'.
    SORT IT_VA01 BY AUART KUNNR BSTKD.
    LOOP AT IT_VA01 INTO WA_VA01.
      if WA_VA01_F-AUART <> WA_VA01-AUART OR
         WA_VA01_F-KUNNR <> WA_VA01-KUNNR OR
         WA_VA01_F-BSTKD <> WA_VA01-BSTKD.
           PERFORM set_header_flag.
           PERFORM create_bdc_header_data.
      endif.
      PERFORM create_bdc_item_data.
    ENDLOOP.
    PERFORM call_transaction.
    PERFORM errorlog.
    Procedures ***********************************************************
    form get_input using w_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = W_FNAME
          HAS_FIELD_SEPARATOR = '#'
        TABLES
          DATA_TAB            = IT_VA01.
    endform.
    form call_transaction.
        PERFORM bdc_field       using 'BDC_OKCODE' '/11'.
        CALL TRANSACTION 'VA01' USING IT_BDCDATA MODE 'A' messages into messtab.
        refresh it_bdcdata.
    endform.
    FORM set_header_flag.
           WA_VA01_F-AUART = WA_VA01-AUART.
           WA_VA01_F-KUNNR = WA_VA01-KUNNR.
           WA_VA01_F-BSTKD = WA_VA01-BSTKD.
           if zf1 = 1.
               PERFORM call_transaction.
           endif.
           zf1 = 1.
    endform.   "set_header_flag.
    form create_bdc_header_data.
         perform bdc_dynpro      using 'SAPMV45A' '0101'.
         perform bdc_field       using 'VBAK-AUART' WA_VA01-AUART.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         perform bdc_field       using 'KUAGV-KUNNR' WA_VA01-KUNNR.
         perform bdc_field       using 'VBKD-BSTKD' WA_VA01-BSTKD.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMSSY0' '0120'.
         perform bdc_field       using 'BDC_CURSOR' '04/06'.
         perform bdc_field       using 'BDC_OKCODE' '=CHOO'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    endform. "create_bdcdata
    FORM create_bdc_item_data.
         CONCATENATE 'RV45A-KWMENG(' zc1 ')' INTO FN.
         perform bdc_field       using 'BDC_CURSOR' FN.
         perform bdc_field       using FN WA_VA01-KWMENG.
         CONCATENATE 'KOMV-KBETR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-KBETR.
         CONCATENATE 'RV45A-MABNR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-MABNR.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    ENDFORM.
    form errorlog.
      LOOP AT MESSTAB .
        if MESSTAB-MSGNR = '311' or MESSTAB-MSGTYP = 'E'.
            SELECT SINGLE msgnr text FROM T100
                            into wa_errmess
                            WHERE SPRSL = MESSTAB-MSGSPRA
                              AND ARBGB = MESSTAB-MSGID
                              AND MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              err_message = wa_errmess-TEXT.
              IF err_message CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO err_message.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO err_message.
              ENDIF.
              CONDENSE err_message.
              WRITE: / MESSTAB-MSGTYP, err_message .
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
        endif.
      ENDLOOP.
    endform. "errorlog
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      WA_BDCDATA-PROGRAM  = PROGRAM.
      WA_BDCDATA-DYNPRO   = DYNPRO.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    input file :
    OR     2148     0001235     R-1162     8     17
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     6     25
    OR     2148     0001235     R-1162     4     12
    OR     2148     0001236     R-1162     3     12
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     1     25
    OR     2148     0001236     R-1162     7     12
    OR     2148     0001236     R-1161     8     30
    OR     2148     0001236     100-400     10     25
    OR     2148     0001235     R-1161     5     30
    OR     2148     0001235     100-400     2     25
    OR     2148     0001235     R-11621     3     12
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     1     25
    OR     2148     0001235     R-1162     7     12
    OR     2148     0001235     R-1161     8     30
    OR     2148     0001235     100-400     10     25
    OR     2148     0001236     R-1162     8     17
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     6     25
    OR     2148     0001236     R-1162     4     12
    OR     2148     0001236     R-1161     5     30
    OR     2148     0001236     100-400     2     25

  • How can I know the security role of the logged in user

    When you design an enterprise bean or Web component, you should always think about the kinds of users who will access the component. For example, an Account enterprise bean might be accessed by customers, bank tellers, and branch managers. Each of these user categories is called a security role, an abstract logical grouping of users that is defined by the person who assembles the application. When an application is deployed, the deployer will map the roles to security identities in the operational environment.
    But wondering when I log into my application with some user name and password (specified in my Oracle database),wondering how this works with the security role I created .How does J2EE know the security role of the logged in user.
    Thanks
    Manohar

    shet wrote:
    role at run time.
    When I login say as "manju" and password as "money" then how does it know that this user belongs to this security role.Is that the j2ee administrator has to say that user manju has this this security role.Programmitically how does it really work.I am confusedThe j2ee implementation assigns the roles using the JAAS module you have configured for your application on your application server. different JAAS modules get roles in different ways. many allow a single static role to be assigned using a config file. if using a database, often there will be configuration to specify additional database fields which specify the role for a given username.
    At runtime, a developer can test roles using methods like EJBContext.isCallerInRole().

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • How can i know the no of servlets

    how can i know the no of servlets present in single application

    you webapp (servlet) can create a static variable. when a request has been made, you increment this number...provides a request parameter (http param) that will return this count number.

  • How can I know the purchase date of my notebook?

    Hello guys
    I bought a Toshiba notebook from Extra Company @ Jeddah, Saudia Arabia
    & I want to know how can I know the Purchase Date Of it because I missed the payment bill & when I register my notebook Toshiba web site it asks me about the Purchase Date.
    Please help me
    Thanks a lot
    Bye

    Dont think you can find out the date of purchase!
    Where should know this without a payment bills or sales checks.
    What you can do is to find out when the notebook was registered on the Toshiba page.
    [Toshiba Warranty Lookup |http://computers2.toshiba.co.uk/toshiba/formsv3.nsf/WarrantyEntitlementLookup?OpenForm]

  • How Can i know the orders source. ?? IDOC or VA01

    Dear All,
    sometimes we create a new order with reference to the order which was created by using IDOC.
    How can I know the difference between ..
    1) Order created with VA01. (Some of the fields may copied from order created by IDoc.)
    2) orders created with IDOC.
    Please let me know.
    Thank you
    Madhu

    Thank you for your reply, but the suggestion you have given may work for us. as when we create a order with reference to other order or when we create a order using we19. the newly created order will have all the details of older order and that information will be in EDIDC, which will not be correct.
    regards
    madhu

  • How can I know the right component for a transaction?

    Hi, I have a question
    When creating a new message in Solution Manager, notif_create, how can I know the right component given the transaction code or program name?
    Thanks in advance
    Edited by: María Valdés on Aug 19, 2008 6:25 PM

    Hello Maria,
    Well, in the Support Message window, place the cursor in Component box and press F4. This will brings up another window which contains the components list to which you are authorized. From that list you can choose about which component you want to create that particular support message.
    For example, if you are from Quality department, the following can be visible when you press F4.
    QM - Quality Management
      -- QM-ADB Adobe Forms
           -- QM-ADB-PRN Print Forms
      For the Print Forms, the component will be QM-ADB-PRN
    I hope it helps.
    Cheers,
    Satish.

  • Help! How do I know the Oracle daemon started on Linux.

    Dear Madem/Sir!
    I had installed the Oracle 9.2 on the Red Hat Linux 8.0 platform.
    But how do I know the Oracle Daemon started when the Linux startup?
    Please help me to figure out it!
    thanks and regards,
    Janus
    [email protected]

    A couple of ways, but easiest is to run the command "ps -ef" at a shell prompt. It will tell you which processes are running on your server. If oracle is running, you should see several oracle processes.
    You may also try running "sqlplus" and see if it will let you connect to the database. Generally, if you try to run SQL*Plus and the database is not started, you will get an error message to that effect.

  • HELLO! How do I fix this? When I click on imovie "add titles" it closes. I uninstalled the application, to date I have reinstalled, the problem persists, the problem

    HELLO! How do I fix this? When I click on imovie "add titles" it closes.
    I uninstalled the application, to date I have reinstalled, the problem persists, the problem

    Thank you for having responded to me!
    Unfortunately I did already the case "delete preferences" but nothing!
    Also, when crashes do not give me any reports!
    Started in safe mode, with another administrator, the problem becomes even: your video card is not compatible with Quartz Extreme!
    My card is a g-force framework 4000 FOR MAC!!
    STRANGE TRUE!
    If you know something more to this riquardo please answer!
    Thanks Comunity!!

  • How can i know the phone is in a call or not?

    How can i know the phone is in a call or not?
    I need to detect it and then send alert to the phone.
    Should i use AXL or JTAPI?

    If you are pushing text or audio to an IP phone, using CiscoIPPhoneExecute, you can use "Priority" as "2", then it will not execute that command.
    0 = Execute Immediately
    The URL executes regardless of the state of the phone. If the Priority attribute does not get specified in the , the default priority gets set to zero for backward compatibility.
    1 = Execute When Idle
    The URL gets delayed until the phone goes idle, at which time it executes.
    2 = Execute If Idle
    The URL executes on an idle phone; otherwise, it does not get executed (it does not get delayed).

Maybe you are looking for

  • Off-white backgrounds

    Hi Just lately, the last few months when I start to record something in Captivate 4 everything seems fine, i look at the source code and its fine.  White backgrounds, the mouse moving along etc. When i publish/preview the course the backgrounds are a

  • Can't download the Bootcamp drivers for Win 8.1 when trying to install on a MacBook Air 2015 model.

    I've got a MacBook Air 13" 2015 model and I'm trying to install Win 8.1. When I run the Bootcamp assistant it fails at downloading the driver stating it had a network error. With this result I tried using multiple other network connection with still

  • When does Apple get out of the stoneage and allow Adobe flashplayer ?

    I find it extremely stupid that i Can not open a lot of services because Apple does not allow Adobe flashplayer, when Will this be possible ? Next time i Will find another device that allows Adobe flashplayer if it does not change very soon.

  • Missing subVi after build in llb

    I have a top level application that dinamycally calls some Vi contained in a llb library. Running the app from source works fine. If I build an application the dinamycally loaded VIs open with the broken arrow. If I click the arrow I see that some su

  • Accessing OAMessageStyledTextBean in javascript

    There is a requirement which goes like this: there are three fields (they are the items of an AdvancedTable) Field 1 Field 2 Field 3. Field 3 is readonly (of type OAMessageStyledTextBean). Field 1 & 2 (of type OAMessageTextInputean). If there is a ch