Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue during Passing parameter for Tag query for I5 chart

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

Tags:
Not what you were looking for? View more on this topic or Ask a question