随笔分类 - AX 2012
Learning
摘要:AX 2012中有两种发送邮件的方式 1,COM组件发送邮件,在AX 2012中通过SysMailer进行了封装 2,利用System.Net.Mail中的SmtpClient类发送邮件,在AX 2012中通过SysMailerNet进行了封装 标准系统这两种方式都不支持Office 365 SMT
阅读全文
摘要:Are you confused by how user roles in AX 2012 are integrated with Management Reporter roles? Have problems adding or deleting users in Management Repo
阅读全文
摘要:Create inbound HTTP port. Basic settings: Service operations: Important: You will be asked for credentials in order to access the service and metadata
阅读全文
摘要:AX 2012 如何在一台服务器配置不同环境的EP站点 安装完EP后,修改对应站点的web.config文件,指定需要连接的客户端配置文件路径即可,如下图: ` `````````````````````````````````````````````````````````````````````
阅读全文
摘要:AX 2012 中当审批流流转到某个节点时,如果在该节点的审批人的域账号被停用,审批流将会停止,会报如图的错误: 要解决这个问题,得修改标准功能,需要修改SysWorkflow和SysWorkflowWorkItem两个类
阅读全文
摘要:In this tutorial I am going to show you how to pass a customized field to the GeneralJournalAccountEntry Table, when a ledger to ledger voucher is pos...
阅读全文
摘要://客户地址信息static void CustAddressInformation(Args _args){ CustTable custTable; DirPartyTable dirPartyTable; DirPartyLoc...
阅读全文
摘要:Consuming a Web Service in AX 2012在AX2012版本中如果想调用外部的Web Service变得非常容易。第一步,在VS中创建一个Web Service并发布第二步,创建一个Class Library,并将创建的Web Services引用到该类库当中,并ADD t...
阅读全文
摘要:// create by kim 20140805public void Remark_insertChangeHeader(Editor e){ userinfo userInfo; ; e.unmark(); e.gotoLine(1); e.goto...
阅读全文
摘要:The setup contoso demo data for Dynamics Ax 2012 R3 is different from previous version. I remember, I used .dat file to load demo data into Dynamics A...
阅读全文
摘要:AX 2012 SRSS报表与09开发SRSS报表的模式已经完全不同,在12中采用了一种MVC的设计模式。 我们需要定义几个类实现MVC来处理报表的开发,具体如下 首先,我们定义第一个数据载体类,该类应该继承SRSReportDataProviderBase,相当于我们Model,Report相当于
阅读全文
摘要:AX2009 的批处理操作我们是通过RunBaseBatch framework,我们所要做的事情就是继承RunBaseBatch class,实现里面该实现的方法来执行批处理。AX2012 的批处理操作是采用SysOperation framework,SysOperation framework是采用运行WCF服务来运行批处理以及处理客户端与服务端的会话。还有一个更大的不同就是编程的模式不同,在09,我们是继承RunBaseBatch class,所有的逻辑都混杂在一起,二12的模式采用的MVC模式(Model-View-Controller)具体可以参考.net的MVC模式,这种模式的好
阅读全文
摘要:在自己新建的Query中,想添加自己提供的函数,我们可以在系统的标准类SysQueryRangeUtil中添加自己写的函数然后在Query的Range中按照格式(method())进行调用
阅读全文
摘要:AX 针对日期的操作函数有限,没有像.net那么强大.所以有时候我们还得借助.net.例如对月份的操作//by kim 20130609//parm 1 orginal Date//parm 2 add or decrease mth//parm 3 flag add or decrease if true indicate add otherwise decreasestatic date AddOrDecreaseMth(date _originalDate, int _mt...
阅读全文
摘要:通过代码产生自由文本发票,并过账该文本发票。View Code static void FreeTextInvoicePost(CustAccount _custAccount, LedgerAccount _ledgerAccount){ CustInvoiceTable custInvoiceTable; CustInvoiceLine custInvoiceLine; CustTable custTable; LedgerTable ledgerTable; CustPostInvoice custP...
阅读全文