Window Context
Window context stores information of window, tab and selected record’s data. Window number (winNo.) and tab number (tabNo.) are used to get data from context. Here window number is unique number assigned to window by Vienna Framework and tab number is sequence number of tab in that window.
Window info that can be fetched using window number is described below.
|
|
|
winNo.| | It Shows name of window whose winNo. is passed. “WindowName” is fixed key to get window name of window.
You can get this information like VIS.context.getWindowContext(2,"WindowName"). Here 2 is window number assigned to window. |
|
Tab info that can be fetched using window number and tab number is described below.
|
|
|
winNo.|TabNo|AD_Tab_ID |
| It Shows primary key of AD_Tab corresponding to the WinNo. and TabNo. |
winNo.|TabNo| |
| It Shows Name of AD_Tab corresponding to the WinNo. and TabNo. |
winNo.|TabNo| |
| It Shows Data Access Level of AD_Tab corresponding to the WinNo. and TabNo. |
winNo.|TabNo| |
|
You can get this information like VIS.context.getWindowTabContext(2,2,"AD_Table_ID"). Here 1st parameter is windowNo, 2nd parameter is tabNo. and 3rd is key.
|
You can get information of selected record of current window from context. Window info that can be fetched using window number is described below.
|
|
|
winNo.|ColumnName |
| It will give data saved in current record for that particular column.
|