Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

VIENNA Advantage also supports form to be opened from a button on a window. There is option at the column level, when a reference of type "Button" is selected, a field will be displayed with the label "Form or Page" (Pic 16), where the form needs to be linked which user wants to open on that button click.

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();

  • No labels