KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Using methods as a data source for procedurally generated Quick Reports
PRODUCT: 4D | VERSION: 2003 | PLATFORM: Mac & Win
Published On: April 11, 2003

It is possible to use the output of a method as a data source for QR SET INFO COLUMN.

Parameter 4 of QR SET INFO COLUMN is used to set the data source for a column of a report. That data source must be a field or variable. However, it is possible to use the output of a method as the data source. To do this, the method and its parameters must be assigned as a string to a variable, and then the variable must be passed as the 4th parameter of QR SET INFO COLUMN as in the example below:

C_Text($ tDataSource1)
$ tDataSource1:=”MyMethod(parameter 1; parameter2)”
QR SET INFO COLUMN($LQrArea;1;"";$tDataSource1;0;-1;1;"")