Skip to main content
Question

Using iol to Select Tab of Child After Adding Child Record

  • October 16, 2019
  • 0 replies
  • 75 views

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
------------------------------
​
This topic has been closed for replies.

EverettPatterso
Forum|alt.badge.img+10
Post your formula for the Add Child buttons, you should be using the native & "&z=" & Rurl() and it should return to the correct tab after adding a child record. 

------------------------------
Everett Patterson
------------------------------