TfrxMasterData conditional background fill color
TfrxMasterData conditional background fill colour. I have a TfrxDBDataset providing the value for background fill colour for every single record.
Line 1 customer, line_color
Line 2 customer, line_color
Line 3 customer, line_color
I am using event
procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
begin
// mvCustomer is a TfrxMemoView connected to DataSet and DataField (customer)
// DataSet.DataField is the Background Color value for the report line. (customer_color)
mvColor.Color:= dsetTableName.lene_color;
end;
The raised exception is:
exception class Exception with message "Undeclared identifier: 'dsetTableName".
The line of code:
mvColor.Color:= dsetTableName.lene_color;
is not working.
I don't have an idea how to express "dsetTableName.lene_color" in FastReport scripting language.
Comments
G'day "Rod" ;-)
Have you looked at the manuals available online? There is a helpful section
https://www.fast-report.com/publicdownload/docs/FRVCL/online/en/UserManual/en-US/Script/CallingtheDBfields.html
That will possibly tell you what you need to know!
Cheers, Paul