Forms 6i and message()

Hi.
I have problems with message function in Oracle Forms 6i. I want use it to show alert message to user. In most cases, however, I must run it 2x to get the message on screen
message('Hello!');
message('Hello!');and the message appears 2 times.
When I run only
message('Hello!');then alert window did now appear but is printed on status bar.
Help please...

Blackhole,
By default, the MESSAGE() built-in displays the specified message in the status bar. To push the message to an Alert, most people simply do as you are doing and send the message twice. However, you can send the message directly to the Default Alert by calling the SHOW_ALERT() built-in instead of using the MESSAGE() built-in. There is a little more setup required to use the SHOW_ALERT() built-in. First, you must create and Alert in the Alert Node of the Object Navigator. Typically, you would want three separate Alerts; one for Note, Caution, and Stop. Make sure you set the "Alert Style" property appropriately for each Alert object otherwise you will have three "Stop" alert, which is the default Alter Style.
Now that you have created your Alert items in the navigator you can use them with the SHOW_ALERT() built-in. I suggest you review the Forms Help system for the details, but the basics are you call the FIND_ALERT() built-in to return the ID of the Alert you are calling. Then you call the SET_ALERT_PROPERTY() built-in passing the Alert_ID, the Alert Title, and the Alert Message. Now that the Alert has been set, you display the Alert calling the SHOW_ALERT() built-in Function. Please note, this is a function because it will return the number assigned to the button the user clicks to dismiss the Alert.
Rather than go through all of this every time you want to display a message, I suggest you create a generic Forms Program Unit and either link it to your form or preferably, include it in a Forms Library. Then you can call your Generic Message Handler in a single line of code rather than going through all of the setup for each Alert message you display.
Hope this helps.
Craig...

