writepointerfile
Writepointerfile (deprecated) updates an existing saved search (aka pointer file) or writes a new saved search to the database.
Syntax
command=writepointerfile&<parameter>=<value>&...
-
database
(String)
database on which to perform the writepointerfile function. The name of this database must have been specified in the adlibweb.xml file.
-
data
(String)
the saved search to write;
data
constitutes the data in the form of XML which must be written back to the database. In principle it is possible to write a new saved search by entering the relevant data in the URL directly, but that is a deprecated method since the length of a URL is limited. Instead, use the POST method to send saved search data to the web server.
Posted data may contain a hit list; if not, the provided search is executed before the hit list is written. (The hit list is the repeated node.)
An as of yet unused number will automatically be assigned to a new saved search, if no number is provided. Make sure you submit all metadata which the saved search should contain, also information like the owner and the title of the saved search.
To update an existing saved search, use the assigned number of the relevant saved search. The entire saved search will be overwritten, not just the XML tags you submit, so make sure you submit all metadata which the saved search should contain, even if it was already present in the saved search.
Use getpointerfile
to learn how the XML to write back should look like: you can leave out empty XML tags and the diagnostics part.
Include the writeAllowed
setting in adlibweb.xml, otherwise saved searches can’t be written to the database.
The user who wants to write a saved search in the database, must have write access in the Axiell Collections application. The user name must either be passed in this URL or make sure that the write process runs under the right identity.
-
output
(String)
[optional] output format to be returned. Values for
output
can be either json
or xml
(xml
is the default, so you don't need to specify that explicitly). However, the output format produced by jQuery applications is always JSON, so you don't need to specify the output type there either.
Read more about JSON output here.
-
callback
(String)
[optional] returns JSON output wrapped in brackets with your callback function name, for AJAX requests: <callback function name>( <JSON output> ); You don't need to specify
output=json
, because the output format is JSON by default.
Description
This command is now deprecated; use insertpointerfile, updatepointerfile or deletepointerfile instead.
For more information about saved searches, see the Axiell Collections online Help.
Examples
Description
- no Adlib.Data-specific description available yet; see the URL request tab for all information -
Examples
Description
- no jQuery-specific description available yet; see the URL request tab for all information -
Examples