Chapter 35: Common Scripting Tasks

Chapter 34 continues an exploration of automating tasks with scripts by providing examples of popular scripts.


The material in this chapter is organized into the following sections:

  • Allow User Abort
  • Setting Variables
  • Creating Navigation Scripts
    • Go to Layout
    • Go to Record/Request/Page
    • Go to Related Record
  • Interaction with Fields
    • Go to Field
    • Set Field
    • Set Field by Name
    • Set Selection
    • Set Next Serial Value
  • Get Directory
  • Working with Records
    • Import Records
    • Export Records
  • Using Show Custom Dialog
    • Configuring a Dialog
    • Configuring a Dialog for Field Input
    • Capturing the Button Click
  • Conditionally Branching with If Statements
    • Building simple If Statements
    • Building Compound If Statements
    • Building Nested If Statements
  • Performing Searches
  • Working with Found Sets
  • Iterating with a Loop Statement
    • Looping Through a Found Set of Records
    • Looping Through Lists of Data
  • Scripting Portal Functions
    • Navigating to a Portal Row’s Record
    • Adding a Portal Row
  • Managing Windows
    • Creating a New Window
    • Introducing the Card Window
  • Managing Errors