Search code examples
reportingolapiccube

Assigning a value to an icCube Event in Reporting


  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?


Solution

  • 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.