Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ProductInventoryDataSource Class / GetProductInventory Method / GetProductInventory(Int32,Int32,Int32,String) Method
The given inventory level
Maximum number of rows to retrieve.
Starting index from where to start retrieving.
The sort expression to use for sorting the loaded objects.
Version
GetProductInventory(Int32,Int32,Int32,String) Method
Get all inventory items that are at or below the given inventory level.
Syntax
[DataObjectMethod(DataObjectMethodType.Select)]
public static IList<ProductInventoryDetail> GetProductInventory( 
   int maxInStock,
   int maximumRows,
   int startRowIndex,
   string sortExpression
)

Parameters

maxInStock
The given inventory level
maximumRows
Maximum number of rows to retrieve.
startRowIndex
Starting index from where to start retrieving.
sortExpression
The sort expression to use for sorting the loaded objects.

Return Value

A list of all inventory items that are at or below the given inventory level.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also