问题
- I am using icCube 5.0 Reporting
- I want to assign the value of an Event to that returned by the icCube MDX function UserName()--sort of like @{eventname} = UserName().
- 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