Tuesday, March 11, 2014

Dynamics NAV - Update a form field based on another field


//DAV
IF "Transfer-from Code" = 'CSU' THEN
Store.GET('WH')
ELSE BEGIN
Store.GET("Transfer-from Code")         ;
END;

IF "Shortcut Dimension 1 Code" = '' THEN
"Shortcut Dimension 1 Code" := Store."Global Dimension 1 Code";
end;
CurrForm.UPDATE
//DAV

No comments:

Post a Comment