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 code in When-Validate-Trigger of combo box:

DECLARE
   total_list_count      Number (10);
   loop_index_var        Number (10)                  := 1;
   list_element          Varchar2 (50);
   list_element_value    Varchar2 (50);
   list_element_to_add   Varchar2 (50);
   list_value_to_add     Varchar2 (50);
   element_match         Varchar2 (5)                 := 'FALSE';
   value_match           Varchar2 (5)                 := 'TRUE';
   list_id               item                         := Find_item ('YOURBLOCK.COMBOLIST1');
BEGIN
   total_list_count := Get_list_element_count (list_id);
   List_element_to_add := :YOURBLOCK.COMBOLIST1;

   For I In 1 .. TOTAL_LIST_COUNT
   LOOP
      list_element := Get_list_element_value (list_id, loop_index_var);
      loop_index_var := loop_index_var + 1;

      IF list_element_to_add = list_element
      Then
         element_match := 'TRUE';
      END IF;

      EXIT When list_element = list_element_to_add;
   END LOOP;

   list_value_to_add := list_element_to_add;

   IF element_match = 'FALSE'
   Then
      Add_list_element (list_id, total_list_count + 1, list_element_to_add, list_value_to_add);
   END IF;

--- element added...

EXCEPTION
   When form_trigger_failure
   Then
      RAISE;
   When Others
   Then
      Message (SQLERRM);
END;

 

Adding Value To Combo List at Runtime in Oracle Forms的更多相关文章

  1. Adding List Item Element At Runtime In Oracle Forms

    Add combo list / drop down list item element at runtime in Oracle forms.SyntaxPROCEDURE ADD_LIST_ELE ...

  2. Changing Icon File Of Push Button At Runtime In Oracle Forms 6i

    Set Icon_File property in When-Mouse-Enter trigger Suppose you are creating icon based menu system i ...

  3. Creating List Item in Oracle D2k

    Special Tips for List Items in Oracle D2k In this section, I shall discuss some special tips and tec ...

  4. Deploying JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 (文档 ID 393931.1)

    In This Document Section 1: Overview Section 2: Pre-Upgrade Steps Section 3: Upgrade and Configurati ...

  5. .net Framework Class Library(FCL)

    from:http://msdn.microsoft.com/en-us/library/ms229335.aspx 我们平时在VS.net里引用的那些类库就是从这里来的 The .NET Frame ...

  6. RAC的QA

    RAC: Frequently Asked Questions [ID 220970.1]   修改时间 13-JAN-2011     类型 FAQ     状态 PUBLISHED   Appli ...

  7. C# webbrowser 修改useragent

    http://www.lukepaynesoftware.com/articles/programming-tutorials/changing-the-user-agent-in-a-web-bro ...

  8. 一键安装GitLab7

    1. Install and configure the necessary dependencies If you install Postfix to send email please sele ...

  9. weblogic 10域结构

    Domain Directory Contents By default, Oracle WebLogic Server creates domain directories under Oracle ...

随机推荐

  1. 给Debian浏览器安装flash播放插件

    sudo apt-get install flashplugin-nonfree  

  2. 【linux】xrander/cvt自定义分辨率

    今天在虚拟机上装了一个LUbuntux64(12.10)玩,安装的时候,由于主板默认是没有开虚拟化支持,报错,改后相当的顺利.但是进入系统后,屏幕显示分辨率为800X600的,全屏的话,在大显示器上显 ...

  3. memcached +php环境配置和分析

    一.memcached 简介 在很多场合,我们都会听到 memcached 这个名字,但很多同学只是听过,并没有用过或实际了解过,只知道它是一个很不错的东东.这里简单介绍一下,memcached 是高 ...

  4. PHP人民币金额数字转中文大写的函数

    <?php header("Content-Type:text/html;charset=utf-8"); error_reporting(2); function cny( ...

  5. 解决tomcat占用8080端口问题图文教程

    在dos下,输入  netstat   -ano|findstr  8080 //说明:查看占用8080端口的进程 显示占用端口的进程 taskkill  /pid  6856  /f //说明,运行 ...

  6. spring Aop的一个demo

    面向切面是什么我就不说了. 上代码: package com.foreveross.service.weixin.test; import java.lang.annotation.Documente ...

  7. Java的多线程+Socket 后台 Ver 2.0

    package com.wulala; import java.io.IOException;import java.net.ServerSocket;import java.net.Socket; ...

  8. linux与KVM虚拟里的windows实现文件共享

    1.把windows系统里的共享文件设置为共享 2.在linux系统里 mount -t cifs //192.168.0.254/work /data/tmp -o username=test,pa ...

  9. IntelliJ IDEA---java的编译工具【转】

    转自:http://baike.baidu.com/link?url=sEpS0rItaB9BiO3i-qCdGSYiTIVPSJfBTjSXXngtN2hBhGl1j36CYQORKrbpqMHqj ...

  10. PHP正则表达式的使用

    1. 正则表达式的主要作用是:分割.匹配.查找.替换2. 正则表达式中包括的元素:原子(普通字符:a-z A-Z 0-9 .原子表.转义字符),元字符(有特殊功能的字符),模式修正符(系统内置部分字符 ...