Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / ReportDataSource Class / GetSalesByState Method
desired country code
desired starting date
desired ending date (includes entire day)
Maximum number of rows to retrieve
Starting index from where to start retrieving
Sort expression to use for sorting the loaded objects
Version
GetSalesByState Method
Gets sales by grouped by CountryCode, State
Syntax

Parameters

countryCode
desired country code
startDate
desired starting date
endDate
desired ending date (includes entire day)
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

Returns TOP 10 sales by grouped by CountryCode, State
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