Dear All,
I am facing issue during passing parameter for tag query. coding is given below:
var d = TagStatisticlist.getGridObject().getSelectedCellValue(8);
var addProps = '{'+
'"DisplayTemplate":"NRC_2010/Notifications/UI/TagStatisticChartUI5",'+
'"QueryTemplate":"NRC_2010/Notifications/Queries/TagStatisticDetail1",'+
'"Content-Type":"image/png"'+
'}';
var TagStatistic = new com.sap.xmii.chart.hchart.i5Chart('NRC_2010/Notifications/UI/TagStatisticChartUI5','NRC_2010/Notifications/Queries/TagStatisticDetail1',addProps);
TagStatistic.setChartWidth("800px");
TagStatistic.setChartHeight("200px");
var oDateFormat = sap.ui.core.format.DateFormat.getDateTimeInstance({pattern: "yyyy-MM-ddTHH:mm:ss"});
TagStatistic.getQueryObject().setTagName(1, d);
TagStatistic.getQueryObject().setStartDate(oDateFormat.format(stDate.getDateValue()));
TagStatistic.getQueryObject().setEndDate(oDateFormat.format(endDate.getDateValue()));
TagStatistic.getChartObject().setValueColumns(d)
TagStatistic.getChartObject().setLabelColumns("DateTime")
TagStatistic.draw('TagStatistic');
TagStatistic.update(true);
});
system is not getting data as per given parameter.
Thanks
Muhammad Ashfaq