New record code needing a tweak
let thisRecord := this;
let myProject := 'SELECT PROJECT';
let myLoc := 'SELECT BUILDING, ROOM & DESCRIPTION';
let newRec := (create 'Project Equipment');
newRec.('SELECT PROJECT' := myProject);
newRec.('SELECT BUILDING, ROOM & DESCRIPTION' := thisRecord.'SELECT BUILDING, ROOM & DESCRIPTION');
What you see above is a script to create a new record populating some fields pre-formatted - works perfectly. However I have moved the TAB to the last in line so now when I click the button it goes to the first TAB which is the wrong TAB.
The TAB is named "INPUT. I know one can open a form to a specific TAB but I cannot figure out where to add that here.
An example script that directs to a TAB is:
let myID := last((select 'Project Equipment').number(Id));
openRecord(record('Project Equipment',myID), "EQUIPMENT INSTALLED")
"EQUIPMENT INSTALLED" is the named TAB