Forum Discussion
EverettPatterso
7 years agoQrew Captain
You will need to add the API_EditRecord call to each case and it will set that field back to 0 after it does the focus.
Replace dbid with your dbid
------------------------------
Everett Patterson
------------------------------
Replace dbid with your dbid
(function () {
//Get the expected tab value
var QBUmytab = Number($("#tdf_2").text());
//Go to tab based on value
switch(QBUmytab) {
case 3:
$("#tab_t3_link a").click();
var dbidParents = "VALUE";
var rid = kRid;
$.post(dbidParents, {
act: "API_EditRecord",
rid: rid,
_fid_104: 0,
}).then(function(xml) {
});
break;
case 4:
$("#tab_t4_link a").click();
break;
};})();
------------------------------
Everett Patterson
------------------------------
BrandonClark
7 years agoQrew Cadet
It works brilliantly. Everett you are genius. Thank you.
------------------------------
Brandon Clark
------------------------------
------------------------------
Brandon Clark
------------------------------
- BrandonClark7 years agoQrew CadetStarting to see the first minor flaw in the plan. The fid_104 is required to be visible on the form for this work. I can live with that for now but any thoughts on a better way to pass the information without using it on the form?
------------------------------
Brandon Clark
------------------------------