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…
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…
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…
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…
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…
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…
Write Post-Query trigger for the block you want to fetch the field value for display item.ExampleBegin Select Ename into :datablock.dspname from emp where ecode = :datablock.ecode; -- Field dspname in datablock will be populated with th…
Check Box Mapping of Other Values specifies how any fetched or assigned value that is not one of the pre-defined "checked" or "unchecked" values should be interpreted. Means suppose you have specified Value When Checked property to 'Y'…
In this Document Purpose Details Scenario 1: Testing the basic item import with minimum columns populated Scenario 2: To import items and use item templates Scenario 3: To import items and material cost associated to it. Scenario 4: To import…
where in 的参数化查询实现 首先说一下我们常用的办法,直接拼SQL实现,一般情况下都能满足需要 string userIds = "1,2,3,4"; using (SqlConnection conn = new SqlConnection(connectionString)) { conn.Open(); SqlCommand comm = new SqlCommand(); comm.Connection = conn; comm.CommandText = string…
转载至:http://www.cnblogs.com/lzrabbit/archive/2012/04/22/2465313.html 文章导读 拼SQL实现where in查询 使用CHARINDEX或like实现where in 参数化 使用exec动态执行SQl实现where in 参数化 为每一个参数生成一个参数实现where in 参数化 使用临时表实现where in 参数化 like参数化查询 xml和DataTable传参 身为一名小小的程序猿,在日常开发中不可以避免的要和wh…
1. { 换行: Opening Brace Can't Be Placed on a Separate Line 2. 定义未使用的变量: Unused Variables 2. import 但未使用: Unused Imports 3. a := 123 简短变量定义方式只能在函数内部使用: Short Variable Declarations Can Be Used Only Inside Functions 4. 重复定义 简短变量: Redeclaring Variables…