cancel
Showing results for 
Search instead for 
Did you mean: 

Issue during Passing parameter for Tag query for I5 chart

mashfaq
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

swaroop_anasane
Active Contributor
0 Kudos

Hi Muhammad,

Try using setParameter() fn and then pass parameter name and values as string. This should work.

Thanks,

Swaroop

mashfaq
Contributor
0 Kudos

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

swaroop_anasane
Active Contributor
0 Kudos

Hi Muhammad,

Can you please check if restrict property override check box is checked or not for the QT. It doesn't make any difference to the query what ever be the display template you are using.

You might want to recheck the configuration of QT.

Thanks,

Swaroop

mashfaq
Contributor
0 Kudos

Dear Swaroop,

                        I test by check (on) restrict property override but it does not impact anywhere. system is taking default mapped parameters in tag query.

Thanks

Muhammad Ashfaq

swaroop_anasane
Active Contributor
0 Kudos

Yes Muhammad,

if the restrict property override is checked, it would take what all is set in the query during design time. You should uncheck it.

Thanks,

Swaroop