Change log entry has to show the 'sales header' and 'sales line' changes for particular sales order

Jacob1227Jacob1227 Member Posts: 128
edited 2019-09-10 in NAV Three Tier
Hi All,

I have created one action button(change log) in 'Sales order page' and I have written the below code in 'on action' action trigger.

RecRef.GETTABLE(Rec);
ChangeLogEntry.SETRANGE("Record ID",RecRef.RECORDID);
ChangeLogEntries.SETTABLEVIEW(ChangeLogEntry);
ChangeLogEntries.RUN;

While i am clicking the action button in any sales order, only it filtered the sales header changes and shown. But i want to show the both sales header and sales line changes.

Can you guide me to proceed further?

Thanks in advance,
Jacob.A

Best Answer

Answers

  • Jacob1227Jacob1227 Member Posts: 128
    Hi Wisa,

    Thanks for your suggestion.

    RecRef.GETTABLE(Rec);
    ChangeLogEntry.SETRANGE("Primary Key Field 2 Value",Rec."No.");
    ChangeLogEntries.SETTABLEVIEW(ChangeLogEntry);
    ChangeLogEntries.RUN;

    The above code works as per your suggestion.
Sign In or Register to comment.