Extension framework

Step 1 : create an enum with following elements: Enum:           EAMReferenceDataType elements are: FaultType, Correctiveaction.. Step 2: Create a class with below methods. class eamReferenceData { Common common; } public Common parmCommon(Common _common = common) { common = _common; return common; } public Common parmCommon(Common _common = common) { common…

AIF outbound

/// <summary> /// This event handler generates the fault types outbound file if the condition is satisfied /// </summary> /// <remarks> /// Created by chait on 07/10/16 as part of fault types outbound /// </remarks> public void generateFaultTypeOutbound() { AxdSendContext axdSendContext = AxdSendContext::construct(); AifEntityKey aifEntityKey = AifEntityKey::construct(); AifConstraint aifConstraint = new AifConstraint(); AifConstraintList aifConstraintList =…

Consuming AIF document service from C#

For create: static void Main(string[] args) { //Working One //Create the client object and context EAMTerminalGroupLocationServiceClient client = new EAMTerminalGroupLocationServiceClient(); // Create an instance of the document class. AxdEAMTerminalGroupLocation TerminalGrpLocation = new AxdEAMTerminalGroupLocation(); CallContext context = new CallContext(); context.Company = “EAM”; // Create instances of the entities that are used in the service and //…

RunBase Framework

The RunBaseBatch class extends the RunBase class and allows one to create classes (jobs) that can be added to the batch queue. Once the job has been added to the queue, it will be executed by the batch server. This concept is known as batch processing. Whenever you write a class that typically asks a user for input…

Index vs Index hint

Hello, Index : Using “Index“: when you add the statement “index MyIndex”, the Axapta kernel will add an “ORDER BY” with all the fields of the index. Example: select * from InventTable index GroupItemIdx will generate the following SQL statement to the database: SELECT A.ITEMGROUPID, A.ITEMID, A.ITEMNAME,…. FROM INVENTTABLE A ORDER BY A.ITEMGROUPID, A.ITEMID The…

CIL in AX 2012?

Hi There, On this post I would like to talk about a bit more about the CIL and what happens in the background. Recently I had to go through a process to find a CIL error I got after deploying a service. You can read my post solving the error “The CIL generator found errors…