Lockrecord locks a record for editing, given its priref.
command=lockrecord&<parameter>=<value>&...
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.output=json
, because the output format is JSON by default.
To update (edit and save) an existing record via de Axiell WebAPI, you have to know the record number (priref) of the record you want to update. This priref can be obtained by searching for the desired record first, in any of the different ways described elsewhere in this documentation. Although not a strict requirement, it is probably safest to lock the record before editing it, so that no-one else can edit the record simultaneously. After updating or writing a record it will be unlocked automatically. Only if you decide not to update a locked record, you'll have to unlock it explicitly.
Lock record 38 in collect.inf show
- no further description -
http://test2.adlibsoft.com/api/wwwopac.ashx?database=collect.inf&command=lockrecord&priref=38
Unlock record 38 in collect.inf, if you locked it in the example above show
- no further description -
http://test2.adlibsoft.com/api/wwwopac.ashx?database=collect.inf&command=unlockrecord&priref=38
- no Adlib.Data-specific description available yet; see the URL request tab for all information -
Lock record 38 in collect.inf show
// Create a connection to the wwwopac.ashx AdlibApi api = new AdlibApi(url); // Lock record 38 api.LockRecord("collect.inf", 38);
Unlock record 38 in collect.inf, if you locked it in the example above show
// Create a connection to the wwwopac.ashx AdlibApi api = new AdlibApi(url); // Unlock record 38 api.UnlockRecord("collect.inf", 38
- no jQuery-specific description available yet; see the URL request tab for all information -
Lock record 38 in collect.inf show
var url = "http://test2.adlibsoft.com/api/wwwopac.ashx"; $().adlibdata(url, { //arguments database: "collect.inf", command: "lockrecord", priref: 38 }, function (adlibJSON) { alert(adlibJSON.diagnostic.hits); });
Unlock record 38 in collect.inf, if you locked it in the example above show
var url = "http://test2.adlibsoft.com/api/wwwopac.ashx"; $().adlibdata(url, { //arguments database: "collect.inf", command: "unlockrecord", priref: 38 }, function (adlibJSON) { alert(adlibJSON.diagnostic.hits); });