Forum Discussion
_anomDiebolt_
7 years agoQrew Elite
Just create your own API modeled off the native action GenChangeFieldType. This is called the Be The API technique modeled off of the Be The Bike patent:
Be The Bike! From the Patently Absurd Inventions Archive
http://totallyabsurd.com/bethebike.htm
Towards this end write a function which returns a promise with this signature:
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=681
Be The Bike! From the Patently Absurd Inventions Archive
http://totallyabsurd.com/bethebike.htm
Towards this end write a function which returns a promise with this signature:
function changeFieldType(dbidTable, fid, type) { return Promise.resolve( $.get(dbidTable, { a: "GenChangeFieldType", BUT: "CONVERT+DATA", D0: type, fid: fid }) ).then(function() { return "it certainly worked!"; }); }Set the parameters:
var dbidTable = "your table dbid";And call the function:
var fid = "6";
var type = "PC";
changeFieldType(dbidTable, fid, type)Pastie Database
.then(function(response) {
console.log(response);
});
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=681