1

我正在使用以下命令进行参数化:

[BUSINESS VIEW].[All Business View].[STAGES] in (prompt('STAGES1','string','Arrival announced'))

[BUSINESS VIEW].[All Business View].[NEXTSTAGE] in (prompt('NEXTSTAGE','string','Arrival announced'))

如您所见,我要做的是设置默认值,以防用户未选择其中之一,它们都是可选的。

运行报告时出现此错误:

"XQE-DAT-0001

    Data source adapter error: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884, SQLERRMC=PROMPT;FUNCTION, DRIVER=3.63.123 - when processing query: SELECT

“COGNOS”。“TERMINALNAME”作为“TERMINALNAME”,“COGNOS”。“CCN”作为“CCN”,“COGNOS”。“CIDENTIFICATION”作为“CIDENTIFICATION”,“COGNOS”。“STAGES”作为“阶段”,“COGNOS” "."NEXTSTAGE" 作为 "NEXTSTAGE", SUM("COGNOS"."TIMETAKEN") 作为 "TIMETAKEN" 从 "KAP"."COGNOS" "COGNOS" WHERE "COGNOS"."STAGES" IN ( prompt('STAGES1' ,'string','到达宣布') ) AND "COGNOS"."NEXTSTAGE" IN ( prompt('NEXTSTAGE','string','到达宣布') ) GROUP BY "COGNOS"."TERMINALNAME", "COGNOS" ."CCN", "COGNOS"."CIDENTIFICATION", "COGNOS"."STAGES", "COGNOS"."NEXTSTAGE"."

我整天都在尝试将默认值设置为参数,以防用户没有选择但没有找到让它成功运行的方法。有人幸运吗?

4

1 回答 1

2
[BUSINESS VIEW].[All Business View].[STAGES] in (#promptmany('STAGES1','string','''Arrival announced''')#)

[BUSINESS VIEW].[All Business View].[NEXTSTAGE] in (#promptmany('NEXTSTAGE','string','''Arrival announced''')#)
于 2014-07-09T06:49:07.987 回答