Tivoli Service Desk 6.0 Developer's Toolkit
Script Programming Guide

Table of Contents


Copyright

Preface

Who Should Read this Book

What this book contains

Other Books in This Library

Typeface Conventions

Special Elements

Product Name Acronyms

Platform-specific Information

Contacting Customer Support

Introduction

Chapter 1: Developer's Toolkit Overview

Knowledgebase Conventions

Major Sections

Minor Sections

Chapter 2: Data Types

Introduction

Simple Data Types

Other Data Types

Constants

Variables

Data Type Conversions

String Expressions with Simple Data Types

Integer and Real Expressions

Boolean Expressions

Date Expressions

Time Expressions

Arrays

Lists

Records

User-defined data types

Assignment compatibility

Initializing variables

The value $Unknown

Chapter 3: Conditional and Control Structures

Introduction

The IF statement

The WHEN Statement

FOR Loops

REPEAT Loops

WHILE Loops

Exit and the ExitLoop Statement

Chapter 4: Knowledgebase Components

Introduction

The ROUTINES section

Procedures

Scoping

Parameter Passing

Functions

Calling Library Procedures and Functions

Parameter Passing for External Routines

Chapter 5: Event-Driven Programming

Introduction

Event Handlers

Implicit Parameters

Instance Data

Chapter 6: Using the TSD Script Window System

Introduction

Using WinCreate

Drop-Down Menus

Generic Windows

Virtual Scroll Windows

Chapter 7: The Form System

Introduction

Form controls

Form Event Handlers

The $MsgSelect Event

Other Form Events

Form Control Names

Table

Creating Forms

Chapter 8: Database Management Facilities

Introduction

SQL Support in Developer's Toolkit

Data Source Attributes and Descriptions

CASE_CONVERSION

CASE_SENSITIVE

COLUMN_DEFINITION_TABLE

COMMIT_SELECTS

DBMS

DEFAULT

DRV

DSN

MANUAL_COMMITS

MULTIPLE_CONNECT

MULTIPLE_CONNECT_REQUIRED

QUAL

SYSQUAL

TABLE_DEFINITION_TABLE

TIME_FORMAT

UPPERCASE_FUNCTION

Connecting Your Application to a Database

An Example Database

Retrieving Data with SQLSelectInto

SQLSelectInto

Using a Record Variable

Using TSD Script Import Statements

Multiple Row Retrieval

Qualifiers

Quotes

Data Formatting with the SQLFormat Statement

Name Overrides

Updating Data

Transaction-Oriented Processing

Unknown Values in SQL Columns

Error Handling

Using Commands for Multiple Executions

Chapter 9: The Tivoli Service Desk (TSD) Script Mail Interface

Introduction

Using TSD Script Mail with Protocols

TSD Script Mail Interface Terms

TSD Script Mail Record Structures

Implementing the TSD Script Mail Interface

Specifying a recipient

TSD Script Mail Return Codes

Mail.kb File

TSD Script Mail file

Chapter 10: Programming for International Uses

Introduction

Cultural Considerations

Locale Support

Enhancements for Internationalization

Chapter 11: Networking Concepts

Introduction

Networking Terminology

Event Handlers

NetRegister and NetListen Event Handlers

Connections

Instance Data

Blocking and Non-blocking Statements

Establishing Bi-Directional Communication

Advanced Statements: NetListen and NetAccept

Example TSD Script Talk Program

Chapter 12: Networking Messages and Event Handlers

Introduction

TSD Script Messages for Networking

TSD Script messages used with NETx

Glossary


Tivoli Service Desk 6.0 Developer's Toolkit Script Programming Guide

Copyright