on 09-11-2014 12:44 PM
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
Hi Muhammad,
Try using setParameter() fn and then pass parameter name and values as string. This should work.
Thanks,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Swaroop,
I check all possible JS script but could not succeed. When I pass this parameter to I5Grid, same JS not issue & passing as per variables but if I pass parameter for I5Chart, it is not being passed.
Before this was happened for I5Grid & solved after implementing note
2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.