Skip to Content
0
Former Member
Apr 15, 2014 at 09:12 AM

UI5 Grid issue

106 Views

Hello Everyone,

I am facing few issues while using UI5 Grid.

Scenario1:

I am using Sql query to display data in i5Grid.

This query accepts 3 input parameters and gives the respective values.

Initially i am giving the default parameters values in query template.

Now while generating report, I need to change the data in Grid based on selection.

I am passing the parameters as following.

gridObject.getQueryObject().setParameter("Param.1", param1value);

gridObject.getQueryObject().setParameter("Param.2", param2value);

gridObject.getQueryObject().setParameter("Param.3", param3value);

gridObject.getGridObject().setDisplayColumns("Column1,Column2");

gridObject.update(true);

I am also setting display column names as they are dynamic.

This time I am getting the Grid with default values only. The Grid is not updating as per the parameters passed.

Scenario2:

I am removing the default query input parameters and trying the same. It gives me an error:

Object doesn't support property or method 'setDisplayColumns'

Please help me with this issue.

Thanks and Regards,

Minakshi