【问题标题】:My apex collection is not displaying on my screen我的 apex 收藏未显示在我的屏幕上
【发布时间】:2019-08-06 09:52:57
【问题描述】:

我在 apex 中创建了一个集合 会话方面的一切似乎都很好:当我添加成员时,该集合存在于会话中,但由于某种原因它没有显示在我的屏幕上。(网站)

我在页眉的一个进程中创建了集合:

   Begin
   If apex_collection.collection exists(p_collection_name 
=> :P30_COLLECTION) then
   Apex_collection.delete_collection(p_collection_name 
=> :P30_COLLECTION);
  end if;

Apex_collection.create_or_truncate_collection(p_collection_name => :P30_COLLECTION);

系列选择:

select c008 as soc from apex_collections where 
collection_name = :P30_COLLECTION;

添加会员:

Begin
Apex_collection.add_member(
        p_collection_name => :P30_COLLECTION, 
        c008 => :G_SOC
) ;

注意:我在添加成员后设置了标题和刷新区域之前的项目

【问题讨论】:

  • 什么时候设置:P30_COLLECTION?如果您动态刷新报告,您可能需要在报告区域的“要提交的页面项目”属性中包含 P30_COLLECTION。
  • 它包含了????????‍♀️
  • 已经修好了,没关系

标签: sql oracle collections oracle-apex


【解决方案1】:

你必须在 select 语句执行后首先添加_member 添加会员:

Begin
Apex_collection.create_or_truncate_collection(p_collection_name => :P30_COLLECTION);
    Apex_collection.add_member(
            p_collection_name => :P30_COLLECTION, 
            c008 => :G_SOC
    ) ;
    
    select c008 as soc from apex_collections where 
    collection_name = :P30_COLLECTION;
    end;

然后刷新区域

【讨论】:

    猜你喜欢
    • 2021-03-20
    • 1970-01-01
    • 2020-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-06
    • 1970-01-01
    相关资源
    最近更新 更多