SBX - Search With Button

SBX - Forum Post Title

Using ChangeCompany

Microsoft Dynamics NAV Forum

jsshivalik asked a question on 13 Jun 2019 12:55 PM
My Badges

Question Status

Verified

Hi

  I am using like below . Is it the correct way. GlEntry is of Record DataType with SubType G/l Entry

Company - OnPreDataItem()

Company - OnAfterGetRecord()
GlEntry.RESET;
GlEntry.CHANGECOMPANY(Company.Name);

GlEntry.SETRANGE("Posting Date", 0D, AsOfDt);

Thanks

Reply
Teddy Herryanto responded on 13 Jun 2019 3:03 PM
My Badges
Verified Answer

Looks ok to me.

Below is the documentation if you are interested.

docs.microsoft.com/.../changecompany-function--record-

Reply
Teddy Herryanto responded on 13 Jun 2019 3:03 PM
My Badges
Verified Answer

Looks ok to me.

Below is the documentation if you are interested.

docs.microsoft.com/.../changecompany-function--record-

Reply

SBX - Two Col Forum

SBX - Migrated JS