system warning in dataport

Navi_Learner
Navi_Learner Member Posts: 356
Hi, is there any way to display a warning message when imorting data. For instance, if the no in the file to be imported doesn't match the no in the system, it will give an error. Thanks!

Comments

  • Savatage
    Savatage Member Posts: 7,142
    number? which number?
  • kriki
    kriki Member, Moderator Posts: 9,135
    You can some code in the OnPreDataport-trigger.
    IF CurrDataport.IMPORT THEN BEGIN
      // in here you can do some tests and also you a CONFIRM to ask confirmation and the block the import with an ERROR or do nothing
    END;
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!