Extensions.DiagCom.GetAllResponses

From emotive
Jump to navigation Jump to search

Classification

Name GetAllResponses
Short Description Gets a list of all responses of the Result
Class Term
Extension OTX DiagCom extension
Group Response related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ListTerm DiagCom.GetAllResponses(ResultTerm result);

Description

The GetAllResponses term returns a list of all responses that are available for that Result. It accepts a ResultTerm.

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
List List of all the response object of a result object.

Properties

Name Data Type Class Default Cardinality Description
Result Result Term - [1] The Result whose responses will be returned.

OTL Examples

/// Local Declarations

DiagCom.Result Result1;
List<DiagCom.Response> List1;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
[#MetaData(RequestPdu), <#Data>22 01 00</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu"), {}, {}, Result1, NULL, false, false);
List1 = DiagCom.GetAllResponses(Result1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResult
GetAllResults