You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
This is an option that can be activated on header controls. It enables the control to do a online query.
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")
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.
<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>
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