Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command

发布时间:2017-2-20 7:21:30 编辑:www.fx114.net 分享查询网我要评论
本篇文章主要介绍了"Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command ",主要涉及到Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command 方面的内容,对于Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command 感兴趣的同学可以参考一下。

Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command

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.
 
Following is the screen shot for this example
 
image
 
You can also download this Oracle Form fmb from Google Drive with the following link Listitem.fmb
 
The following is the code written on the "Populate List With The Above Query" button:
 
DECLARE
   rg_name   VARCHAR2 (40) := 'DYNGRP';
   rg_id     RecordGroup;
   errcode   NUMBER;
BEGIN
   /*
   ** Make sure group doesn't already exist
   */
   rg_id := FIND_GROUP (rg_name);
 
   /*
   ** If it exists then delete it first then re-create it.
   */
   if not id_null(rg_id) then
     delete_group(rg_id);
   end if;
 
      rg_id :=
         CREATE_GROUP_FROM_QUERY (
            rg_name, :txtqry);
   /*
   ** Populate the record group
   */
   errcode := POPULATE_GROUP (rg_id);
     clear_list('OLIST');
     populate_list('OLIST', 'DYNGRP');
END;

上一篇:张辉:工作几年就应该给自己“清零”
下一篇:JavaScript实现自定义短信模板

相关文章

关键词: Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command

相关评论

最近更新