GetGraphRawData Functions
The
GetGraphRawData and
GetGraphRawDataSession functions return raw data for the specified graph in the specified System file. These two functions differ only in respect to parameters for login. For more information, see
Login Parameters.
|
The GetGraphRawData and GetGraphRawDataSession functions are supported only for the FRACAS, FMEA, FTA, and Prediction modules. For the FMEA module, the Initial Risk Matrix graph is not supported.
|
Syntax
The following is the syntax for an HTTP request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetGraphRawData HTTP/1.1
Host: HostName
Content-Type: application/x-www-form-urlencoded
Content-Length: length
UserName=string&Password=string&GroupName=string&ProjectName=string
&SystemName=string&GraphTemplateName=string&ExtraPaParameters=string
&FilterParameters=string
Parameters
In addition to login parameters, both the GetGraphRawData and GetGraphRawDataSession functions use these parameters:
• ProjectName—The name of the Windchill Risk and Reliability Project. This value is case-sensitive.
• SystemName—The name of the System file. This value is case-sensitive.
• GraphTemplateName—The name of the Graph Template file for the graph type for which to get raw data. Any file in the Common Library must be prefixed with (Common).
• ExtraParameter—For a prediction graph, the identifier of the configuration if needed. For an FMEA or FTA graph, the identifier of the item for which to get raw data.
◦ For an FMEA graph, you specify the identifier of the FMEA.
◦ For an FTA graph, you specify the identifier for the gate or event.
This parameter is not required for a FRACAS graph.
• FilterParameters—The specific values that you want to use for the parameters required by an applied filter. If values are not specified, default values are used. To specify values, you must know the number and order of the required parameters. When passing values for multiple parameters, two colons (::) must separate each text string. You can see the required parameters in the Filter file in which the filter is stored. If passed values do not match or are unnecessary, they are ignored.
The following is an example of an HTTP POST request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/GetGraphRawData HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length
UserName=Bill&Password=passwd&GroupName=Manager&ProjectName=Tablet PC&SystemName=Tablet PC&ReportTemplateName=(Common) FRACAS Incidents per Part Number&ExtraParameter=Configrruation1
Returns
If the user is authenticated and the required parameter values are found, the raw data for the graph is returned.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineResponse xmlns="http://tempuri.org/">
<Success>true</Success>
<AdditionalData>{"AxisData":{"AxisLabel0":"FRACAS Incidents"},
"ColumnData":{"MB060415":["3"],"TP55401A":["3"],"HD061455":["2"],
"MEM061789":["1"],"BAT56A04":["1"]}}</AdditionalData>
</DataEngineResponse>
If the call fails, the AdditionalData tag provides the reason for the failure.