Cognos Promptmany功能

时间:2014-07-08 20:10:11

标签: cognos cognos-10

我尝试使用promptmany函数使用户可选的提示输入并没有选择默认值,因为当我使用该功能时到达时宣布了这一点:

[STAGES] in(#promptmany(' STAGES',' string',' Arrival宣布')#)

我收到以下错误

XQE-V5-0011

    V5 syntax error found in expression "[STAGES] in (Arrival announced)", invalid token "Arrival" found after "[STAGES] in (".

详细 RSV-SRV-0042回溯:RSReportService.cpp(747):XQEException:CCL_CAUGHT:RSReportService :: processImpl()RSReportServiceMethod.cpp(258):XQEException:CCL_RETHROW:RSReportServiceMethod :: process():promptPagingForward_RequestRSASyncExecutionThread.cpp(848): XQEException:RSASyncExecutionThread :: checkExceptionRSASyncExecutionThread.cpp(305):XQEException:CCL_CAUGHT:RSASyncExecutionThread :: runImpl():promptPagingForward_RequestRSASyncExecutionThread.cpp(904):XQEException:CCL_RETHROW:RSASyncExecutionThread :: processCommand():promptPagingForward_RequestExecution / RSRenderExecution.cpp(587): XQEException:CCL_RETHROW:RSRenderExecution :: executeAssembly / RSDocAssemblyDispatch.cpp(323):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchAssemblyAssembly / RSLayoutAssembly.cpp(79):XQEException:CCL_RETHROW:RSLayoutAssembly :: assembleAssembly / RSDocAssemblyDispatch.cpp(417):XQEException: CCL_RETHROW:RSDocAssemblyDispatch :: dispatchChildrenAssemblyForwardAssembly / RSReportPagesAssembly。 cpp(178):XQEException:CCL_RETHROW:RSReportPagesAssembly :: assembleAssembly / RSDocAssemblyDispatch.cpp(367):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchAssemblyAssembly / RSPageAssembly.cpp(314):XQEException:CCL_RETHROW:RSPageAssembly :: assembleAssembly / RSDocAssemblyDispatch.cpp( 367):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchAssemblyAssembly / RSTableRowAssembly.cpp(177):XQEException:CCL_RETHROW:RSTableRowAssembly :: assembleAssembly / RSDocAssemblyDispatch.cpp(367):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchAssemblyAssembly / RSTableCellAssembly.cpp(151) :XQEException:CCL_RETHROW:RSTableCellAssembly :: assembleAssembly / RSDocAssemblyDispatch.cpp(417):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchChildrenAssemblyForwardAssembly / RSDocAssemblyDispatch.cpp(367):XQEException:CCL_RETHROW:RSDocAssemblyDispatch :: dispatchAssemblyAssembly / RSAssembly.cpp(677):XQEException :CCL_RETHROW:RSAssembly :: createListIteratorAssembly / RSAssembly.cp p(732):XQEException:CCL_RETHROW:RSAssembly :: createListIteratorRSQueryMgr.cpp(519):XQEException:CCL_RETHROW:RSQueryMgr :: getListIteratorRSQueryMgr.cpp(586):XQEException:CCL_RETHROW:RSQueryMgr :: getResultSetIteratorRSQueryMgr.cpp(678):XQEException:CCL_RETHROW :RSQueryMgr :: createIteratorRSQueryMgrBasic.cpp(279):XQEException:CCL_RETHROW:RSQueryMgrBasic :: executeRsapiCommandRSQueryMgrExecutionHandlerImpl.cpp(170):XQEException:CCL_RETHROW:RSQueryMgrExecutionHandlerImpl :: execute()QFSSession.cpp(1153):XQEException:CCL_RETHROW:QFSSession :: ProcessDoRequest ()QFSSession.cpp(1151):XQEException:CCL_CAUGHT:QFSSession :: ProcessDoRequest()QFSSession.cpp(1108):XQEException:CCL_RETHROW:QFSSession :: ProcessDoRequest()QFSConnection.cpp(788):XQEException:CCL_RETHROW:QFSConnection :: ExecuteQFSQuery.cpp(213):XQEException:CCL_RETHROW:QFSQuery :: Execute v2XQEConnector.cpp(289):XQEException:CCL_THROW:XQEConnector :: send

无法解决问题

谢谢!

1 个答案:

答案 0 :(得分:0)

将更多单引号添加到默认值。

[STAGES] in (#promptmany ('STAGES','string','''Arrival announced''')#)

[STAGES] in (#promptmany ('STAGES','string',sq('Arrival announced'))#)