拿到AX7环境后,发现Retail POS开发变化太大,所以从SDK中提供的例子来练习一下。环境是 AX7 update1 DEV environment Azure VM。
Retail SDK在J:盘。
J:\RetailSDK\Documents\SampleExtensionsInstructions 中例子的说明和一些AX代码和SQL脚本。 J:\RetailSDK\SampleExtensions中是例子的C#代码VS projects。其中StoreHours例子,涵盖的代码范围广一点,就选它练习一下。(另外RetailSDK\Documents\AX7 Retail Sdk Handbook.pdf是介绍整个Retail SDK的,一定要看的。)
现在开始跟着J:\RetailSDK\Documents\SampleExtensionsInstructions\StoreHours 目录中的Readme.txt里步骤做。
Sample overview: The sample shows how to create a new business entity (StoreHours) accross both AX and the channel.
Changes are in AX tables, CDX, Channel DB, CRT, RetailServer, Point of Sale (both Modern POS and Cloud POS). Offline mode for Modern POS is supported for this sample.
具体步骤:1. AX customization:
- import project file AXchanges.axpp, compile and run job
- populate some data by running the Temp_InsertData job (make it a Startup object and hit F5)
说得很简单,(建议一定先看几遍前面提到的AX7 Retail Sdk Handbook),实际先要run as admin打开VS 2015, 点 Dynamics AX菜单,选Import Project...。