随笔分类 -  X++

摘要:staticvoidJimmy_InventOnHandPhysical(Args_args){InventOnHandinventOnHand=newInventOnHand();InventDimParminventDimParm;ItemId_ItemId="10-1000";;inventDimParm.initFromInventDim(InventDim::findOrCreateBlank());inventOnHand.parmInventDimParm(inventDimParm);inventOnHand.parmItemId(_itemId);inve 阅读全文
posted @ 2011-08-04 09:35 Fandy Xie 阅读(638) 评论(0) 推荐(0)
摘要:Business requirement: update planned order upon modification of a salesline without master scheduling.Sometimes you want to see changes made on a SalesLine immediately on the reference Planned Order, without Master Scheduling. This post describes how you can make a little code adaptation to achieve 阅读全文
posted @ 2011-08-04 09:13 Fandy Xie 阅读(706) 评论(0) 推荐(0)
摘要:I often have received the data requirement from the Soucing department.such as below.Hi Jimmy,Could you please based on as below standard run out list with all supplier, unit price, MOQ, Last 12 months purchase QTY us?Thanks!...................Hi JimmyThanks for your work. I have two questions as fo 阅读全文
posted @ 2011-08-01 16:35 Fandy Xie 阅读(1723) 评论(0) 推荐(0)
摘要:This code is used to create a simple form with overview and general tab when table name is passed to it. Before creating the form make sure the table contains overview, identification and description field group as per the best practice. Also check that label of Table is given which help in creating 阅读全文
posted @ 2011-07-25 14:08 Fandy Xie 阅读(591) 评论(0) 推荐(0)
摘要:As in Dynamics AX 2009, XML is widely used , so I got a code which will help to create XML file.staticvoidJimmy_CreateXMLFile(Args_args){//AsinDynamicsAX2009,XMLiswidelyused,soIgotacodewhichwillhelptocreateXMLfile.XmlDocumentdoc;XmlElementnodeXml;XmlElementnodeTable;XmlElementnodeAccount;XmlElementn 阅读全文
posted @ 2011-07-25 13:54 Fandy Xie 阅读(2136) 评论(0) 推荐(0)
摘要:How to using x++ code achieve Lookup files list with entire folderEffect as below ImageWrote by Jimmy xie at 2011-07-19 Enjoying... ... (*^__^*) ... .../*How to using x++ code achieve Lookup files list with entire folderWrote by Jimmy xie at 2011-07-19*/static void Jimmy_LookupFileFolder(Args _args) 阅读全文
posted @ 2011-07-19 10:43 Fandy Xie 阅读(523) 评论(0) 推荐(0)
摘要:Using the following Jobs function can check spelling and grammar with english in Dynamics AX .// Created on 13 七月 2011 at 16:51:40 by Jimmy xiestatic void Jimmy_SpellingChecker(Args _args){ boolean ret; SysSpellChecker sp = SysSpellChecker::newLanguageId("en-us");//调用word里面的语法检查功能,目前只支持英文 阅读全文
posted @ 2011-07-13 16:50 Fandy Xie 阅读(379) 评论(0) 推荐(0)
摘要:When you are finished renamed the Item number, you must record original Item number, related configure and so on!static void Jimmy_ItemRenamedAfterUpdate(Args _args){ InventTableCompany ITCompany,delITCompany; InventTable IT,ITUpdateOrg; ConfigTable ConfigTable; InventDimCombination Combination; Dia 阅读全文
posted @ 2011-07-13 15:59 Fandy Xie 阅读(373) 评论(0) 推荐(0)
摘要:static void Jimmy_CancelRemainQtyFromSO(Args _args){ SalesLine UpRemainSalesLine; SalesTable SalesTable; SalesId SalesId = "QVSC002819HK"; ; ttsbegin; if (Box::yesNo(strfmt("是否取消订单 %1 的所有剩余交货?",SalesId) +"\n",DialogButton::No)==DialogButton::Yes) { SalesTable = SalesTab 阅读全文
posted @ 2011-07-13 11:24 Fandy Xie 阅读(658) 评论(0) 推荐(0)
摘要:static void Jimmy_FindFilesWinAPI(Args _args){ #File int i; FileName fullFileName(FileName _path, FileName _fileName) { FileName pathName; FileName fileName; FileName fileExtension; ; [pathName,fileName,fileExtension] = fileNameSplit(_fileName); return _path + '\\' + fileName + fileExtension 阅读全文
posted @ 2011-07-12 17:33 Fandy Xie 阅读(330) 评论(0) 推荐(0)
摘要:He favorites menu is a popular thing in Dynamics AX 2009. It has been around for quite some time now in Dynamics AX 2009, in one form or another.A common request that I get from users is: "Hey, I like this guy's favorites menu, can't I copy it to me own settings?'.The answer in stan 阅读全文
posted @ 2011-07-01 16:11 Fandy Xie 阅读(394) 评论(0) 推荐(0)
摘要:Wrote by Jimmy on 2011-06-29Real-time switch Languagevoid clicked(){/* Dialog Dlg = new Dialog("please Enter one of language!"); //DialogField dlgLanguage = Dlg.addField(typeid(LanguageId)); DialogField dlgENCN = Dlg.addField(typeid(Noyes),"Chinese Label"); DialogField dlgENUS = 阅读全文
posted @ 2011-06-29 11:17 Fandy Xie 阅读(1064) 评论(0) 推荐(0)
摘要:Axapta provides a very handy feature to allow developers to ship their solution with Axapta built-in image files. In Application Object Tree, you can find resources node. Select resources node and right click; select Create from File, specify the file location for the new resource file. After that y 阅读全文
posted @ 2011-05-30 11:08 Fandy Xie 阅读(4481) 评论(0) 推荐(0)
摘要:Sometimes,During development and test we often switch between different companies in our installation. To not mistaken us, so we always make changes in the correct one, we made this small change in the code. With different background-colours for each company, you never delete something importent by 阅读全文
posted @ 2011-05-26 16:11 Fandy Xie 阅读(835) 评论(0) 推荐(0)
摘要:This is just a quick look at the List object in Dynamics AX. Just played around with it to see what functionality was there and what wasn’t. As you can see I just created a simple list of integers and also one with records from InventTable, if you wan’t to know what types can be placed in the list, 阅读全文
posted @ 2011-05-26 11:03 Fandy Xie 阅读(248) 评论(0) 推荐(0)
摘要:Ever wonder if there is an easy way to find out what customer account a sales company has at the production company?This might not be an easy way, but it is one way to do it:remark by Jimmy on May 26th 2011static void Jimmy_IntercompanyCustAccount(Args _args){ VendTable vendTable; AifEndpointId endp 阅读全文
posted @ 2011-05-26 10:21 Fandy Xie 阅读(489) 评论(0) 推荐(0)
摘要:Sometimes,we need to print a report how to the dynamic control of the print dimensions display filed.Standards function the AX system, has been the standard way to achieve this demand, we need to do is small modifications.01)Create a report. and set second datasource propertiesJust as in the Form, y 阅读全文
posted @ 2011-05-16 16:55 Fandy Xie 阅读(544) 评论(0) 推荐(0)
摘要:when the User actived the Default BOM LAT Price checkbox on price(Purch.) Form,The ERP system will automatic updated and refresh the account selection(Vendor account) to the InventTable Form(have created Relationshipfield with Primary vendor account) right now.Such as below.Wrote by Jimmy on May 5th 阅读全文
posted @ 2011-05-05 15:46 Fandy Xie 阅读(467) 评论(0) 推荐(1)
摘要:Flexible application of the temporary table in Dynamics AX 2009Such as applied to Query ,Reports , Form ,Analyzed and fetch data and so on.Wrote by Jimmy on April 27th 2011static void Jimmy_TempTableAppy(Args _args){ Query q = new Query(); QueryRun qr; QueryBuildDataSource qbds; Temp_ProdOrderConsum 阅读全文
posted @ 2011-04-27 14:53 Fandy Xie 阅读(965) 评论(0) 推荐(0)
摘要:Sometimes,The purchasing staff would like to Batch Terminate and copy thepurchase price on Trade agrement - > Purchase prices.So,I wrote a batch jobsused to solve this problem!Wrote by Jimmy on April 25th 2011static void Jimmy_PriceChangeVendorAndCopyPrice(Args _args){ int i; priceDiscTable price 阅读全文
posted @ 2011-04-25 16:27 Fandy Xie 阅读(669) 评论(0) 推荐(0)