Oracle 10g key combination to call form trigger

Hi everyone,
I need to fire the KEY-DUPREC trigger as I click on the key combination Shift+P therefore; I added the following line of code in the frmweb.res file.
80 : 1 : "Shift+P" : 64 : "Duplicate Record"
It worked iff no error was raised. So, if I have a raise form trigger failure in the KEY-DUPREC trigger, a capital P will appear in the text field that called the trigger.
Can you please suggest a solution for preventing the capital P from appearing in the text field if a raise trigger failure existed in the KEY-DUPREC.
Thanks in advance
Lana

I don't know if there is a solution, but it sounds to me like a very bad idea to use Shift-P for duplicate_record. This means that you will never be able to input a capital letter P in any text field.

Similar Messages

  • Oracle 10g express edition can support forms 6i & reports

    I have installed oracle 10g express edition and installed forms 6i. while connecting forms 6i into ora 10g express edition it is not connecting in windown xp platform.
    It is showing only "dont send error". I want to know oracle 10g express edition can support forms & reports.
    Please give me solution.
    Thanks
    Govindarajan

    this is from metalink :(https://metalink.oracle.com/metalink/plsql/f?p=140:1:8190633972492825) for windows 2003
    Application Tier Certifications
    OS      Product      Server      Status      Addtl.      Info.      Components      Other      Issues
    2003      6.0.8.26.0 Patch 17      9.2      Desupported      Yes      Yes      N/A      N/A
    2003      6.0.8.26.0 Patch 17      10g      Desupported      Yes      Yes      N/A      N/ASeems you are right, but if you filter only certified version result is NONE!
    And anther link is prooving that:
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:8190633972492825::::p27_id,p27_show_header,p27_show_help:609971.992,1,1
    Nice start to read is:
    http://www.oracle.com/technology/products/forms/htdocs/FormsSOD.html

  • Can I call host file ( Unix Shell script ) from Oracle 10g trigger

    Hi,
    I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
    thanks & regards
    parag

    user12009546 wrote:
    Hi,
    I am new to Oracle 10g. Can I call host file ( unix shell script ) from Oracle 10g trigger ?. I know it is possible. Pl explain me with small example
    thanks & regards
    paragIf you are in 10g, you can simple call shell script from DBMS_SCHEDULER:
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'TEST_SCRIPT',
    job_type => 'EXECUTABLE',
    job_action => 'PATH_OF_YOUR_SCRIPT',
    start_date => SYSDATE,
    repeat_interval => 'FREQ=MINUTELY; INTERVAL=1',
    enabled => TRUE,
    comments => 'Shell script from Oracle'
    END;
    /

  • OracleAS 10g Installation Problem on Windows2000

    I install OracleAS 10g for “Business Intelligence et Forms”
    While demanding to register for Oracle Internet Directory,
    I seize:
    host: liu-gwej0o37upx (it’s my machine’s name in that I install Oracle9i Server)
    port : 389
    then this is a message of error that the host and port art not correct.
    So I check the connection to Oracle directory manager. I have a problem’s connection with a massage: server liu-gwej0o37upx is not started. But I’m sure that my server is started.
    Thanks for someone to help me to resovle this problem
    florent

    anyone has clue

  • Oracle 10g query rows to column transpose

    In oracle 10g I have table called LoginUser
    Select * from LoginUser where Day = '01-Dec-2012'
    will give me the below result
    Day, Name, Country
    1-Dec-12 , John, UK
    1-Dec12 , Cate, US
    1-Dec-12 , Prakash, India
    1-Dec-12 ,Juli, Pak
    But I want result as below
    Day, Name1, Country1, Name2, Country2, Name3, Country3, Name4, Country4
    1-Dec-12, John, UK, Cate, US, Prakash, India, Juli, Pak
    Please help
    Edited by: 975340 on Dec 6, 2012 1:48 AM
    Edited by: 975340 on Dec 6, 2012 1:50 AM

    Refer to below thread
    Re: Multiple rows into a single line in 'Single Column Table'

  • Problem with XML doc inserting into oracle 10g

    Hi Guys, I have some knowledge in oracle 10g.
    We are doing an application, when we were trying to insert XML document (I was trying to insert XML as un-structured way.) into oracle 10g as a datatype called XMLTYPE column.
    My XML is having namespace attributes(Target namespaces) in that. So when i was trying to insert that into database , it is giving some error ,and not letting me to push that into database.
    So Can any body please help me in this. My constraint is that I have to insert the document as un-structured way.
    You help would be appriciated.
    Vish
    Message was edited by:
    user567405
    Message was edited by:
    user567405
    Message was edited by:
    user567405
    Message was edited by:
    user567405
    Message was edited by:
    user567405

    , it is giving some error Hmmm, six attempts and you still didn't manage to tell us what the actuall error message and number was. Oracle has thousands of error messages. If you would like us to help you, make it easy for us to figure out what's going on. Don't make us guess.
    Regards, APC

  • Which oracle 10g to be needed

    HI,
    I need to install oracle 10g software on linux server which is running on mainframe hardware
    Here is the detials
    [oracle@rhel5eis oracle10g]$ uname -a
    Linux rhel5eis.clayton.csc.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:58 EDT 2008 s390x s390x s390x GNU/Linux
    Please suggest me which oracle 10g need to be downloaded form oracle site.
    RR

    Original Poster: Please close this thread as answered as you have opened a different thread related to this.... which is fair enough as you have identified a more specific problem:
    see: Need Oracle 10gR2 on RHEL 5 on zLinux (s390x) software

  • Problem calling a form from another form in oracle 10g

    hi,
    i have created A basic STUDENT form with all fields and the STUDENT/COURSES master/detail form .
    I am trying to place to button on the STUDENT form that when pressed, will call the STUDENT/COURSES form and automatically query the COURSES for the employee being viewed on the STUDENT form.
    here is the code i used
    DECLARE
         pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) then
              Destroy_Parameter_list (pl_id);
         end if;
         pl_id := create_parameter_list ('tmpdata');
         add_parameter (pl_id, 'students_id',text_parameter, :s_id);
         run_product (forms, 'C:resubmission\stucourse.fmb', synchronous, runtime,
         filesystem, pl_id, null);
    end;
    although it successfully compiled,
    when i press the button on the form it is giving me
    frm-92101 : there was a failure in the forms sever during start up...
    i have tried everything i can think off, am fairly new to this
    please any assistance will be appreciated. am using oracle 10g
    thanks in advance.

    Ammad is right, in order to pass a parameter to another Form, the Form you call must have a corresponding parameter. In other words, if you go to the Parameters node of the Object Navigator you need to add a parameter called "STUDENTID" and set the data type and precision of the parameter to match the data you will pass to this parameter.
    Once you have this parameter in your called form, you will have to write code in the called form to use the value of the parameter. This code is typically in the When-New-Form-Instance (WNFI) trigger, but that all depends on your requirements. In your example, this seems the appropriate trigger as your intent is to pass the Student ID and query any Courses the Student is enrolled in. Your WNFI trigger needs to check if there is a value in the Student_ID parameter and then set the default where clause of your COURSES datablock and execute a query on the block. For example:
    /* Sample WNFI trigger */
    /* This example "ASSUMES" your courses block is called COURSES */
    BEGIN
       IF ( :parameter.STUDENT_ID IS NOT NULL ) THEN
          Set_Block_Property('COURSES', OneTime_W.here, 'STUDENT_ID = :Parameter.Student_ID');
          Execute_Query;
       END IF;
    END;
    Note: I had to put a period into the "OneTimeW.here" statement in order to get the Editor to accept my post.  Please remove the period if you use this sample code.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on May 24, 2010 8:23 AM
    Edited by: CraigB on May 24, 2010 8:23 AM
    Edited by: CraigB on May 24, 2010 8:26 AM

  • Calling report on oracle 10g forms

    hi to all,
    how can call oracle10g reports to oracle 10g forms? using a parameter..e.g: employee id.
    Please i need a sample code...
    note : report will not run on internet explorer.
    thanks.
    Edited by: baguhan on Jul 1, 2009 6:06 AM

    Hai Baguhan,
    Try this.
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
         PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
         DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
         ADD_PARAMETER(PL_ID, 'EMP_ID', TEXT_PARAMETER, <value to EMPID parameter>);
    --FOLLOWING PARAMETERS ARE MANDATORY PARAMETERS TO SET REPORT OBJECT
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, '<report_full_path>');
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
              SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, <report_server_name>);
              Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
              Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH(<report_server_name>) + 2, LENGTH(Str_Report_Server_Job));
              Str_URL       := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=' || <report_server_name>;
              WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
              DESTROY_PARAMETER_LIST(PL_ID);
      END IF;
    END;And add a report object in the form. ( in the above code, its REPORT_OBJ ).
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • CREATING KEY & DESCRIPTIVE FLEXFIELDS IN FORMS 10G

    HELLO EVERYONE,
    kINDLY HELP ME CREATING KEY & DESCRIPTIVE FLEXFIELDS IN FORMS 10G.STEP BY STEP PROCEDURE IN FORMS 10 G WILL HELP ME REALLY.
    REGARDS,
    Srini.

    A FLEXFIELD IS A FIELD MADE UP OF SUB–FIELDS, OR SEGMENTS. THERE ARE TWO TYPES OF FLEXFIELDS: KEY FLEXFIELDS AND DESCRIPTIVE FLEXFIELDS.
    KEY FLEXFIELDS:
              I HAVE A COLUMN CALLED ADDRESS(SINGLE FIELD),WHEN I KEEP MY CURSOR ON THIS FIELD AND PRESS ENTER,IT POP'S UP A WINDOW WITH ALL NECESSARY FIELDS CORRESPONDING TO ADDRESS LIKE,DOOR-NO.,STREET NAME,CITY ETC.... WITH AN OK & CANCEL BUTTON.
    ONCE I GIVE THE VALUES ACCORDINGLY IN THE ADDRESS FIELD AND CLICK OK BUTTON IT STORES ALL THE VALUES IN WINDOW TO THE ADDRESS FIELD.
    DESCRIPTIVE FLEXFIELDS:
    DESCRIPTIVE FLEXFIELDS LETS YOU ADD ADDITIONAL FIELDS TO THE FORM IN ORDER TO TRACK ADDITIONAL INFORMATION NEEDED BY THE BUSINESS, THAT WOULD NOT BE CAPTURED BY THE STANDARD FORM. DESCRIPTIVE FLEXFIELDS CAN BE CONTEXT SENSITIVE, WHERE THE INFORMATION YOUR APPLICATION STORES DEPENDS ON OTHER VALUES YOUR USERS ENTER IN OTHER PARTS OF THE FORM.
    A DESCRIPTIVE FLEXFIELD APPEARS ON A FORM AS A SINGLE–CHARACTER, UNNAMED FIELD ENCLOSED IN SQUARE BRACKETS [ ]. EACH FIELD OR SEGMENT IN A DESCRIPTIVE FLEXFIELD HAS A PROMPT AND CAN HAVE A SET OF VALID VALUES
    THIS CONCEPT IS USED FREQUENTLY IN ORACLE APPLICATIONS, WHICH I WANT TO IMPLEMENT IN FORMS 10G.I BELIEVE WITH YOUR EXPERTISE I WILL BE ABLE TO AHIEVE IT.
    REGARDS ,
    SRINI.

  • Exit the Browser window while closing the form in ORACLE 10g

    Hai,
    Is it possible to cIose the browser window while closing the form in Oracle 10g.
    I wrote a code EXIT_FORM in a "WHEN BUTTEN PRESSED" TRIGGER and
    web.show_document('javascript:window.close()','_self'); in "POST-FORM" trigger
    But it only closes the form.
    Please help me with the fast & useful responds.
    Bye

    create a file called close.html with the following code
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    window.close();
    </script>
    </body>
    </html>
    call close.html in post-form like this
    WEB.SHOW_DOCUMENT('/forms90/myhtml/close.html','_self');
    You have to do the directory mapping

  • JDeveloper 10g Creating a new record with trigger sequence primary key

    Hi there, I'm sorry to post this incredibly simple question and I'm sure that someone must have answered this on this forum before but the searching of this site is incredible slow and painful and after 30 mins I can't find help.
    I am using a struts Data Action to create a new record in the database and then being forwarded to an edit page where I can enter the new details. Then when the details are entered I am clicking an update button and returning to a browse screen where I can either commit the change to the database or rollback. Sounds pretty simple but I am really struggling with trying to get the trigger of the number sequence to work properly.
    Ideally I would like to click the create new record button and then the primary key/triggered sequence number is already displayed on the empty form...
    ... but if this is too tricky or not possible then I would like the user to either not enter any value in the key field (which currently causes error - JBO-27014: Attribute PoNo in PO_SYS_MODULE.PoSystemView1 is required) OR the user enters a number and the trigger overwrites this number with the next in the sequence.
    I can enter a new record if I look in the manager console and see the next number in the sequence and then create the record using this number and then click commit twice, as the first time I get the error: JBO-25019: Entity row of key oracle.jbo.Key[154 ] not found in PoSystem. Or if I enter a value 5 times greater than the next in the sequence I have to click the commit button 5 extra times to get the sequence to match the input.
    I hope that this lengthy explanation fills you in on my problem, there must be a simple solution to this and I will be VERY grateful to anyone who can help me.
    Many thanks
    Ben Sayers (clearly a newbie)

    Hi,
    ADF Business Components handles this for you - unless yo prefer doing this manually. In the Entity Object, set the PK attribute's type to DBSequence. Then create a database sequence and use a database trigger to add the sequence value on insert
    Frank

  • Where to place the oracle 10g forms and reports folder in Linux server

    Hi....
    Currently iam migrating a module to oracle 10g.
    All my modules which consists of form folders and report folders are inside a
    folder called PROJECT and placed in C:\ in windows server.
    So when i want to call a form or report i have used path as 'C:\PROJECT\module_name\form_name.fmx';
    Now my client wants his project to be used in LINUX based server.
    Now i want to know where i have to place my Project's form folder and reports folder
    and how i have to call them...
    thanx in advance

    Can you say how can i call reports as u said hardcoding the path while calling report is not a good practice.I agree with Dhiraj Madan, hardcoding paths is a very bad idea, your application becomes non-portable.
    For FORMS_PATH you can use default.env, as already said (or <your envfile>.env, if any).
    The same can be done for REPORTS_PATH, by using reports.sh script, in $ORACLE_HOME/bin.

  • In Oracle 10g, How to call a report since an option of a menu (*.mmb)

    Hello
    In Oracle 10g, working since the browser, how to call a report since an option of a menu (*.mmb)? I know to call it in a form (*.fmb), therefore uses the fields bean area and the objects reports, but in a menu there is not neither canvas, neither fields, neither reports. Someone would be able to help me with that?
    Kisses. Thanks.
    Annie

    I understand that you had sent me everything,
    I sent for example to you that, no to insert it in your item's menu code,
    then,You have to modify it.
    ... but
    a menu (mmb) doesn't have to define him reports
    objects... then, what parameter I send to the
    function FIND_REPORT_OBJECT:
    This is not true
    Try out this, and then let me know
    You do not need to have a report object defined in the menu. It is enough to have it in forms.
    I tried to call a report from the menu in the folowing way:
    I created a menu and wrote the following code in one item:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := find_report_object('report2');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'reportserver1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'C:\p.pdf');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;Then I created a form with a report object called report2.
    I attached the menu to this form and while running this form, I was able to successfully run the report.
    In your case, you have to make sure that you have the dummy report object in each form that will have this attached menu.
    You can replace by the actual report name as you have written in the code.
    Regards

  • Oracle 10g trigger to pass variable to xmltype.existsnode() function

    Hi all,
    Could anyone please help me on this? It is kind of urgent.
    I created a trigger below, it compiled successfully, but when I tried to insert a xml document into oracle 10g db, I got error message says:
    550- Error Response
    ORA-00604: error occurred at recursive SQL level 1
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "CONTENTDB.VALIDATE_LINK", line 11
    ORA-04088: error during execution of trigger 'CONTENTDB.VALIDATE_LINK'
    550 End Error Response
    My trigger is:
    CREATE OR REPLACE TRIGGER VALIDATE_LINK
    BEFORE insert on TABLE_LINK
    FOR each row
    DECLARE
    v_key VARCHAR2(1000);
    v_count NUMBER(5);
    xmldata XMLType;
    begin
    xmldata := :new.sys_nc_rowinfo$;
    IF xmldata.existsnode('/link/key') = 1 THEN
    v_key := xmldata.extract('/link/@key').getStringVal();
    select count(*) into v_count from table_link WHERE (existsNode(object_value,'/link[key=v_key]') = 1 )
    and (existsNode(object_value,'/link/publishingElements[TestingFlag="true"]') = 1);
    if (v_count >= 1) then
    raise_application_error (-20001, 'TestingFlag can only have one true value.');
    end if;
    end if;
    end;
    I have questions regarding above trigger:
    1) it seems extract() doesn't work in statement below: v_key := xmldata.extract('/link/@key').getStringVal();
    2) can I pass a variable v_key into xmltype.existsnode() function? if yes, what is the right format to do so?
    Thanks a lot.
    Honson

    Hi Mark,
    Thanks for your comments, I have added checking for xmltype object is not null logic. and my initial problem was fixed, the only last problem I am having now is xmltype.extract().
    CREATE OR REPLACE TRIGGER VALIDATE_LINK
    BEFORE insert on table_LINK
    FOR each row
    DECLARE
    v_key VARCHAR2(4000);
    v_count NUMBER(5);
    xmldata XMLType;
    v_tmp VARCHAR2(4000);
    begin
    xmldata := :new.sys_nc_rowinfo$;
    if (xmldata is not null) then
    IF xmldata.existsnode('/link/key') = 1 THEN
    v_key := xmldata.extract('/link/key').getStringVal();
    v_tmp := '/link[key=' || v_key || ']';
    select count(*) into v_count from cibc_link WHERE (existsNode(object_value,v_tmp) = 1 )
    and (existsNode(object_value,'/link/publishingElements[TestingFlag="true"]') = 1);
    if (v_count >= 1) then
    raise_application_error (-20001, 'TestingFlag can only have one true value.');
    end if;
    end if;
    end if;
    end;
    I am expecting this statement:
    v_key := xmldata.extract('/link/key').getStringVal();
    return v_key := content.link.viewPrintableVISACreditCard
    but now it always returns like this:
    v_key := <key>content.link.viewPrintableVISACreditCard</key>
    I don't want the xml tag <key></key> returned by extract().getStringVal() function.
    Could you or anyone please help?
    Thanks.
    Honson

