Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: here Here we assume that you must have basic knowledge of JQuery, JavaScript and prototype function etc. 

Form Creation is broadly divided in two steps  steps  

  1. Form Development 

  2. Form Display

...

VIENNA Advantage is supporting three ways to show the form in Vienna Advantage 

 

  1.  FormFrame 

First kind of forms are those which are being opened from menu or shortcut. For these forms user need to add an entry of form created in “Form” Window. Then bind that form with menu or shortcut. Example of these forms are generate Invoice(manual), Vserver, etc.For these forms, Form class must implement three functions 
 

A)  Init(windowNo, frame) 

 

This is main initialization method. 

...

In init function, parameter "frame" is a container panel provided to display form on screen. So you must have to add/append your root into it. 

 

B) GetRoot()  

"getRoot" function return your design as shown below. 

...


 

   C) Dispose();

This function used to dispose formFrame object and form local variables. 

Syntax as shown below. 

...

  1.  CFrame 

Second type of forms are those, which we open from other forms or shortcuts. For these kind of formsno needto make any entry in Form window. These forms are created using the help of CFrame. 

...

In dispose method must null all form variables and off all events. While coding in java script declaration scope of any variable should be local mean always use "var" or "this" according to your need, if you define any variables without these that would be add into global window object so take care of it otherwise it create performance issue. 

 

A)   Dialog 

You can also show form design as a dialog.For that you can use jQuery dialog method OR you can use Framework method. 

...