Skip to main content

Posts

Code to get average cost price Item wise without dimension or blank dimension in Axapta

Below is the Code to get average cost price Item wise without dimension or blank dimension in Axapta. Mostly we not able to get cost price item wise because in on hand form its available inventory dimension wise so below code will help you to get cost price item wise. Try this code and enjoy daxing... display CostPriceAverage averageCostPriceUnit_New() { CostPriceAverage costprice; InventDim inventDimCriteria; ItemId itemId; InventDimParm inventDimParm; date perDate =systemDateGet(); InventOnHand inventOnHand; ; itemId = this.ItemId; inventDimCriteria.inventBatchId = ''; inventDimParm.initFromInventDim(inventDimCriteria); inventOnHand = InventOnhand::newParameters(itemId, inventDimCriteria, inventDimParm); costprice= inventOnHand.costPricePcs(false, perDate); return costprice; }

You can start Development work on Microsoft dynamics 365 by view this clip.

Dear Friends, You can start Development work on Microsoft dynamics 365 by view this clip. I hope you will like share and subscribe this channel. This is a very simple video clip to learn Basic technical of Dynamics 365 finance and operations for Startup which you can say extended version of Ax 2012.

Follow this technique to Solve Problem in Year 2019 | Problem solving process

Friends You can Follow this technique to Solve Problem in Year 2019. I hope you will able to understand.

How to add field in Onhand Inventory form in Ax 2012

This is typical question How to add field in Onhand Inventory form in Ax 2012 but I got easy way to solve. Only drag drop field will not help on this query . You need to reach on class InventDimCtrl_Frm_OnHand then find method modifyQuery then you need to add your field in group by otherwise you never be able to add field in on hand form. I hope it will help you a lot You should write code at the Classes\InventDimCtrl_Frm_OnHand\modifyQuery() method  This is called when you open the On Hand form, where Item number is shown and group by with other field.

Tips to Create Customer Address view in Axapta 2012

You can refer relation between table in below image which can help you to create view for Customer address master. Getting customer address is difficult due to multiple table involvement for tables. I hope this image will help you to create customer Address view. Thanks in advance.

Solved : Timeout Error on AIF Web Service inbound during call by code in Axapta

If you are facing Timeout Error on AIF Webservice  inbound  during call code in ax 2012 then you need to increase timeout setting in web-service port configuration. Steps to resolve this error is as below. 1. Go to System Administration menu. 2. Go  to this path \Menus\SystemAdministration\Setup\Services and Application Integration Framework\Inbound ports 3. Select the service port which you want to set timeout then disable the service. 4. Click on configuration. 4. Set the time out receive timeout, sent timeout,open timeout etc 5. After setting time out Enable web service port again. 6. Now check and run code for timeout issue get resolved.

Batch job History Log Cleanup code in Axapta till specified date

You can clear log for batch job history in Ax by following code. This code can work in most of ax version . If you want to clear  log till some date that you can also specify in query . You can just copy and paste below code run or execute. BatchJobHistory BatchJobHistory; date startDate; TimeOfDay startTime; utcDateTime rangeStart; startDate=mkDate(21,12,2014); startTime = str2time("6:00:00 am"); rangeStart = DateTimeUtil::newDateTime(startDate,startTime); delete_from BatchJobHistory where BatchJobHistory.createdDateTime<rangeStart; //select count(RecId) from BatchJobHistory where BatchJobHistory.createdDateTime<rangeStart ; // info(strFmt("%1 till cleanup done ",BatchJobHistory.RecId)); info(strFmt("%1 till cleanup done ",rangeStart));