How to rename the error?

MarharytaMykytenkoMarharytaMykytenko Member Posts: 45
edited 2020-06-03 in NAV Three Tier
For example I have an error

m1vx2io1irp0.png


And I have to change text in this error: "Unit Price LCY" to "Unit Cost"
How can I do it?

Best Answer

Answers

  • s_keims_keim Member Posts: 9
    Hello MarharytaMykytenko,

    How do you throw the error?

    If your record is "Purchase Request Details" and your Field is "Unit Cost" ...
    Try
    PurchaseRequestDetails.TESTFIELD("Unit Cost")
    

    Kindly regards
    s_keim
    s_keim (Germany)
    inhouse developer on NAV2016 (9.00.47838) NAVDE
  • MarharytaMykytenkoMarharytaMykytenko Member Posts: 45
    edited 2020-06-03
    Hi s_keim ,

    I use this code for catch error when "Unit Price LCY" is empty.

    I can not use this code PurchaseRequestDetails.TESTFIELD("Unit Cost") because the field in table named "Unit Price LCY" but on the page this field rename to "Unit Cost". And if "Unit Cost" on page is empty I have to catch this error. But in this error "Unit Price LCY" have to be changed to the "Unit Cost". How I can do it?

    55qm49cdssbm.png
Sign In or Register to comment.