Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetUserPurchaseHistory Method / GetUserPurchaseHistory(Int32,Boolean,Int32,Int32,String) Method
User Id to get report data for
if true only paid orders, otherwise only unpaid orders will be considered
Maximum number of rows to retrieve
Starting index from where to start retrieving
Sort expression to use for sorting the loaded objects
In This Topic
    GetUserPurchaseHistory(Int32,Boolean,Int32,Int32,String) Method
    In This Topic
    Get report data for user purchase history report
    Syntax
    [DataObjectMethod(DataObjectMethodType.Select)]
    public static IList<PurchaseSummary> GetUserPurchaseHistory( 
       int userId,
       bool forPaidOrders,
       int maximumRows,
       int startRowIndex,
       string sortExpression
    )

    Parameters

    userId
    User Id to get report data for
    forPaidOrders
    if true only paid orders, otherwise only unpaid orders will be considered
    maximumRows
    Maximum number of rows to retrieve
    startRowIndex
    Starting index from where to start retrieving
    sortExpression
    Sort expression to use for sorting the loaded objects

    Return Value

    A List of PurchaseSummary objects
    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