Child pages
  • Implementing Business Logic

Versions Compared

Key

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

...

  1. Global Scope: Accessible via the namespace globals, i.e.
    Code Block
    langjavascript
    globals.createNewCustomer(); // invokes the global method
    When referencing a global
  2. Form Scope: Accessible via the namespace forms.formName, i.e. javascript
    Code Block
    lang
    forms.customers.controller.newRecord();  // invokes a form object from another scope
    compared to
Code Block
function createNewCustomer(){  // a method defined within the 'customers' form scope

    controller.newRecord();         // invokes the same form 

...

object from within the 

...

form scope. Notice the fully qualified namespace is not required}