CenterView Help

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 »

Scripting

What Is Scripting?

There are two types of field within CenterView:

  • Static fields which are configured with a static value e.g. the name field for a Stream.
  • Dynamic fields which can be configured with an expression/script to provide different values depending on the context in which they are evaluated.

Much of CenterView's dynamic behaviour is created by the ability to configure simple expressions or more complex scripts within the dynamic fields. This chapter covers the details of how to write your own expressions, from simple assignments to complex looping operations. The scripting features are covered on the following pages:

Scripting Basics Basic operations (+, -, *, /), "$" variables, variable types, assignment statements, object types and commenting scripts.
CenterView Variables How variables are used in CenterView.
CenterView Internal Variables A List of values that CenterView defines in the course of processing that are available for use in building models.
Conditional Statements How to conditionally control the flow of your script using the if() and switch() functions.
Looping Statements How to execute blocks of script a number of times.
Arrays and Record Sets Handling sets of data.
Filters and Lookups How to construct filters and perform dynamic lookups on Pipes.
Macros Encapsulate script so that it can be used from several different dynamic fields
Scripting Style A summary of the recommend scripting styles e.g. how to lay out an if clause and how best to name variables etc.

See Also

  • No labels