Message prompt in oracle form trigger

Hi all,
i'm using oracle form builder here i put button call 'INSERT' and when i pres this button records are insert into table and message want to prompt. if there is alredy records in table then error message want prompt. here i'm usin this trigger 'when prees button' event insert is happen but message was not prompt.      
if     :GLOBAL.mode = 'INSERT' then
          Insert into VIRT_HR_RPT_GLOBAL_RESPONSIBLE
          values (:GLOBAL_RESPONSIBLE.PERSON_ID,:GLOBAL_RESPONSIBLE.EMPLOYEE_NUMBER,:GLOBAL_RESPONSIBLE.PARTY_ID,:GLOBAL_RESPONSIBLE.FULL_NAME,:GLOBAL_RESPONSIBLE.title,
message('Succesfully Inserted');
     commit;
          else
     message('Records already in Database');
          end if;
Thnxs & Regards,
Mack,

Hi Mack,
Please use the below code instead of using
Message function in your code to raise a message.
FND_MESSAGE.set_string('Invalid value');
FND_MESSAGE.error;
after verifying the solution please close this post as answered. Thanks in Advance.
Regards,
Yuvaraj.C

Similar Messages

  • HARD CODED EMAIL MESSAGES FROM AN ORACLE FORM

    I have SMTP code in a WHEN-BUTTON-PRESSED TRIGGER which will preformat the recipient line, the courtesy copy line, the subject line, and a hard coded email message and then send the email to another co-worker inhouse in our organization whenever a user would press a button on an ORACLE FORM.
    Would this same code be useful if the user wanted to send an email to another user in another organization millions of miles away? Do I have to be concerned about how the email system is set up in the other organization and code the program specifically for that particular organization? Here is the code that I am using.
    PROCEDURE SEND_INFO
    Sender varchar2 := :SUPPLY_REQUEST.NAME,
    Recipient varchar2 := :SUPPLY_REQUEST.SENDNAME,
    Recipient4 varchar2 := :SUPPLY_REQUEST.OTHNAME4,
    Ccrecipient varchar2 := ' ',
    Subject varchar2 := 'TODAY IS ANOTHER DAY OF YOUR LIFE',
    Message varchar2 := 'IS THIS IS A GOOD DAY ?'
    ) IS
    crlf Varchar2(2) := CHR(13)||CHR(10);
    connection utl_smtp.connection;
    Mailhost Varchar2(30) := 'erecemh1-bh.erec.army.mil';
    header VARCHAR2(1000);
    BEGIN
    connection := utl_SMTP.open_connection(mailhost);
    header := 'Date: '||TO_CHAR(NEW_TIME(SYSDATE,'EST','GMT'),'fm DD MON YY HH24:MI:SS AM')||crlf||
    'From: '||sender||' '||crlf||
    'To: '||recipient||','||recipient4||crlf||
    'CC: '||ccrecipient||crlf||
    'Subject: '||subject;
    utl_SMTP.helo(connection, mailhost);
    utl_SMTP.mail(connection, sender);
    utl_SMTP.rcpt(connection, recipient);
    utl_SMTP.rcpt(connection, recipient4);
    utl_SMTP.open_data(connection);
    utl_SMTP.write_data(connection, header||crlf);
    utl_SMTP.write_data(connection, crlf ||message|| crlf);
    utl_SMTP.close_data(connection);
    utl_SMTP.quit(connection);
    EXCEPTION
    WHEN UTL_SMTP.INVALID_OPERATION THEN
    DBMS_OUTPUT.PUT_LINE('INVALID OPERATION IN SMTP TRANSACTION.');
    WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    DBMS_OUTPUT.PUT_LINE('tEMPORARY PROBLEMS WITH SENDING EMAIL - TRY AGAIN LATER.');
    WHEN UTL_SMTP.PERMANENT_ERROR THEN
    DBMS_OUTPUT.PUT_LINE('ERRORS IN CODE FOR SMTP TRANSACTION');
    END;
    In another step of the program, I have initialized the variables:
    SUPPLY_REQUEST.NAME to '[email protected]'
    SUPPLY_REQUEST.OTHNAME4 to '[email protected]'
    SUPPLY_REQUEST.SENDNAME to '[email protected]'

    Would this same code be useful if the user wanted to send an email to another user in another organization millions of miles away?
    Depends on your mail server. If your mail server allows email to be sent out of your organization, then yes, you can email to another organization millions of miles away (or further).
    Do I have to be concerned about how the email system is set up in the other organization
    Generally, no. However they can set up their system to block emails coming from a certain address.
    and code the program specifically for that particular organization?
    Nope, just make sure you have their correct email address.

  • Oracle Forms Trigger firing hierarchy flowchart

    Greetings,
    In 1994, there was a "Oracle Forms Processing Manual" (Oracle part# A11990-2).
    This book contained the visual representation of Oracle Forms processes showing where each trigger fires.
    Where is this "flow-chart" in documentation available today?
    I need to know the explicit chronological sequence of each trigger firing....
    Pre-Form trigger fires first...then the When-New-Form-Instance....etc
    Thank you for your support!

    Sorry.
    Let me clarify.
    Need to know where it is defined about which trigger fires before or after which other trigger….
    The whole sequence…every trigger…
    Example:
    Document must show stuff like ON-COMMIT fires before(or after) POST-DELETE.
    So I am certain that when a delete is initiated by the user, the ON-COMMIT fires before(or after), and so data in the database record is still available(or not available) to the code in the ON_COMMIT trigger.
    This helps me know for certain what really happens, step-by-step, when Forms deletes a record.
    So the document must show a visual representation of the DELETE EVENT.
    This visual representation must explicitly show the ON-COMMIT trigger and the PRE-DELETE trigger and the ON-DELETE trigger and the POST-DELETE trigger…
    Thank you!

  • RE: Calling a Web service from Oracle Forms 11g

    I wonder if anyone could please help with the following
    We have a requirement for a real time communication between Oracles Forms (11g) and SAP over the RR LAN network.
    This would require the need to send info to and receive info from SAP as it will be an on-line validation of a Part from an Oracle FORM to SAP (response less than 1 second).
    What would be the best and easiest way to code this an Oracle FORMS trigger.
    Thanks very much
    Durjoy
    tel 07790 495 626

    Hello,
    <p>Did you read this paper ?</p>
    Francois

  • Oracle forms 6i designer has stopeed working when opening canvas?

    forms 6i
    Hi to all,
    i have facing one problem when opening form canvas.i get the error message like this "oracle forms 6i designer has stopeed working".
    any one help please
    Regards,
    Stevie

    Hi
    no os no db version not enough information ..!
    Pls try to send adequate information Pls& look at the following thread this might help
    connecting form 6i  to oracle database 10G express edition
    Amatu Allah

  • Cannot connect Oracle 10 with Oracle Forms 6i

    Hi,
    I am trying to connect to oracle 10g database (Release 10.1.0.5.0) from Froms 6i (Version 6.0.8.11.3) but no luck.
    As soon as I try to connect to Oracle 10, the forms builder is closing itself down. All I get is the useless windows error message saying that "Oracle Forms Designer has encountered a problem and needs to close."
    It may be that the version of forms I am using doesn't support Oracle 10. Anyone has encountered this and if so knows a workaround for this problem.
    Thanks very much.
    Huseyin

    Try to install
    Forms [32 Bit] Version 6.0.8.23.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    (patch 18)
    Sorry W1zard
    Edited by: Rosario Vigilante on Jan 26, 2009 3:41 PM

  • Error While Compiling Oracle Forms - internal error [60603]

    Hi,
    I'm getting below error message which compiling Oracle Forms in 10g R2, Please help to suggest how can I solve this problem.
    Statement ignored
    PL/SQL ERROR 801 at line 0, column 0
    internal error [60603]
    PL/SQL ERROR 0 at line 50, column 5
    Statement ignored
    PL/SQL ERROR 801 at line 0, column 0
    internal error [60603]
    PL/SQL ERROR 0 at line 66, column 2
    Statement ignored
    PL/SQL ERROR 801 at line 0, column 0
    internal error [60603]
    PL/SQL ERROR 0 at line 72, column 2
    Statement ignored
    PL/SQL ERROR 801 at line 0, column 0
    internal error [60603]
    PL/SQL ERROR 0 at line 85, column 2
    Statement ignored
    PL/SQL ERROR 320 at line 103, column 57
    the declaration of the type of this expression is incomplete or malformed
    PL/SQL ERROR 0 at line 103, column 3
    Statement ignored
    PL/SQL ERROR 320 at line 109, column 31
    the declaration of the type of this expression is incomplete or malformed
    PL/SQL ERROR 0 at line 109, column 2
    Statement ignored
    PL/SQL ERROR 320 at line 110, column 30

    when this error coming, any specific case when you see this?
    Are you trying to call any database program units ?
    try to compile the database program units which you are trying to call in the Forms.

  • OUTLOOK EXPRESS AND ORACLE FORMS

    WITH THIS CODE,
    win_api_shell.winexec('C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\OUTLOOK.EXE')
    I CAN OPEN OUTLOOK EXPRESS FROM AN ORACLE FORM.
    I WANT TO KNOW HOW I CAN MODIFY THIS CODE SO THE PROGRAM GOES INTO OUTLOOK EXPRESS AND OPENS A BLANK NEW MAIL MESSAGE FROM AN ORACLE FORM. ALSO IF THE ABOVE PROBLEM CAN BE TAKEN CARE OF CAN THE 'TO' LINE BE PREPOULATED WITH AN EMAIL ADDRESS FROM AN ORACLE FORM. I KNOW THAT THIS CAN BE DONE WHEN SOMEBODY HAS BEEN LOGGED INTO THE INTERNET. HOW CAN SOMEBODY DO THIS IF THEY ARE NOT LOGGED INTO THE INTERNET?

    This would be nice to know

  • Facing error message oracle.forms.webutil.ole.OleFunctions bean not found.

    hi all,
    I have a 6i form which generate data into excel, I have migrated with in 10g, configure Webutil, attach webutil in form, create object group by webutil.olb, replace all ole2 with Client_ole2.
    there is no problem in compile time but when I run that form and Click on Generate button then it show below message.
    oracle.forms.webutil.ole.OleFunctions bean not found.
    CLIENT_OLE2.create_obj will not work
    please help

    Hi BaiG,
    thanks for your reply, I have done Step 7 successfully and start step 8.
    I was following your step no. 8 (below Step)
    8. Sign Webutil JAR files by running these following commands Make sure Form Builder is Closed
    "C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\DevSuiteHome_1\forms\java\frmwebutil.jar"
    "C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\DevSuiteHome_1\forms\java\jacob.jar"
    But when I do that step on my Dos Prompt then it show below message and run.
    D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome_1\forms\java\frmwebutil.jar
    Generating a self signing certificate for key=webutil2...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    Backing up d:\devsuitehome_1\forms\java\frmwebutil.jar as d:\devsuitehome_1\forms\java\frmwebutil.jar.old...
    1 file(s) copied.
    Signing d:\devsuitehome_1\forms\java\frmwebutil.jar using key=webutil2...
    'jarsigner' is not recognized as an internal or external command,
    operable program or batch file.
    There were warnings or errors while signing the jar. Please review them.
    D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome\forms\java\jacob.jar
    The given jar file d:\devsuitehome\forms\java\jacob.jar does not exist.
    D:\DevSuiteHome_1\forms\webutil>sign_webutil.bat d:\devsuitehome_1\forms\java\jacob.jar
    Generating a self signing certificate for key=webutil2...
    keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> already exists
    There were warnings or errors while generating a self signing certificate. Please review them.
    Backing up d:\devsuitehome_1\forms\java\jacob.jar as d:\devsuitehome_1\forms\java\jacob.jar.old...
    1 file(s) copied.
    Signing d:\devsuitehome_1\forms\java\jacob.jar using key=webutil2...
    'jarsigner' is not recognized as an internal or external command,
    operable program or batch file.
    There were warnings or errors while signing the jar. Please review them.
    Can you please tell me, how can I solve that problem.

  • Avoiding system messages in oracle forms.

    Hi All,
    I'm Working with Oracle forms using oracle form builder in R12. I want to Avoid System message (Save message) so i'm using :system.message_level := 5; but i can't avoid Save message. how can i solve this.
    Thanks & Regards,
    Macks

    You could override on-message trigger and forms will fire this trigger instead of standard message. Whatever you write here will happen. You could suppress given message and let everything else go.

  • Oracle Forms 6.0: Message file\ORANT\DBS\FMCUS.MSB not found

    Hi,
    I have a PC with oracle forms installed on it and recently the operating system was updated from win. 2000 to win. XP. After the update, a particular form could not run. It gave the following message: Message file\ORANT\DBS\FMCUS.MSB not found. What could be the likely course of this?

    Hi,
    That's because Forms6i has a 2nd edition for WinXP and you should apply patchset 13 at least for forms to work on WinXP.
    what's your forms version?????
    I don't know how would it react fors6i on upgraded OS from win2K to WinXP.
    Tony S. Garabedian

  • In which trigger can i use go_item() in oracle forms 6i?

    Hi,
        I have a problem with go_item.
    I tried executing go_item() in triggers like key_next_item, pre_text_item, post_text_item & when_validate_item.
    But none of them seemed to be working.
    I searched for other possibilities in the site, where i found a solution of using trigger ' when_timer_expired ' with ' when_validate_item ' ,
    but when i tried to create trigger, i did not find that trigger (when_timer_expired)  in the list at all.
    I'm using oracle form builder 6i.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.
    A trigger with go_item() must be created when tab is pressed.
    In which trigger can i use go_item() ??
    Thank You.

    from help:
    Restricted Built-in Subprograms
    Restricted Built-ins affect navigation in your form, either external screen navigation, or internal navigation. You can call these Built-ins only from triggers while no internal navigation is occurring.
    Restricted Built-ins cannot be called from the Pre and Post triggers, which fire when Oracle Forms is navigating from object to another.
    Restricted Built-ins can be called from the When triggers that are specific to interface items, such as When-Button-Pressed or When-Checkbox-Changed. Restricted Built-ins can also be called from any of the When-New-"object"-Instance triggers and from key triggers.
    Unrestricted Built-ins do not affect logical or physical navigation and can be called from any trigger.
    The Built-in descriptions include a heading, Built-In Type, that indicates if the Built-in is restricted or unrestricted.

  • DB Trigger firing issue in case of oracle forms session crash

    Hi All,
    Oracle DB version: Oracle Database 10g Release 10.2.0.2.0 - Production
    Oracle Forms version: (Oracle Developer Suite 10g) 10.1.2.0.2 Production
    I am entering some data in the oracle forms and committed the data to database. This form is still open.
    By some reasons i get a error as "FRM-92101: There is error during forms server startup" and the forms session gets crashed.
    When this event happens i wanted to update the records which are inserted before this error occurred. For this purpose i created a BEFORE LOGOFF ON DATABASE trigger (in SYS user) and declared that transaction as autonomous and performed update and then commit.
    But when i get this error in forms runtime session, this trigger doesn't fire and also the records don't get updated.
    If i query to v$session view, the session entry is gone because the forms session is crashed.
    Can anyone please tell me why this trigger don't get fire when oracle forms session gets crashed? Or is there is any other way to run update statement as soon as the forms session gets crashes?
    Thanks.

    Hi,
    please check java runtime console for more issue information.
    Windows:
    SystemControl->Java Plugin Ver XXXX -> Standard -> Check "Show Java Console"
    In Systray, check the console for information about errors in java after the form error.
    Attackwave

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • On text change trigger in oracle forms 9

    I want to simulate on-text-change trigger similar to the one present in java and other programming languages.
    I need this trigger to be invoked when ever we change some text in the textfield.
    Is there any way to do this?
    I used two text fields to compare the last entered and newly typed based on a timer interval of 3secs
    But my problem is Oracle trims the spaces present in the textfield and also highlights the text present in textfield when ever I enter a space....
    Scenario : I want to use this trigger and refresh the search results based on the text present in the textfield.
    Thanks in advance

    To do the kind of thing you are talking about you will need to implment a Java Bean in your form listen for the changes. Take a look at KeyEvent Java Bean or the Oracle Forms PJCs-Java Beans web site for more information and examples.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • [Solved] LXDE missing window borders (or decoratioins, widget?)

    Hello, The LXDE runs fine on my newly built arch for a couple of days, and then I must have done something (e.g. upgraded or uninstalled some packages) and now I can still log into LXDE by using slim login manager or startx command, but none of the a

  • I can't open my pdfs in the normal way

    I can't open a pdf by double clicking on it. I get an error message as follows: "The Document 'Blank page for email.pdf' could not be opened. Acrobat cannot open files in the 'Adobe PDF document' format". This started yesterday after I downloaded a d

  • Publish, deploy, jndi tree

    Hello, I work with Weblogic server 9.2 and Ganymede 3.4. Here are some beginner questions: Why do I, in Ganymede's server tab, publish on the server node instead of on the EAR node? When I publish my EAR I cannot see anything added in the jndi tree o

  • A lot of windows appear, when i watch Altera's html5 trainning lesson, but ie do not

    when i watch Altera's online trainning lesson(the address is http://www.altera.com/customertraining/webex/MemInt_CN/presentation_html5.html), Sometimes, the lesson will pop another webpage to show something(for example, click 5.2.2 or 6.7 when timeli

  • Installation of SAP BO 4.0

    Hi guys, I have to install SAP 4.0 in my client server on top of MES Camstar Intelligence. The client has give me two keys: 1- SAP BusinessObjects Enterprise for Query, Reporting and Analysis for NUL-5 2- SAP BusinessObjects Enterprise for Query, Rep