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

Leave a Comment