Internal parameters
Is there a way to define "internal" parameters? I need to use a lot of variables or parameters that are defined in the constructor, or the value is on-the-fly. They shoud not be public or appear in the report designer, but I need to use them in the report, via [MyCustomParam].
Is there are an event where I can assign the value to a variable not defined as parameter in the FR instance?
Thank you
Is there are an event where I can assign the value to a variable not defined as parameter in the FR instance?
Thank you
Comments
You may declare private variables inside the "ReportScript" class in the script. For example:
Usage in the text object:
[myIntParam]
Usage in the expressions:
myIntParam + 5
The only problem is that you cannot pass a value from your application to such variable.
I meant how to build a system where I can assign variable values dynamically from the application C# source (not the report source), and these variables do not appear as parameters in the report designer panel.
In FR4, I used the OnGetVarValue event. I am looking for a similar system in FR.Net.
The report has many variables that are assigned from the source. For example, license name, current time, internal variables related with the database, system variables, etc.
I cannot use the parameter feature because then, they appear in the report designer panel.
I would like to use something like the OnGetVarValue event, where I can assign the value when it is required.
Thank you
Is there a way to declare them and specify that they are not public (do not appears in the designer panel)?
In many scenarios, some parameters should not be displayed in the panel, and also, the should be "read-only".
For example: LicenseName, some MemberShip variables, some values of configurations that cannot be read using SQL, etc.
If there is not a way, can you consider to add this feature in a future?
Thank you