Printing variables sent from application

I'm moving reports from Rave to FR.

Some of our reports have large numbers (in som cases more than 2000) of non-table-like data that is passed from the app to the report. In Rave the data is passed as report-parameters, and printed in Rave in DataText's by the syntax 'param.MyParamName'. The parameters have names from '0001' to '9999', referring to internal structures in our app.

In FR this (as far as i understand) should be done by variables, printed in text objects by the syntax '[MyVariableName]'. For us that will be from [0001] to [9999].
This works fine if the variables are declared and have values. BUT, if they are not, the report prints the variable-name instead, like '1' and '9999'. Seems like FR thinks it is numbers, since there are no declared variables by that name.

I've tried to add a letter to our variable names, like 'p0001' and 'p9999'. This results in error 'undeclared identifier p0001'.

I understand that that variables can be declared in the variables-list (Report|Variables...), or by pascal-code in the 'var'-section. But, as said, I have in some cases more than 2000 variables in the same report, so it is almost unthinkable to maintain a list of them like this.

Is there any way to make this work? Any hint will be appreciated.

Petter

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:37PM
    read the programmers manual about the ogv (ongetvalue) event for passing values into categorized variables from delphi
    create the variables in the report with no values when the variable name is encounted insde a memoview [varname]
    it will trigger the evaluator which will call the ogv event at the delphi level to find a value.
    when you use this method you cannot test by previewing within the IDE only from runtime environment.
    also when you pass string values into a categorized variable you must include extra string delimiters, so that the value ends up as 'value' or it will be treated as an expression and the evaluator will be triggered again.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.