Question: If I click the New Search button on the search results page, when I return to the query screen, my previous query criteria still appear. How do I eliminate this behavior so the query boxes are empty when I click New Search?
Answer: Edit the HTML query screen and remove the following line:
<input id="QS" type="hidden" value="query screen name" name="QS">
Showing posts with label WebPublisher PRO. Show all posts
Showing posts with label WebPublisher PRO. Show all posts
Thursday, October 2, 2008
Thursday, August 14, 2008
WebPublisher PRO: XML queries using saved sets
Occasionally you may want to submit an XML query that uses a set saved in the textbase.
The following will search for a saved set. The <QY> is just the standard Command Query syntax to find a saved set. Note that it does not refresh the set; the records are the records that were in the set the last time it was saved. This is essentially like using Load Set in TextWorks.
<?xml version="1.0" ?>
<Query xmlns="http://www.inmagic.com/webpublisher/query" detail="qy">
<AC>QUERY</AC>
<QY>find {automation}</QY>
<XM>1</XM>
<TN>CARS</TN>
</Query>
If you want to refresh the set so that the search will retrieve the records added since the set was last saved, use a Menu Query, like so:
<?xml version="1.0" ?>
<Query xmlns="http://www.inmagic.com/webpublisher/query" detail="qy">
<AC>menu_query</AC>
<SN>automation</SN>
<XM>1</XM>
<TN>cars</TN>
</Query>
The following will search for a saved set. The <QY> is just the standard Command Query syntax to find a saved set. Note that it does not refresh the set; the records are the records that were in the set the last time it was saved. This is essentially like using Load Set in TextWorks.
<?xml version="1.0" ?>
<Query xmlns="http://www.inmagic.com/webpublisher/query" detail="qy">
<AC>QUERY</AC>
<QY>find {automation}</QY>
<XM>1</XM>
<TN>CARS</TN>
</Query>
If you want to refresh the set so that the search will retrieve the records added since the set was last saved, use a Menu Query, like so:
<?xml version="1.0" ?>
<Query xmlns="http://www.inmagic.com/webpublisher/query" detail="qy">
<AC>menu_query</AC>
<SN>automation</SN>
<XM>1</XM>
<TN>cars</TN>
</Query>
Subscribe to:
Posts (Atom)