Convert numbers to Indian Rupees format in Oracle Forms / Reports.Create the below mention function in Oracle Forms / Reports and call it with passing a number parameter.FUNCTION INR_words( p_number In number, vFrDec varchar2 Default 'Paisa Only') RE…
Oracle Form & Reports developer jobs are always in demand, candidates who have Oracle D2k, Oracle Forms & Reports, PLSQL set of skills can find the job through the following links:   http://jobsearch.naukri.com/oracle-forms-and-reports-jobs   http…
Below is the step by step guide to install Oracle Forms 12c on Windows 7. To install Oracle Forms 12c, first download Oracle Forms & Reports Services 12c from the Oracle.Com with the following link: Download If you have installed Weblogic Server 12c…
Center window automatically  in Oracle Forms 6i, use the following procedure by passing window name as parameter:ExamplePROCEDURE auto_centre (pwn in varchar2) ISvw number := get_window_property(forms_mdi_window, width);vh number := get_window_proper…
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…
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…
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…
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…
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…
Suppose you want to check the user permissions on inserting or updating the records in Oracle Forms, then you can use Pre-Insert and Pre-Update triggers for that particular data block to check whether user is having proper permission or not.   The ex…
Example is given below to fetch any Oracle objects DDL script using DBMS_Metadata.Get_DDL command in Oracle Forms using Forms_DDL command.   You can download this form for free including source code with following link from Google Drive Dbms_Utility.…
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…
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…
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…
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…
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…
I have written many posts previously on Timers in Oracle Forms like how to change images randomly with timers and how to display a clock using timer, but in this post I am simply describing to how to create a timer, stop a timer, re-start a timer and…
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…
Calling / Running a report in Oracle forms 10g / 11g Below is the procedure to call a report in Oracle Forms 10g/11g  by passing report file name with full path and report format like 'PDF', 'RTF' etc.Procedure call_report (preport In Varchar2, pform…
Sets the Report object property at run time in Oracle Forms of an report object. The following are the Syntax of Set_Report_Object_Property:PROCEDURE SET_REPORT_OBJECT_PROPERTY(report_id REPORT_OBJECT,property NUMBER,value VARCHAR2);PROCEDURE SET_REP…
SYSTEM.MESSAGE_LEVEL is used to control the messages that end users see when they use the Oracle Form's application. You can control to not to display simple warning messages or even error messages to display to users. The following  are message seve…
Below is the example to create an excel file in Oracle Forms.Pass the Sql query string to the below procedure to generate an Excel file using Ole2 package.PROCEDURE Create_Excel_File (CSQL Varchar2)Is   source_cursor    Integer;   l_colCnt         Nu…
Below is the some useful commands of Ole2 to format excel file in Oracle Forms.-- Change font size and name in ole2-- Declare as cfont ole2.obj_type;CFONT := OLE2.GET_OBJ_PROPERTY(CELL, 'Font');OLE2.SET_PROPERTY(CFONT, 'Name','Calibri');       OLE2.S…
In this tutorial you will learn to create horizontal scrollable tabular or detail data block by using stacked canvas in Oracle Forms. As shown in below picture the first column Empno is fixed and middle columns Ename, Job, Mgr and Hiredate are scroll…
Show_Lov Function is used to display list of values (LOV) in Oracle Forms. It returns TRUE if the user selects a value from the list, and FALSE if user not selects the value. Syntax You can pass the LOV ID to Show_Lov function to display the LOV.SHOW…
Clear_Block built-in clears all records from the current data block and if the user had made some changes in records which have not been committed, then Oracle Forms processes the records depending on the argument passed to the Clear_Block procedure.…
Execute_Query command is used to fetch all the records for current database data block in Oracle Forms, actually its executes query in current data block. Syntax EXECUTE_QUERY; Clears the current block, opens a query, and fetches a number of selected…
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…
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…
You can display modal windows in Oracle Forms to display normal messages, error message or asking for confirmation eg. on deleting a record or saving a record etc. using show_alert command.   These modal window messages can be shown using Alert optio…