Returning 4 rows of value in a single column using array
Hi,
I am trying to return 4 values in a single column using java script. I have created a datashape to store the values and using array. But the script doesnt accept the infotable and says can not convert json to infotable. When I keep the base type as json it doesnt return anything the result is blank.
How can I return 4 rows in single column? Please help me in modifying the service.
var params = {
infoTableName: "FilterBy" /* STRING */,
dataShapeName: "Navistar_FilterBy_DS" /* DATASHAPENAME */
};
var FilterBy = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);
var arrayOfFilters = [5];
{
FilterBy.Filters = ["Part", "LineSet", "Job Num", "Part Type"];
for( i = 0; i < FilterBy.length; i++)
{
arrayOfFilters = [i];
}
}
result = arrayOfFilters;
Thanks,
Shalini V.

