I wrote this trigger around 4 years ago to handle errors in an application based on Oracle Forms 6i. This trigger handles all errors with some custom messages for some specific errors and not only this after giving an appropriate message to the user…
Post-Form trigger in Oracle Forms fires during the Leave the Form process, when a form is exited.   You can use Post-Form trigger for the tasks such as: To clean up the form before exiting. For example, use a Post-Form trigger to erase any global var…
Pre-Form trigger in Oracle Forms fires during the form start-up, before forms navigates to the first navigable data block of that form. Use a Pre-Form trigger to perform the tasks such as maximize the forms_mdi_window, initialize some Global variable…
I have written many posts related to triggers in Oracle Forms, I have given examples for Form Level triggers, Data Block Level triggers and Item Level Triggers. And in this tutorial I am just giving the simple tutorial to how to create a trigger in O…
Oracle Forms is having its default records filter, which we can use through Enter Query mode to specify some search criteria or to filter records before display, but you can also create your own filter, which can be more user friendly and easy to use…
Suppose you want to handle an error in oracle forms and want to display custom error message for that error, but also you want to customize more for a particular error. For example there are many fields in form with required property is set to TRUE f…
The following example finds the commission plan in the COMMPLAN table, based on the current value of the commcode item in the EMPLOYEE block in the form, to verify that the code is valid.If the code in the COMMPLAN table is located, the description o…
When a query is open in the block, the Post-Query trigger fires each time Form Builder fetches a record into a block. The trigger fires once for each record placed on the block's list of records. Usage NotesUse a Post-Query trigger to perform the fol…
Example is given below to validate a Text Item in Oracle Forms with specific rules condition which can be define at run time with the use of T-List item and When-Validate-Item trigger.   Below is the screen shot of this example form which can be down…
Log user's login and logout details in to table through Oracle Forms using POST-LOGON and PRE-LOGOUT triggers to track the user's login and logout activity for auditing purposes.   In this example one table and a sequence object is used to log the da…
See also: Why And When To Use Pre-Update and Pre-Insert Triggers In Oracle FormsPre-Update Fires during the Post and CommitTransactions process, before a row is updated in Oracle Forms. It fires once for each record that is marked for update.The foll…
SYSTEM.CURSOR_BLOCK Determining current block in Oracle Forms Using SYSTEM.CURSOR_BLOCK system variable. The value that the SYSTEM.CURSOR_BLOCK system variable represents depends on the current navigation unit:If the current navigation unit is the bl…
Check the following 8 Links for best Oracle Forms examples with source code (Fmb files), which will work in any version of Oracle Forms. The examples are given for "Oracle Form's Triggers", "Hierarchical Trees", "Stacked Canvases&…
The below plsql program unit could be used in a WHEN-NEW-FORM-INSTANCE trigger to initially populate the hierarchical tree with data in Oracle forms.DECLAREhtree ITEM;v_ignore NUMBER;rg_emps RECORDGROUP;BEGIN-- Find the tree itself.htree := Find_Item…
Pre-Query trigger in Oracle D2k / Oracle Forms DescriptionFires during Execute Query or Count Query processing, just before Form Builder constructs and issuesthe SELECT statement to identify rows that match the query criteria.Definition Level form or…
Suppose you have two T-List items in form and you want  to shift element values from one list to another in Oracle Forms, here is the example given below for the same. Create two buttons also between list items as shown in picture in the bottom of th…
Highlight a Text Item in Oracle Forms With Visual Attribute It is very necessary to highlight the current cursor text item in data entry forms so that a user can easily notice the current item. Steps to highlight current item 1.   Create a visual att…
Set_Item_Property is used to change an object's settings at run time. Note that in some cases you can get but not set certain object properties. The following are Syntax of Set_Item_property command:SET_ITEM_PROPERTY(item_id ITEM,property NUMBER,valu…
Introduction ------------ This document lists the order in which triggers fire in Oracle Forms 4.5: o  The first column, Action, describes the function to be performed     (e.g. deleting a record). o  The second column, Trigger Firing Order, describe…
Add combo list / drop down list item element at runtime in Oracle forms.SyntaxPROCEDURE ADD_LIST_ELEMENT(list_name VARCHAR2,list_index, NUMBERlist_label VARCHAR2,list_value NUMBER);ExampleDeclare  nElmntCount Number;Begin   -- First count the total l…
Example is given below to Populate a List Item in Oracle Forms using Create_Group_From_Query , Populate_List and Populate_Group command. In this example you can specify the query at run time to populate the list item with that query result.   Followi…
1.host关联template的关系 .Host可以连接到一个或多个模板. Template具有继承关系,可以从一个Template link到另外一个Template. . Host和Template的关系 Template就是特殊的Host,是将Host资源进行抽象(将item,trigger,graph进行抽象).不对应具体的主机. 在数据库的hosts表,status=0代表host,status=3代表template. .当host关联到template时,zabbix会将temp…
Sequence+Trigger实现Oracle列自增 序列的语法格式为: CREATE SEQUENCE 序列名 [INCREMENT BY n] [START WITH n] [{MAXVALUE/MINVALUE n|NOMAXVALUE}] [{CYCLE|NOCYCLE}] [{CACHE n|NOCACHE}]; INCREMENT BY 用于定义序列的步长,如果省略,则默认为1,如果出现负值,则代表序列的值是按照此步长递减的. START WITH 定义Oracle序列的初始值(即…
Whenever we commit after entering data in Oracle Forms, many triggers fires during this event and also Pre-Update and Pre-Insert triggers fires just before inserting or updating the record into table. We can write Pre-Update and Pre-Insert triggers o…
Play_sound is used to play audio files in Oracle Forms, Play_Sound plays the sound object in the specified sound item.PLAY_SOUND examplesThe following plsql block you can write in when-button-pressed trigger for a push button item, when button clicke…
Example is given for Pre-Query and Post-Query triggers in Oracle Forms, with using Display_Itembuilt-in in Post-Query triggers to highlight fields dynamically.   This is the screen shot below for this example:   You can also download this form from t…
Get_File_Name is built-in function of Oracle Forms 6i, used to get the file name with address by browsing the file. You can browse a specific extension name file or with multiple extensions using wild cards.   In this example I am showing three diffe…
You want to add a value in Combo List item in Oracle Forms, by typing it in combo list box text area. Here is the example is given for the same, you can write following block in When-Validate-Item trigger for the combo box item: Write the following c…
ID_NULL built in function is used to determine that an object type variable is null or not null in Oracle Forms and returns a BOOLEAN value that indicates whether the object ID is available or not means it is null or not null. Below is the Syntax of…
Suppose you want to change multiple images after a specified time in home screen of your oracle forms application. Follow these simple steps to create image presentation with create_timer: (1) Place an image item on canvas and set the appropriate siz…