Skip to main content

Posts

AX 2012 : Add/Remove Dynalink through X++

DynaLinks can be removed and added between datasources on form using this code; ClearDynaLinks() will remove all existing dynaLinks [these can be seen by right click on the click > Personalise > Query tab > under dataSource node AddDynalink() method has three parameters; 1. Source table field 2. Destination table 3. Destination table field The following code is implemented in the Click event of a button. void  clicked() {     SalesQuotationLine_ds.query().dataSourceNo( 1 ).clearDynalinks();     SalesQuotationLine_ds.query().dataSourceNo( 1 ).addDynalink( fieldNum (SalesQuotationLine, QuotationId),                                                          SAB_DocQuoteGroupRelation,                           ...

Microsoft Dynamics 365 for Operations - Number sequence

Number sequence framework in there for a while with the release of AX 2012 however, with the arrival of D365 we need to make a small addition on top of what we have been doing in AX 2012. Following my previous, post  How to generate number sequence for new module in AX 2012  all  steps remain same as summarizing below to generate number sequence for the newly developed module.  1. Create a new class similar to NumberSeqModuleCust but suffix it with your module name e.g. NumberSeqModule MyModule extended from  NumberSeqApplicationModule 2. Added loadModule() method 3. Add numberSeqModule() method with your new added enum value (for your module) in NumberSeqModule_extension (You should create an extension of NumberSeqModule base enum and not customizing it and add new element for your module into that extension) 4. This is an additional step for D365 you would need to perform otherwise it will claim "The value does not exist in the map". Crea...

MS D365 - Development Exam - A brief outlook

Having passed the Microsoft Dynamics 365 Development Introduction exam (MB6-890), here are few thoughts on the exam which might help someone who is planning to appear in this exam. If you are an experienced AX developer and have worked on AX 2012 - you don't need to worry. Having said this "You don't need to worry", It would be the wiser step to watch all videos from https://mbspartner.microsoft.com/AX/CourseOverview/1181 . You can visit the Microsoft Dynamics Learning Portal and access it via your CustomerSource Account or PartnerSource Account. The exam will consist of 90 Questions and you will have 115 minutes to complete. Brief outlook of the exam; 1. Basic X++ knowledge - For , do...while and while loops understanding and code flow 2. Extended data types - what properties can be extended from parent EDT 3. Menu item properties - key properties of menu items 4. Types of menu items and which one used for what purpose 5. Base enumeration - h...

MS Dynamics 365 - Create Model and Project - Development Part 1

This post describes how to create model with correct selection of package which leads to correct development approach either Extension or Overlayering (Customization) Go to Dynamics 365 or AX7 | Deploy | Create model Enter required information as shown Choose correct package If you decided to go with overlayering, existing package will be selected from dropdown.   Select referenced packages For this example; I will go with extension development approach, it is easy to upgrade with new versions or updates coming from MS. Marked all required packages (models) which can be referenced through your new created model. Through these references, you can actually use the element living in those packages (models), without these references you cannot access any element belongs to a different model. Lets' say you want to access CustTable which belongs to Application Suite package then you have to checked  Application Suite package in referen...

MS Dynamics 365 - Configure Visual Studio for better expereince

Few settings to configure in Microsoft Visual Studio to make the development experience with AX a little smoother. Go to Dynamics 365 Options Set Projects Options - organize project by element type Set Text Editor Options - Line number and word wrap Set Best practice options The definition of best practice rules set is per model, by default it is set to Application Common model and can be switched between different models from the combo box in the upper right corner. Let's say if you are working with Customization Analysis you have to check Microsoft.Dynamics.AX.Framework.CustomizationAnalysisRules best practice rule. Set BP rules at Build level Build process itself does BP checking - there is an option to enable it. To take this into effect you might have to rebuild the solution/project rather build it.

MS Dynamics 365 - Configure Visual Studio for better expereince

Few settings to configure in Microsoft Visual Studio to make the development experience with AX a little smoother. Go to Dynamics 365 Options Set Projects Options - organize project by element type Set Text Editor Options - Line number and word wrap Set Best practice options The definition of best practice rules set is per model, by default it is set to Application Common model and can be switched between the different model from the combo box in the upper right corner. For example; to work with Customization Analysis you have to check Microsoft.Dynamics.AX.Framework.CustomizationAnalysisRules best practice rule.  Build process itself does BP checking - there is an option to enable it. [To take into effect you might have to rebuild the solution/project in contrast to we usually do - build] .