OTX Reference  
OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetDbParameterKeysAsString Class Reference

Returns a list the key in the parameter. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetDbParameterKeysAsString:
Inheritance graph

Public Attributes

DbParameterTerm dbParameter
 The parameter to return key(s) of referred TABLE or TABLE-ROW. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Store additional More...
 

Detailed Description

Returns a list the key in the parameter.

The GetDbParameterKeysAsString Activity is a term, If the corresponding TABLE-KEY references a TABLE (dynamic case), this method delivers all keys of this TABLE (keys of all TABLE-ROWs). If the corresponding TABLE-KEY references a TABLE-ROW directly (static case), this method delivers exactly one key – the key of that TABLE-ROW.

The length of the list is zero, if no Key is available. If the parameter is not of parameter type eTABLE_KEY, the InvalidTypeException exception will be thrown.

Note
The appropriate MVCI system operation is MCDDbParameter::getKeys[]::getValueAsString
Exceptions
Exceptions.InvalidTypeExceptionIf the parameter is not of parameter type eTABLE_KEY
Syntax
ListTerm = DiagDataBrowsingPlus.GetDbParameterKeysAsString(DbParameterTerm dbParameter);
DbParameterTerm dbParameter
The parameter to return key(s) of referred TABLE or TABLE-ROW.
Definition: DiagDataBrowsingPlus.cs:2573
Examples
// Local Declarations
DiagCom.Result Result;
DiagCom.Response Response;
DiagCom.Parameter Parameter;
DiagDataBrowsingPlus.DbParameter DbParameter;
List<String> List_String;
// Flow
[#MetaData(RequestPdu), <#Data>22 2A 19</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false), "DiagnServi_ReadDataByIdentMeasuValue"), {Param_RecorDataIdent = "stall current measurement value"}, {}, Result, NULL, false, false);
Response = DiagCom.GetFirstResponse(Result);
Parameter = DiagCom.GetParameterByPath(Response, {"Param_RecorDataIdent"});
DbParameter = DiagDataBrowsingPlus.GetParameterDbParameter(Parameter);
List_String = DiagDataBrowsingPlus.GetDbParameterKeysAsString(DbParameter);

Member Data Documentation

◆ dbParameter

DbParameterTerm OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.Terms.GetDbParameterKeysAsString.dbParameter

The parameter to return key(s) of referred TABLE or TABLE-ROW.