<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > Component > Band > DummyBand > Method >GetDataSetMIN |
Gets the minimum value from the given field.
Prototype :
double GetDataSetMIN
(
string FieldPath
[ string DistinctFieldName ],
[ string ConditionFieldName ]
)
Arguments :
FieldPath |
Field Path setup depends on the field type |
DistinctFieldName |
Field name for deduplication |
ConditionFieldName |
Field name for search condition |
Reference :
Refer to GetDataSetValue function for how to set the field path.
Refer to GetDataSetSUM function for using DistinctFieldName and ConditionFieldName.
Example :
//Data field (ODI name : Sample, dataset name : Orders, field name : Price)
_TraceLn(This.GetDataSetMIN("Sample.Orders.Price"));
//ODI parameter field (ODI name : Sample, ODI parameter field name : TotalAmount)
_TraceLn(This.GetDataSetMIN("Sample.OZParam.TotalAmount"));
//Data field (specify DistinctFieldName)
_TraceLn(This.GetDataSetMIN("Price", "Region"));
//Data field (specify ConditionFieldName)
_TraceLn(This.GetDataSetMIN("Price", "", "Flag"));
//Data field (specify DistinctFieldName and ConditionFieldName)
_TraceLn(This.GetDataSetMIN("Price", "Region", "Flag"));
Available Events :
OnBind, OnStartBind
See also :
GetDataSetSUM, GetDataSetValue