Navegation in script

Hi

I need in script have access to records in a table (DBISAM), for example:

My proyect (builder) have a Table with name tblPartidas (tblPartidas have a Calculed y Lookup fields), i use one TfrxDBDataSet for link to tblPartidas with name "Partidas"

Script

{
Partidas.First; // Error.
<Partidas.First>; //Error
...



}

I need any process in the report, i dont want use component's table in the report,
in the report can??t calculed and lookup fields.

Any solution? thank??s and excuseme my bad english.

Best regards
Roger

Comments

  • edited 12:23PM
    FR can access field from Delphi dataset but use FR Dataset, look at this sample:
    var
    ACCOUNT_CODE : String;

    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
    //Akses from Dataset use FR Dataset!!!
    ACCOUNT_CODE := <frxDBDataset1."ACCOUNT_CODE">;
    end;

    No matter ACCOUNT_CODE is data, lookup or calculated field.

    Do you mean like this?
  • edited 12:23PM
    Hi

    Thanks for your responce Thenicespider and it does not work to me.

    I need navigate in the table by code, I need print data in the title band.

    My solution are two:

    1: Use DoblePass and process in the MasterData band in the first pass.

    2: Use define "userfunction" with implemetation navigation table.

    I think existed another form better.

    Best regards
    Roger

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.