Forum Discussion
_anomDiebolt_
9 years agoQrew Elite
The documentation can be found here:
https://quickbase.intuitcdn.net/res/72799-10/js/gridEdit.js
Use this documentation viewer:
http://jsbeautifier.org/
Then look for the GeditSubmit function and redefine it to suit your needs along with a lot of console.logs():
function GeditSubmit(dbid) {
if (!gGED.HasDataChanged() && !gAndDone) {
QBalert("<div class=redhead>Nothing to save.</div>You haven't made any changes.");
return
}
if (!GE_validate(gGED)) {
return
}
ClearErrors();
HidePopupDiv();
QBbusy("Saving . . .");
var jax = new jaxreq(dbid + "?a=QBI_GridEditSubmit");
console.log(JSON.stringify(gGED));
GE_AddGeInfoToJax(gGED, jax);
jax.DoAsyncCmd(GESubmitCallback)
console.log(JSON.stringify(jax.params));
}
You can redefine any QuickBase authored function by injecting a modified function of the same name using IOL.
QuickBase makes heavy use of encoded strings that are delimited by multi character separator strings (in this case "~~!~^" is a five character separator string):
1~~!~^3~~!~^4~~!~^5~~!~^6~~!~^2~~!~^-10~~!~^-11~~!~^-12~~!~^-13
If you decode these strings in the XML you can grab the rids, fids and field values of the modified/deleted records/fields and log what you need. It isn't fun but it isn't too difficult.
https://quickbase.intuitcdn.net/res/72799-10/js/gridEdit.js
Use this documentation viewer:
http://jsbeautifier.org/
Then look for the GeditSubmit function and redefine it to suit your needs along with a lot of console.logs():
function GeditSubmit(dbid) {
if (!gGED.HasDataChanged() && !gAndDone) {
QBalert("<div class=redhead>Nothing to save.</div>You haven't made any changes.");
return
}
if (!GE_validate(gGED)) {
return
}
ClearErrors();
HidePopupDiv();
QBbusy("Saving . . .");
var jax = new jaxreq(dbid + "?a=QBI_GridEditSubmit");
console.log(JSON.stringify(gGED));
GE_AddGeInfoToJax(gGED, jax);
jax.DoAsyncCmd(GESubmitCallback)
console.log(JSON.stringify(jax.params));
}
You can redefine any QuickBase authored function by injecting a modified function of the same name using IOL.
QuickBase makes heavy use of encoded strings that are delimited by multi character separator strings (in this case "~~!~^" is a five character separator string):
1~~!~^3~~!~^4~~!~^5~~!~^6~~!~^2~~!~^-10~~!~^-11~~!~^-12~~!~^-13
If you decode these strings in the XML you can grab the rids, fids and field values of the modified/deleted records/fields and log what you need. It isn't fun but it isn't too difficult.
QuickBaseCoachD
8 years agoQrew Captain
That is an odd question to tack onto this thread. I suggest that you post a new question with the complete Question.
If I were to answer the question as posted my response would be "type in the grid edit cell, then save", so I am thinking you must have more to your question than that.
If I were to answer the question as posted my response would be "type in the grid edit cell, then save", so I am thinking you must have more to your question than that.