Child pages
  • Implementing Business Logic

Versions Compared

Key

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

...

Code Block
function createNewCustomer(){  // a method defined within the 'customers' form scope

    controller.newRecord();    // invokes the same form object from within the form's scope. Notice the fully qualified namespace is NOT required

}
Creating a Variable

To create a global variableCreate a Global Variable one of two ways:

  1. From the Solution Explorer tree, expand navigate to the Active Solution > Globals > variables node. Right-click the variables node and select Create Variable from the pop-up menu. Choose a variable name, a data type and optionally choose an initial value and click OK. The variable declaration will be generated in the globals.js file, which will be opened in the Script Editor.
  2. From the Solution Explorer tree, navigate to the Active Solution > Globals > variables node. Highlight the variables node and click the Create Variable button from the lower toolbar in the Solution Explorer. Choose a variable name, a data type and optionally choose an initial value and click OK. The variable declaration will be generated in the globals.js file, which will be opened in the Script Editor.

Create a Form Variable in one of two ways:

  1. From the Solution Explorer tree, navigate to the Active Solution > Forms > myForm > variables node. Right-click the variables node and select Create Variable from the pop-up menu. Choose a variable name, a data type and optionally choose an initial value and click OK. The variable declaration will be generated in the myForm.js file, which will be opened in the Script Editor.
  2. From the Solution Explorer tree, expand navigate to the Active Solution and the Globals > Forms > myForm > variables node. Highlight the variables node and click the Create Variable button from the lower toolbar in the Solution Explorer. Choose a variable name, a data type and optionally choose an initial value and click OK. The variable declaration will be generated in the myForm.js file, which will be opened in the Script Editor.
Creating a Method
Implementing Basic Business Logic