Microsoft Dynamics Axapta Workshop

Microsoft Dynamics Axapta Workshop
  • How to lock segments in Segmented entry control

    There is a parmMethod in the controller class that can lock the main account segment. You can use it to lock the segment.  
  • How to make field readonly in web service

    Question: I have a bug in web service where we need to make a parameter read. There is a code in validateWrite(..) method of the table that adds an AIFFault::checkFailedLogFault if the field is being changed.However, when testing this using the web service...
  • How to add reference group control through code

    #Define.controlName(TestControl) FormReferenceGroupControl testReferenceControl = Grid.addControl(FormControlType::ReferenceGroup, #controlName); testReferenceControl.dataSource( tableStr (testDataSourceTable)); testReferenceControl.referenceField...
  • How to set focus on the reference control

    Referencegroup.controlnum(1).setFocus() ;
  • How to set Fact box properties through code

    Hi – Below is the example that shows how to set properties of the parts through code int partListCounter; PartList formPartList; ListEnumerator partListIterator; FormRun formPart; List partList = new List(Types::Class); for (partListCounter...
  • Dynamics Ax techincal interview and domain

    Hi- I was just brainstorming about the dynamics ax interview question and I came up with the following image that could list the minimum requirements and gives good picture about the question to be asked in in the Dynamics Ax technical interview.
  • How to write methods on the list page Form in Ax 2012

    Scenario: I have a menu item that calls some class to do manipulation on the list page Form and I need to refresh the list page now. List pages do not allow writing of code on the Form, as they used interaction class. Solution: You can write the code...
  • How to check the number of marked records on the Forms

    Scenario 1: User is checking the rows in the grid to mark them for deletion, I want to get the number of checked records to do some thing Solution Use the buffer_Ds.recordsMarked().lastIndex() to check the number of the records that are marked for...
  • How to develop inbound web service in ax 2012

    Hi- This article is about creating inbound web service. Let’s go through step by step to understand the development of it. First we will discuss the concepts then we will go deeper in the implementation. Overall picture How the component are...
  • How to find company currency through x++ code in Ax

    Q: How to find company currency through x++ code in Ax You can use the following code CompanyInfo::standardCurrency() or Ledger::accountingCurrency(CompanyInfo::current()); How we make new company in Ax 2012 1) Go to the organization administration...
  • Dynamics Ax trade and logistics training presentation

    I compiled a training presentation on trade and logistics in Ax today. It does not contains full details of trade and logistics but I think it can be good start to see a broader picture of the trade and logistics in Ax. I thought I share this training...
  • Dynamics Ax integration with Office 365

    An interesting article on Office 365 integration with dynamics Ax http://blogs.msdn.com/b/chrisgarty/archive/2012/02/27/can-dynamics-ax-2012-work-with-office-365.aspx
  • HowTo: Unit of work implementation for a Form

    Unit of work is a new framework that have been introduced in Ax 2012 that enables the number of records to be committed in single transaction. There are number of posts on this post that you can find easily in different blogs which talks about the unit...
  • Calling instance methods through reflection

    Hi- Following job can execute instance method in a class. I had a scenario where I wanted to test my upgrade scripts and you know for running upgrade script there is a need to run the process that consumes a large amount of time, so I thought following...
  • Calling data source method in the AX Form

    How to call a method that is on the Form data source Pretty simple, use Datasourcename_ds.testMethod to call it. Make sure the method is public
  • AIF setup and installation in Dynamics Ax 2012

    Hi – Today the post is about the AIF installation and setup . I found it really hard to configure when I tried to search the articles about it so Here you go. I think the whole configuration can be divided in two parts 1)Install the AIF component...
  • Setting focus when going to main table

    Problem: I have written a custom jumpRef, now I want to focus on particular row when the Form opens Solution: There is an interesting method in the Args class that is used to achieve the above scenario. There are methods with prefix lookup in the args...
  • Refresh cache

    Problem: I have modified the framework classes but changes are not reflecting. The code is retrieving values from the cache Answer: You might need to refresh your cache. There are two ways of doing that 1)Tools à cache in the development work space...
  • List all mandatory fields in the AOT Job

    Hi- I wrote a job today that can list all the fields that are mandatory and belongs to particular tables that have particular configuration key. I thought I should share the code here, it might be helpful. #static void findMandFIelds(Args _args) ...
  • DEL_ mark field utility

    I have just created Del mark field utility for tables. In Axapta, if you want to delete some field from table in some newer version, you can’t simple delete the field, You have to rename the field to DEL_perfix and set configuration key to “SysDeletedObjectsVersionNumber...
  • Number sequence framework in Ax 2012 (Part 2: Consumption))

    Consumption Part Hi Readers, I implemented the number sequence consumption part today on the Form. So here are the steps that are needed to implement the number sequence. I would be more helpful, if we divide the number sequence Consumption in following...
  • Number sequence framework in Ax 2012 (simplified implementation)

    Hi Readers, Today. this post is about the “Number sequence framework in Ax 2012”. I did get a chance to work on it yesterday and I implemented the number sequence using the white paper available at msdn . I won’t be discussing the core concepts here...
  • Financial dimension uptake utility

    Hi- I have just compiled a utility that can implement the new financial dimension control on the Form. This control is generated dynamically through classes in Ax 6 and it needs code at various location to function properly. I feel, with new frameworks...
  • Tyler Technologies Completes First-ever Deployment of Microsoft…

    http://www.benzinga.com/pressreleases/11/10/b2053921/tyler-technologies-completes-first-ever-deployment-of-microsoft-dynamic
  • SysReferenceTableLookUp class for reference group

    There is a nice class with name “ SysReferenceTableLookUp “ that I found during the analysis of reference control that has just been introduced in Ax 2012. The class is helpful for customizing lookup of a reference control. Why a different class for...