随笔分类 - Dynamics AX
摘要:Overview of Microsoft Dynamics AX build numbers 转自:https://community.dynamics.com/ax/b/axsupport/archive/2016/01/07/overview-of-microsoft-dynamics-ax-
阅读全文
摘要:You can get this error message while renaming object that is checked out from TFS.Unable to importTrying to import Table MFATable_test1 with ID 50003ID already held by Table MFATable1To rename the object you need to follow these steps:Right click the object in AOT and selectRename(without checking o
阅读全文
摘要:TwC: Validate access to return value from display/edit method.//BP Deviation Documenteddisplay freetext reportNote(){; return SalesParameters.ReportNote_DNT;}
阅读全文
摘要:一般在AX中有些编号是【装箱单号】是以0开头的字符串组成的编号,但是当我们导出且保存成csv或者xlsx格式的时候,打开文件时,系统加载字符串编号会自动默认为数字格式,会把编号最前面的O去除,且以数字的格式显示在界面上。导致数据显示异常。我们其实可以通过x++代码与Excel读取数据的原理解决这个问题。如tmpInventCardExpiry.PackingSlipId = PackingSlipId ? '="' + PackingSlipId + '"': "";
阅读全文
摘要:背景:对于有界面的应用程序来说, Windows增加了程序挂起的检查(Not Responding). 默认下原理是这样的:负责UI的线程在5秒内如果不能把发送给它的mouse/keyboard输入消息取走,那么Windows 的Desktop Manager 会创建一个ghost window在另外的进程(dwm.exe)上去。 Windows的任务管理器调用IsHungAppWindow来判断某个程序是否hung了。详细参看http://blogs.msdn.com/b/meason/archive/2010/01/04/windows-error-reporting-for-hangs.
阅读全文
摘要:一天中午,丈夫在外给家里打电话:“亲爱的老婆,晚上我想带几个同事回家吃饭可以吗?”(订货意向) 妻子:“当然可以,来几个人,几点来,想吃什么菜?” 丈夫:“6个人,我们7点左右回来,准备些酒、烤鸭、番茄炒蛋、凉菜、蛋花汤……。你看可吗?”(商务沟通) 妻子:“没问题,我会准备好的。”(订单确认) 妻子记录下需要做的菜单(MPS计划),具体要准备的东西:鸭、酒、番茄、鸡蛋、调料……(BOM物料清单),发现需要:1只鸭蛋,5瓶酒,4个鸡蛋……(BOM展开),炒蛋需要6个鸡蛋,蛋花汤需要4个鸡蛋(共用物料)。 打开冰箱一看(库房),只剩下2个鸡蛋(缺料)。 来到自由市场,妻子:“请问...
阅读全文
摘要:/*IfoundthisscriptbyKalenDelaneyonthissite.Ithinkthismayhelpyoursituation:Listing1:ProcedureThatFindstheHeadofaChainofBlockers*/USEmasterSETQUOTED_IDENTIFIEROFFGOIFEXISTS(SELECT*FROMsysobjectsWHEREname='sp_leadblocker'ANDtype='P')DROPPROCsp_leadblockerGOCREATEPROCEDUREsp_leadblockerA
阅读全文
摘要:As with every good DBA's toolbox, my blocking list query using sys.dm_exec_requests is evolving.I've added the following features:The query execution plan of the active request in the QueryPlan column to the right.Variable at the top which changes the relationship of the join between sys.dm_
阅读全文
摘要:实际生产环境里边,如果并发量不大,完全可以使用悲观锁定的方法,这种方法使用起来非常方便和简单。但是如果系统的并发非常大的话,悲观锁定会带来非常大的性能问题,所以就要选择乐观锁定的方法。悲观锁假定其他用户企图访问或者改变你正在访问、更改的对象的概率是很高的,因此在悲观锁的环境中,在你开始改变此对象之前就将该对象锁住,并且直到你提交了所作的更改之后才释放锁。悲观的缺陷是不论是页锁还是行锁,加锁的时间可能会很长,这样可能会长时间的限制其他用户的访问,也就是说悲观锁的并发访问性不好。乐观锁则认为其他用户企图改变你正在更改的对象的概率是很小的,因此乐观锁直到你准备提交所作的更改时才将对象锁住,当你读取.
阅读全文
摘要:悲观并发控制一个锁定系统,可以阻止用户以影响其他用户的方式修改数据。如果用户执行的操作导致应用了某个锁,只有这个锁的所有者释放该锁,其他用户才能执行与该锁冲突的操作。这种方法之所以称为悲观并发控制,是因为它主要用于数据争用激烈的环境中,以及发生并发冲突时用锁保护数据的成本低于回滚事务的成本的环境中。 乐观并发控制 在乐观并发控制中,用户读取数据时不锁定数据。当一个用户更新数据时,系统将进行检查,查看该用户读取数据后其他用户是否又更改了该数据。如果其他用户更新了数据,将产生一个错误。一般情况下,收到错误信息的用户将回滚事务并重新开始。这种方法之所以称为乐观并发控制,是由于它主要在以下环境中使用:
阅读全文
摘要:use DynamicsAx_PROgo------查询lock 循环次数 (倒序)exec usp_Find_Problemsgo-----杀死进程kill 141go-----查看当前数据库运行情况,可以看到进程被锁状况。sp_who2go---查看当前数据库死锁明细sp_lockgo--查看当前数据库进程死锁等待时间(倒序)Select a.sid,a.spid,a.waittime from sys.sysprocesses a where blocked <> 0order by a.waittime descgo---SELECT * FROM sys.dm_tran_
阅读全文
摘要:1. TuningMartin ZhenPrinciple technical consultant @ OutsourceAX DevelopmentMartin.zhen@outsourceax.com 2. About OutsourceAX DevelopmentOutsourceAX Development is an offshore Dynamics AX Development provider, providing Dynamics AX development/support services to Microsoft Dynamics Partners and Custo
阅读全文
摘要://文本:vnd.ms-excel.numberformat:@ //日期:vnd.ms-excel.numberformat:yyyy/mm/dd //数字:vnd.ms-excel.numberformat::#,##0.00 //货币:vnd.ms-excel.numberformat¥#,##0.00 //百分比:vnd.ms-excel.numberformat:#0.00%
阅读全文
摘要:AOT\EditorScriptscomments_insertHeader//VARChangedon19Sep2007at23:47:49by3880Miscpublicvoidcomments_insertHeader(Editore){e.unmark();e.gotoLine(1);e.gotoCol(1);//VARChangedon19Sep2007at23:47:49by3880Misc-Begin/*Originale.insertLines('//Changedon'+date2str(today(),123,2,1,3,1,4,DateFlags::For
阅读全文
摘要:AOT\DialogFieldTHK_mandatory//VARChangedon24Mar2011at16:14:28by7011ITF032dialogfieldmandatoryvoidTHK_mandatory(boolean_mandatory){strname;;//Ifpropertiesexiststhenweareonserverif(properties){name=#PropertyMandatory;if(!properties.exists(name))properties.add(name,true);properties.value(name,_mandator
阅读全文
摘要:AOT/SysSetupFormRun/task//VARChangedon29Jun2011at17:29:22by7519,addsecuritycheckingforgotomaintablepublicinttask(int_p1){#taskFormDataSourceformDataSource;intret;//VARChangedon29Jun2011at17:29:22by7519,addsecuritycheckingforgotomaintable-start#define.TaskMainTable(293)if(_p1==#TaskMainTable&&
阅读全文
摘要:AOT\SysReportRun\run//VARChangedon06Feb2012at14:14:30byJXie7519voidrun(booleanonlyReport=false){//IfthisreportisawebReporttherunawebReport.if(webSession()&&runBaseReport){runBaseReport.runWebReport();}else{//WhenrunningthereportandonlyReport=truethenrunthereport.if(!onlyReport&&runBa
阅读全文
摘要:AOT\SysEmailBatch\Run//VARChangedon29Mar2012at14:29:31byJXie7519publicvoidrun(){#SysMailerSysMailermailer;SysEmailParametersparameters=SysEmailParameters::find();BinDatabinData;SysMailerAddressFieldtos;SysOutgoingEmailTableoutgoingEmailTable;SysOutgoingEmailDataoutgoingEmailData;SysEmailItemIdnextE.
阅读全文
摘要://Changedon02April2012at11:32:59byJimmyXie/*Createsarecordcontainingthedatafrom_data,andeitherforallfieldin_dataorthefieldswhicharespecifiedinSysExpImpFieldtable.AOT/class/SysDataIntegration/prepareFields*/protectedCommonprepareFields(SysExpImpTable_expImpTable,DictTable_dictTable,container_line,Co.
阅读全文
摘要:While working with Workflow, many time there was situation where I would like to run AX as different user , But on Window 7 , "Run as" is not available ,when you right click. There are two ways to overcome this :1.Using command line :When you want to open AX as a different user , go to Sta
阅读全文

浙公网安备 33010602011771号