Hi Airin, Here is a way in which you can achieve your desired functionality. Create a Datashape with three properties of base type "String". Each property in this Datashape is used to withhold the TimeField and ValueField data from FaultTime, ProductCount and WaitingTime respectively. Create a service, under the Thing where you have defined the three properties of base type Infotable, as follows:
var params = {
infoTableName : "InfoTable",
dataShapeName : "GridDataShape"
};
//GridDataShape is the DataShape with three properties of base type string
var result = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);
var newEntry = new Object();
var tableLength = me.FaultTime.rows.length;
var fualtTime;
var productCount;
var waitingTime;
for (var x=0; x < tableLength; x++) {
var row = me.FaultTime.rows[x];
//Your code here
faultTime = "Time: " + row.TimeField + ", Value: " + row.ValueField;
row = me.ProductCount.rows[x];
productCount = "Time: " + row.TimeField + ", Value: " + row.ValueField;
row = me.WaitingTime.rows[x];
waitingTime = "Time: " + row.TimeField + ", Value: " + row.ValueField;
newEntry.FualtTime = faultTime; // INFOTABLE
newEntry.ProductCount = productCount; // INFOTABLE
newEntry.WaitingTime = waitingTime; // INFOTABLE
result.AddRow(newEntry);
}
The output of the service should be of Type InfoTable with the Datashape created above. Bind the result of this service on the MashUp to the Grid widget to view the data.