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

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.