Exit for NAV 2009

sabzamsabzam Member Posts: 1,149
Dear All,

I need to stop the deletion of a sales price from the table delete trigger but I cannot use the error function as I don't want to issue any error messages. I was trying to use the exit but apparently exit still enables NAV to proceed with the deletion. Exit (FALSE) apparently does not exist...(I think it can be used in previous versions).

Does anyone know of another functionality which performs similar tasks?

Regards,

Sabzam

Comments

  • AlbertvhAlbertvh Member Posts: 516
    Hi, you could try ERROR('');

    Abert
  • sabzamsabzam Member Posts: 1,149
    Hi,

    Thanks it has worked. I though it would still release an empty message but it didn't and is working fine.
  • DenSterDenSter Member Posts: 8,305
    EXIT is used to exit the current trigger, that has always worked. EXIT(FALSE) will work when the return value of the trigger is a boolean.

    The only way to prevent the deletion is by using ERROR. Try Albert's suggestion and see what happens.
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.