MacLanphier
8 years agoQrew Trainee
How can I edit a text-field from the GeditSubmit() function?
Using the IOL technique, I am able to parse all of the edits a user made while in grid edit.
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");
GE_AddGeInfoToJax(gGED, jax);
jax.DoAsyncCmd(GESubmitCallback);
var params = JSON.stringify(jax.params);
[parse the xml string and get the data I want]
[add that data to the desired field?]
[save?]
I make a string representing a record of those changes, which I would like to append to the current content of an existing text-field. How can I select that field, append the new text, and save those changes?
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");
GE_AddGeInfoToJax(gGED, jax);
jax.DoAsyncCmd(GESubmitCallback);
var params = JSON.stringify(jax.params);
[parse the xml string and get the data I want]
[add that data to the desired field?]
[save?]
I make a string representing a record of those changes, which I would like to append to the current content of an existing text-field. How can I select that field, append the new text, and save those changes?