Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Specify "searchType"  on the control - you want it on.
  2. 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".
  3. 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

...

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
languagexml
titleapp.config - ISearchService
linenumberstrue
collapsetrue
<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>

...

Info
This is an online feature - since the backed is queried.


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