CHANGE GROUP CONDITION RUNTIME

Regards
i can change group from a report in runtime.
wrote:
if ( frx.findcomponent( 'Groupheader1' ) as tfrxGroupHeader ) <> nil then
(frx.findcomponent( 'GroupHeader' ) as tfrxGroupHeader).Condition :=quotedstr( '<frxdbdataset1.'+
FQRListPedidos.QRGroup1.Expression+'>'

but this code is not valid ... ???


Thanks ...

Comments

  • gpigpi
    edited 2:05AM
    What is FQRListPedidos.QRGroup1.Expression value?
  • edited 2:05AM
    gpi wrote: »
    What is FQRListPedidos.QRGroup1.Expression value?

    is imported from a quickreport expressi??n , its value in runtime is as follows:

    'DATE_OF_PRODUCT', thas is a field of query

    the finally string is :

    (frx.findcomponent( ccomponente ) as tfrxGroupHeader).Condition:= '<frxdbdataset1."date_of_product">


    thanks....
  • gpigpi
    edited 2:05AM
    Try to use
    TfrxGroupHeader(frxReport1.FindObject('GroupHeader1')).Condition:= '<frxdbdataset1."date_of_product">';

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.