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

发布时间:2017-3-25 9:49:29 编辑: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

相关评论

本站评论功能暂时取消,后续此功能例行通知。

一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播不法有害信息!

二、互相尊重,对自己的言论和行为负责。

最近更新

好贷网好贷款