BrandonClark
6 years agoQrew Cadet
Using iol to Select Tab of Child After Adding Child Record
I am trying to move my Add Child buttons up out of the tabs and on to the main form. To keep it from appearing awkward, I also would like to have the associated tab selected after adding the child record. Due to lack of talent, I've taken a two step approach. The first is the Add Child button now also sets fid_104 to the tab number of the associated child table prior to adding the record.
The second part is to use iol to set the focus to the desired tab on reload. I have just the basic iol setup and a codepage with the following which successfully changes the focus to tab 11 on reload:
$("#tab_t11_link a").click();
What I am would like to do is have it read in the value of fid_104 as a variable, if it is not "0", then use the variable to set the appropriate tab focus and set the fid_104 to "0".
β
Any help is appreciated.
------------------------------
Brandon Clark
------------------------------
β
The second part is to use iol to set the focus to the desired tab on reload. I have just the basic iol setup and a codepage with the following which successfully changes the focus to tab 11 on reload:
$("#tab_t11_link a").click();
What I am would like to do is have it read in the value of fid_104 as a variable, if it is not "0", then use the variable to set the appropriate tab focus and set the fid_104 to "0".
β
Any help is appreciated.
------------------------------
Brandon Clark
------------------------------
β