A doubt about the alert Message...

Hello

I am very new to Oracle Forms & I use Forms 6i.

As I practice some bases as 'Validation' a text element I went by a few examples of code to bring or poping-up alert messages...

Here is my Code... in this I don't understand Y... .do write us the 'Message ('no msg')' line TWICE... ??

Although I commented on the 2nd one... but there must write two times... & wat is the logic behind it...?

Help, please...

---------------------------------------------------------------------------------------------------
Begin

If (: aijaz_emp_master.em_dob >: aijaz_emp_master.em_doj) then

set_item_property ('em_dob', current_record_attribute, 'VA_ERRORS');

-If (: aijaz_emp_master.em_dob is not null and (: aijaz_emp_master.em_doj >: aijaz_emp_master.em_dob)) then
message ("DOB must b higher or NULL MJ '");
-message ('wort upper b DOB or NULL MJ');

raise form_trigger_failure;

on the other
set_item_property ('em_dob', current_record_attribute, 'VA_NOnERROR');
end if;

end;
---------------------------------------------------------------------------------------------------------

MIRA,
I agree that this can be a little confusing, but once you understand the difference between messages and alerts it will make sense.

In Oracle Forms, a 'Message' is any information that is displayed in the 'Message' of the forms Console line and requires no interaction with a user. The console is displayed at the bottom of the window and includes the 'Message line' and 'Statue line. If the message line already has a message, and then forms will promote the message in an alert (popup window) and the nouveau/deuxieme message is displayed in the message line. In general, many forms developers will use this "Double-Message" method to display information in an alert because it is less lines of code to assign the text of the message in an alert and then display the alert. It is advisable to always call the built-in function Clear_Message() before calling Message built-in to prevent unintential * promotion message.

An alert in a physical object in a form of Oracle (note: there is a 'Alerts' node in the browser of object of forms). There are three types of alerts of forms: Note, attention and stop. Display the notes information, precautions display warnings and errors off display program, or critical information. In order to display an alert, you must first create an alert object in the Alerts node. You can create an Alert object for each of your posts, but this creates clutter and can be confusing. I prefer to use three alerts - one for each type (Note, attention, Stop) and then programmatically set the title, the text of the message and the buttons (max 3). As you can see, there is more work involved to display an alert. In addition, the integrated Display_Alert() is a function if you need a variable to receive the value returned by the call to Display_Alert.

Here is an example of using e-mail in the forms:

/* Standard message */
BEGIN
   Clear_Message;
   Message('Display in the Message Line only');
END;

/* Message to display Alert */
BEGIN
   Clear_Message; -- make sure you don't accidentally promote a different message
   Message('Display in the Default Alert');
   Message('Display in the Default Alert');
END;

/* Message displayed in a Note Alert */
/* Assumes an Alert of type "Note" has already been created. */
DECLARE
   al_id      ALERT;
   al_btn    NUMBER;
   v_msg    VARCHAR2(200); /* Max Characters that can be displayed in an Alert */
   v_title    VARCHAR2(78);  /* Max title characters */
BEGIN
   al_id := Find_Alert('Note');
   IF NOT ID_NULL(al_id) THEN
      v_title := 'This is an informational message';
      v_msg := 'This is an informational message that requires the user to acknowledge the message';
      Set_Alert_Property( al_id, TITLE, v_title);
      Set_Alert_Property( al_id, ALERT_MESSAGE_TEXT, v_msg);
      al_btn := Show_Alert( al_id );
   END IF;
END;

Personally, we have a library package, we have created to simplify the display of alerts and allows you to set the properties of the alert and display it in a single call.

/* In this sample, I use named notation to
illustrate the meaning of the different parameters
in our wrapper package. */
DECLARE
   al_button  NUMBER;
BEGIN
   IF (:aijaz_emp_master.em_dob > :aijaz_emp_master.em_doj) THEN
      set_item_property('em_dob', current_record_attribute, 'VA_ERRORS');
      al_button := message_pkg.warning( TITLE => 'Warning: DOB Required',
                                  MSG_TEXT => 'DOB must b NULL or Greater tahn DOJ',
                                        BUTTONS => 'OK');
      raise form_trigger_failure;
   ELSE
      set_item_property('em_dob', current_record_attribute, 'VA_NOnERROR');
   END IF;
END;

Hope this helps,
Craig B-)

If someone useful or appropriate, please mark accordingly.

Published by: Silvere December 13, 2010 10:31

Tags: Oracle Development

