Forum Discussion
EOMDevelepors
7 years agoQrew Captain
Thanks for your reply. My understanding is that gReqAppDBID gets the table id of the current table. If I need to edit record on table "bnqepesti" how to I write that in the code page. I tried dbid: "bnqepesti" but its not working.
Thanks again for your help.
here is a copy of my current code page:
var apptoken = "cci99s..............tqtfq";
$.ajaxSetup({data: {apptoken: apptoken}});
var description= prompt("Enter a brief description of the work done in this session: ", "");
var dbidTable = "bnqepesti";
var promise = $.get(dbidTable, {
act: "API_EditRecord",
rid: QBU_rid,
_fid_20: description,
_fid 6: "Out"
});
$.when(promise).then(function(){
document.location.href = dbidTable + "?a=dr&rid=" + QBU_rid;
});
Thanks again for your help.
here is a copy of my current code page:
var apptoken = "cci99s..............tqtfq";
$.ajaxSetup({data: {apptoken: apptoken}});
var description= prompt("Enter a brief description of the work done in this session: ", "");
var dbidTable = "bnqepesti";
var promise = $.get(dbidTable, {
act: "API_EditRecord",
rid: QBU_rid,
_fid_20: description,
_fid 6: "Out"
});
$.when(promise).then(function(){
document.location.href = dbidTable + "?a=dr&rid=" + QBU_rid;
});