FR Enterprise's Group Condition Can't work
Version: FR Enterprise Version
Report group condition write with script work fine in standalone PC.
But this report move to report server, the group condition can't work.
Script as below:
Report group condition write with script work fine in standalone PC.
But this report move to report server, the group condition can't work.
Script as below:
procedure Page1OnbeforePrint(Sender: TfrxComponent);
var
? l_order : string;
begin
? GroupHeader1.Visible := CheckBox1.checked;
? GroupFooter1.Visible := CheckBox1.checked;
? Case ComboBox1.ItemIndex of
? ? 0: l_order := ' Order By field0';
? ? 1: l_order := ' Order By field1';
? ? 2: l_order := ' Order By field2';
? ? 3: l_order := ' Order By field3';
? end;
? ADOQuery1.SQL.Text := ADOQuery1.SQL.Text + l_order;
? Case ComboBox1.ItemIndex of
? ? 0: GroupHeader1.Condition := 'ADOQuery1."field0"';
? ? 1: GroupHeader1.Condition := 'ADOQuery1."field1"';
? ? 2: GroupHeader1.Condition := 'ADOQuery1."field2"';
? ? 3: GroupHeader1.Condition := 'ADOQuery1."field3"';
? end;
end;
Comments