Oracle Apex Office Print:当源查询返回空值时,无法生成Excel报告

时间:2018-09-24 08:17:27

标签: oracle plsql oracle-apex

我有一个与此测试查询非常相似的查询:

select
'file1' as "filename",
cursor (
    select
        cursor (
            select
                cursor (
                    select
                        'Test Customer' as CUSTOMER,
                        'Test Country' as COUNTRY,
                        'Test Port' as PORT
                    from
                        dual
                    where
                        1 = 2
                ) as "table_without_rows",
                cursor (
                    select
                        'Test Customer' as CUSTOMER,
                        'Test Country' as COUNTRY,
                        'Test Port' as PORT
                    from
                        dual
                    where
                        1 = 1
                ) as "table_with_rows"
            from
                DUAL
        ) as "list"
    from
        DUAL
    ) as "data"
from
    DUAL

使用AOP PLSQL api,我可以生成报告,但其中没有数据。如果所有游标都返回行,则它可以正常工作。由于它没有引发任何错误,所以我不确定是什么原因导致了此行为。

excel文件的模板结构如下:

{#list}{#table_without_rows}..(Column names)..{/table_without_rows}
... Some text and styles ...
{#table_with_rows}..(Column names)..{/table_with_rows}{/list}

(已编辑)
Apex版本:5.1.3.00.05
AOP版本:3.0

1 个答案:

答案 0 :(得分:0)

您使用的是哪个版本的AOP?如果将AOP网址设置为apexofficeprint.com/api,会发生错误吗?

如果您从AOP组件设置中将调试设置为本地,则应该会收到JSON,如果将其发送到support@apexofficeprint.com,我们很乐意为您解决此问题。

编辑:版本3.0上的错误已从版本3.1中修复。