I'm working on a App and I'm using the Filter toString() method to return the filter parameters ad a Query String. How can I use this to make a URL link to let the user view the result? Is there a method?
I'm working on a App and I'm using the Filter toString() method to return the filter parameters ad a Query String. How can I use this to make a URL link to let the user view the result? Is there a method?
Trevor,
There is not a method, that I know of, to get the complete URL, but you can certainly form it.
var defectQuery = Rally.data.wsapi.Filter.or([
{property: 'Name',operator: 'contains',value: 'CRITERIA'},
{property: 'Description',operator: 'contains',value: 'URGENT'}
]);
URL = "https://rally1.rallydev.com/slm/webservice/v2.0/defect?query=" + encodeURI(defectQuery.toString()) + "&fetch=true&start=1&pagesize=20&pretty=true";
console.log(URL);
I'll double check with some others on this as well to see if there is a better way.
Michael
Trevor,
There is not a method, that I know of, to get the complete URL, but you can certainly form it.
var defectQuery = Rally.data.wsapi.Filter.or([
{property: 'Name',operator: 'contains',value: 'CRITERIA'},
{property: 'Description',operator: 'contains',value: 'URGENT'}
]);
URL = "https://rally1.rallydev.com/slm/webservice/v2.0/defect?query=" + encodeURI(defectQuery.toString()) + "&fetch=true&start=1&pagesize=20&pretty=true";
console.log(URL);
I'll double check with some others on this as well to see if there is a better way.
Michael