cancel
Showing results for 
Search instead for 
Did you mean: 

How to set query parameters to i5Grid

Former Member
0 Kudos

Hello Everyone,

I am working on creating i5Charts.

I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.

How to set query parameters to i5Grid?

Pls help with syntax.

Thanks.

Regards,

Minakshi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Minakshi,

Try these 3 approaches.

Suppose you want to set value for Rowcount dynamically.

1. gridObject.getQueryObject().setRowcount(<Value>);

2. gridObject.getQueryObject().setParameter("Rowcount", <Value>);

3. gridObject.getQueryObject().setProperty("Rowcount", <Value>);

here gridObject is the variable assigned to the i5Grid Object.

Regards,

Rohit Negi.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Rohit and Ria Elezabeth for the solution.

Regards,

Minakshi

Private_Member_14935
Active Participant
0 Kudos

Hi Minakshi,

Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.

The below syntax should work for you:

  1.  gridObject.getQueryObject().setRowCount(<Value>);

  2.  gridObject.getQueryObject().setParameter("RowCount", <Value>);


You can check the documentation at the following link:

http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html

You could also use the script assistant to check for the JS methods.


Regards,

Ria