Question
API_Edit Record in a Code Page
Hello,
I am having trouble with my code page in regards to editing a record.
for(var i=0; i<response.records.length; i++){
if(response.records["Include in Deposit"] == 1){
var newAmountApplied = (response.records["Amount Applied"]-response.records["Amount Applied"]);
var RecID = response.records["Record ID#"];
console.log(response.records["Record ID#"]);
console.log(newAmountApplied);
var url5 = "Domain";
url5 += "/db/";
url5 += "bnae46589";
url5 += "?a=API_EditRecord";
url5 += "&rid=" + RecID;
url5 += "&apptoken=d4vg82pmsvv9dceu22djsquwtj";
url5 += "&_fid_14=" & newAmountApplied ;
url5 += "&_fid_28="&1;
httpGet(url5);
}
}
All I am trying to do with my code is to clear out a record and check a checkbox if another checkbox is checked. The console is logging the correct record Id and values it is however not editing the records. In the same codepage I am purging and adding records as well and those work fine. Any Ideas?
I am having trouble with my code page in regards to editing a record.
for(var i=0; i<response.records.length; i++){
if(response.records["Include in Deposit"] == 1){
var newAmountApplied = (response.records["Amount Applied"]-response.records["Amount Applied"]);
var RecID = response.records["Record ID#"];
console.log(response.records["Record ID#"]);
console.log(newAmountApplied);
var url5 = "Domain";
url5 += "/db/";
url5 += "bnae46589";
url5 += "?a=API_EditRecord";
url5 += "&rid=" + RecID;
url5 += "&apptoken=d4vg82pmsvv9dceu22djsquwtj";
url5 += "&_fid_14=" & newAmountApplied ;
url5 += "&_fid_28="&1;
httpGet(url5);
}
}
All I am trying to do with my code is to clear out a record and check a checkbox if another checkbox is checked. The console is logging the correct record Id and values it is however not editing the records. In the same codepage I am purging and adding records as well and those work fine. Any Ideas?
This topic has been closed for replies.
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.