RequestE3Info.getCodeSums Method

Retrieve the sums of each E3 code and Category associated with the current search result in a dictionary.
Public Function getCodeSums( _ 
Optional ByVal removeZeroValues As Boolean = False _ 
) As Dictionary(Of String, Double)
This language is not supported or no code example is available.
public Dictionary<string, double> getCodeSums( 
bool removeZeroValues = False 
)
This language is not supported or no code example is available.

Parameters

removeZeroValues
bool

Default Value False. 
Turn this variable to true, and the entries with a zero (0.0) amount will be excluded.

Return Value

Dictionary<string, double>
Remarks
 
If removeZeroValues is False, then the result will be like: 

{category1_1-E3_561_001, 500} 
{category1_2-E3_561_003, 157.39} 
... 
{category1_10-, 0} 
{category2_5-E3_585_006, 1257.61} 

 
If removeZeroValues is True, then the result will be like: 

{category1_1-E3_561_001, 500} 
{category1_2-E3_561_003, 157.39} 
... 
{category2_5-E3_585_006, 1257.61} 
}
Example
 
 Dictionary<string, object> result = rei.getCodeSums();
 
 // Retrived dictionary mask [<category>-<E3Field>], <amount>]
 // The result of the above is a list containing data like:
 // [category1_1-E3_561_001, 500]
 // [category1_2-E3_561_003, 157.39]
 // [category1_10-, 0]
 // [category2_5-E3_585_006, 1257.61]
 					
This language is not supported or no code example is available.
 Dim result As Dictionary(Of String, Object) = rei.getValidCategoryNames()
 
 'Retrived dictionary mask [<category>-<E3Field>], <amount>]
 'The result of the above is a list containing data like:
 '[category1_1-E3_561_001, 500]
 '[category1_2-E3_561_003, 157.39]
 '[category1_10-, 0]
 '[category2_5-E3_585_006, 1257.61]
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition