on 04-11-2014 3:48 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Rohit and Ria Elezabeth for the solution.
Regards,
Minakshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
1 | |
1 | |
1 | |
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.