This is an option that can be activated on header controls. It enables the control to do a an online query.
Step-by-step guide
Overview of how you use it:
- Specify "searchType" on the control - you want it on.
- In "GetReferenceData" add a header for the search page. It must be named searchType value plus "HeaderConf".
Example: if searchType is "ItemSearch" the header must be "ItemSearchHeaderConf". - The documenttype "Search" must be enabled and the case for "searchType" must be implemented.
(If it is the first online search - verify the user has access rights to documenttype "Search")
...
Service controlling the online search
This section in the app.config file - controls the documenttype to called in AX/NAV.
The "ISearchService" service is by default enabled and set to documenttype "Search" (line 10).
The "CommonCofigurationService" service is used to display the results of the search.
Remember this must be changed, if the device screen dimensions is changed.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<configuration> <serviceSettings> <services> : <!-- Service for search inquiries --> <add type="TaskletFactory.WMS.Services.ISearchService, TaskletFactory.WMS.Services.Interfaces" factory="TaskletFactory.WMS.Services.Configuration.SearchServiceFactory, TaskletFactory.WMS.Services.Search" startup="true"> <configuration xmlns="http://schemas.taskletfactory.com/MDMF/MobileWMS/Services/2010/10/SearchServiceConfiguration.xsd"> <SearchRequestDocumentName>Search</SearchRequestDocumentName> </configuration> </add> : <!-- Service containing common configuration --> <add type="TaskletFactory.WMS.Services.CommonConfigurationService, TaskletFactory.WMS.Services.CommonConfiguration" factory="TaskletFactory.WMS.Services.Configuration.CommonConfigurationServiceFactory, TaskletFactory.WMS.Services.CommonConfiguration" startup="true"> <configuration xmlns="..."> : <tasklet> <orderLines> <behaviourAfterPost enabled="true" value="STAY" /> <!-- STAY, ASK --> <scanToSelectBehaviour behaviour="USER" searchTerm="ALL" /> <!-- behaviour: {AUTO,USER} searchTerm: {ITEM,ALL}--> </orderLines> </tasklet> <searchResultListConfiguration xmlns="..."> <debug>false</debug> <rowHeight>49</rowHeight> <scrollBarWidth>20</scrollBarWidth> <fonts> <add id="header" name="Verdana" size="9" fontStyle="Bold"></add> <add id="normal" name="Verdana" size="8" fontStyle="Regular"></add> </fonts> <rowElements> <textElements> <add id="1" type="textElement" text="{0}" x="2" y="1" width="400" height="16" font="header"> <dataMembers> <add id="DisplayLine1" /> </dataMembers> </add> <add id="2" type="textElement" text="{0}" x="2" y="17" width="400" height="16" font="normal"> <dataMembers> <add id="DisplayLine2" /> </dataMembers> </add> <add id="3" type="textElement" text="{0}" x="2" y="33" width="400" height="20" font="normal"> <dataMembers> <add id="DisplayLine3" /> </dataMembers> </add> </textElements> </rowElements> </searchResultListConfiguration> </configuration> </add> : </services> </serviceSettings> </configuration> | ||||||||
Tip | ||||||||
title | AX
In AX (2012R3) the class Mob_SearchService will handle the Search calls. The method doSearch is a place for your custom search methods. In class Mob_GetReferenceData the method addDefaultItemNumberElement will automatically use #Search_Item. |
Info |
---|
This is an online feature - since the backed is queried. |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
hidden | true |
---|
...
For info on how to implement usage of the searchType header attribute in an Dynamics AX or Dynamics 365 Finance and Operations environment go to Example: How to add search in Mobile WMS for Dynamics 365FO and Dynamics AX