whisch is the best solution..field or variable??

dndn Member Posts: 71
I just need a field to show days in "Finance Charge Memo Lines" window.
which one is the best solution, a variable who I can put in OnaftergetRecord or a new fiels that filled in codeunit?
I don't need to save data in that field so...which is best?? :-k

Comments

  • MTCMTC Member Posts: 159
    If you don't need to store the information, then use a variable. As long as there are no serious processing overheads involved with calculating the value.
  • bbrownbbrown Member Posts: 3,268
    Create a function, on the table, that calculates and returns the value required. You can then use the function as the source expression for a textbox etc.
    There are no bugs - only undocumented features.
  • David_CoxDavid_Cox Member Posts: 509
    You do not even need a variable or function, if the value is caculated from 2 fields or values, then you can just add a textbox.

    For the Finance Charge Memo Line and a text box where the sourceExp = TODAY - "Due Date"

    Same can be done for Decimal Fields for a VAT Amount you could put, SourceExp = "Amt. Inc. VAT" - Amount

    :)
    Analyst Developer with over 17 years Navision, Contract Status - Busy
    Mobile: +44(0)7854 842801
    Email: david.cox@adeptris.com
    Twitter: https://twitter.com/Adeptris
    Website: http://www.adeptris.com
Sign In or Register to comment.