I am trying to create a new 'Biochem record' (Biochem table) in a portal (Biochem object) on the tab_Biochem object tab of Patient_U layout (Patient table), script below:
1 Freeze Window
2 Set Variable [ $BiochemID; Value:Patient::__uuID ]
3 Go to Layout [ “Biochem” (Biochem) ]
4 New Record/Request
5 Set Field [ Biochem::_PatientuuID; $BiochemID ]
6 Go to Layout [ “Patient_U” (Patient) ]
7 Go to Object [ Object Name: "tab_Biochem" ]
8 Go to Object [ Object Name: "Biochem" ]
Though the above works, because I have set another tab (tab_Calc) on the Patient_U layout as the tab to go back to as std, despite 'Freeze Window', the user is first taken to Calc tab, before seeing Biochem object. BTW, line 7 is probably obsolete; it didn't make any difference.
Can I create a new Biochem record without the user seeing the switching between records?