Automatic Yes to a Message

gemini_shootergemini_shooter Member Posts: 149
Hello,

I have a dataport that imports Service Lines, which also does some updates on the Service Header and runs the validate function for 'Location' on the Service Header
IF ("Location Code" <> xRec."Location Code") AND
   ("Customer No." = xRec."Customer No.")
THEN
  MessageIfServLinesExist(FIELDCAPTION("Location Code"));

UpdateShipToAddress;

Is there a way to automatically say 'Yes' to the pop from the MessageIfServLinesExist function but I would like to change it in the Dataport and not on the Table

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Is there a way to automatically say 'Yes' to the pop from the MessageIfServLinesExist function but I would like to change it in the Dataport and not on the Table
    Call the function "Service Header".SetHideValidationDialog(TRUE). The variable HideValidationDialog is used in the function MessageIfServLinesExist to determine if the messages needs to be displayed or not.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • 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!


  • gemini_shootergemini_shooter Member Posts: 149
    Thank you, it works.
Sign In or Register to comment.