Extensions.DiagDataBrowsingPlus.GetDbParameterCodedDefaultValueAsString
Jump to navigation
Jump to search
Contents
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.
The appropriate MVCI system operation is MCDDbParameter::getCodedDefaultValue::getValueAsString
Return Value
The Term returns the value, see table below.
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