Similar Messages

  • When trying to distribute form I get message Acrobat 9.2 has encountered a problem and needs to clos

    Has anyone had this problem and solved it? I'm just trying to email the fillable document to myself so that I can post it on our website. I can't get tech support because I have a volume license.
    Thank you in advance!

    Hi- I'm using form distribution, not "attach to email."
    (If I'm just in my form and click on the submit button I put in, it sends the filled out form nicely to my email.  But it refuses to send it (and I get that error message about Adobe having "encountered a problem and needing to close") when I'm in "form distribution" and trying to send it to myself, or any other email address for that matter.

  • I have created a form & added it to my website. It tests ok but....on top of the the form is a message ....An error has occured.....What is the error and how do I find It ?

    I have created a form & added it to my website. It tests ok but....on top of the the form is a message ....An error has occured.....What is the error and how do I find It ?
    REM

    There are various was to return a filled-in PDF form but many require some detailed information about what product the person filling in the form will be using.
    As noted above the form can be filled out and faxed or snail mailed to you.
    Since Acrobat 3 the form could be submitted to a scripted web page and have the web server perform the tasks necessary to return the data to you.
    Since Acrobat 6 the creator could add special "Extended Form Rights" to the form so users with Reader version 5 or better could save the form and email the form.
    For mobile devices the app the user will be using will determine how or if the form can be returned.
    Do not allow users to use Apple's Preview application on the Macintosh. It will corrupt the form in many ways.

  • Is there a way track who you have distributed the form to and who has responded? If yes, is there a way to message all that have not responded?

    Is there a way track who you have distributed the form to and who has responded? If yes, is there a way to message all that have not responded? This would be a great way to manage supplier questionnaires to ensure everyone is providing information back to you.

    FormsCentral, itself, does not have a method of distributing forms, so it would not know about your distribution list. It's either an open online form, which can be gotten to by anyone with the URL, or it's a pdf, which could be distributed via e-mail or a web page download.
    You can always track the completion of the form by looking in the form's collected data set. Then, you could work backward to contact those recipients who have not yet responded. But that means you need to keep track of where the form was sent, or at least know which people/companies were supposed to get the form.
    I hope that helps,
    Brian

  • JMS paging store - what is difference between bytes and messages threshholds?

              You can activate and configure both "bytes paging" and "message paging". What
              is the difference? Why use one or the other or are both required?
              Thanks,
              John
              

    Hi Mr. Black,
              Cool name.
              Message paging is based on number of messages. Bytes paging is based
              on the size of message payload (properties, body, corr-id, and type),
              where the payload does not include the header size. One can set
              either or both -- if both are set, paging kicks in as soon
              as the first threshhold is reached.
              As for which one to use, you may wish to set both. The former
              accounts for large numbers of small messages, and the latter
              handles large messages. (eg 1000 small 10 byte messages
              will charge 10,000 bytes toward quota but actually use up
              128,000 bytes of JVM memory once the header is thrown in...)
              Tom
              John Black wrote:
              > You can activate and configure both "bytes paging" and "message
              paging". What
              > is the difference? Why use one or the other or are both required?
              >
              > Thanks,
              > John
              

  • Occasional ora-6502 using forms 6i and 10g

    Hi all.
    We have been experiencing some weird and unexpected ora-6502 errors in some of our forms 6i modules running against 10g (rel 1 or 2).
    Forms modules are correctly functioning and for some reason, one day an ora-6502 error suddenly pops up.
    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.
    I know that this may sound hard to believe, but it has happened several times. All we do is put some message built in, recompile all, and the error is gone (for a while).
    So my questions are:
    - Is this a known issue beween forms 6i and 10g Db?.
    - Is there a patch on Metalink ( we use Forms [32 bits] Versión 6.0.8.26.0 (Producción))
    - A workaround?
    and most important
    - Have anyone been exposed to a similar situation?
    Regards, Luis ...!

    Now the weirdest thing is that after you put some messages on the trigger, so you can track down where the error is coming from, it disappears.Sounds like the form has not been "clean compiled" against the server on which it is running. Try a "Compile All", which causes all previously compiled program units to be compiled fresh.
    Or even better, clean out all the compiled code from your fmb before compiling the fmb on the server where it runs.
    See this topic:   Re: Why does this happen - find ';', replace with ';'?

  • Issue with PO change and message determination

    Hi Gurus,
    I have an issue while changing the PO which as below:
    In a Z program, calling BAPI - BAPI_CREATE_CHANGE to change few fields of PO and have set below two parameters of BAPI to 'X' as the requirement is NOT to determine and execute output types.
    NO_MESSAGING = 'X'
    NO_MESSAGE_REQ = 'X'
    The issue is - Though above two parameters' values set to 'X', messages are getting determined and executed.
    Please let me know if you have faced similar issue and what steps you followed to resolve it.
    Regards,
    Hiren

    If you're using a standard form, send a message to SAP. Otherwise make a change in the form.

  • Short URL in the Form of Text Message like SDN for Enternal Facing Portal

    Hi,
    For the External Facing Portal, We are using the Light Frame work with Light Top Level Navigation and customized it for look and feel.
    When we publish the Anonymous User role for the EFP, and navigate through the roles, The Portal URL is getting added with Short URL's (NavigationTaeget.....)
    How to make this Short URL's in the form of Text Messages like example in SDN
    After clicking the Forums the URL shown is like https://sdn.sap.com/irj/sdn/forums instead of Short URL.
    We are looking for some thing same.
    Regards
    Sumanth

    Hi Sumanth,
    Short URL is automatically created by portal.
    So you cant make the short URL in the form of text message.Refer the following link
    <a href="https://weblogs.sdn.sap.com/pub/wlg/2452">https://weblogs.sdn.sap.com/pub/wlg/2452</a>
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/content.htm">http://help.sap.com/saphelp_nw70/helpdata/en/b3/7b8163404448e7aad7899c0b30313e/content.htm</a>
    Regards,
    Hemalatha

  • Multipart/form-data and file attachment

    Hi ,
    This question has probably been asked before, but if not then here it is. Any replies will be appreciated:
    Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if user selects no file to attach?
    Q. If no, then how can it be possible that a form can be submitted without attaching a file since when I try to submit a form with no file attached to it, it gives me error message saying :java.lang.NullPointerException
    Q. Does it mean that I can't have a form with a blank "File" input field, if the form's Enctype is "multipart/form-data"? Since users may not select a file to attach to the form, in other words it is an optional.
    I hope I was clear enough in explaining my questions.
    Thanks in advance.

    I am using Orielly's file attachement pacakge.
    Here's what I am doing in my JSP page: It does the following:
    int maxFileSize = 10 * 1024 * 1024; // 5MB max
    String uploadDir = "/direct/files/upload/";
    String FormResults = "";
    String FileResults = "";
    String fileName = "";
    String fileName2 = "";
    String paramName="";
    String paramValue="";     
    File f;
    int filecounter=1;
    first get the form fields using following code:
    MultipartRequest multi = new MultipartRequest(request, uploadDir, maxFileSize);
    Enumeration params = multi.getParameterNames();
    //Get the form information
    while (params.hasMoreElements())
         paramName = (String) params.nextElement();     
         paramValue = multi.getParameter(paramName);
         if (paramName.equals("emailconfirm"))
              emailconfirmation = paramValue;
         else if (paramName.equals("Requester"))
              Requester = paramValue;
         else if (paramName.equals("TodaysDate"))
              TodaysDate = paramValue;
         else if (paramName.equals("Extension"))
    }//end while
    Then it gets the file information using the following code: I have two file fields in my form so that's why I am using a filecounter to find out if user has attached two files or just one:
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
         String formName = (String) files.nextElement();
         if (filecounter == 2)
    fileName2 = multi.getFilesystemName(formName);
         String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
         FileResults += "<BR>" + formName + "=" + fileName2 + ": Type= " + fileType + ":
    Size= " + f.length();
         else
         {     fileName = multi.getFilesystemName(formName);
              String fileType = multi.getContentType(formName);
              f = multi.getFile(formName);
              FileResults += "<BR>" + formName + "=" + fileName + ": Type= " + fileType + ":
    Size= " + f.length();
         filecounter=filecounter+1;
    Then after composing the mail message I send email with the form fields and file attachments using following code:
    Properties props = new Properties();
    MimeBodyPart mbp1 = new MimeBodyPart();
    MimeBodyPart mbp2 = new MimeBodyPart();
    MimeBodyPart mbp3 = new MimeBodyPart();
    URLDecoder urlDecoder = new URLDecoder();
    String to1 = urlDecoder.decode(toemail);
    String from1 = urlDecoder.decode(fromemail);
    String cc1 = urlDecoder.decode(ccemail);
    props.put( "mail.host", host );
    Session session1 = Session.getDefaultInstance(props, null);
    // Construct the message
    Message msg = new MimeMessage( session1 );
    msg.setFrom( new InternetAddress( from1 ) );
    msg.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to1, false ) );
    msg.setRecipients( Message.RecipientType.CC, InternetAddress.parse( cc1, false ) );
    msg.setSubject( subject );
    msg.setHeader( "X-Mailer", "ExceptionErrorMail" );
    msg.setSentDate( new Date() );
    mbp1.setText(mail_message);
    mbp1.setContent(mail_message, "text/html");
    // Send the email message
    FileDataSource fds = new FileDataSource(uploadDir + fileName);
    FileDataSource fds2 = new FileDataSource(uploadDir + fileName2);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp3.setDataHandler(new DataHandler(fds2));
    mbp2.setFileName(fileName);
    mbp3.setFileName(fileName2);
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    mp.addBodyPart(mbp3);
    msg.setContent(mp);
    Transport.send( msg );
    //email sent...
    //delete the two files from the server..
    File f2 =new File(uploadDir + fileName);
    f2.delete();
    File f3 =new File(uploadDir + fileName2);
    f3.delete();     
    //End of code
    So when I don't attach a file and submit my form , I get the error message that I mentioned in my previous post.
    Any more ideas?

  • Forms personalization and global variable

    Hi,
    I'm trying to call a procedure in forms personalization and using a defined global variable. The data in the global variable is number. In the procedure, some of the parameter has a number datatype and I'm converting the global variable using to_number eg (to_number(:global.XX_LINE_NUM). This fails with error message ora-01403 no data found. I've tried putting the above into a variable with datatype number in the declare statement, and it errors as well.
    Does anyone knows the syntax to convert the global variable to number datatype in personalization.
    Thanks

    Ask in this forum : OA Framework

  • Forms 6i and OLE

    I've upgraded from Forms 5 to Forms 6i and have subsequently found my Word2000 documents become corrupt when edited using OLE in the new version of Forms. Has anyone found this ?
    I've been advised by Oracle to recreate them as new documents in Forms 6i. This is no easy task as I have over 135,000 documents stored in the data base. A possible solution suggested was to open the documents in Forms 5, saving them on my hard drive, then opening the documents from the hard drive using Forms 6i, copying the contents and pasting them in to a new document using OLE in Forms 6i. This doesn't work as the paste facility fails in new documents and Word2000 has an in build message which appears when copying large amounts of text. I'm really struggling to find a solution to this, I also find it hard to believe that I'm first person to have attempted a upgrade from Forms 5 to 6i with word documents stored using OLE.
    Can anyone help ??

    it not only for word, but for JPG files too, I mean it is not possible for other tools to open the JPG file from db after thru forms 5.x, 6.x to save to db.

  • I have some problems with element Panel Label and Message.

    I have some problems with element Panel Label and Message. When I create form from VO attributes then I have Label for input text element. If I use Panel Label and Message element then I need to copy LABEL from input text element to Panel Label and Message element LABEL PROPERTY. Can I define in View object that I don't need label and want all attributes in Panel Label and Message element?
    BEST REGARDS

    You can simply remove the label attribute for the input text on the page.
    sid

  • Compatability for Forms-5 and Report-3

    Does Forms-5 and Reports-3 connect to Oracle-8i.I get a message Ora-03121 no interface driver connected function not performed when trying to connect.
    So please suggest

    I can't find any matrix (as these are de-supported versions) but I have worked on Forms 5.0 and reports 3.0 with Oracle 9.0.1. And there were no issues. Thus, I may dare assume it should work with 9.2.0.8 as well, which is the terminal release for Oracle 9i.

  • How to use adadmin options to recompile all forms, packages and libraries.

    Dear gurus
    How we can use adadmin, and which options to recompile all forms, packages and libraries.??
    thanks in advance.
    cheers

    Dear Hsawwan
    is the following correct......
    =========================
    Enter your choice [6] : 1
    Generate Applications Files
    1. Generate message files
    2. Generate form files
    3. Generate report files
    4. Generate product JAR files
    5. Return to Main Menu
    Enter your choice [5] : 2
    AD utilities can support a maximum of 999 workers. Your
    current database configuration supports a maximum of 18 workers.
    Oracle recommends that you use between 64 and 128 workers.
    Enter the number of workers [64] :
    Please enter a number between 1 and 18.
    Enter the number of workers [64] : 5
    Your current character set is "AL32UTF8".
    Do you want to generate Oracle Forms objects
    using this character set [Yes] ?
    Do you want to regenerate Oracle Forms PL/SQL library files [Yes] ?
    Do you want to regenerate Oracle Forms menu files [Yes] ?
    Do you want to regenerate Oracle Forms executable files [Yes] ?
    Enter list of products ('all' for all products) [all] :
    ===========

  • Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    Why is the link to my form getting this message?  I copied the link right from the page.  An error has occurred. The form does not exist. Please re-enter the web address as the link may be misspelled. [ref: cixTdh4JnkymYgz7awKoQ, BadRequest]

    My form - which was working great - disappeared when I did some editing; here is the message I get now.
    The form does not exist. Please re-enter the web address as the link may be misspelled.
    The link for the form is:
    https://adobeformscentral.com/?f=UqJr%2Aas2RJIHPVA4iGIQ6w
    Please look into the matter and resolve the issue at the earliest.
    Regards,
    Vaibhav Nigam

Maybe you are looking for