11 User-Interface Extensibility Sample and How To
11 User-Interface Extensibility Sample and How To
11 - 1
Microsoft Dynamics AX 2012 R2 For Retail in Brick and Mortar Stores Development and Customization
Lesson Objectives
11 - 2
ExtendedLogOnForm
ExtendedLogOnScanForm
frmBarcodeSelect
frmDimensions
frmInput
frmPayCash
frmPayCurrency
frmPayCustomerAccount
frmReturnTransaction
LogbookForm
LogOnForm
ManagerAccessForm
RegisterTimeForm
ViewTimeClockEntriesForm
ProductDetailsForm
ProductInformationForm
In the folder where you installed the Retail POS SDK, open the
Microsoft Dynamics AX for Retail POS Plug-ins folder.
2.
Open the Services folder and double-click the Services Visual Studio
solution file.
In this step, you override the LogOnForm form. This form has a
dependency on the ManagerAccessForm.
3.
4.
Add the following code to the OnLoad() method for the first line of
the method to change the back ground color to dark red.
5.
6.
11 - 3
Microsoft Dynamics AX 2012 R2 For Retail in Brick and Mortar Stores Development and Customization
How to Modify a Form in the Microsoft Dynamics Ax 2012
R2 POS Item Search Form
This topic explains how to add a new column to the existing Item search form
and view that form in the POS user interface (UI). For example, you will add the
column SerachName of the Item in the Item search form. You will fetch this
column value from the ECORESPRODUCT table.
To customize the ItemSearch form, follow these steps.
By default, in the folder where you installed the Retail POS Software Development Kit
(SDK), it will be located at C:\Users\...\Documents\Retail SDK\POS Plug-ins.
1.
Open the Microsoft Dynamics AX for Retail POS Plug-ins folder. For
more information about how to install the Retail SDK, refer to the
installation guide.
2.
Open the Services folder and double-click the Visual Studio solution
file, services.sln.
3.
Open the Services folder and double-click the Services Visual Studio
solution file.
4.
5.
6.
7.
You must add the column in the gridView to appear in the form. For
this include the new column in the range and set the column
properties in InitializeComponent() method.
this.grdView.Columns.AddRange(new
DevExpress.XtraGrid.Columns.GridColumn[] {
this.colItemName,
this.colItemId,
this.colSearchString,
this.colItemPrice,
this.colItemUnitOfMeasure,
this.colItemTaxRate,
this.colItemOwnThirdProduc,
this.colItemRoundTrunc});
11 - 4
8.
Now, modify the Item Search query to include the new column in the
search criteria for filtering and displaying in the GetItemList() method.
9.
Build the project in release mode and replace the Dialog.dll in the
Retail POS\Services\Extension folder. This path is applicable only for
Microsoft Dynamics AX 2012 R2. For later versions use
POS\Extensions.
10. Start the POS and then click the Product search button that is added
in the POS layout. The Item search form should resemble the
following.
11 - 5
Microsoft Dynamics AX 2012 R2 For Retail in Brick and Mortar Stores Development and Customization
11 - 6