Summation of 2 fields in a List form

shettarvikasshettarvikas Member Posts: 106
Hi,

I want to sum two fields in a list form. And display the result in a global variable attached to list form.

Eg: SourceTable :- Item Category
2 fields:- Sales Amount and Discount both fields are Flowfields.
On click of a button, the list form should display the summation of these above said fields and display it in global variable for each item category.

Please suggest.

Thanks & regards,
vikas

Comments

  • NaviDevNaviDev Member Posts: 365
    Read it "line by line". Because navision is not capable of supporting sumindexfield with flowfields.
    Navision noob....
  • DriesDries Member Posts: 29
    Just put your code under the form trigger:

    OnAfterGetRecord

    If you do this then Navision will be calculated for you.

    Cheers,
    Idriss.
Sign In or Register to comment.