Create Purchase order or Sales order and invoice through X++
static void CreatePOAndInvoice(Args _args){ PurchTable purchTable; PurchLine purchLine; VendTable vendTable = VendTable::find("1000"); AxPurchTable axPurchTable;...
View ArticleSave AX 2009 report in to PDF format.
public boolean fetch(){boolean ret;;// The below code will save the report of ax 2009 in to pdf format and thus help you to send the report to...
View ArticleChange the color of individual field in ax 2009 Report
public void executeSection(){int controlcount;int counter;int usecolor;int oldcolor;object...
View ArticleTo set the password when you start your AX.
The very first class called when you log in to the AX is Application(Class) and method startuppost().Thus you can write the code here in startuppost method.void startupPost(){dialog d;dialogfield df,...
View ArticleArgs class
The Args system class is one of the most widely used classes in Axapta. Args is an abbreviation for arguments and an Args object is used to pass information from one object (caller) to another newly...
View ArticleMultiSelection of records
void checkSelectedRecords(){Student inventLocal;;//getFirst method gets all the selected records in the gridinventLocal = Student_ds.getFirst(true);while (inventLocal){info(strfmt("You selected Item...
View ArticleRunBase 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...
View ArticleReport structure in AX 2009 / Create report in simple steps
public class ReportRun extends ObjectRun{ dialogField Fromdatefield,todatefield; FromDate fromdatevalue; ToDate todatevalue; date1980 date1; date1980 date2; ConfirmId...
View ArticleRenumber your RecId's
Every record in Axapta will have one unique identifier: the RecId.The RecId will be unique per company and the system gets the next RecId number from the table SYSTEMSEQUENCES, field...
View ArticleTax calculation through X++
Method 1:void clicked(){real tax1;; super(); tax1 = Tax::calcTaxAmount(Salesline.TaxGroup, Salesline.TaxItemGroup, Systemdateget(), Salesline.CurrencyCode, Salesline.LineAmount,...
View ArticleFormula 1 Team Races With Microsoft Dynamics
Guys, Dynamics AX has been adopted by Lotus F1 team to manage their every aspect of the business.
View ArticleImport the record from MS Excel to AX2009 / AX2012
The below code will help you to import the Excel file in to your MS Dynamics AX 2009 / AX 2012.staticvoidImportFromExcelTOAX(Args _args){ #AviFiles SysOperationProgress progress =...
View ArticleSome Important date functions in AX
Dayname: Retrieves the name of the day of the week specified by a number.wkofyr : Calculates the week of the year in which a date fallsmthofyr: Retrieves the number of the month in the year for the...
View ArticleTo find stock On-Hand in AX through X++
static void findOnHand(Args _args){ InventDim inventDim;InventDimParm inventDimParm;Itemid itemid;InventOnHand inventOnHand = new InventOnHand();;// take a sample item for testingitemid = "Item1";//...
View ArticleUse of container in display method in AX
Hi friends, Today am going to discuss about the use of container in display method in MS dynamics AX.There may be requirement when we need to display certain things from multiple lines in to a single...
View ArticleLookup (or) Drop-down for field in Dynamic AX using query
void lookupField(FormControl control){ Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; SysTableLookup...
View ArticleX++ Code to Export AOT Object / automatic backup of XPO's.
Hi friends, hope all is well!! JToday am here to convey the most vital subject for MS dynamics AX.Development or customization's are the most important topic which should be saved or backup need to be...
View ArticleGet exchange rate from web in to MS AX
static void GetExchangeRates(Args _args){ com com = new com('microsoft.xmlhttp'); com com1; XMLDocument xmlDoc; Dialog exchDialog = new Dialog("Exchange Rates"); DialogField fromField;...
View ArticleForce Synchronisation of AOT tables through X++ in AX:
static void forceDbSynchronize1(Args _args){Dictionary dict;int idx, lastIdx, totalTables;TableId tableId;Application application;SysOperationProgress progress;StackBase errorStack;ErrorTxt...
View ArticleLedger postings in MS Dynamics AX 2009
PS stands for packing slip PSO stands for packing slip offsetLedger postings for sales order:1.packing slip: Credit...
View Article