OnInsert

tompynationtompynation Member Posts: 398
is it possible to stop the insert in the OnInsert trigger from a table?

Comments

  • vikram7_dabasvikram7_dabas Member Posts: 611
    u can stop the insertion from object by selecting the property "Insert Allowed" to No of Form.Then u cannot insert the record in that table.
    Vikram Dabas
    Navision Technical Consultant
  • tinoruijstinoruijs Member Posts: 1,226
    You could write an error.
    If SomeCondition then error('Record can not be inserted because of some condition');
    

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can put a delete in the insert trigger, but that is definately not reccomended.

    I have seen this at one of our upgrade customers and it is a terrible solution.
Sign In or Register to comment.