Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This is an option that can be activated on header controls. It enables the control to do a online query.

Step-by-step guide

Overview of how you use it:

  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

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.

 

app.config - ISearchService
<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>

AX

In AX (2012R3) the class Mob_SearchService will handle the Search calls. The method doSearch is a place for your custom search methods.
There is a default method for Item, Customer and Vendor searching. Use the searchType #Search_Item, #Search_Customer or #Search_Vendor to use them.

In class Mob_GetReferenceData the method addDefaultItemNumberElement will automatically use #Search_Item.

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

Filter by label

There are no items with the selected labels at this time.

  • No labels