TOC : Script API > JavaScript > JavaScript API > GeneralScript > CalculatedField > Method >

 

GetDataSetValue

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > CalculatedField > Method >

 

GetDataSetValue

 

 

Gets the data value of the given field.

 

 

Prototype :

 

var GetDataSetValue

(

       string FieldPath

)

 

 

 

Arguments :

 

FieldPath

Field Path setup depends on the field type

 

 

 

Reference :

 

Return type is one of double, integer or string according to field type.

 

How to set field path according to field types :

Data field

"ODI name.dataset name.field name".

ODI name and dataset name can be omitted. If they are omitted, those of the band are default.

 

ODI parameter field

"ODI name.OZParam.field name"

ODI name can be omitted. If they are omitted, the one of the band is default.

 

Form parameter field

"OZFormParam.field name"

 

System field

"OZSystem.field name"

 

Resource field

"OZResource.field name"

Returns the resource value of the current language.

 

 

 

Example :

 

//Data field(field name : Price)

This.SetFieldData(This.GetDataSetValue("Price"));

 

//Data field(masterset name : Code, field name : Name)

This.SetFieldData(This.GetDataSetValue("Code.Name"));

 

//ODI parameter field(ODI parameter field name : TotalAmount)

This.SetFieldData(This.GetDataSetValue("OZParam.TotalAmount"));

 

//form parameter field(form parameter field name : Quantity)

This.SetFieldData(This.GetDataSetValue("OZFormParam.Quantity"));

 

//system field

This.SetFieldData(This.GetDataSetValue("OZSystem.Time"));

 

//resource field

This.SetFieldData(This.GetDataSetValue("OZResource.Table_Title1"));

 

 

 

Available Events :

 

All Events

 

The GetDataSetValue function can be used in all events. But the Data Field, the ODI Paramater Field and the System Field(Page_Number, Total_Page, Page_Of_Total) returns the wrong value or script error, depending on the event.

Restrictions on the event, please refer to JavaScript Events topic.

 

 

 

See also :

 

JavaScript Events