Open Form (From Button on window) 

VIENNA Advantage is a software platform that provides support for opening forms from buttons within windows. In this scenario, the linked form behaves like a pop-up window. At the column level, users have the option to select a reference of type "Button." When this option is chosen, a field labeled "Form or Page" is displayed (as shown in Pic 16). Users can specify the form they want to open when the button is clicked. This feature enhances the functionality and user experience of VIENNA Advantage by allowing users to access relevant forms conveniently within the application.

Pic 16

Now at code level, the process to create form will be same as explained in previous sections, the only change that is required will be to get Record ID from the particular transaction from where the form is being opened. So that code can be written against the record to handle such scenarios. To achieve this, there are inbuild functions that can be accessed in "init" function of form with the "frame" parameter. 

To get record ID, getRecord_ID() property need to be accessed from frame parameter as shown in image below. 

Apart from record ID, there are other properties that can be accessed as well, which are mentioned below 

  1. this.frame.getRecord_ID(); 

  2. this.frame.getAD_Table_ID(); 

  3. this.frame.getAD_Window_ID();

Further, one can set form height and width within form class as below.