Skip to main content

Posts

Showing posts from November, 2019

Code to record value in customize field on Sales order packing slip in Axapta

Below is a Code to record value in customize field on Sales order packing slip in Axapta. This code is taken form Ax 2012 version but you can try in D365 also. You need to make changes in method of InitHeader of  class SalesPackingSlipJournalCreate . Happy daxing friends. \Classes\SalesPackingSlipJournalCreate\initHeader

Code to filter particular financial dimension in axapta

Below is a sample code to put filter or range for financial dimension region for any form. If you current form has default dimensions set like region and department and you want to filter only region then this sample code can help you. You need to put in init method of the form.  SysQuery::addDimensionAttributeRange(CustInvoiceJour_ds.query(),                             CustInvoiceJour_ds.name(),                             fieldStr(CustInvoiceJour, DefaultDimension),                             DimensionComponent::DimensionAttribute,                             EmployeeRegion_RangeMST1.GOD_Region,                             'Region');