Assigning a value to an icCube Event in Reporting

左心房为你撑大大i 提交于 2019-12-12 16:42:59

问题


  1. I am using icCube 5.0 Reporting
  2. I want to assign the value of an Event to that returned by the icCube MDX function UserName()--sort of like @{eventname} = UserName().
  3. Eventually, @{eventname:reportParm} will be sent to a launched report for use in a filter.

Does anyone have any hints for me?


回答1:


There is no clean way (already in todo list)

For the time being there is no clean way. You've to create a Constant - not an event - in Configuration/Constants that you call for example

ic3c-userName

Assign a javascript expression

:ic3reporting.context_.userInfo().name()

So you've now an event with the name of the user as value you can use.




回答2:


From version 5.0.3 you can use the new syntax. For user name:

:ic3reporting.userName() 

also you can access the report's name by

:ic3reporting.reportName()


来源:https://stackoverflow.com/questions/29536121/assigning-a-value-to-an-iccube-event-in-reporting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!