The goal with this post is to show how NOT to use Code.GetData and Code.SetData in the one of the most common used Document report in NAV, our beloved 206 report. Code.GetData and Code.SetData is used in the header to of the report to keep field values in sync with current sales order currently being printed in the body. Just adding the field in the header will not keep this synchronization, unfortunately.
Posted inDynamics NAV & BC Tips & tricks