Sini,

Can you give us some more information?


-          How are you showing the "export" button in the results page 
(customizing result.js)?

-          How and where is the call to the xquery module being made?

-          Can you use firebug to trace the calls being made to the server and 
the response?

-          Do you see any errors on the console in firebug?

Thanks,

Ganesh Vaideeswaran
Director of Engineering, Application Services
MarkLogic Corporation
[email protected]<mailto:[email protected]>
Phone: +1 650 655 2398
www.marklogic.com<http://www.marklogic.com/>

This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies. Thank you for your cooperation.

From: [email protected] 
[mailto:[email protected]] On Behalf Of sini narayanan
Sent: Wednesday, February 06, 2013 9:07 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] App Builder Customization - get current search 
query

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