Difference between revisions of "Extensions.DiagCom.GetParameterTextId"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''GetParameterTextId'''}}[[Category:DiagCom]]
 
{{DISPLAYTITLE:OTX '''GetParameterTextId'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetParameterTextId | The text id of the parameter | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Parameter related terms]] | - | - }}
+
{{ClassificationActivity | GetParameterTextId | Gét the text id attribute of the parameter | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|Parameter related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''GetParameterTextId''' term accepts a [[ParameterTerm]] and returns the text id of the [[Extensions.DiagCom.Parameter|Parameter]].
+
The '''GetParameterTextId''' term accepts a '''ParameterTerm''' and returns the text id of the [[Extensions.DiagCom.Parameter|Parameter]].
 +
 
 +
{{Note|In case a MVCI/ODX system is used it returns the '''LongNameId''' attribute of the corresponding '''MCDDbObject''' object. In case the parameter represents a DTC, the '''DiagTroubleCodeTextID''' of the '''MCDDbDiagTroubleCode''' is returned.}}
  
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The text id of the parameter.}}
 
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The text id of the parameter.}}
Line 16: Line 18:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Parameter | [[Extensions.DiagCom.Parameter|Parameter]] | [[Term]] | - | [1] | The [[Extensions.DiagCom.Parameter|Parameter]] object.}}
+
{{TableRowPropertie1| Parameter | [[Extensions.DiagCom.Parameter|Parameter]] | [[Term]] | - | [1] |The '''Parameter''' whose text id attribute shall be returned.}}
 
|}
 
|}
  
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagCom.DiagService DiagService1;
+
DiagCom.Request Request1;
 +
String String1 = "";
 +
DiagCom.ComChannel ComChannel1;
 
DiagCom.Parameter Parameter1;
 
DiagCom.Parameter Parameter1;
String TextId;
 
DiagCom.ComChannel ComChannel1;
 
  
ComChannel1 = DiagCom.GetComChannel("LL_WheelDampeElectUDS", "EV_DRCONTITEMIC_001", false);
+
/// Flow
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "SinglJob_FlashProgr");
+
 
Parameter1 = DiagCom.GetParameterByPath(DiagCom.GetRequest(DiagService1), {"IPA_LogLevel"});
+
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
TextId = DiagCom.GetParameterTextId(Parameter1);
+
Request1 = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWSlaveCodinValue"));
 +
Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"});
 +
String1 = DiagCom.GetParameterTextId(Parameter1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[Extensions.DiagCom.GetParameterName|GetParameterName]] <br/>
+
[[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/>
 +
[[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/>
 +
[[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/>
 +
[[Extensions.DiagCom.GetRequest|GetRequest]] <br/>
 +
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/>
 +
[[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/>
 +
[[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/>
 +
[[Extensions.DiagCom.GetParameterBySemantic|GetParameterBySemantic]] <br/>
 +
[[Extensions.DiagCom.GetParameterByPath|GetParameterByPath]] <br/>
 +
[[Extensions.DiagCom.GetParameterAsList|GetParameterAsList]]<br/>
 
[[Extensions.DiagCom.GetParameterSemantic|GetParameterSemantic]] <br/>
 
[[Extensions.DiagCom.GetParameterSemantic|GetParameterSemantic]] <br/>
[[Extensions.DiagCom.GetParameterByPath|GetParameterByPath]] <br/>
 
[[Extensions.DiagCom.GetParameterAsList|GetParameterAsList]] <br/>
 
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]]
 

Revision as of 03:33, 15 October 2018

Classification

Name GetParameterTextId
Short Description Gét the text id attribute of the parameter
Class Term
Extension OTX DiagCom extension
Group Parameter related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

StringTerm = DiagCom.GetParameterTextId(ParameterTerm);

Description

The GetParameterTextId term accepts a ParameterTerm and returns the text id of the Parameter.

Icons Note.png In case a MVCI/ODX system is used it returns the LongNameId attribute of the corresponding MCDDbObject object. In case the parameter represents a DTC, the DiagTroubleCodeTextID of the MCDDbDiagTroubleCode is returned.

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 The text id of the parameter.

Properties

Name Data Type Class Default Cardinality Description
Parameter Parameter Term - [1] The Parameter whose text id attribute shall be returned.

OTL Examples

DiagCom.Request Request1;
String String1 = "";
DiagCom.ComChannel ComChannel1;
DiagCom.Parameter Parameter1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
Request1 = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWSlaveCodinValue"));
Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"});
String1 = DiagCom.GetParameterTextId(Parameter1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetRequest
ExecuteDiagService
GetFirstResponse
GetAllResponses
GetParameterBySemantic
GetParameterByPath
GetParameterAsList
GetParameterSemantic