Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
Use the IOL technique with code similar to this:
var dbid = "your app dbid here";
var dbidTable = "your table dbid here";
var apptoken = "your apptoken here";
$.ajaxSetup({data: {apptoken: apptoken}});
$.get(dbidTable, {
act: "API_DoQuery",
clist: "6",
slist: "6",
options: "num-1.sortorder-D"
}).then(function(xml) {
var nextContractId = parseInt($("contract_id", xml).text(), 10) + 1;
$("#_fid_6").val(nextContractId);
});