Options

Add a functionality to the 'Purchase Order' page.

Rajat_MRajat_M Member Posts: 34
Hello,

Now I'm working on 'Purchase Order' page. Within the 'Lines' fasttab there is a field called 'Department Code'. I need to add a functionality to this field. If an user doesn't select any options for this field then the 'Purchase Order' page will not be posted. User have to select an option in this field. How could I implement this? If you help me with the code & where to write then it will be very helpful to me.

Regards,

Answers

  • Options
    Jan_VeenendaalJan_Veenendaal Member Posts: 206
    edited 2016-06-10
    In NAV2016: create a function that subscribes to event 'OnCheckPurchasePostRestrictions' from table 38 'Purchase Header' - or maybe better use event 'OnCheckPurchaseReleaseRestrictions'

    In earlier versions: go to codeunit 415 'Release Purchase Document'

    In any case: do not write code on the Page !

    What code to write: Please try for yourself. If you have any questions after that: post a new question in this forum, showing your code that does not work.
    Jan Veenendaal
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    As Jan said write your code on codeunit 415. Identify yourself where to write the code. :)
Sign In or Register to comment.