This post will show you the way to enable and use product search by attributes in POS (ePOS).
Configuration of product attributes in AX include two main steps:
I did not find any standard way to run search by attributes in POS. But we can enable such search by a very small coding.
The main limitations of search by attributes are:
public void BlankOperation(IBlankOperationInfo operationInfo, IPosTransaction posTransaction)
{
switch (operationInfo.OperationId.ToUpperInvariant())
{
case "TST_ITEMSEARCHCATEGORY":
this.Application.RunOperation(PosisOperations.ItemSearch,
operationInfo.Parameter);
operationInfo.OperationHandled = true;
break;
}
}
A. When POS starts item search with not empty category, it will show Search by attributes buttons: Category and Product attributes
C. Search shows found products
D. If you click on Product details button, the list of attribute values will be shown.
E. Minimum number of search chars to enter is two (2). When you try to enter a single character, you will receive the error: Search requires a minimum of two characters.
F. Search by date attributes is disabled by default: AX does not allow marking date attributes as ‘Refinable’. However, if to change AX code a bit, search by date attributes will be possible.
see all