InventAvailabilitySearch Class [AX 2012]

The InventAvailabilitySearch class is a builder of the search criteria that can be used to find the on hand availability.

Syntax

class InventAvailabilitySearch implements SysPackable

Run On

Called

Methods

  Method Description
Dn501467.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Dn501467.privmethod(en-us,AX.60).gif canDetermineInventDimCriteria
Dn501467.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif inventDimCriteria The inventory dimensions criteria.
Dn501467.pubmethod(en-us,AX.60).gif inventDimCriteriaParm An InventDimParm record that defines which of the dimension criteria values should be used when searching for the availability.
Dn501467.pubmethod(en-us,AX.60).gif inventSum The InventSum record that matches the search criteria.
Dn501467.pubmethod(en-us,AX.60).gif inventTable The item criteria.
Dn501467.pubmethod(en-us,AX.60).gif isInventSumSet Returns true if the InventSum record has been set for this search criteria.
Dn501467.pubmethod(en-us,AX.60).gif isItemWHSEnabled Determines if the criteria item is WHS-enabled.
Dn501467.pubmethod(en-us,AX.60).gif isValid Determines if the search criteria is valid or not.
Dn501467.pubmethod(en-us,AX.60).gif itemId The ID of the criteria item.
Dn501467.protmethod(en-us,AX.60).gif new Initializes a new instance of the InventAvailabilitySearch class.
Dn501467.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif pack Serializes the current instance of the InventAvailabilitySearch class.
Dn501467.pubmethod(en-us,AX.60).gif setInventDimCriteria Sets the inventory dimensions criteria.
Dn501467.pubmethod(en-us,AX.60).gif setInventSum Sets the InventSum record that matches the search criteria.
Dn501467.pubmethod(en-us,AX.60).gif setInventTable Sets the InventTable record for the criteria item.
Dn501467.pubmethod(en-us,AX.60).gif setItemId Sets the ID of the criteria item.
Dn501467.pubmethod(en-us,AX.60).gif setItemIsWHSEnabled Sets the value indicating whether the criteria item is WHS-enabled.
Dn501467.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif unpack Deserializes the _packed parameter value to an instance of the InventAvailabilitySearch class.
Dn501467.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::construct Initializes a new instance of the InventAvailabilitySearch class.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::create Creates an instance of the InventAvailabilitySearch class based on the container that contains a serialized InventAvailabilitySearch object.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::newFromItemDim Creates search criteria based on the specified item and dimension criteria.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::newFromItemIdDim Creates search criteria based on the specified item ID and dimension criteria.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::newFromItemSumDim Creates search criteria based on the specified item, the specified InventSum and the dimensions that were used as a filter to find this record.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::newFromSum Creates a search criteria based on the specified InventSum.
Dn501467.pubmethod(en-us,AX.60).gif Dn501467.static(en-us,AX.60).gif ::newFromSumDim Creates search criteria based on the specified InventSum and the dimensions that were used as a filter to find this record.

Top

Remarks

The InventAvailabilitySearch has a number of setter methods that allow you to specify as much information about the desired on hand as you have. The more information you can provide the better performance you will get. E.g. providing an InventTable record instead of ItemId will result in better performance.

If you don't specify some of the mandatory parameters your search criteria will be invalid (see more in the documentation to the isValid method.

Note that the InventAvailabilitySearch should only be used to instantiate a single search criteria. Reusing the same search criteria for different searches is not supported. I.e. you should never do the following: - create a search criteria - run the availability search - change the same search criteria (e.g. the dimension criteria) - run the availability search again. Always create a new criteria insted.

Inheritance Hierarchy

Object Class
  InventAvailabilitySearch Class