How to find the current level of the tree in oracle forms?

Hi, I want to find the current level of the tree when the user click on a node wants to find current level how to do this?

Dear Mohammed,

You can use the FTREE. GET_TREE_NODE_PROPERTY ('tree_block.tree_name',: SYSTEM.) TRIGGER_NODE, FTREE. NODE_DEPTH); To achieve the current level of the node.

Kind regards

Manu.

Tags: Oracle Development

Similar Questions

  • How to find the error in oracle forms

    Dear gurus,

    I am newbie in oracle forms. I have a form with many items. In this regard, certain elements are not met. These elements are filled from four different cursors depending on certain conditions. for example,.
    IF <condtion1> true then
     open cursor1;
       populate all the items  from cursor1 columns
    elsif <condition2>true then
       open cursor2;
        populate all the items  from cursor2 columns
    elsif<condtion3>true then
        open cursor3;
       populate all items  from curso3r  columns
    elsif<condtion4>true then
        open cursor4;
       populate all items  from cursor4  columns
    This cursors are written to the database level.
    Now, I want to know what slider elements become values.

    My TL told me to find this, put messages. But I don't know where I put message [or in forms or cursors?]. Is an easy way to find errors in its present form?

    Thank you all.

    My TL told me to find this, put messages. But I don't know where I put message [or in forms or cursors?].

    You can add messages to your forms code in your conditional statement. For example, using your code sample:

    IF  true then
     open cursor1;
       Clear_Message;
       Message('Using Cursor 1');
       Message(' ');
       populate all the items  from cursor1 columns
    elsif true then
       Clear_Message;
       Message('Using Cursor 2');
       Message(' ');
       open cursor2;
       populate all the items  from cursor2 columns
    elsiftrue then
       Clear_Message;
       Message('Using Cursor 3');
       Message(' ');
       open cursor3;
       populate all items  from curso3r  columns
    elsiftrue then
       Clear_Message;
       Message('Using Cursor 4');
       Message(' ');
       open cursor4;
       populate all items  from cursor4  columns
    

    If your form works and you troubleshoot just a mistake, I wouldn't recommend restructure you your form. If the current process is inefficient or not, it has been tested and proved to a certain extent. Unless the form has many problems, I would keep the way it is and just solve the problem at hand! :)

    Is an easy way to find errors in its present form?

    You don't mention your version of Oracle Forms, but rather than adding messages to the code; I recommend that you use the debugger to step through your code forms so that you can see the enforcement code that is causing the problem. (Note: the debugger of forms can only step through you the code in the form.) If your cursors are in a data base/package procedure - all you will see is the call of this procedure of database/package - not the code in the procedure/package).

    If you are using Forms 6i, simply add the "break." part of the code you want to debug. If you use Forms 9i or higher, then you will need to be able to run your form from forms manufacturer; which requires a configuration to make it work. Once configured, simply select the line you want to break the and press F5 for enabled or disabled a breakpoint. Then run your form by using the option 'run Debug form '.

    If you really want to reegineer your form to use a query in the From Clause, take a look to forms: how - a block based on a query FROM Clause for more information on the query from Clause.

    Now, I want to know what slider elements become values. The link Christian listed is also a very good article on using queries in the From Clause.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

  • How to display the rownum in oracle forms?

    Hai all,

    How to display the rownum in oracle forms?

    Thank you
    RCS
    ----------------

    I would add rowum with the current form of group_mstr:

    former columns:

    group_id
    GroupName

    new columns will be:

    identifier of the line
    group_id
    GroupName


    I created as follows:
    in forms
    text tool > row id
    text element > EXT_ITEM20

    error text element: no white color, it's a different color
    --------------

    create > Trigger > a time new form instance > I gave like this:

    DECLARE
    CURSOR crrow_id IS
    SELECT count (*) + 1 group_mstr;
    BEGIN
    OPEN crrow_id.
    Search FOR crrow_id IN: TEXT_ITEM20;
    CLOSE Crrow_id;
    END;
    ------------
    error: identifier group_mst must be declard
    ============

    I don't know also not quite what you want to display in your form. Do you want to just number the records displayed, from 1 to n?

    If so, create a text whose property 'data base element' element to the value 'no', "calculation method" formula and the formula itself: SYSTEM. " TRIGGER_RECORD, then, in each case, the registration number should be indicated.

  • How to find the forces in FACT form

    Hi all

    I am new in Oracle EBS, I just add FDF format but could not find the name in FACT of this screen (Misc Transaction inventory). Can you please help me find the de FACTO forces in screen.

    Thank you

    Hello

    Pl.Visit suite of links.

    http://alloracletechnical.blogspot.in/2009/08/how-to-find-DFF-name.html
    How to find the name of de FACTO Standard in oracle apps

    HTH
    Sanjay

  • How to find the component of specific form of CJP

    Hello, all.
    For example, we are looking for how to find any component shape of CJP.
    While in CCP, we tried the following

    DrawnPanel parent = (DrawnPanel) this.getParent ();
    Component components [] = parent.Components ();
    Component;
    for (int i = 0; i < components.length; i ++)
    {
    element components =;
    .................
    component.getName (); Returns the names of internal forms such as TextItem41...
    component.getProperty (ID.NAME); Returns the instance of the class well, which is not very useful.
    }

    Our question how do I find the specific form of CCP component? Where it is possible to see the data in the forms of the component as a block name, Type, name, etc.
    Best regards
    Yuri.

    Edited by: ygauchma January 6, 2011 04:54

    Unfortunately, the name of the element Forms (block.item) is not passed with the method setName() in the underlying Java component, so that you are unable to establish direct correspondence :(

    I asked to the what new features would you like to see on Oracle Forms? on "what do you want in the next version' if they can do this very simple thing.

    François

  • How to find the difference between standard edition and standard edition one

    How to find the difference between oracle database standard edition and standard edition one 64 bit

    (a) using sql
    (b) using the configuration/installation files

    How to find the difference between oracle database standard edition and standard edition one 64 bit

    (a) using sql

    Select * the option of $ v;

    (b) using the configuration/installation files

    opatch lsinventory-details

  • How to find the position of the VI icon currently run on the block diagram of the appellant

    Dear forum,

    I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.

    My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )

    My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...

    It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...

    Kind regards

    cpschnuffel


  • How to find the function to remove the ink level

    Can someone please tell me how to find the function "for the removal of the ink level window" I need know when I use no to factory ink cartridges. I have Windows XP, but this is probably not important.

    Hi Laura,

    Find things such as ink levels is a function of the printer driver.

    This is provided by the manufacturer of the printer, and they are the best resource on the operation of their particular drivers.  Therefore, it is best to ask the manufacturer of the printer for advice on this issue.

    Sometimes, there is an icon in the taskbar that you can get this information.  Yet once, it is a function of the driver and the printer software.

    For reference:

    Check on a printer ink levels

    http://Windows.Microsoft.com/en-us/Windows-Vista/check-ink-levels-on-a-printer

    How can I check my ink or toner levels?

    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-change-my-ink-or-toner-levels

  • What is the last level of patch bundle for x 3-2 exadata machine? How to find the doc?

    We have a x 3-2 exadata machine. I have a question: what is the last level of patch bundle for x 3-2 exadata machine? How to find the doc?

    Thanks in advance.

    Check note id 888828.1

    It has all the information you need.

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • How to find the current MovieClip

    Hello

    I create a flash file to display the products.

    Images and Product Details are stored in the XML file.

    Is what I'm trying to create something similar to the banner on http://www.gainfeeds.com/home

    Add to this is that products are going to be right scroll to the left automatically if there is no user interaction, and produced at the Center will remain highlighted.

    I created a long strip of coverage of products with a mask, the long strip continues to move give a scroll effect.

    Now my question is how to find the product that is currently at the center of the mask?


    Thank you.

    Alok Jain

    No there is no default name assigned to them.

    If you take the parent video clip and with for you apply a getChildNum() method, do not exactly know the syntax, you can take the children of the parent in sales responsibilities. 0,1,2,3,4,... etc.

    But this isn't something that will help a lot because you don't know what this number is.

    For example, when you create the child movieclips, xml-based, I assume you are using a statement. So in this statement when creating each movieClip, fi do you something like "var m:MovieClip = new MovieClip();"also do the following"$m.name ="mc"+ i". ""

    You want to do this because the name "m" is valid only as long as the scope of the valid function is. Once the training starts again you loose any reference to the old "m" and a new one is created. So for future reference the movieClips outside the function that creates, you name them.

    After that you can call from anywhere (given that you set the path to access the parent corectly) like this: "parentMovieClip.getChildByName("m3")" If you want to target a third, or using any name you give in the creation of statement.

  • How to find the number of users connected to the database of the level operating system (Linux)

    Hi all

    Could someone knows how to find the number of users connected to the database without connection with sql * more

    y at - it a command to find?

    example, we have 10 databases in a server, how to find the number of users connected to the special data base without connecting to database(v$session)?

    the Oracle version:-10g, 11g
    Operating system:-OEL4, OEL5, AIX, Solaris

    any help will be appreciated.

    Thanks in advance.

    Thank you.

    Kind regards
    Rajesh.

    but you can say total number of connection with the above given the command? It would also be useful to know.

    See you soon,.
    LKM

  • How to find the size of the virtual server?

    Hello

    We intend to pass our applications 4 virtual servers has 2 physical servers. In this process, we need to identify the size of the current virtual servers to use as a starting point to configure or add the size in physical server. can anyone provide information on whats stats to be noticed and how to find the size of the current virtual servers?

    Thank you

    Hi Sekhar, there.

    in general, it is a fairly complex task if you want to size the new platform correctly, i.e. not to oversize it and have very low use below, i.e. spend too much on equipment.

    In fact, it's the first thing to consider the level of use of the new platform. Most likely your organization (HW and infrastructure) has targets to a minimum. optimal and maximum usage levels.

    In the case where you do not have this as a starting point, and then you continue with load average and the current peak (CPU, RAM, NW). To these basic lines, you can use the statistics of WLS Admin Console, where the use of CPU and memory statistics are presented since the server was last started. For more detailed statistics, you can use WLDF to capture measures key at regular intervals, and then base your analysis of these data.

    Finally and above all, the size of FS, but I've seen some comments above related to the size of the FS.

    HTH,

    A.

  • How to find the right server to use windowsmail to send and receive e-mails?

    How to find the right server to use windowsmail to send and receive e-mails?

    Who is your current e-mail server? (Which is after the @ in your address).
     
  • OBIEE 11 g: how to find the 2nd Friday of the month

    Hello

    How to find the 2nd Friday of the month using the current date in obiee 11g.

    Thanks in advance.

    Kind regards

    MIT.

    Hey MIT,

    You can try with something like this:

    TIMESTAMPADD (SQL_TSI_DAY, TIMESTAMPADD (7 + 6-DAYOFWEEK (TIMESTAMPADD (SQL_TSI_DAY, 1-DAYOFMONTH (CURRENT_DATE), CURRENT_DATE))), (SQL_TSI_DAY, 1-DAYOFMONTH (CURRENT_DATE), CURRENT_DATE))

    It can still be improved to probably avoid transformations 1-2, but at least he does.

    You will need to check what return DAYOFWEEK in your environment for Friday (in mine Friday = 6) as if she does not return to Friday 6, you will need to adjust the formula.

    The idea is to find what day is the first day of the month, since then visit the first Friday (or just stay there if the first day is a Friday). This is done by the DAYOFWEEK 6 (first day of the month).

    And now, you just add more 7 days, so that's why there is a 7 + 6 - DAYOFWEEK (first day of the month) to make it easier to read and understand (instead of 13-...).

Maybe you are looking for

  • keyboard shortcut to export pictures does not work

    Not much but foolishly irritating. I'm looking through photos and sometimes choose to export. I press Command + Shift + E according to the menu item. Sometimes it works, sometimes it doesn't.

  • How to send large video files from my iPad

    How to send large video files from my iPad

  • Qosmio G30-194 support the sata2?

    Hi all I have a laptop Qosmio G30-194. I would buy an Intel ssd, but for the ssd SATA 2 must support. Because just SATA 300 when the ssd running at good speed. I mean 250 MB/s read. The SATA 1 only works max.150MB/s.So my question is my laptops SATA2

  • Call a malfunction

    I noticed while my Moto X (Gen 1) is on the vibration mode and at the same time if I'm listening to music using headphones I encounter a bug or a problem in the phone. The bug is like right now (phone in vibrate mode + music) if I get a phone call wi

  • How to configure an ip address reversed in exchange server 2003

    some my users have rebounded for them because there is no Ip address configuration reversed in Exchange for mail. Is there a step by step set up?