Oracle Apex:在来自不同 table 的报告中显示图片?

Oracle Apex: show picture in report from a different table?

我有以下顶点报告:


select id,
    user_ as participant,
    --This is a blob
    dbms_lob.getlength(MY_UTILITIES.GetUserPicture(user_)) as Picture,  
    order_ as order_
from My_Operations

我想在报告中将图片列显示为图像。它是存储在另一个 table 中的 blob:Table My_Users(主键列名称是 'ID')

图片栏我配置如下:

enter image description here

报告生成但图片不显示:

enter image description here

我确定使用此实现 Apex 无法知道字段图片对应于 table My_Users.

中的行 X

请问有人知道如何更正吗?

干杯,

APEX 在报告中显示图像的方式看起来有些奇怪和古怪。您需要做的显然没有记录,但我相信如下:

  1. 将显示为图像的列必须包含 BLOB 列的长度(您已正确完成)。我从 this blog post.

  2. 中发现了这一点
  3. 在该列的 BLOB 属性中为主键列 1 指定的列也必须以相同的名称出现在报告中。我通过反复试验弄明白了。

您将列 user_ 别名为 participant。 APEX 要求将其命名为 ID - 但您已经有一个名为 ID 的不同列!所以我认为你应该试试这个:

select id as op_id,
    user_ as id,
    dbms_lob.getlength(MY_UTILITIES.GetUserPicture(user_)) as Picture,  
    order_ as order_
from My_Operations