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>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment