How to Use UserIdentity.Context to Pass Custom Objects to the Report
|Product||Progress® Telerik® Reporting|
In some scenarios, it may be necessary to pass custom object values directly to the Report, without using Global Objects as Report Parameters.
The UserIdentity object has a property Context that by default is Null.
It is of type System.Collections.Concurrent.ConcurrentDictionary
For example, the first value of the collection may be used in an Expression like:
= Item(0, UserIdentity.Context.Values)
Note that you won't be able to access the property UserIdentity.Context.Values directly in the Expression editor of the Report Designers. You will have to type it manually.