RE: Ignore messages while importing by using SetHideValidationDialog.
HideValidationDialog := TRUE;
IF UpdateLine <> UpdateLine::Update THEN
IF NOT HideValidationDialog THEN
IF ShippedReceived THEN BEGIN
IF NOT CONFIRM(Text006,TRUE) THEN
EXIT
ELSE
IF HideValidationDialog THEN
EXIT
END ELSE
IF NOT CONFIRM(Text003,TRUE) THEN
EXIT;
It works like the code above my but I want to set to validation dialog from the import.
I called from the import but it passes as "False" even though I coded like that:
DocDimensionRec.RESET;
DocDimensionRec.SETRANGE("Table ID",36);
DocDimensionRec.SETRANGE("Document Type",DocDimensionRec."Document Type"::Invoice);
IF DocDimensionRec.FINDSET THEN
DocDimensionRec.SetHideValidationDialog(TRUE);
Any clues on how to set hidevalidation true from the import?
Thank you so much