Extensions.DiagDataBrowsingPlus.GetDbParameterCodedDefaultValueAsString

From emotive
Jump to navigation Jump to search

Classification

Name GetDbParameterCodedDefaultValueAsString
Short Description Gets the coded default value of the DbParameter
Class Term
Extension OTX DiagDataBrowsingPlus extension
Group DbParameter related terms
Exceptions InvalidTypeException
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm DiagDataBrowsingPlus.GetDbParameterCodedDefaultValueAsString(DbParameterTerm dbParameter);

Description

GetDbParameterCodedDefaultValueAsString determines the coded default value of the parameter as a string. In case of a CODED-CONST parameter, the corresponding CODED-VALUE is returned. In case of a PHYS-CONST parameter, the coded default value is computed from the the physical value.

If the coded default value of the parameter cannot be determined (e.g. the parameter is of no simple data type), the InvalidTypeException exception will be thrown.

Icons Note.png The appropriate MVCI system operation is MCDDbParameter::getCodedDefaultValue::getValueAsString

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
String Returns the coded default value of the parameter.

Properties

Name Data Type Class Default Cardinality Description
DbParameter DbParameter Term - [1..1] The element addresses the DbParameter (MCDDbParameter) which coded default value shall be returned.

OTL Examples

/// Local Declarations

DiagCom.Parameter Parameter;
DiagDataBrowsingPlus.DbParameter DbParameter;
String MyString;

/// Flow

Parameter = DiagCom.GetParameterByPath(DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false), "DiagnServi_ReadDataByIdentActuaTestStatu")), {"Param_RequeServiId"});
DbParameter = DiagDataBrowsingPlus.GetParameterDbParameter(Parameter);
MyString = DiagDataBrowsingPlus.GetDbParameterCodedDefaultValueAsString(DbParameter);

See also

GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResponse
GetRequest
GetParameterByPath
GetParameterDbParameter