Don't you hate it when Alpha tries to make things easier and just ends up making them harder or impossible?
I used to be able to define global variables in a web dialog that prints a report, then define the same global variables in the report and have the values print on the report. Typical use was to create a date range filter and print that range on the report.
Now global variables for reports have been changed, and I can't do that anymore (or else it is much better hidden!)
So, for example, I'd put two date fields on a dialog: startdate and enddate, and in the aftervalidate event I'd do the following:
dim global vStartdate as c = currentform.controls.startdate.value
dim global vEnddate as c = currentform.controls.enddate.value
Then, on the report, I'd define
dim global vgStartdate as c
dim global vgEnddate as c
and I'd print them on the report:
"Start date:" vgStartdate
"End date: " vgEnddate
It worked great. Now, however, you can't define global variables in a report without assigning a value to them, so this no longer works! Now you go to a global variables tab (which is just a blank area .... whoever thought that was better???) and you assign values. For example, if you want a character global variable, you assign, for example,
vgStartdate = "start"
vgEnddate = "end"
But, when the report prints, it prints the words "start" and "end" instead of the values from the dialog!
Does anyone know a way around this "improvement"?
Pat
I used to be able to define global variables in a web dialog that prints a report, then define the same global variables in the report and have the values print on the report. Typical use was to create a date range filter and print that range on the report.
Now global variables for reports have been changed, and I can't do that anymore (or else it is much better hidden!)
So, for example, I'd put two date fields on a dialog: startdate and enddate, and in the aftervalidate event I'd do the following:
dim global vStartdate as c = currentform.controls.startdate.value
dim global vEnddate as c = currentform.controls.enddate.value
Then, on the report, I'd define
dim global vgStartdate as c
dim global vgEnddate as c
and I'd print them on the report:
"Start date:" vgStartdate
"End date: " vgEnddate
It worked great. Now, however, you can't define global variables in a report without assigning a value to them, so this no longer works! Now you go to a global variables tab (which is just a blank area .... whoever thought that was better???) and you assign values. For example, if you want a character global variable, you assign, for example,
vgStartdate = "start"
vgEnddate = "end"
But, when the report prints, it prints the words "start" and "end" instead of the values from the dialog!
Does anyone know a way around this "improvement"?
Pat
Comment