Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Issue during Passing parameter for Tag query for I5 chart

$
0
0

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


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>