Open Tab as Dialog on button
Overview:
Open Tab as Dialog is a new addition that has been introduced in the Vienna framework, Adding the new list box "Action" in the Filed tab, when we Select Open Tab as a Dialog from the Action List box on the field. After click on the
Pre-requisites for Open Tab As Dialog:
Vienna Advantage Framework 5.7.0.1
Steps to Create Open Tab As Dialog :
How to configure the functionality:
Login with System Administrator role.
Open the Data schema window.
Select the target "Table" from header tab and move to column tab.
Add a New column with the Reference "Button" and Action checkbox set to "True" for example in our case column name 'TabSwitch'.
Save it and click on the Synchronize button.
Step 2
Login with System Administrator role.
Open the screen configuration window.
Select the window linked with table (used in step 1) from header tab and Move to the target "Tab".
After select the tab, click on the "Field" tab.
Add a new field with the created column (in our case it is 'TabSwitch' it may be different in your case) and enter the value in the "Tab Index" field. On which tab you want to move by press this button field.
Select Open Tab as a Dialog in the Action List Box enter 6 in the Tab index and Click on the Save button.
Note : Index number is always starts from zero.
So,
For first tab we will use tab index 0
For second tab we will use tab index 1...
-------and so on--------------
For Nth Tab we will use tab index as N-1.
As in example below, we defined the tab index = 6, so on press this button field system will Display the 7th tab of the current window as a dialog on current screen.
Step 3
How we can use on window for the Open Tab as a Dialog :
(Here for example purpose we define the setting on Business Partner Window)
Login with your User/Role.
Open the target screen (in our case Business Partner ) and select any record.
In our example we defined Tab Switch button on Header tab and on click on this TabSwitch button System will Display the 7th tab (Contact Details) as a Dialog in the current Screen. In the contact details dialog box is not editable it will display all the records of the contact details in contact details dialog box , As shown in the bellow image.
Step 4
How we can use on window for the Move to tab on Action List Box:
Now login with the Superuser.
In our Open screen configuration move to the tab and field
Select Move to tab in the Action List Box enter 6 in the Tab index .
Click on the Save button.
In our example we defined Tab Switch button on Header tab and on click on this Tab Switch System will move directly to 7th tab (Contact Details) of the current window.
Note:- If we are not selecting anything form the Action List Box and only given the Index Value when click on the button it will Redirect to the tab on the Current Window.