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.

Tags: Oracle Development

Similar Questions

  • 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 level of oracle objects dependencies...

    Hi,
    
    in oracle if we have to find the dependencies we use "all_dependencies", how ever if
    we have to find level of dependencies then how should we go about it,
    
    example as shown below;
    
    master object : tablel1
    view 1:            v_test using table1
    
    view 2:            v_test2 using v_test
    
    view 3:            v_test3 using v_test2:
    
    
    so in this case
    
    the master table1 is having level of dependency 0
    
    v_test is having level of dependency 1
    
    v_test2 is having level of dependency 2
    
    v_test3 is having level of dependency 3
    
    and so on....
    
    i hope i am clear in my question,
    
    plz assist,
    
    regards
    uv
    Published by: W Nicloei on October 7, 2008 19:53

    You can use a hierarchical query on the USER_ / ALL_ / table of DBA_DEPENDENCIES, i.e.

    select level, a.*
      from dba_dependencies a
     start with referenced_name = 'DEPT'
            and owner = 'SCOTT'
    connect by nocycle prior owner = referenced_owner
                   and prior name = referenced_name
    order siblings by name
    

    Justin

  • 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 can I use SQL to check the Version of Oracle Forms and object of the request?

    Hi all:

    How can I use SQL to check the Version of Oracle Forms and object of the request?





    Concerning
    Terry

    Terry,

    See the following threads/docs for the version of forms.

    How to find the developer version
    Re: How to find the developer version

    Note: 466890.1 - Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i
    Note: 392793.1 - how to get Forms Oracle Oracle Applications 11i Command Line Version
    Note: 468311.1 - Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version

    What purpose are you talking?

    Thank you
    Hussein

  • R12 - how to find the exact form, report, and Web Server Version

    Hi DBAs,


    How can I find the version of web server, report and exact form in environments of R12.

    Thank you
    -Samar-

    If you're on 11i, pl see MOS Doc 466890.1 (Script to find the Apache, Java, Jinitiator, version of forms and details of the JVM for Oracle E-Business Suite 11i)

    For R12, see Doc 468311.1 (Script to find the Apache, Java, JRE, Forms for Oracle E-Business Suite R12 version)

    HTH
    Srini

  • says that there is an update of firmware available for my 3 t time capsule. I get "an error occurred when downloading". How to find the problem?

    I said that there is an update of the firmware available for my 3 t time capsule. I get the message "an error occurred when downloading". How to find the problem? I have elcapitan 10.11.6 and capsule version 7.7.3

    Try temporarily, connect your MacBook Pro to your Time Capsule using an Ethernet connection... If not already, then try downloading the firmware again.

  • I tried to install since 11/12/09 important update KB976098 and continue to get error code 8E5E03FB unknown error. I tried to find the error code, but can't find it. How can I download and install this update?

    I tried to install since 11/12/09 important update KB976098 and continue to get error code 8E5E03FB unknown error.  I tried to find the error code, but can't find it.  How can I download and install this update?

    Quote your full version of Windows (for example, WinXP SP3;) Vista SP1; Vista 64 - bit SP2; Win7; Win7 64 bit) when you post in a forum or a newsgroup. Please do it in your next reply.

    Short story: If you do NOT live in one of the zones listed in http://support.microsoft.com/kb/976098, you really need not to install this security update not any way so you can hide it just ("don't show me this update"). ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to remove the list item empty forms of oracle?

    Hello

    How to remove the list item EMPTY forms of oracle?

    I create two list items

    (1) basic

    (2) advanced

    But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?

    He has named REQUIRED = NO item property

    If you set YES and then it does not show. but you must give an initial value.

    Hamid

  • How to find the name of the Oracle database server?

    People,

    Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.

    Host name is "mylinux". Name of the database instance is PT853.

    I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:

    Export ORACLE_HOME = / home/user/OracleDB_Home

    Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.


    My question is:

    How to find the name of the database server Oracle with Oracle Linux 5 OS?


    Thank you.

    You must learn the basic of database Oracle.

    Please don't regard it not same as SQL server in terms of configuration.

    You never specify the database server name in Oracle.

    You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.

    There was nothing called specify the name of the Oracle database from an oracle database server.

    Concerning

    Anurag.

  • How to find the position of the special charater such as [@% in oracle]

    How to find the position of the special charater such as [@% in oracle in the sql query]

    Exp: -.

    SELECT Regexp_instr (['test] "," [!]) » #$% & * ; <> = @\ ^ _'{|} ~]')

    DOUBLE;

    Hello

    SELECT REGEXP_INSTR (' TSA @', "[@] '")
    FROM DUAL;

    SELECT REGEXP_INSTR ('asd [', ' [[]] "])
    FROM DUAL;

    SELECT REGEXP_INSTR ('asd %', '[%]')
    FROM DUAL;

  • How to find the ANGLE b/w two edges in Oracle Spatial

    How to find the ANGLE b/w two edges on Oracle Spatial. I have two edge connected on the same node. I wanted to know the angle betwwn them. Can someone help me?

    Ok. My first example is an approximation. Further you get North or South of the Ecuador, gets the more vague.
    This one should do the trick with some degree of precision.

    declare
      PI constant number := 3.14159265358979;
      g1 sdo_geometry;
      g2 sdo_geometry;
      g3 sdo_geometry;
    
      angle1 number;
      angle2 number;
    
      FUNCTION POINT(P_LAT  IN number
                    ,P_LONG IN number)
        RETURN MDSYS.SDO_GEOMETRY IS
      BEGIN
        -- we load both the ordinate array and the point type because some spatial functions show inconsistent behavior
        -- it is not important for this example, just something to be aware of
        return(mdsys.sdo_geometry(2001,8307 -- WGS84
                                 ,mdsys.sdo_point_type(p_long,p_lat,null)
                                                      ,mdsys.sdo_elem_info_array(1,2,1)
                                                      ,mdsys.sdo_ordinate_array(p_long,p_lat)));
      END;
    
    begin
    
      -- For the example, project in WGS84
      -- g1,g2,g3 could also come straight out of the database as sdo_geometry
      g1 := point(50, 7);          -- Point A
      g2 := point(51, 7);          -- Point B
      g3 := point(50,10);          -- Point C
    
      angle1 := atan2(g2.sdo_point.x - g1.sdo_point.x,
                      g2.sdo_point.y - g1.sdo_point.y);
      angle2 := atan2(g3.sdo_point.x - g1.sdo_point.x,
                      g3.sdo_point.y - g1.sdo_point.y);
    
      -- depending on rotation and where we are on the planet, adjustments may be needed
      if angle1 < 0      then angle1 := angle1 + 2 * PI; end if;
      if angle2 < 0      then angle2 := angle2 + 2 * PI; end if;
      if angle2 < angle1 then angle2 := angle2 + 2 * PI; end if;
    
      dbms_output.put_line('Angle between the lines A-B and A-C: '||
                           round(sdo_util.convert_unit(angle2-angle1,'Radian','Degree'),1));
    end;
    
    Angle between the lines A-B and A-C: 90
    
  • How to find the ID of a submit button in oracle seeded pages

    Hello

    I tried downloading the page locally and I try to open using jdev, but "oa:popup" is not valid message is coming.

    So I can not open this page so not able to see the ID of the button.

    Can you tell me how to find the ID in another way.

    Hello

    If your cannot open page in jdev, then copy the page (xml file) from the server and save to anywhere on your local computer, which opened in Notepad, here you can find the ID of your button required. However, the norm is to open the page in jdev
    Haroon.

Maybe you are looking for