Similar Questions

  • How to get the alert message while trying to open a file, folder, or drive?

    How to provide a warning message when opening a file, folder, or drive, such as I had in my disk recovery and back the file, but once I opened it, that message never came again, I want this parameters with some of my important files. so, how do you restore this setting? and how do you get to my files?

    Hello

    Thanks for posting the question in the Microsoft Community forums. According to the description, you need help to get an alert message when you attempt to open a file, folder or drive.

    The alert message you received disk and backup recovery file is supplied by the manufacturer.

    There is no message alert option in Windows. You can search for any third-party application, using your favorite search engine.

    Note:  This response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Hope this information helps. For any help about Windows, you can still post on the Microsoft Community Forum.

  • Highlight a phrase of the alert message

    Hi all

    We have an obligation to highlight the alert message.

    Example:

    We have a reminder of expiry of visa alert.

    We must emphasize a phrase in yellow color.

    Can someone help me out with above?

    This confirms my assertion that HTML formatting is not possible as part OFA default message. Some messages that are not called in message seeded of the Oracle, calling routine in the OPS were delivered with HTML tags.

  • I have a doubt about the file .folio and publications

    Hello, I m new here.

    I want to start working with DPS, but I have a doubt about which version to buy.

    At the moment I have one customer just wants to publish a magazine, but my intention is to have more customers and publish more magazines.

    If I buy the unique edition of DPS, I read that I can publish a single file .folio. What it means? Each folio file represents a publication?

    Please, I need help to understand this before you purchase the software.

    Thank you very much

    Paul

    Here's a quick blog I wrote to compare the simple edition and

    multifolio apps:

    http://boblevine.us/Digital-Publishing-Suite-101-single-Edition-vs-multi-Folio-apps/

    Bob

  • Doubt about the Index

    Hi all

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    I have a question about the index. Is - this required that the index will be useful if we have a "WHERE" clause I tried to find myself there but do not.
    In this example I haven't used where clause used but group. But it gives a comprehensive analysis. Is it possible to get the scan interval or something else using Group by?
    SELECT tag_id FROM taggen.tag_master GROUP by tag_id 
    
    Explain Plan:
    Plan hash value: 1688408656
     
    ---------------------------------------------------------------------------------------
    | Id  | Operation             | Name          | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT      |               |  4045 | 20225 |     6  (17)| 00:00:01 |
    |   1 |  HASH GROUP BY        |               |  4045 | 20225 |     6  (17)| 00:00:01 |
    |   2 |   INDEX FAST FULL SCAN| TAG_MASTER_PK |  4045 | 20225 |     5   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------

    Hello

    SamFisher wrote:
    Since I was on what they do full scan. Is it possible to restrict of fullscan without using where clause?
    I guess having limit clause but not quite know.

    Why?
    If this query is producing good results, then you need a full analysis.
    If fool you somehow the optimizer by doing a scan of interval, it will be slower.

  • Some doubts about the topology, interfaces and security modules

    Hello

    Below, some questions about the ODI:


    1. to use an LKM ODI always ask to use two different DATASERVERS (one for the SOURCE) and another to the TARGET?

    2. what would be the best way to create a new IKM with GROUP BY clauses?

    3. What is the required minimum PROFILE for developers users could import projects created in other ODI environments?

    4. If a particular WORK_REP is lost, it is possible that retrieve projects from version control information stored in the MASTER_REP?

    1.) Yes. LKM always loads data from one root to another.
    More than once I saw that even if there is a single physical server, several servers are configured in the topology Manager. This would lead to the use of a LKM because ODI consider 2 different servers.
    If the physical server is set only once, LKM won't be necessary.

    2.) IKM automatically adds a GROUP BY clause if it detects an aggregation function in the Interface implementation.

    3.) try to use the profile of the creator of NG.

    4.) this is not an easy task. But all the versioned objects are compressed and stored in a BLOB field in the master repository.
    You will need to know the names and versions you need to recover.
    SNP_VERSION and SNP_DATA have this information. Retrieves the field BLOB SNP_DATA and unpack using a zip utility. This will give you the XML property of the object that was transferred.
    Now, you can import this xml file and retrieve the object.

    You will need to loop through all the records in order of I_DATA, then extract to .xml file, and then import them to build the work rep.

  • Some doubts about the navigation in unifying

    Hi all

    I had a few questions about unifying navigation.

    Is it possible to move the admin mode user mode access level?

    I mean, if a particular feature as Manager of the shell I can only access from admin mode is it possible to provide access even in user mode?

    If so, how?

    My 2nd question of doubt is, currently, we can access company BPs level "Journal of society" or "Resource Manager" under shell 'Company Workspace'.

    Is it possible to move the "journal of the society" or "Resource Manager" in the folder? If yes how?

    I tried in "navigation user mode" to move the company BPs level at shell of the House, but I can't do it.

    To answer your questions:

    (1) User-Mode browser can have the user feature included. You cannot change the view mode Admin or move functions admin for user mode.

    (2) you cannot move these on the Home tab.

  • Doubts about the speed

    Hello gentlemen;

    I have a few questions, I would like to ask more experienced people here. I have a program running on a computer that has a processor i7 processor. In this computer that I have programmed in LabVIEW, meanwhile in another lab, we have another PC, a little older, a dual core 2.3 Ghz, in this pc, we perform a testing platform for a couple of modems, let us not get into the details.

    My problem is that I discovered recently that my program, I programmed in the computer, i7, much slower work in the other machine, the dual core, so the timings are all wrong and the program does not run correctly. For example, there is a table with 166 values, which, in the i7 machine are filled quickly, leaving almost without delay, however, the double machine heart, it takes a few milliseconds to fill about 20 values in the table, and because of the timing, it can fill more values and so the waveform that I use is all wrong. This, of course, live of the whole program and I can't use it as a test I need to integrate.

    I have create a .exe program in labview and try it in the different PC that's how I got to this question.

    Now, I want to know if there is actually a big problem due to the characteristics of the computer, the program is slow in one machine. I know that, to ensure the eficiently program, I need to use States, sub - vi, idea of producer-consumer machines and other things. However, I discovered this is not a problem of the speed generated by the program, because, if that were the case, the table would eventually fill it completely, however in slow computer, it is not filled more with 20 values.

    Else, helps to hide unnecessary variables in the front panel?, because the time beeing I have keep track of lots of variables in the program, so when I create the .exe I still see them runing to keep this follow-up. In the final version, that I won't need them so I'll delete some and hide front panel some. It helps that require less condition?

    I would like to read your comments on this topic, if you have any ideas in machines to States, sub - vi, etc., if there is a way to force the computer to use more resources in the Labview program, etc.
    I'm not add any VI because, in the current state, I know you will say, state machines, sub.vi and so on, and I think that the main problem is between the difference in computers, and I'm still working in the things of the State/sub-VI/etc

    Thank you once again, we just let this hollow.

    Kind regards

    IRAN.

    Get started with, using suitable as a machine for States stream you can ensure that your large table would be always filled completely before moving on, regardless of how long it takes. Believe it or not add that a delay to your curls will do more all the program run faster and smoother, because while loops are eager and can consume 100% of CPU time just a loop waiting for a button press, at the same time all other processes are fighting for time CPU.

  • Doubt about the persistent object

    Hi friends,

    I've stored data object persistent after that some time, my Simulator has taken a lot of time to load the application so I run clear.bat do fast Simulator. But after I run clear.bat. The values of what I stored in the persistent object had disappeared. Someone at - he said, therefore, it is the persistent object data are parties to cause of the performer, the clear.bat or any other reason. pls clarify my doubt friends...

    Kind regards

    s.Kumaran.

    It is b'caz of clean.bat. Clean.bat will remove all applications and unnecessary files, etc...

  • Doubts about the migration parallel to Lync 2013-> Skype4B 2015 on VCS - C (not clustered)

    Hello everyone!

    As I saw on Cisco documents, applying "B2BUA/Microsoft Interoperability" on VCS can "communicate" with just an instance Microsoft Lync pool servers, but we need to migrate the Lync server on parallel to the servers of Skype, we need to have a few "maintenance window" to migrate all users!

    Can we keep 'UP' communication for VCS (lync and Skype) pool of two servers until the end of the migration? The lync Server legacy 2013 (shared resources) with VCS today can communicate with users (migrated) for 2015 of Skype with trunk Lync existing TLS today?

    I think we generate another certificate for TLS and affecting some Skype server on the option "host approved", that's okay, I forgot something? Or I have other ways to communicate two pools Microsoft server with a VCS - C with the application "B2BUA/Microsoft Interoperability?

    Thanks for help me!

    To see some possible examples of deployment options, refer to Appendix 3 of the infrastructure Microsoft (X8.8) Deployment Guide and totalled, suggest that you also look over the guide in full as it might answer some of your questions about what is supported.

  • Error in the alert Message of blackBerry Smartphones

    Hello

    I have a new BB 8330 - it says I have 3 new messages, but when I check there is no "new" messages.

    Tried to remove the battery, but nothing seems to work.

    Any suggestions?

    Thank you

    PB

    Thanks for the help, much appreciated.

    But it has not solved the problem.  Past of 35 min. with the support of e, and just before we wiped the phone we tried something.

    Go into Office Manager upper-backup - advanced - and allowed the messagess in database.

    That solved the problem.

    Yes

  • doubts about the css class...

    I tried to load a background image in the theme universal apex 5 in the login page.

    and I used the code found in the following link and got it works

    Apex 5.0: Theme Roller and background image

    But I doubt that can be very simple for the css professionals.

    .t-PageBody-.t-body connection

    {

    Background: URL("Sports.jpg") repeat top center white scroll;

    Color: #000000;

    do-family: Arial, Helvetica, Sans-serif;

    do-size: 12px;

    line-height: 17px;

    }

    .t - PageBody.t - body

    How do you know .t-PageBody - .t-body connection was the main class to change...

    Let me know if my interpretation is correct

    .t-PageBody - login is the main class

    and .t-Body is the upper class?


    pauljohny100 wrote:

    I tried to load a background image in the theme universal apex 5 in the login page.

    and I used the code found in the following link and got it works

    Apex 5.0: Theme Roller and background image

    But I doubt that can be very simple for the css professionals.

    .t-PageBody-.t-body connection

    {

    Background: URL("Sports.jpg") repeat top center white scroll;

    Color: #000000;

    do-family: Arial, Helvetica, Sans-serif;

    do-size: 12px;

    line-height: 17px;

    }

    .t - PageBody.t - body

    How know .t-PageBody-.t-body connection was the main class change...

    Let me know if my interpretation is correct

    .t-PageBody - login is the main class

    and .t-Body is the upper class?

    .t-PageBody--login .t-Bodyis a descendant selector. It matches any element with a class attribute that contains a t-Body value having an element ancestor with a class attribute that contains a t-PageBody--login value. There is no concept of 'main' class or 'slot' in CSS. The required selector is likely to have been determined on the supplement page using a web Inspector.

    It is advisable to take some tutorials to get at least a basic understanding of web technologies when you work with APEX.

  • Is it possible to change the alert message default javascript '1 article has been added to your basket' to something nicer?

    Hey BC Community!

    Well, I may have missed in the docs (and if I have, please do not hesitate to show it to me) but I was curious to know if it was possible to change the default javascript alert popup that says "1 item added to cart" to something more pleasant as perhaps a green bar that temporarily shows downstairs which said "added to shopping cart." I would create a jquery script to intercept the default alert?

    Thanks in advance for anyone of you guys help!

    Hello

    Have you already checked this

    Customization of shop alert stations online

  • Fire a partial Action is not happenning when I am clicking on the ok button in the alert message java script

    Hi gurus,

    I have a messageChoiceBean. Yes/No values

    I put Firepartial action on it.

    When I click on Yes, then opens a popup script java using javascriptLoader with a single message, when I click ok in the message, then it will bring me to my page, but then I need the firePartial Action should take, but this isn't the case.

    Please suggest what to do, help very urgent.please.

    Thank you

    Mahesh

    Hi friends,

    I used the code below in the PR and the issue has resolved:

    OAMessageChoiceBean msb = (OAMessageChoiceBean) webBean.findChildRecursive ("Answer3");

    msb.setFireActionForSubmit ("update2", null, null, true, false);

    Concerning

    Mahesh

  • Create the alert message

    Hello

    If my indesign file "missing fonts', 'Missing links' and"Text overflow", I have to give the warning by script. Is this possible?

    by

    hasvi

    Hi Hasvi,

    Here's the answer:

    if(app.documents.length == 0)
    {
        alert("Please Open the Document");
        exit(0);
        }
    
    var myDoc = app.activeDocument;
    
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    
        var myUsedFonts = myDoc.fonts;
    
        for (var i = 0; i < myUsedFonts.length; i++) {
        if (myUsedFonts[i].status != "1718831470")
        {
            alert("Please Fix Missing Font")
            exit(0);
            }
        }
    
        var myUsedLinks = myDoc.links;
        for (var i = 0; i < myUsedLinks.length; i++)
        {
            if (myUsedLinks[i].status == LinkStatus.linkMissing || myUsedLinks[i].status == LinkStatus.LINK_OUT_OF_DATE)
            {
                alert("Please Fix Missing Link");
                exit(0);
                }
            }
    
        var myOverflow = FindOverflowText();
        if (myOverflow == true)
        {
            alert("Please Fix Overflow")
            exit(0);
            }
    
    //Function FindOverflowText Start
    function FindOverflowText() {
        myPages = myDoc.pages;
        for (i = myPages.length - 1; i >= 0; i--) {
            objTextFrames = myPages[i].textFrames;
            for (j = objTextFrames.length - 1; j >= 0; j--) {
                objTextFrame = objTextFrames[j];
                if (objTextFrame.overflows == true) {
                    objTextFrame.select();
                    return true;
                }
            }
        }
        return false;
    }
    

    If my coding help, then please click on the correct answers.

    Thank you

    Siraj

Maybe you are looking for