on 04-28-2016 12:48 PM
Hi all,
In SSCE, can we set input text field values to a Query template and update igrid.
Thanks,
Hi Sridhar,
You can use "OnEnter" event but again you will have to write a custom function to be called on this event. In that function, you should pass parameters to update the grid.
Regards,
Swaroop
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shridhar,
Yes you can do it.
1. Get the Textfield values using getTextValue method()
2. For passing values to the query template you can use AJAX call if your MII version is 15.0
because in 15.1 we have an i5Command which can do this.
For Query:
$.ajax({
type: 'POST',
url: '/XMII/Illuminator?QueryTemplate=<Query Path>&content-type=text/json',
success: function(data) {
alert("Query executed successfully");
} // Success Function
}); // Ajax Call
3. After the AJAX call you can just update the grid using Grid.update(true) method.
And you will see the updated data in the Grid.
If you wanted to pass the values to a Query Template which is associated with the Grid you can do it.
Grid.getQueryObject().setParam(1,"<Value>");
Or
Grid.getQueryObject().setParameter(1,"<Value>");
Regards,
Sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
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.