Maybe you are looking for

  • Ical on Intel Mac doesn't always display my schedule

    Happily and carefully migrating from my old 12" powerbook to new Core Duo 15". Manually migrating since I found the first shot of migration was a complete mess. Everything super. Applications in, documents over, happy clam day. Okay, I synched with m

  • Error message when opening Network panel

    On bootup, my iMac 800mHz (gooseneck) 17" flat panel (OS 10.4.11) is not automatically logging into my home AE network. So, I go to System Preferences and open the Network panel. Immediately, a drop-down error window appears saying "Your network sett

  • Solaris 10 11/06 SXCR booting from USB-DVDROM is OK!!

    Hi!! I confirm that SXCR 11/06 is able to installing from a USB-DVDROM!! Yesterday I can install Solaris 10 in my Thinkpad X40 with no problems. I have posted this because many people is asking for install with this method in other forums Cheers!

  • SCM 2007 Post Install Steps - Questions

    Hello, I'm installing SCM 2007 and have a questions on a coulpe of the post steps. 1. 5.18 BI-Specific Post-Installation Steps (pg 107 of install guide).  Has anyone done these steps and can you explain them to me?  It looks like it's wanting me to d

  • DESFORMAT=SPREADSHEET

    Hi, I have a report which can give more than 36000 rows. The output has to be in Excel format. So, I tried DESFORMAT=SPREADSHEET. It works. But, when the result is more than 36000 rows, it just freezes. Is there a way to specify ReportBuilder to send