Hi All,

I have an application built using Marklogic Application builder. And now I
need to add a new functionality to the same.
On the "Content Area", adjacent to the sort link, I have a link to Export
the search results. On click of the "Export" link, a new xqy module would
be called to export the search result.
My requirement is to pass the current query being executed to the xqy
module. Whenever I search a record using the facets/search field, I need to
get the query that is getting executed to show the results. How do I do
this?

What I have done is to pass the url of the page to the xqy module. I have a
hidden input tag, where I pass the URL to the xqy module.

var URL = document.URL;

'<input type="hidden" name="url" value="'+ URL +'"></input>'


But the problem is that whenever I search for any data, the page is not
getting loaded, only the widgets get refreshed. So, without a refresh on
the page, I'm not able to get the up-to-date query.

I need this query to re-execute it in the DB to get the results again.

Please advice.

Thanks,
Sini
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to