Show the value of calculated flowfield in another tablefield

vyanku
vyanku Member Posts: 791
I create a field of sales quantity in job ledger entry which is flowfield and having calcfield property as
Sum("Job Ledger Entry".Quantity WHERE (Entry Type=CONST(Sale),Job No.=FIELD(Job No.),Phase Code=FIELD(Phase Code),Type=CONST(Service Item),Posting Date=FIELD(Posting Date)))
And it shows me proper value in Job ledger entry table.
Now I want to show that value in one report based on another table.
But I am not able to get the value of that field, as it is flowfield having sumindexfield of quantity.](*,) .
How can I get the value of that field in another table/report?

Comments

  • Slawek_Guzek
    Slawek_Guzek Member Posts: 1,692
    Hi,

    1. Copy the definition of flowfield to another table :)

    or

    2. in the report make a variable based on JobLedgerEntry, get desired record, and use JobLedgerEntry.calcfields("your field here");

    3. in the form you can do as in 2, put the code in OnAfterGetRecord

    or

    4. In "another" table make new Lookup flowfield pointing to JobLedgerEntry flowfield, and in JobLedgerEntry flowfield put a mark that value is a flowfilter (will be calculated first)

    Regards,
    Slawek
    Slawek Guzek - www.yitron.co.uk
    Business Central, MS SQL Server, Wherescape RED;
  • Mbad
    Mbad Member Posts: 344
    Ehh why isnt that field on job where it belongs?