How is it possible to open a program / form in a tab and get a return value back (maybe if the program / form tab is closed), if a new record is created or the selected record is shown in the open program? It is possible to open a program in a tab with the function: “globals.svy_nav_showProgram();”, but how is it possible to get a return value back to the form from which is call the function? Similar to the functionality of the showLookupWindow.
That is currently not possible.
What would you expect if the user doesn’t close the layout but uses the tabs on top to switch to another one? Or what if something else is opened in the menu?
Joas:
That is currently not possible.What would you expect if the user doesn’t close the layout but uses the tabs on top to switch to another one? Or what if something else is opened in the menu?
For example, a message that the user has to complete the task and the only way to achieve this, is to close the tab. Other tabs / menus in this case are not selectable. If this would be possible, the dc_save method of a form is called, so the problem: SVYFRMWK-542: “scopes.svyLookupWindows.showLookupWindow() should call the forms dc_save() method” doesn’t occur.
I found a way to switch to a tab program: globals.svy_nav_switchTabProgram(event,_program). In this case it is possible to switch to a tab, but only if the program (A) is added to the layout of a another program (B). Further in this case, if B is open, also A is open in tab, but in the program / layout B. So, there are 2 versions of tabs? For what is the tab of a layout intended?