webfocus app studio reference guide · appication studio version 8 release 1.0 webfocus app studio...

638
WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Upload: dothuan

Post on 06-Sep-2018

241 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Application Studio

Version 8 Release 1.0

WebFOCUS App Studio Reference GuideRelease 8.1 Version 03

February 3, 2015

Page 2: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Active Technologies, EDA, EDA/SQL, FIDEL, FOCUS, Information Builders, the Information Builders logo, iWay, iWay Software,Parlay, PC/FOCUS, RStat, Table Talk, Web390, WebFOCUS, WebFOCUS Active Technologies, and WebFOCUS Magnify areregistered trademarks, and DataMigrator and Hyperstage are trademarks of Information Builders, Inc.

Adobe, the Adobe logo, Acrobat, Adobe Reader, Flash, Adobe Flash Builder, Flex, and PostScript are either registeredtrademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries.

Due to the nature of this material, this document refers to numerous hardware and software products by their trademarks.In most, if not all cases, these designations are claimed as trademarks or registered trademarks by their respective companies.It is not this publisher's intent to use any of these names generically. The reader is therefore cautioned to investigate allclaimed trademark rights before using any of these names other than to refer to the product described.

Copyright © 2015 , by Information Builders, Inc. and iWay Software. All rights reserved. Patent Pending. This manual, or partsthereof, may not be reproduced in any form without the written permission of Information Builders, Inc.

Page 3: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Information You Should Have . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

User Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Information Builders Consulting and Training . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

1. Introducing WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33What Is WebFOCUS App Studio? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

WebFOCUS Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

WebFOCUS and Your Network. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

WebFOCUS Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

WebFOCUS Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

App Studio Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

Reference: Derby Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Procedure: How to Change User Passwords Through the Security Center. . . . . . . . . . 38

Reference: App Studio Directory Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

WebFOCUS and App Studio Processing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

App Studio Development Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Project-Based Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Reference: Summary of Steps for Project-Based Development. . . . . . . . . . . . . . 43

Remote Development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Reference: Summary of Steps for Remote Development. . . . . . . . . . . . . . . . . . . 44

Launching App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

WebFOCUS App Studio Documentation Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

2. Using the WebFOCUS App Studio Interface Components . . . . . . . . . . . . . . . . . . . . . . . . 47Application Button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Application Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Reference: New Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

Reference: Open File Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

Save As Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Setting User Preferences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

General Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

WebFOCUS App Studio Reference Guide 3

Page 4: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Reporting Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Setting the Default Report Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Procedure: How to Set the Default Report Format. . . . . . . . . . . . . . 63

HTML Page Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

Reference: Form Settings Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

Document Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

Environments Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

Help Configuration Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Output Viewer Settings Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Quick Access Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

Reference: Customize Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Reference: Customize Keyboard Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

Procedure: How to Create Keyboard Shortcuts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

Adding Commands to the Quick Access Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

Procedure: How to Add Commands to the Quick Access Toolbar. . . . . . . . . . . . . . . . . 77

Canvas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

Alert Assist Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

Alert Assist Button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

Alert Assist Quick Access Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

Alert Assist Home Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

Chart Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

Cascading Style Sheet Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

ESRI Configuration Utility Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

JavaScript Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

Using JavaScript IntelliSense. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Text Editor Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Document Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

HTML Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

Report Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Reporting Object Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Reporting Object Button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Reporting Object Quick Access Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Reporting Object Home Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

Metadata Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

Join Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

4 WebFOCUS

Contents

Page 5: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

OLAP Dimensions Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Set Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Use Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Customizing Canvases. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85

Procedure: How to Move Canvases for Side-by-Side Development. . . . . . . . . . . . . . . . 86

Ribbon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

Home Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Content Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Modeling Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

Utilities Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

Window Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

Reference: Windows Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

Command Console Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

Execution Path Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

Edit Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

Find Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

Bookmarks Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

Position Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

Case/Comment Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

Options Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

WebFOCUS Administration Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

Style Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

Help Button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

Environments Tree Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

Environments Tree Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

Configured Environments Tree. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

Reference: Data Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108

Reference: Local Projects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

Reference: Repository. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

Reference: Scheduling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

Reference: Web Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

Reference: Node Population. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Master File Shortcut Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Opening Files in the Configured Environments Tree. . . . . . . . . . . . . . . . . . . . . . . . . . . 115

WebFOCUS App Studio Reference Guide 5

Contents

Page 6: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS Environment Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

Procedure: How to Add a WebFOCUS Environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

Local Machine Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120

Web Component Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

WebFOCUS Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

Managed Reporting and ReportCaster Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

Data Server Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

Project Development Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

Procedure: How to Edit an Existing WebFOCUS Environment. . . . . . . . . . . . . . . . . . . . 127

Procedure: How to Add a New Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Mode Manager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

Environments Detail Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

Environments Detail Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

File/Folder Properties Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Editing Properties in the File/Folder Properties Panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

Application Paths Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

View Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Design View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Parameters View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Working With the Parameters View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Embedded JavaScript/CSS View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Field View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Segment View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

List View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Modeling View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Text View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Access File Text View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

3. Customizing WebFOCUS App Studio Panels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141Using the Panel Customization Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Procedure: How to Rearrange Panels on the Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Procedure: How to Pin and Unpin Panels to the Canvas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Procedure: How to Close and Reopen Panels. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Using Handles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

Procedure: How to Dock Panels Around the Canvas Using Handles. . . . . . . . . . . . . . . . . . . 143

6 WebFOCUS

Contents

Page 7: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

4. Creating Reports in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147Launching the Report Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147

Procedure: How to Create a Report Using the Report Wizard. . . . . . . . . . . . . . . . . . . . . . . . . 148

Procedure: How to Create an SQL Report From an External .sql File. . . . . . . . . . . . . . . . . . 149

Procedure: How to Pass SQL Commands to the RDBMS Using SQL Passthru. . . . . . . . . . 150

Procedure: How to Import SQL Commands From an Existing .sql File. . . . . . . . . . . . . . . . . . 151

Report Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

Filter Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

Using the Expression Builder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

Reference: Expression Builder Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

Procedure: How to Display Records Based on Specified Values. . . . . . . . . . . . 158

Procedure: How to Display Records Based on a Variable Value. . . . . . . . . . . . 159

Procedure: How to Display Records Based on Field Values. . . . . . . . . . . . . . . . 159

Procedure: How to Display Records Based on Imported Values From an

External File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

Procedure: How to Select Multiple Values and Fields. . . . . . . . . . . . . . . . . . . . . 160

Report Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Procedure: How to Concatenate Data Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

Traffic Lights Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

Style Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

Using the StyleSheet Selection Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

Procedure: How to Include a StyleSheet in a Report. . . . . . . . . . . . . . . . . . . . . . 168

Procedure: How to Apply an External Cascading Style Sheet (CSS). . . . . . . . . 169

Procedure: How to Embed a StyleSheet in a Report. . . . . . . . . . . . . . . . . . . . . . 170

Procedure: How to Apply the Default WebFOCUS StyleSheet. . . . . . . . . . . . . . 172

Procedure: How to Reset the Default Report Canvas Styling. . . . . . . . . . . . . . . 172

Procedure: How to Save a StyleSheet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

Reference: Usage Notes for the StyleSheet Selection Dialog Box. . . . . . . . . . 173

Color Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Procedure: How to Access the Color Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . 174

Borders Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

Procedure: How to Add Borders to an HTML, Excel, or PDF Report. . . . . . . . . 174

Width Options Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

Procedure: How to Set Width Options for a Report. . . . . . . . . . . . . . . . . . . . . . . 177

Links Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

WebFOCUS App Studio Reference Guide 7

Contents

Page 8: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Procedure: How to Access the Drill Down Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . 224

Format Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

Output Types Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

Procedure: How to Set the Output Destination. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Output Format Options Dialog Box for an HTML Report. . . . . . . . . . . . . . . . . . . . . . . . 182

Output Format Options Dialog Box for a PDF Report. . . . . . . . . . . . . . . . . . . . . . . . . . . 182

Output Format Options for Excel Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

Output Format Options for PowerPoint Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

User Format Selection Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Navigation Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

Procedure: How to Add a TOC or Disable the TOC Feature. . . . . . . . . . . . . . . . . . . . . . 187

Procedure: How to Freeze the Area You Are Scrolling for HTML Report Output. . . . . 187

Auto Drill & Analysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189

Features Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

Displaying Pop-up Field Descriptions for Column Titles. . . . . . . . . . . . . . . . . . . . . . . . . 191

Procedure: How to Display Pop-up Field Descriptions in an HTML Report. . . . 191

Controlling the Display of Sorted Data With Accordion Reports. . . . . . . . . . . . . . . . . . 192

Reference: Requirements for Accordion Reports. . . . . . . . . . . . . . . . . . . . . . . . . 192

Procedure: How to Create an Accordion Report. . . . . . . . . . . . . . . . . . . . . . . . . . 193

Mailing Labels Options Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

Data Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

Calculation Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

Procedure: How to Access the Computed Field Creator. . . . . . . . . . . . . . . . . . . . . . . . 195

Defines and Computes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

Forecast Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196

Overview of Forecasting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196

Procedure: How to Calculate a Simple Moving Average. . . . . . . . . . . . . . . . . . . 197

Guided Reports Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

Overview of Guided Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199

Procedure: How to Generate a Parameter Group for One or More Columns. . 199

Procedure: How to Remove One or More Columns from a Parameter Group. . 199

Layout Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

Page Setup Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200

Report Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

Procedure: How to Access the Cell Padding Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

8 WebFOCUS

Contents

Page 9: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

View Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

Object Inspector Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203

General Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204

Field Length Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204

Repetitions Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

Zoom Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

SQL Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206

Virtual Screen Size Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206

Images Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206

New Image Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Current Image Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Position Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Size Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Options Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

Field Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

Column Type Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210

Filter Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

Sort Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

Break Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

Field Properties Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

Reference: Field Properties General Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

Reference: Field Properties Sort Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215

Appearance Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

Style Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218

Format Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

Display Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220

Data Visualization Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222

Links Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224

Procedure: How to Access the Drill Down Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . 224

Active Technologies Reports Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225

Active Technologies Report Options Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

Active Technologies Cache Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

Viewing Restrictions Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

Chart Engine Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

Calculations Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228

WebFOCUS App Studio Reference Guide 9

Contents

Page 10: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Legend Options Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229

Window Display Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

Freeze Columns Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

Pagination Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231

Visualize Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232

Row Selection Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232

Menu Options Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233

Application Container Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

Matrix Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236

Insert Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237

Row/Cell Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

Report Properties Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

Row Properties Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

Modeling Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

Modeling Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241

Procedure: How to Launch RStat. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241

Procedure: How to Set Parameters Using the RStat Model Configuration. . . . . . . . . 242

Sampling Functionality. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242

Basic Sampling Concepts and Terminology. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243

5. Creating HTML Pages in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245Launching the HTML/Document Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411

Procedure: How to Create an HTML Page Using the HTML/Document Wizard. . . . . . . . . . . 246

Procedure: How to Create a Guided Report Page Using the HTML/Document Wizard. . . . 247

Components Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247

Reports Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248

Procedure: How to Add a New Report or Chart to an HTML Page. . . . . . . . . . . . . . . . 248

Procedure: How to Add an Existing Report or Chart to a Layout. . . . . . . . . . . . . . . . . 249

Generic Elements Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250

Using the Font Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

Procedure: How to Format Text in the Layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252

Procedure: How to Insert a Bulleted List or Numbered List Into a Text Element. . . . 253

Procedure: How to Insert Nested Lists Into a Text Element. . . . . . . . . . . . . . . . . . . . . 253

Containers Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

10 WebFOCUS

Contents

Page 11: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Procedure: How to Add Additional Tabs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255

Procedure: How to Enable Full Screen Mode for the Tab Control. . . . . . . . . . . . . . . . 256

Procedure: How to Use a Form Object to Create a Pop-Up Dialog Box. . . . . . . . . . . . 256

Procedure: How to Create a Pop-Up Dialog Box or Pop-Up Window From a Form

Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256

Reordering Tabs, Accordions, and Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257

Objects Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257

Using Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258

Configuring WebFOCUS for Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259

Procedure: How to Configure WebFOCUS to Use Maps. . . . . . . . . . . . . . 259

Creating WebFOCUS Procedures for Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260

Procedure: How to Create Map Latitude/Longitude Coordinates in the

Source File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260

Procedure: How to Create Map Marker Group Fields and Tooltip Fields

in the Source File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262

Procedure: How to Create the Starting Center Point of the Map. . . . . . . 264

Adding a Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266

Procedure: How to Insert Maps in the HTML Canvas. . . . . . . . . . . . . . . . 266

Customizing the Map Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

Reference: Settings Panel for Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

Reference: Properties Panel for Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . 270

Procedure: How to Customize a Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273

Integrating WebFOCUS With Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275

Procedure: How to Update a WebFOCUS Report Based on a Map

Location. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275

Using the Maps Functionality. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278

Procedure: How to Use Manual Selection in a Map. . . . . . . . . . . . . . . . . 278

Procedure: How to Use Shape Selection in a Map. . . . . . . . . . . . . . . . . . 279

Procedure: How to Use Combination Selection in Maps. . . . . . . . . . . . . 280

Procedure: How to Show and Hide Markers in Maps. . . . . . . . . . . . . . . . 280

Procedure: How to Refresh the Map Output. . . . . . . . . . . . . . . . . . . . . . . . 281

Procedure: How to Create Polygons in the Map Output. . . . . . . . . . . . . . 282

Procedure: How to Create Bullseye Charts in the Map Output. . . . . . . . 284

Reference: Clearing and Removing Shape Selectors on Maps. . . . . . . . 285

Reference: Running Maps Against a Secured Server. . . . . . . . . . . . . . . . 285

WebFOCUS App Studio Reference Guide 11

Contents

Page 12: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Reference: Enabling Actions for Shape Selectors on Maps. . . . . . . . . . . 286

Chaining for Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286

Using JavaScript Code With Maps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

Syntax: How to Toggle Layer Visibility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

Syntax: How to Toggle Marker Visibility. . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

Syntax: How to Refresh a Layer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288

Syntax: How to Pan to an Address. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288

Syntax: How to Pan to a Point. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289

Syntax: How to Show All Map Markers. . . . . . . . . . . . . . . . . . . . . . . . . . . . 289

Syntax: How to Draw a Bullseye. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290

ESRI Flex Viewer Integration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Controls Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291

Controls Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

Procedure: How to Set Calendar Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295

Using a Double-head Slider Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

Procedure: How to Create a Report That Can Be Used With a Double-head

Slider Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297

Procedure: How to Create a Double-head Slider Control From the Ribbon. . . 298

Procedure: How to Create a Double-head Slider Control Using the New

Parameters Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

Procedure: How to Create an HTML Page that Uses a Double-head Slider

Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

Procedure: How to Enter Masked Text in a Text Box. . . . . . . . . . . . . . . . . . . . . . . . . . . 299

Procedure: How to Select Multiple Values From a Drop-Down List. . . . . . . . . . . . . . . 299

Using Tree Controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Procedure: How to Add a Tree Control to an HTML Page Using an Embedded

Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

Procedure: How to Add a Tree Control to an HTML Page Using an Existing

Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301

Procedure: How to Populate a Multi Source Tree Control. . . . . . . . . . . . . . . . . . 303

Procedure: How to Add a Tree Control to an HTML Page Using Static

Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304

Procedure: How to Create a New Tree Control From the New Parameters

Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

Reference: Usage Notes For Chaining Tree Controls. . . . . . . . . . . . . . . . . . . . . 305

12 WebFOCUS

Contents

Page 13: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Positioning Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

Positioning Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

Relationships Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427

Text Alignment Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428

Utilities Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309

Chaining Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310

Active Technologies Reports Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310

Template Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

Files Utility Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

Miscellaneous Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312

Procedure: How to Toggle the Visibility of a Hidden Object. . . . . . . . . . . . . . . . . . . . . 312

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

Using Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

Creating Parameter Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

Working With the Parameters Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

Adding a New Unbound Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315

Procedure: How to Add a New Unbound Parameter. . . . . . . . . . . . . . . . . . . . . . . 315

Creating a Static List of Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

Reference: Settings Panel (Incoming Static Parameter and Unbound

Control). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317

Reference: Settings Panel (Unbound Parameter). . . . . . . . . . . . . . . . . . . . . . . . . 318

Reference: Settings Panel (Bound Parameter). . . . . . . . . . . . . . . . . . . . . . . . . . . 318

Procedure: How to Add a New Static Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319

Reference: Adding Static Field Values From Report Canvas. . . . . . . . . . . . . . . 321

Procedure: How to Add an Ignore Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

Procedure: How to Add an Everything Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324

Procedure: How to Use Values From a Procedure. . . . . . . . . . . . . . . . . . . . . . . . 324

Procedure: How to Import Values From an External File. . . . . . . . . . . . . . . . . . . 325

Creating a Dynamic List of Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

Reference: Settings Panel (Dynamic Values). . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

Reference: Settings Panel (Bound Parameter). . . . . . . . . . . . . . . . . . . . . . . . . . . 328

Procedure: How to Create a Dynamic Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

Procedure: How to Create Dynamic Parameters by Adding a Filter. . . . . . . . . . 331

Procedure: How to Sort the Dynamic List of Values. . . . . . . . . . . . . . . . . . . . . . 332

Procedure: How to Check for Duplicate Values. . . . . . . . . . . . . . . . . . . . . . . . . . 333

WebFOCUS App Studio Reference Guide 13

Contents

Page 14: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using Custom Procedures to Retrieve Dynamic Values. . . . . . . . . . . . . . . . . . . . . . . . 333

Automatically Populating Fields With Dynamic Values. . . . . . . . . . . . . . . . . . . . . . . . . . 338

Parameter Value List Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338

Procedure: How to Send the Display Value for Static and Dynamic

Controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339

Procedure: How to Use Procedure Names as Values. . . . . . . . . . . . . . . . . . . . . 342

Procedure: How to Use Selected Values as the Default Value. . . . . . . . . . . . . 343

Properties Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348

Properties Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348

Autosize Children. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349

Color Picker Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353

Settings Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354

Using the Selection To Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356

Tasks & Animations Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357

Tasks Section. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358

Animations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362

Procedure: How to Animate an Object Using the Tasks & Animations Panel. . . . . . . . . . . . 366

Procedure: How to Create a Hyperlink in App Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368

Procedure: How to Automatically Execute a Request When a Page is Loaded. . . . . . . . . . 368

Requests & Data Sources Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369

Procedure: How to Create an Embedded Procedure Request in App Studio. . . . . . . . . . . . 371

Specifying Browser Defaults With the Style Composer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372

Reference: Specifying Font Styles Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . . . 372

Reference: Specifying Background Properties Using the Style Composer. . . . . . . . . . . . . . 373

Reference: Specifying Text Styles Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . . . . 374

Reference: Specifying Position Mode Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . 374

Reference: Specifying Layout Styles Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . 374

Reference: Specifying Edge Styles Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . . . 375

Reference: Specifying List Styles Using the Style Composer. . . . . . . . . . . . . . . . . . . . . . . . . 375

Reference: Specifying Interface Effects Using the Style Composer. . . . . . . . . . . . . . . . . . . . 376

Reference: Specifying Border Settings Using the Style Composer. . . . . . . . . . . . . . . . . . . . . 376

Chaining in the HTML Canvas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376

Automatically Chaining Parameters From the New Parameters Dialog Box. . . . . . . . . . . . . 377

Procedure: How to Auto Chain Controls From the New Parameters Dialog Box. . . . . 377

Procedure: How to Chain Controls From the New Parameters Dialog Box. . . . . . . . . 378

14 WebFOCUS

Contents

Page 15: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Chaining Controls on the Parameters Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379

Procedure: How to Chain Controls on the Parameters Tab. . . . . . . . . . . . . . . . . . . . . . 379

Procedure: How to Remove a Link in the Chain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380

Procedure: How to Reverse the Order of Chained Controls. . . . . . . . . . . . . . . . . . . . . 380

Applying Conditions to a Chain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380

Reference: Settings Panel (Conditions). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381

Procedure: How to Create a New Condition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383

Procedure: How to Select the Action for a Condition. . . . . . . . . . . . . . . . . . . . . . . . . . . 383

Procedure: How to Select the Values Compare Operator for a Condition. . . . . . . . . . 384

Procedure: How to Apply Selected Values With a Multiselect Operator to a

Condition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384

Procedure: How to Resolve Parameters for a Condition. . . . . . . . . . . . . . . . . . . . . . . . 385

Procedure: How to Select the Compare Operator for the Parameter. . . . . . . . . . . . . . 386

Procedure: How to Enable Cache Processing for Chained Values. . . . . . . . . . . . . . . . 386

Setting the Default Link. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388

Using the Toggle Move Via Drag and Drop Shortcut Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389

Using JavaScript Code With HTML Canvas Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389

Function: IbComposer_runAnimation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390

Syntax: How to Run an Animation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390

Function: IbComposer_triggerExecution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390

Syntax: How to Execute a Specific Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391

Function: IbComposer_getMapObject. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391

Syntax: How to Return a Map Object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391

Function: IbComposer_getMarkers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392

Syntax: How to Return an Array of Markers for a Map. . . . . . . . . . . . . . . . . . . . . . . . . . 392

Function: IbComposer_populateDynamicCtrl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392

Syntax: How to Populate a Control Dynamically. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392

Function: IbComposer_getComponentById. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393

Syntax: How to Obtain a Component by Using Its ID. . . . . . . . . . . . . . . . . . . . . . . . . . . 393

Function: IbComposer_getCurrentSelection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393

Syntax: How to Get the Current Selected Value From a Control. . . . . . . . . . . . . . . . . 393

Function: IbComposer_getCurrentSelectionEx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394

Syntax: How to Get the Current Selected Value, Actual Value, or Display Value From

a Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394

Function: IbComposer_setCurrentSelection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395

WebFOCUS App Studio Reference Guide 15

Contents

Page 16: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Syntax: How to Set the Current Selected Value for a Control. . . . . . . . . . . . . . . . . . . . 395

Function: IbComposer_execute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396

Syntax: How to Execute a Report or Chart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396

Function: IbComposer_isSelected. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396

Syntax: How to Determine If a Control or Value Is Selected. . . . . . . . . . . . . . . . . . . . . 396

Function: IbComposer_showHtmlElement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Syntax: How to Show or Hide an HTML Element. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Function: IbComposer_enableHtmlElement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Syntax: How to Enable or Disable an HTML Element. . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Function: IbComposer_ResetDownChainControls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398

Syntax: How to Reset Chain Controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398

Function: IbComposer_selectTab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

Syntax: How to Select a Tab and Make It Active. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

Function: IbComposer_selectTemplateTab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

Syntax: How to Select a Template Tab and Make It Active. . . . . . . . . . . . . . . . . . . . . . 399

Function: IbComposer_getAllAmpersValues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400

Syntax: How to Get all Parameter Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400

Event: onbeforeload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

Syntax: How to Use the onbeforeload Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

Event: onafterload. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

Syntax: How to Ese the onafterload Event. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401

CSS Support Matrix for Internet Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402

CSS Class Mapping List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405

Mobile Design for HTML Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408

Procedure: How to Enable Mobile Design for Your HTML Page in the HTML/Document

Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409

Procedure: How to Enable Mobile Design for Your HTML Page Using the Properties

Panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409

6. Creating Documents in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411Launching the HTML/Document Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411

Procedure: How to Create a Document Using the HTML/Document Wizard. . . . . . . . . . . . . 412

Procedure: How to Create an Active Technologies Dashboard Using the HTML/Document

Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413

Insert Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 413

16 WebFOCUS

Contents

Page 17: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Components Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414

Controls Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415

Pages Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416

Procedure: How to Insert a Bulleted List or Numbered List Into a Text Element. . . . 418

Procedure: How to Create a Page Master. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418

Procedure: How to Save a Page Master. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419

Procedure: How to Use an Existing Page Master in Another Document. . . . . . . . . . . 419

Procedure: How to Create a Table of Contents Page. . . . . . . . . . . . . . . . . . . . . . . . . . . 419

Procedure: How to Control Which Objects Appear in the Table of Contents. . . . . . . 420

Procedure: How to Use Bookmarks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421

Procedure: How to Customize the Overflow for a Fixed Report. . . . . . . . . . . . . . . . . . 421

Procedure: How to Set the Flowing Report Property. . . . . . . . . . . . . . . . . . . . . . . . . . . . 422

Procedure: How to Set Flow Margins for the Page Layout. . . . . . . . . . . . . . . . . . . . . . . 423

Procedure: How to Add a New Overflow Page to a Page Layout. . . . . . . . . . . . . . . . . . 423

Procedure: How to Add Header and Footer Information to the Overflow Page. . . . . . 424

Procedure: How to Insert a Dashboard Bar Into the Layout. . . . . . . . . . . . . . . . . . . . . 425

Positioning Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

Positioning Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

Relationships Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427

Text Alignment Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428

Utilities Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

Chaining Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

Files Utility Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

Procedure: How to Add the Pre-Process Component to a Document. . . . . . . . . . . . . 430

Procedure: How to Add the Post-Process Component to a Document. . . . . . . . . . . . 431

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431

Thumbnails Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432

7. Creating Charts in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433Launching the Chart Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433

Procedure: How to Create a Chart Using the Chart Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . 434

Procedure: How to Create an SQL Chart From an External .sql File. . . . . . . . . . . . . . . . . . . . 435

Procedure: How to Pass SQL Commands to the RDBMS Using SQL Passthru. . . . . . . . . . 436

Procedure: How to Import SQL Commands From an Existing .sql File. . . . . . . . . . . . . . . . . . 437

WebFOCUS App Studio Reference Guide 17

Contents

Page 18: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

8. Creating Visualizations in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439Creating Visualizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

Procedure: How to Create a New Visualization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439

9. Creating and Editing Metadata in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . 441Launching the Data Source Definition Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441

Creating and Editing Synonyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442

Metadata Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444

Undo/Redo Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445

Clipboard Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445

Editing Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446

Insert Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448

Reports Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448

Viewing Data Profiling Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449

Data Profiling a Synonym or Segment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449

Procedure: How to View Data Profiling for a Synonym or Segment. . . . . 449

Tools Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450

Options Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450

Reference: Synonym Editor Options Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . 451

Reference: Synonym Editor Format Options Settings. . . . . . . . . . . . . . . . . . . . . 452

Reference: Synonym Editor Column Management Settings. . . . . . . . . . . . . . . . 452

Reference: Synonym Editor Traces Options Settings. . . . . . . . . . . . . . . . . . . . . 456

Reference: Synonym Editor Run Options Settings. . . . . . . . . . . . . . . . . . . . . . . . 456

Metadata Canvas View Tabs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

Field View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

Segment View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

List View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

Modeling View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457

Text View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458

Access File Text View Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458

Enhancing Synonyms Using the Modeling View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458

Procedure: How to Enhance Synonyms Using the Modeling View. . . . . . . . . . . . . . . . 458

Procedure: How to Edit Synonyms Using the Modeling View. . . . . . . . . . . . . . . . . . . . 458

Modeling View Shortcut Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459

18 WebFOCUS

Contents

Page 19: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Join Editor Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461

Business View Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461

Procedure: How to Create a Business View Using the Metadata Canvas. . . . . . . . . . . . . . . 461

Reference: Usage Notes for Business Views. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462

Reference: Using a Business View Master File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463

Dimension Builder Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464

Procedure: How to Add a Parent/Child Hierarchy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464

Procedure: How to Delete a Dimension. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464

Procedure: How to Add Levels to the Hierarchy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464

Reference: Dimension Builder Panel Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465

Using the Metadata Shortcut Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465

10. Using the Text Editor Tab in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . 469Text Editor Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

Find Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470

Reference: Find Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

Reference: Find Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

Bookmarks Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

Case/Comment Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473

Options Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474

View Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475

11. Creating Procedures in WebFOCUS App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477Procedure View Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

Procedure View Toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

Procedure View Tree. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

Components of a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

Report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479

Define. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

Define Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

Chart. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

Set. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

Join. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480

Use. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

Allocation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

HTMLForm. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481

WebFOCUS App Studio Reference Guide 19

Contents

Page 20: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Olap Dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482

Match. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482

Dialogue Manager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483

How to Create Procedures and Procedure Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483

Procedure: How to Create a New Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483

Procedure: How to Create a Report as a Component of a Procedure. . . . . . . . . . . . . 484

Procedure: How to Define a Virtual Field. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 484

Procedure: How to Create a User Defined Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . 485

Procedure: How to Create a Defined Function Library. . . . . . . . . . . . . . . . . . . . . . . . . . 487

Procedure: How to Create a Chart as a Component of a Procedure. . . . . . . . . . . . . . 488

Procedure: How to Set Parameters for a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . 488

Procedure: How to Join Data Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489

Procedure: How to Identify a Data Source With the Use Feature. . . . . . . . . . . . . . . . . 490

Procedure: How to Define a Logical Name With the Allocation Wizard. . . . . . . . . . . . 491

Procedure: How to Create an OLAP Hierarchy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494

Procedure: How to Merge Data Sources Using the Match Wizard. . . . . . . . . . . . . . . . 494

Reference: Using -HTMLFORM Syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496

Joins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496

What Is a Join?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497

Types of Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497

Dynamic Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497

Conditional Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497

Single Instance and Multiple Instance Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498

Reference: Descriptions of Single Instance and Multiple Instance Joins. . . . . 498

Joins Based on Virtual Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498

Left Outer Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499

Host Records With No Matching Cross-Referenced Records. . . . . . . . . . . . . . . . . . . . 499

Join Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499

Windows Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500

Join Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501

Creating a Join. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502

Procedure: How to Join Data Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502

Define-Based Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503

Procedure: How to Use a Virtual Field as the Join Field. . . . . . . . . . . . . . 503

Creating Multi-Field Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504

20 WebFOCUS

Contents

Page 21: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating a Concatenated Join. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505

Using Conditional Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505

Procedure: How to Create Conditional Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

Customizing a Join. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506

Procedure: How to Remove a File From the Join. . . . . . . . . . . . . . . . . . . . . . . . . 506

Procedure: How to Delete a Join. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

Procedure: How to Specify Join Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

Procedure: How to Create Additional Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507

Procedure: How to Make a Join a Single Instance. . . . . . . . . . . . . . . . . . . . . . . . 507

Changing the Join Name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508

Procedure: How to Change or Remove the Default Join Name. . . . . . . . 508

Procedure: How to Display Current Join Structures. . . . . . . . . . . . . . . . . . 508

Reference: Join Define in File Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508

Adding a Tag Name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509

Procedure: How to Add a Tag Name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509

Working With Joins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509

Reference: Join Clear Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509

Reference: Join Properties Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510

Using Dialogue Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

Reference: Overview of Dialogue Manager Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

Dialogue Manager Variables Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514

Dialogue Manager Processing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514

Creating a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515

Reference: Rules for Creating Procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516

Including Comments in a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516

Syntax: How to Add a Comment in a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . 516

Sending a Message to the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517

Syntax: How to Send a Message to the User. . . . . . . . . . . . . . . . . . . . . . . . . . . . 517

Controlling User Access to Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518

Syntax: How to Set a Password in a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . 519

Navigating a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519

Branching Unconditionally. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519

Syntax: How to Branch Unconditionally. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520

Branching Conditionally. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520

Syntax: How to Branch Conditionally. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521

WebFOCUS App Studio Reference Guide 21

Contents

Page 22: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Looping in a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522

Syntax: How to Specify a Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523

Incorporating Another Procedure With -INCLUDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526

Syntax: How to Incorporate a File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526

Nesting Procedures With -INCLUDE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

Calling Another Procedure With EXEC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529

Syntax: How to Call a Procedure With the EXEC Command. . . . . . . . . . . . . . . . 529

Using Variables in a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530

Reference: Naming Conventions for Local and Global Variables. . . . . . . . . . . . . . . . . 530

Syntax: How to Specify a Variable Name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531

Local Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531

Global Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532

System Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533

Reference: Summary of System Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533

Statistical Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

Reference: Summary of Statistical Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

Special Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542

Reference: Summary of Special Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542

Querying the Values of Variables and Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

Syntax: How to Display the Value of a Variable. . . . . . . . . . . . . . . . . . . . . . . . . . 543

Syntax: How to Store Parameter Value Settings. . . . . . . . . . . . . . . . . . . . . . . . . 544

Supplying and Verifying Values for Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544

Reference: Rules for Supplying Variable Values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545

Supplying a Default Variable Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547

Syntax: How to Supply a Default Value. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547

Supplying Variable Values in an Expression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548

Syntax: How to Assign a Value in an Expression. . . . . . . . . . . . . . . . . . . . . . . . . 549

Reference: Usage Notes for IN FILE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549

Syntax: How to Specify Precision for Dialogue Manager Calculations. . . . . . . 550

Reading Variable Values From and Writing Variable Values to an External File. . . . . 552

Syntax: How to Retrieve a Variable Value From an External File. . . . . . . . . . . . 553

Syntax: How to Write a Variable Value to an External File. . . . . . . . . . . . . . . . . 554

Syntax: How to Read Master File Fields Into Dialogue Manager Variables. . . 555

Reference: Usage Notes for -READFILE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555

Syntax: How to Close an External File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556

22 WebFOCUS

Contents

Page 23: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Supplying Variable Values on the Command Line. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557

Syntax: How to Supply a Variable Value on the Command Line. . . . . . . . . . . . 557

Reference: Rules for Using Named and Positional Variables With EXEC. . . . . 558

Verifying User-Supplied Values Against a Set of Format Specifications. . . . . . . . . . . 560

Reference: Format Specifications for Variables. . . . . . . . . . . . . . . . . . . . . . . . . . 560

Manipulating and Testing Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560

Testing Variables for Length, Type, and Existence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561

Syntax: How to Screen a Variable Value for Length and TYPE. . . . . . . . . . . . . . 561

Syntax: How to Test for the Presence of a Variable Value. . . . . . . . . . . . . . . . . 563

Replacing a Variable Immediately. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564

Syntax: How to Replace a Variable Immediately. . . . . . . . . . . . . . . . . . . . . . . . . 564

Concatenating Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566

Syntax: How to Concatenate Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566

Creating an Indexed Variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566

Syntax: How to Create an Indexed Variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566

Creating a Standard Quote-Delimited String. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

Syntax: How to Create a Standard Quote-Delimited Character String. . . . . . . . 568

Reference: Usage Notes for Quote-Delimited Character Strings. . . . . . . . . . . . 569

Performing a Calculation on a Variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

Syntax: How to Perform a Calculation on a Variable. . . . . . . . . . . . . . . . . . . . . . 570

Extracting Characters From a Variable Value With the EDIT Function. . . . . . . . . . . . . 570

Removing Trailing Blanks From Variables With the TRUNCATE Function. . . . . . . . . . 570

Syntax: How to Remove Trailing Blanks From Variables. . . . . . . . . . . . . . . . . . . 570

Calling a Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572

Syntax: How to Set a Variable Value Based on the Result From a Function. . 572

Using Variables to Alter Commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573

Using Numeric Amper Variables in Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573

Determining Amper Variable Data Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573

Manipulating Amper Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574

Using an Amper Variable in an Expression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575

Using Amper Variables as Subroutine Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . 576

Using a Numeric Amper Variable as a Numeric Subroutine Parameter. . . . . . 576

Using a Numeric Amper Variable as an Alphanumeric Subroutine

Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577

Debugging a Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577

WebFOCUS App Studio Reference Guide 23

Contents

Page 24: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Syntax: How to Display Command Lines as They Execute. . . . . . . . . . . . . . . . . . . . . . 578

Syntax: How to Establish a Default Value for the &ECHO Variable. . . . . . . . . . . . . . . 579

Reference: Usage Notes for SET DEFECHO = NONE. . . . . . . . . . . . . . . . . . . . . . . . . . . 579

Syntax: How to Test Dialogue Manager Command Logic. . . . . . . . . . . . . . . . . . . . . . . 582

Reference: Testing the Status of a Query. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583

Issuing an Operating System Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584

Syntax: How to Execute an Operating System Command. . . . . . . . . . . . . . . . . . . . . . . 584

Dialogue Manager Quick Reference. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584

-* Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585

? Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585

-CLOSE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585

-DEFAULT[S|H] Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586

-EXIT Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586

-GOTO Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587

-IF Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587

-INCLUDE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588

-label Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589

-PASS Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589

-READ Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590

-READFILE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591

-REMOTE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591

-REPEAT Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591

-RUN Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592

-SET Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593

-TYPE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593

-WRITE Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594

Dialogue Manager Defaults and Limits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595

Use Qualified Path Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596

A. Troubleshooting App Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599Troubleshooting Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599

Tomcat Configuration Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599

Java Memory Issues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 599

Starting App Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601

Troubleshooting Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601

24 WebFOCUS

Contents

Page 25: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Accessing the Verification Tools in the WebFOCUS Administration Console. . . . . . . . . . . . 601

Procedure: How to Access the WebFOCUS Administration Console. . . . . . . . . . . . . . 601

Procedure: How to Test the WebFOCUS Client. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604

Procedure: How to Test the WebFOCUS Reporting Server. . . . . . . . . . . . . . . . . . . . . . 604

WebFOCUS Client Traces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606

Procedure: How to View WebFOCUS Client Traces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606

App Studio Trace Utility. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607

Procedure: How to Use the Communication Layer Trace. . . . . . . . . . . . . . . . . . . . . . . 607

WebFOCUS Reporting Server Traces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

Procedure: How to View a Trace File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

B. Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611

Customer Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637

WebFOCUS App Studio Reference Guide 25

Contents

Page 26: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

26 WebFOCUS

Contents

Page 27: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Preface

This documentation introduces and describes WebFOCUS App Studio, a Windows-based GUIdevelopment environment for creating WebFOCUS applications. App Studio provides innovativefeatures and functions that simplify development, thereby allowing you to concentrate on interfacedesign, business logic, and data manipulation. Features include data visualization, color exceptionreporting, intelligent drilldowns, and the ability to generate HTML pages without writing code.

Note: The WebFOCUS toolset generates the rich FOCUS fourth generation language. Whilethis language is very extensive, the WebFOCUS toolset only supports a subset of the languageand only specific syntax constructs. While the user can manually modify the content of theseWebFOCUS procedures/files, there is no guarantee that the user will be able to open themodified procedure in the tool.

How This Manual Is Organized

This manual includes the following chapters:

ContentsChapter/Appendix

Introduces WebFOCUS App Studio.Introducing WebFOCUS AppStudio

1

Describes the App Studio interface components.Using the WebFOCUS AppStudio Interface Components

2

Describes how to customizing App Studio panels.Customizing WebFOCUS AppStudio Panels

3

Describes how to launch the Report Wizard, and how tocreate and edit reports

Creating Reports inWebFOCUS App Studio

4

Describes how to launch the HTML/Document wizard,and how to create and edit HTML pages.

Creating HTML Pages inWebFOCUS App Studio

5

Describes how to launch the HTML/Document wizard,and how to create and edit documents.

Creating Documents inWebFOCUS App Studio

6

Describes how to launch the Chart Wizard and createcharts.

Creating Charts in WebFOCUSApp Studio

7

WebFOCUS App Studio Reference Guide 27

Page 28: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ContentsChapter/Appendix

Describes how to create visualizations in WebFOCUSApp Studio.

Creating Visualizations inWebFOCUS App Studio

8

Describes how to create and edit synonyms in AppStudio.

Creating and Editing Metadatain WebFOCUS App Studio

9

Describes the Text Editor tab.Using the Text Editor Tab inWebFOCUS App Studio

10

Describes the Join tab, creating and working with joins,creating procedures, and the Procedure View panel.

Creating Procedures inWebFOCUS App Studio

11

Provides troubleshooting tips and information on usingverification and tracing tools.

Troubleshooting App StudioA

Describes key terms found in this manual.GlossaryB

Documentation Conventions

The following table describes the documentation conventions that are used in this manual.

DescriptionConvention

Denotes syntax that you must enter exactly as shown.THIS TYPEFACE

or

this typeface

Represents a placeholder (or variable) in syntax for a valuethat you or the system must supply.

this typeface

Indicates a default setting.underscore

Represents a placeholder (or variable), a cross-reference,or an important term. It may also indicate a button, menuitem, or dialog box option that you can click or select.

this typeface

Indicates keys that you must press simultaneously.Key + Key

Indicates two or three choices. Type one of them, not thebraces.

{ }

28 WebFOCUS

Documentation Conventions

Page 29: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionConvention

Indicates a group of optional parameters. None arerequired, but you may select one of them. Type only theparameter in the brackets, not the brackets.

[ ]

Separates mutually exclusive choices in syntax. Type oneof them, not the symbol.

|

Indicates that you can enter a parameter multiple times.Type only the parameter, not the ellipsis (...).

...

Indicates that there are (or could be) intervening oradditional commands.

.

.

.

Related Publications

Visit our Technical Content Library at documentation.informationbuilders.com. You can also contactthe Publications Order Department at (800) 969-4636.

Customer Support

Do you have questions about this product?

Join the Focal Point community. Focal Point is our online developer center and more than amessage board. It is an interactive network of more than 3,000 developers from almost everyprofession and industry, collaborating on solutions and sharing tips and techniques. Access FocalPoint at forums.informationbuilders.com/eve/forums.

You can also access support services electronically, 24 hours a day, with InfoResponse Online.InfoResponse Online is accessible through our website, www.informationbuilders.com. It connectsyou to the tracking system and known-problem database at the Information Builders supportcenter. Registered users can open, update, and view the status of cases in the tracking systemand read descriptions of reported software issues. New users can register immediately for thisservice. The technical support section of www.informationbuilders.com also provides usagetechniques, diagnostic tips, and answers to frequently asked questions.

WebFOCUS App Studio Reference Guide 29

Preface

Page 30: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Call Information Builders Customer Support Services (CSS) at (800) 736-6130 or (212) 736-6130. Customer Support Consultants are available Monday through Friday between 8:00 a.m.and 8:00 p.m. EST to address all your questions. Information Builders consultants can also giveyou general guidance regarding product capabilities. Please be ready to provide your six-digit sitecode number (xxxx.xx) when you call.

To learn about the full range of available support services, ask your Information Buildersrepresentative about InfoResponse Online, or call (800) 969-INFO.

Information You Should Have

To help our consultants answer your questions effectively, be prepared to provide the followinginformation when you call:

Your six-digit site code (xxxx.xx).

Your WebFOCUS configuration:

The front-end software you are using, including vendor and release.

The communications protocol (for example, TCP/IP or HLLAPI), including vendor and release.

The software release.

Your server version and release. You can find this information using the Version option inthe Web Console.

The stored procedure (preferably with line numbers) or SQL statements being used in serveraccess.

The Master File and Access File.

The exact nature of the problem:

Are the results or the format incorrect? Are the text or calculations missing or misplaced?

Provide the error message and return code, if applicable.

Is this related to any other problem?

Has the procedure or query ever worked in its present form? Has it been changed recently?How often does the problem occur?

What release of the operating system are you using? Has it, your security system,communications protocol, or front-end software changed?

Is this problem reproducible? If so, how?

30 WebFOCUS

Information You Should Have

Page 31: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Have you tried to reproduce your problem in the simplest form possible? For example, if youare having problems joining two data sources, have you tried executing a query containingjust the code to access the data source?

Do you have a trace file?

How is the problem affecting your business? Is it halting development or production? Do youjust have questions about functionality or documentation?

User Feedback

In an effort to produce effective documentation, the Technical Content Management staff welcomesyour opinions regarding this document. You can contact us through our websitedocumentation.informationbuilders.com/connections.asp.

Thank you, in advance, for your comments.

Information Builders Consulting and Training

Interested in training? Information Builders Education Department offers a wide variety of trainingcourses for this and other Information Builders products.

For information on course descriptions, locations, and dates, or to register for classes, visit ourwebsite (education.informationbuilders.com) or call (800) 969-INFO to speak to an EducationRepresentative.

WebFOCUS App Studio Reference Guide 31

Preface

Page 32: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

32 WebFOCUS

Information Builders Consulting and Training

Page 33: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Introducing WebFOCUS App Studio1Chapter

WebFOCUS is a complete web-ready data access and reporting system that connects usersto data. It accesses and processes information located in any format, on any platform, andpresents that information to end users through a web browser.

App Studio is the new Windows-based development environment that enables you to buildWebFOCUS applications in a single, multi-operational interface. App Studio can be configuredas a stand-alone entity, or to operate against a full WebFOCUS environment.

This topic introduces WebFOCUS App Studio, provides information about the WebFOCUSand App Studio products, and describes how they work together to process requests.

In this chapter:

What Is WebFOCUS App Studio?

Launching App Studio

WebFOCUS App Studio Documentation Overview

What Is WebFOCUS App Studio?

WebFOCUS App Studio is the new Windows-based graphical user interface (GUI) developmentenvironment for creating advanced WebFOCUS applications. App Studio utilizes the MicrosoftWindows® ribbon framework to deliver an interactive user interface (UI) from which you can buildmultiple business intelligence applications in the same workspace.

In App Studio, you can do the following:

Access data and descriptions. Using the Metadata canvas, you can create new synonyms,and view or modify existing synonyms, in a graphical user interface. Synonyms enable you toaccess and interpret data sources for use in reporting applications.

Create reporting applications. Build reporting procedures in the Report Canvas, Chart Canvas,HTML Canvas, or Document Canvas.

Reports. Display your data in a tabular format. You can create stand-alone reportingprocedures, or add the report to a document or an HTML page.

WebFOCUS App Studio Reference Guide 33

Page 34: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Charts. Communicate your data in a more illustrative format. You can translate complex datainto an easy-to-read and understandable visual format. This often provides a new perspectiveto the information that users view. You can create stand-alone charting procedures or addthe chart to a document or an HTML page.

HTML pages. Build webpages for users to launch, view, and analyze data. You can addmultiple reports and charting procedures to an HTML page, in addition to the controls thatenable you to manipulate the data. You can also apply styling through the use of CascadingStyle Sheets, JavaScript files, and jQuery animations.

Documents. Combine multiple report and charting procedures in a single output that you canorganize and format. You can also add pre-process and post-process codes to customize howyour document is executed.

Visualizations. Create charts, maps, and grids to visually represent your data. You can addmultiple visuals to the canvas to create a complete visualization, and you can update, change,or revise the visualization at any time to account for shifts in data needs.

Alerts. Create event-driven procedures that apply test conditions and then trigger customizedreports if the test conditions are true. You can schedule an Alert using ReportCaster DistributionMethods.

Reporting Objects. Transform complex views of data into simple objects that are labeledwith common business terminology for users to understand and use as templates to createtheir own reports.

Customize reporting applications. In addition to customizing your reporting applications byapplying styling and color, you can add the following components to a procedure.

Virtual fields (DEFINE or COMPUTE statements). Create temporary fields that are treatedas real fields stored in the data source.

Define functions. Create user functions that you can use in components of a procedure.You can retrieve your stored functions from the Functions Arguments dialog box.

Joins. Define relationships between two or more data sources so a report can use the datafrom all sources at once. You can also merge data sources by creating logical expressionson the Match canvas.

OLAP hierarchies. Create temporary OLAP hierarchies and dimensions for a procedure.

Manage your environment. You can apply the following functions to your reporting applicationsto change the behavior of your environment.

34 WebFOCUS

What Is WebFOCUS App Studio?

Page 35: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Set. Control the way that reports and charts appear on the screen or printer, the content ofreports and charts, data retrieval characteristics that affect performance, and system responsesto user requests. The Set component also helps you to set up your metadata and manipulateinformation, such as dates. Use the Set component to override default settings for yourprocedure.

Allocation. Assign logical names and storage locations to the files that you create and usein WebFOCUS.

Use. Identify a FOCUS data source to use in your procedure.

WebFOCUS Architecture

This topic briefly explains the main WebFOCUS components and implementations. For a completedescription of WebFOCUS, see the WebFOCUS documentation.

WebFOCUS and Your Network

WebFOCUS integrates into your existing network by connecting your web server to your data. Endusers access WebFOCUS applications through a web browser, so they need only the followingelements:

Web browser. To access WebFOCUS applications, users need a browser and a TCP/IPconnection to a web server.

Web server. Web servers handle requests by returning files to a browser or by executingprocesses that provide additional functionality. You can provide WebFOCUS functionality byconnecting to the web server using Java servlet calls.

Data. WebFOCUS can access data from almost anywhere. Once you have configured dataaccess and described that data, you can report on it.

WebFOCUS Components

There are two main WebFOCUS components.

WebFOCUS Client. The WebFOCUS Client resides on the web server and connects WebFOCUSto the web through Java servlets. When a user makes a request from App Studio or a browser,the WebFOCUS Client receives and processes the request by passing it to the ReportingServer.

Note: When you perform a full App Studio installation for stand-alone development, youdo not have to install the WebFOCUS Client separately because it is packaged with AppStudio.

WebFOCUS App Studio Reference Guide 35

1. Introducing WebFOCUS App Studio

Page 36: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A stand-alone development environment is typically one in which all software components(the web server, WebFOCUS Client, and Reporting Server) are installed on the same localmachine. This configuration gives you access to all your application files and data from asingle machine. You do not need a physical network connection to access any other machinein order to accomplish your development tasks.

WebFOCUS Reporting Server. The Reporting Server resides on machines that can accessyour data. The Reporting Server provides data access, number crunching, and report generationfunctionality.

WebFOCUS Configuration

WebFOCUS employs a distributed architecture, so the WebFOCUS Client, Reporting Server, andyour data can be located on any platform, anywhere in your network.

You can easily connect an Apache™ web server running on UNIX to SQL Server data on Windows,or DB2 data on z/OS. Any number of WebFOCUS Reporting Servers can be connected to theWebFOCUS Client. WebFOCUS can report on all of them.

Configuring a distributed architecture requires the following:

The WebFOCUS Client must reside on a machine with a web server.

An instance of the Reporting Server must be installed on machines with your data, or machinesthat have access to your data.

App Studio Architecture

This topic briefly explains the main App Studio components and implementations.

WebFOCUS App Studio includes the following components:

App Studio Graphical User Interface (GUI). Graphical development and code generationfeatures for application development.

WebFOCUS Reporting Server. A basic Reporting Server for local processing, stand-alonedevelopment, access to data, report generation, chart generation, and running requests.

WebFOCUS Client. A scaled-down WebFOCUS Client with available functionality that is basedon the App Studio edition you license.

36 WebFOCUS

What Is WebFOCUS App Studio?

Page 37: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Derby database. An embedded database that stores user accounts and policies requiredfor the connection of App Studio to its local WebFOCUS Client. Derby is only installed in AppStudio editions that are licensed for local/stand-alone development. It is used forauthentication, and comes with preloaded user IDs that possess developer and administrationpermissions.

Note: If you install App Studio on the same machine as WebFOCUS 8, you can configureApp Studio to utilize the WebFOCUS 8 Derby database.

Derby DatabaseReference:

The Derby database installed with your edition of App Studio comes preloaded with IDs thatpossess developer and administration permissions. These IDs enable application developmentin specific development areas of a WebFOCUS environment, and the permissions to change userpasswords.

The following table lists the preloaded IDs available in App Studio.

FunctionPasswordID

Provides all the required privileges to develop using astand-alone version of App Studio.

When you connect to a WebFOCUS environment usingthe ID wfdesktop, with no password, you can developapplications in the Local Projects area, Data Serversarea, and Web Applications area.

This ID does not allow development in the Repositoryarea.

leave blankwfdesktop

Provides access to the WebFOCUS AdministrationConsole and Security Center.

When you connect to a WebFOCUS environment usingthe admin ID and password, you can developapplications in all areas.

adminadmin

WebFOCUS App Studio Reference Guide 37

1. Introducing WebFOCUS App Studio

Page 38: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Change User Passwords Through the Security CenterProcedure:

Using the preloaded administrator IDs installed in the Derby database, you can access theadministrative privileges that let you change user passwords through the Security Center.

To change user passwords through the Security Center, follow these steps:

1. Open the WebFOCUS Sign In page through one of the following options:

From the Start menu, select All Programs. Open the Information Builders folder, andexpand the WebFOCUS App Studio folder. Expand the WebFOCUS App Studio Utilitiesfolder, and click WebFOCUS Administration Console.

Open the following page in a web browser:

http://localhost:8080/ibi_apps

Note: To use this option, you need to use the default Tomcat application server withport 8080, and a default alias of ibi_apps.

The WebFOCUS Sign In page opens, as shown in the following image.

2. Type the User Name admin with the Password admin.

3. Click Sign In.

38 WebFOCUS

What Is WebFOCUS App Studio?

Page 39: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS Welcome page opens.

4. At the top of the Welcome page, click Administration, and then click Security Center.

The Security Center dialog box opens, as shown in the following image.

5. As the administrator, you can change the password of any user. On the Users & Groups tab,under Users, right-click a user, and click Set Password.

The Set Password - User dialog box opens, as shown in the following image.

6. Type a new password, confirm the password, and click OK.

WebFOCUS App Studio Reference Guide 39

1. Introducing WebFOCUS App Studio

Page 40: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The new password is effective immediately.

For more information on setting user credentials, see the WebFOCUS Security and Administrationmanual.

App Studio Directory StructureReference:

This topic references the App Studio directory structure created underdrive:\optional_drive_folder\ibi.

\apps

Contains directories and data. By default, this is the Application Root directory (APPROOTdirectory) in which WebFOCUS searches for application files. Sample files are provided in the\ibinccen and \ibisamp directories.

The Application Root directory is created during the installation of App Studio and theWebFOCUS Reporting Server.

It is defined by the APPROOT variable in the server configuration file, edaserve.cfg, and theIBI_Approot_Directory variable that is defined during the WebFOCUS installation. Thesevariables point to the Application Root directory for applications that reside on the web serverwhere WebFOCUS is installed.

For Project-based development, the Application Root directories must point to the samelocation.

\AppStudio80

Contains the graphical front-end components for creating App Studio content.

\AppStudio80\srv80\home

Contains the local Reporting Server files.

\AppStudio80\derby

Contains the Derby database files.

40 WebFOCUS

What Is WebFOCUS App Studio?

Page 41: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS and App Studio Processing

The following figure illustrates how WebFOCUS and App Studio process requests. Each step isexplained below the figure.

1. A user makes a request and passes parameters by calling a WebFOCUS Servlet through linksand forms on a webpage, or through App Studio.

2. The request and parameters come to the WebFOCUS Client on the web or application server,which processes the parameters and creates a request for the Reporting Server.

3. The Reporting Server receives the request, processes it, and accesses any necessary data.

4. Data is retrieved from data sources to process the request.

5. The Reporting Server processes the user request using the retrieved data.

6. The response is returned to the WebFOCUS Client on the web or application server.

7. The response is returned to the user.

App Studio processes requests the same way that WebFOCUS does:

To access WebFOCUS or a remote Reporting Server, App Studio calls a servlet on a remoteweb or application server.

To process requests using the local WebFOCUS Client and Reporting Server installed withApp Studio, App Studio calls the local Reporting Server through a local web or applicationserver using a servlet. Therefore, to run reports locally, your machine requires a web server.

App Studio Development Modes

App Studio allows local (stand-alone) development and development against a remote environment.From the Environments Tree panel, you can develop projects locally on your machine, or againsta remote WebFOCUS environment.

In App Studio, you build applications consisting of different kinds of files. You can create theproject as a stand-alone application in a development environment or as a web-based self-serviceapplication.

With a full App Studio installation, you can do the following:

WebFOCUS App Studio Reference Guide 41

1. Introducing WebFOCUS App Studio

Page 42: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Locally develop self-service applications from the Local Projects area.

Stand-alone Project-based development requires installation of a Reporting Server on thesame machine as App Studio. A WebFOCUS Client is also required for Project-baseddevelopment. The files that you create for a local project reside in a subdirectory underAPPROOT as described earlier. In Project-based development, the Application Root directories(APPROOT directories) must point to the same directory.

Connect to one or more remote servers and modify existing self-service applications on thoseservers. For example, you can add a reporting procedure to an existing application.

Configure access to one or more WebFOCUS environments so you can manage resources onthe WebFOCUS Client and Reporting Server, and in the Repository (if Managed Reporting isinstalled). For example, you can create and edit procedures, metadata, HTML files, and more.

Note: If you do not have a Reporting Server and WebFOCUS Client on your developmentmachine (for example, the Managed Reporting Application edition of App Studio), yourenvironment allows the last two capabilities.

Project-Based Development

App Studio supports two configurations for Project-based development:

In the first configuration, App Studio, Reporting Server, and WebFOCUS Client are installedon the same machine (a full installation). This WebFOCUS environment is referred to aslocalhost, which describes your local machine.

Note: When configuring a WebFOCUS environment, provide a full domain for the host name,including top-level domain name, second-level domain, and subdomains as specified byyour organization (for example, hostname.companyname.com). This format is recommendedto ensure that requests are properly resolved and redirected. In this environment, theproject files that you create reside in a subdirectory under the Application Root directory(APPROOT directory).

See the WebFOCUS App Studio Installation and Configuration manual for information aboutother required components that you must install, such as Java SDK and a servlet engine. Allrequired components are packaged with App Studio.

A full App Studio installation also allows Project-based development against a remoteWebFOCUS environment. In this case, App Studio does not utilize the local Reporting Serveror its local WebFOCUS Client. It utilizes these components from the remote WebFOCUSenvironment.

42 WebFOCUS

What Is WebFOCUS App Studio?

Page 43: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In the second configuration, you can use a remote WebFOCUS installation for Project-baseddevelopment. App Studio is installed on a local machine (a thin installation), and theWebFOCUS components (which includes a Reporting Server and WebFOCUS Client that resideson the web server) are installed on remote machines.

Use of a remote environment for Project-based development requires the following:

The Reporting Server must be at a supported release level.

The Reporting Server must be installed on a supported Windows or UNIX platform.

The Reporting Server and the WebFOCUS Client must be properly configured and the APPROOTvariable must point to the same physical location.

You must have read/write permission to the Reporting Server and the WebFOCUS Client.

Summary of Steps for Project-Based DevelopmentReference:

To create a new project, follow these steps:

1. Install App Studio. Use the installation program to install App Studio (this includes a ReportingServer for stand-alone development) on your Windows machine.

2. Configure the web server. For local/stand-alone development, configure aliases and servletfunctionality on the local web server.

3. Configure communications and data access. Set up remote access to Reporting Servers,and create or copy data source descriptions. You must also set up data adapters to accessother data sources, such as relational databases.

4. Create a project in the Local Projects node of the desired environment. Before youbegin Project-based development, you must create a project directory to store the associatedfiles. You create this directory using the Project Wizard.

Use the Project Wizard to name the project, designate a directory for it, and optionally, addother directory paths from which the project can retrieve information or paths to otherresources.

Sample projects are provided for editions that allow local/stand-alone development. Whenworking against a remote WebFOCUS environment you do not see any sample projects bydefault.

5. Create, develop, and test the project components. Open the project, create its components(procedures, data source synonyms, HTML files, and related files), and develop and test themon the Reporting Server and web server.

For more information about installing App Studio, configuring the web server, and configuringcommunications and data access, see the WebFOCUS App Studio Installation and Configurationmanual.

WebFOCUS App Studio Reference Guide 43

1. Introducing WebFOCUS App Studio

Page 44: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Remote Development

App Studio provides the following scenarios for remote development:

Use the Data Servers area to develop applications directly on the Reporting Server and editresources in place against remote environments.

Use the Repository area to access the Managed Reporting repository. From here, you candevelop and manage Managed Reporting applications against a configured WebFOCUSenvironment.

Use the Web Applications area to manage resources on the web tier, and edit the resourcesin place against remote environments. HTML pages, Cascading Style Sheets (CSS), and otherweb components can be stored in the Web Applications node. You can view and modify fileswith an editor.

Summary of Steps for Remote DevelopmentReference:

To create a new application on a server platform:

1. Install App Studio. Use the installation program to install App Studio on your Windowsmachine.

2. Add a WebFOCUS environment. Add an environment from the WebFOCUS EnvironmentProperties dialog box.

3. Create an application folder on the server. Create the application folder in the DataServers area, or develop directly against the Repository.

4. Create, develop, and test the application components. Open the application, create itscomponents (procedures, data source synonyms, HTML files, and related files), and developand test them on the Reporting Server and WebFOCUS Client.

Launching App Studio

Once you have installed App Studio, you can launch the product and begin developing applications.

44 WebFOCUS

Launching App Studio

Page 45: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can launch App Studio in one of the following ways:

Launch App Studio and the App Studio Reporting Server at the same time. From theStart menu, expand the Information Builders program group, expand the WebFOCUS AppStudio folder, and then click WebFOCUS App Studio. Both App Studio and the App StudioReporting Server start at the same time.

When App Studio starts, the Reporting Server installed with App Studio is started with SecurityOFF.

Start your Reporting Server and then launch App Studio. If you have installed a stand-alone version of App Studio, or a stand-alone Reporting Server for use with WebFOCUS, youcan start your Reporting Server before launching App Studio.

Stand-alone App Studio. From the Start menu, expand the Information Builders programgroup, and expand the WebFOCUS 80 Server for App Studio folder. Select Start SecurityOFF to start the Reporting Server without security, or Start Security ON to start the ReportingServer securely. The Reporting Server opens a command window. Once the process iscomplete, launch App Studio.

Stand-alone Reporting Server. From the Start menu, expand the Information Buildersprogram group, and expand the WebFOCUS 80 Server folder. Select Start Security OFF tostart the Reporting Server without security, or Start Security ON to start the ReportingServer securely. The Reporting Server opens a command window. Once the process iscomplete, launch App Studio.

Note: Additional configuration steps are required if you choose to start the Reporting Serverwith Security ON. For more information, see the WebFOCUS App Studio Installation andConfiguration Guide.

When App Studio first opens, you might be prompted to log on to your localhost environment.You can enter the ID, wfdesktop, with no password, so you can follow the Navigating the AppStudio Interface chapter of this manual.

Note: If you have previously configured WebFOCUS environments on your machine, thoseenvironments appear when you launch App Studio.

WebFOCUS App Studio Documentation Overview

The following documentation components are available for App Studio users:

WebFOCUS App Studio Installation and Configuration manual

WebFOCUS App Studio Reference Guide 45

1. Introducing WebFOCUS App Studio

Page 46: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Getting Started With WebFOCUS App Studio manual

Context-sensitive online Help system

WebFOCUS App Studio Reference Guide

You can access the online Help system through the product. Press F1 on your keyboard, or clickHelp throughout the interface, to open the Help window. The online Help system is designed toprovide you all of the information that you need to develop content in App Studio.

46 WebFOCUS

WebFOCUS App Studio Documentation Overview

Page 47: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using the WebFOCUS App Studio InterfaceComponents

2Chapter

The first time that you launch App Studio, a default interface opens. You can modify thedefault interface by customizing the appearance of the application window and rearrangingthe placement of the main interface components.

In this chapter:

Application Button

Quick Access Toolbar

Canvas

Ribbon

Environments Tree Panel

Environments Detail Panel

File/Folder Properties Panel

View Tabs

Application Button

The Application button, represented by the App Studio icon , opens the Application menuof file-related commands. You can create a new document, open an existing document, save anactive document, and print an active document. The Options button opens the App Studio Optionsdialog box, where you can set user preferences. The Application menu also lists recently openeddocuments. The Application button is always available. It is located in the upper-left corner ofthe App Studio interface.

Tip: Double-click the Application button to exit App Studio. If you exit App Studio in this way,active (open) applications will not be saved.

WebFOCUS App Studio Reference Guide 47

Page 48: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Application Menu

The Application button, which is represented by the App Studio icon, opens the Application menu,as shown in the following image.

From this menu, you can perform the following actions:

New. Create a new procedure, HTML page, document, Cascading Style Sheet, JavaScript file,Maintain file, WebFOCUS style sheet, or Text Document. When you click New, the New dialogbox opens, prompting you to select the type of file you want to create. This option is onlyavailable when you select an application folder in the Configured Environments tree.

Open. Open an existing document. You can open a file from the list of configured WebFOCUSenvironments.

Save. Save the active document.

Save As. Save the active document with a new name.

48 WebFOCUS

Application Button

Page 49: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Run. Run the report, chart, HTML page, or document. When you click the Run menu, theMessage Viewer Options submenu opens, as shown in the following image.

From this submenu, you can select from among four Message Viewer Options that affect theApp Studio Viewer display when a report, chart, HTML page, or document is run. The optionsare:

When you select Message Viewer OFF and run a report, the App Studio Viewer windowdisplays the report without any messages.

When you select Message Viewer ON and run a report, the App Studio Viewer windowdisplays the report and a message.

When you select Display command lines, the App Studio Viewer window displays the reportand the command lines.

When you select Display Dialogue Manager commands, the App Studio Viewer windowdisplays the report and the Dialogue Manager commands, and the result of their evaluation.

WebFOCUS App Studio Reference Guide 49

2. Using the WebFOCUS App Studio Interface Components

Page 50: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Print. Print the active document. When you click the Print menu, the Preview and print thedocument submenu opens, as shown in the following image.

From this submenu, you can print the active document using the current print options, previewthe active document before printing, and configure your print options.

Note: The Print and Quick Print options are only available when you edit content in theText Editor, or when the Source view tab, in the Report canvas, is active.

Close. Close the active document.

Options. Open the Options dialog box where you can set user preferences.

Exit. Close the active document and exit App Studio.

50 WebFOCUS

Application Button

Page 51: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

In the Application menu, the terms document and active document represent all files whichyou can create in App Studio.

Spaces are not allowed in file names. When naming a report, chart, HTML page, or documentin their respective wizards or in the Save As dialog box, spaces are replaced withunderscores. When naming a procedure, spaces and underscores are not permitted andwhen you press the Space bar, nothing happens. If the repository is set to display by title,the wizards, Open dialog box, and Save As dialog box will still expect a proper name, withno spaces, to be entered.

New Dialog BoxReference:

The New dialog box opens when you click New from the Application menu. You select the typeof file you want to create and then click OK. The New dialog box is shown in the following image.

New list

You can use the New list to select which type of document you want to create. You can selectfrom the following document types:

Procedure. Creates a .fex file, which defines how data is retrieved and displayed.

Procedure via Text Editor. Creates a .fex file that you can customize using the texteditor.

HtmlPage. Creates a page in html format. You can import existing HTML content, aswell.

Document. Creates a document into which you can import reports, charts, and images.You can also create text boxes to import text and lines to draw boxes or lines.

Maintain. Creates a new Maintain file from which you can create web-based maintenanceapplications.

WebFOCUS App Studio Reference Guide 51

2. Using the WebFOCUS App Studio Interface Components

Page 52: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

JavaScript File. Creates a new JavaScript file from which you can create originalJavaScript.

Cascading Style Sheet. Creates a base template from which you can create a uniqueCascading Style Sheet (CSS).

WebFOCUS Style Sheet. Creates a base template from which you can create a uniqueWebFOCUS Style Sheet.

Text Document. Creates a text document that can be stored to a local project. You canuse the add or remove comment to comment the file.

OK

Closes the New dialog box.

Cancel

Closes the New dialog box and cancels file creation.

Help

Opens the App Studio Help.

52 WebFOCUS

Application Button

Page 53: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Open File Dialog BoxReference:

The Open File dialog box is shown in the following image.

The Open File dialog box displays files that you can open and edit in App Studio.

Configured Environments list

Contains a list of currently Configured Environments. You can navigate to differentenvironments, development areas, and project folders to display different files in the FileList.

File list

Displays all files of a specific type in a selected project folder.

Note: Instead of the regular Mater File icon, Master Files that have a DEFINE use theDEFINE icon and a Master Files that have a Join use the JOIN icon.

File name

Use this text box to type the name of a file you want to open.

WebFOCUS App Studio Reference Guide 53

2. Using the WebFOCUS App Studio Interface Components

Page 54: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you are in the Repository section and the tree is set to display by title, the OpenFile dialog box will only require a name to be entered.

File Type Drop-down list

Filters to display all files of a specified file type. You filter for fex, htm. js. css. mnt, and .txtfiles. You can also choose to display all files.

Show All Files in Associated Paths

Displays all files that are associated with the parent folder, when selected. Only one option,Show all Files in Associated Paths or Show Files in Selected Path Only, can be selected at atime.

Show Files in Selected Path Only

Displays only files in the current, selected folder. This option is selected by default. Only oneoption, Show all Files in Associated Paths or Show Files in Selected Path Only, can be selectedat a time.

Use Qualified Path

When selected, the fully qualified path name of the file you select wil be used.

Related Information:

Use Qualified Path Command on page 596

Show Tree

When selected, displays the Environment Tree. This option is only available when opening afile using commands and features in the Report canvas, HTML canvas, Document canvas,Join canvas, and the Procedure View panel.

Details Toggle

Toggles between displaying the files in the File List with details (date modified, size, etc) orin a list. Displaying files with details is the default.

Note: If you choose to display details or not, App Studio remembers your choice and willkeep the setting you chose the next time the Open File dialog box is open. For example,if you chose to display file details the first time you invoke the Open File dialog box, thenthe next time you invoke the Open File dialog box, file details are shown.

File Information

Displays the name, date modified, size, and type of the file.

54 WebFOCUS

Application Button

Page 55: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Save As Dialog Box

The Save As dialog box opens when you click Save As from the Application menu. You can usethis dialog box to save a file to another location or to provide a different file name. The Save Asdialog box is shown in the following image.

Configured Environments list

Contains a list of currently Configured Environments. You can navigate to differentenvironments, development areas, and project folders to display different files in the FileList.

File list

Displays all files of a specific type in a selected project folder.

File name

Use this text box to type the name of a file you want to open.

WebFOCUS App Studio Reference Guide 55

2. Using the WebFOCUS App Studio Interface Components

Page 56: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you are in the Repository section and the tree is set to display by title, the SaveAs dialog box will only require a name to be entered.

File Type Drop-down list

Filters to display all files of a specified file type. You filter for fex, htm. js. css. mnt, and .txtfiles. You can also choose to display all files.

Details Toggle

Toggles between displaying the files in the File List with details (date modified, size, etc) orin a list. Displaying files with details is the default.

Note: If you choose to display details or not, App Studio remembers your choice and willkeep the setting you chose the next time the Open File dialog box is open. For example,if you chose to display file details the first time you invoke the Open File dialog box, thenthe next time you invoke the Open File dialog box, file details are shown.

File Information

Displays the name, date modified, size, and type of the file.

56 WebFOCUS

Application Button

Page 57: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Setting User Preferences

You can customize App Studio by setting specific user preferences through the App Studio Optionsdialog box, as shown in the following image.

To open the Options dialog box, click Options in the Application menu. The tabs at the top of thisdialog box include the following:

General. Contains options for starting App Studio, minimizing the main window, and othersettings. For more information, see General Tab on page 58.

Reporting. Contains format options for output, field list displays, formatting a report for theweb, and setting the record retrieval limits. For more information, see Reporting Tab on page60.

HTML Page. Enables you to set grid settings for an HTML page, preview reports and charts,set single or multiple layers, and alter the frequency in which you refresh thumbnails. Formore information, see HTML Page Tab on page 64.

Document. Enables you to set grid settings for a document, preview reports and charts, andalter the frequency in which you refresh thumbnails. For more information, see Document Tabon page 68.

Environments. Enables you to change the viewable contents of the Configured Environmentstree. For more information, see Environments Tab on page 69.

WebFOCUS App Studio Reference Guide 57

2. Using the WebFOCUS App Studio Interface Components

Page 58: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Help Configuration. Enables you to configure the location of the web-based Help system forApp Studio. For more information, see Help Configuration Tab on page 70.

Output Viewer Settings. Enables you to set a specific browser to use for output or to usethe App Studio Internal Viewer (default), and to set the navigation options for the output (runin new window, run in same window). For more information, see Output Viewer Settings Tabon page 70.

These tabs are identified in the subsequent topics.

General Tab

The General tab contains the following options.

Main Window Options

DescriptionOption

Maximizes the application window when you begin eachsession.

Maximize main window

Smart Context

DescriptionOption

Sets new column types by using metadata andsurrounding fields.

Set new column type based onmetadata/surrounding fields

Activates the Field tab on the ribbon upon selection ofa field within the report canvas.

Activate Field ribbon tab whenselecting a field on the reportcanvas

Activates the Layout tab on the ribbon when no selectionis made on the report canvas and you click the whitespace.

Activate Layout ribbon tab when noselection is made on the reportcanvas

Other Settings

58 WebFOCUS

Application Button

Page 59: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Controls the appearance of the Welcome screen whenApp Studio is launched.

Show Welcome Screen

Displays a prompt for users to confirm that they wantto exit App Studio.

Confirm close

Starts the local Reporting Server when App Studio islaunched.

Start local WebFOCUS Server

Stops and closes the local Reporting Server when youexit App Studio.

Stop local WebFOCUS Server on exit

Allows you to set the number of recently used filesthat appear in the Recent file lists. The default valueis 25.

Recent file list limit

Sets the frequency at which requests are sent to theWeb/Application Server so your connection does nottime out. The default is 5.

Ping Interval (minutes)

Resets all message boxes to their default state. Forexample, if you selected the Don’t show this messageagain check box in any message box, clicking thisbutton will reset all message boxes. Once you clickthis button, it becomes inactive until you choose notto display a message box in the product.

Reset all message boxes

WebFOCUS App Studio Reference Guide 59

2. Using the WebFOCUS App Studio Interface Components

Page 60: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Lists file editor options, such as:

Edit in App Studio canvas

Edit in Text Editor

Edit in Windows registered tool

Note: The Edit in Windows registered tool is onlyvisible if the file type you are accessing has beenassociated with a Windows application.

The file editor used determines which context menuoptions are available and controls the default behaviorfor double-clicking and right-clicking files.

Default file editor

Reporting Tab

The Reporting tab contains the following options.

Field List Options

The following options affect the appearance of the Fields tab of the Object Inspector.

DescriptionOption

Sorts any list of field names alphabetically.Sort the list by field name

Displays any list of field names as qualified field names,which includes data source and table names, alphabetically.

Show fully qualified field names

Displays the full field name in the Fields tab, as specifiedin the file description.

Display the field name

Displays the alternate field name in the Fields tab, asspecified in the file description.

Display the field alias

Displays the column title in the Fields tab, as specified inthe file description.

Display field titles

60 WebFOCUS

Application Button

Page 61: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Displays descriptive information about the field in the Fieldstab, as specified in the file description.

Display field descriptions

Displays the field length and format type in the Fields tab,as specified in the file description.

Display the data formats

Displays fields in expanded mode when using a Field tree.If this option is not selected, segments appear collapsedwherever a Field tree appears.

Note: This option can also be accessed from the Fieldtree context menu.

Expand field tree

Displays Filters in a separate Filters folder of the Field tree.If this option is not selected, Filters appear with the rest ofthe fields in the segment.

Note: This option can also be accessed from the Fieldtree context menu.

Display Filters in Filters Folder

Authoring Mode

The Authoring Mode options determine how field names in a procedure (.fex) are written in theWebFOCUS source code. These options are not affected by the selected Field List options.

DescriptionOption

Writes the source code using qualified field names, for example:

BY 'GGSALES.SALES01.CATEGORY'

Qualified fieldname

Writes the source code using unqualified field names, forexample:

BY CATEGORY

Unqualified fieldname

WebFOCUS App Studio Reference Guide 61

2. Using the WebFOCUS App Studio Interface Components

Page 62: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Writes the source code using alias field names, as defined in theALIAS field of the Master File. The ALIAS field assigns analternative name for a column.

The following example shows source code in which the Categoryfield name is assigned E02 in the ALIAS field of the ggsales.masMaster File.

BY E02

Alias fieldname

Other

DescriptionOption

Select the display format for your reports. You can select fromthe following options:

HTML

HTML active report

active report for Flash

active report for PDF

PDF

Excel 2007

Excel 2000

PowerPoint

Default (This option is the FOCUS default. It applies whicheverof the previous formats was set as an environment parameter.)

User

Default Report Format

62 WebFOCUS

Application Button

Page 63: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Specifies a limit on the number of records to retrieve from thedata source. Setting a retrieval limit creates selection criteria forboth Retrieval Limit and Read Limit dialog boxes.

Specify a retrieval limit when you need only a few records to testthe design of a new report, or you know how many records meetthe test criteria and want to stop a search after those recordsare retrieved. This reduces total retrieval time.

Maximum number ofrecords to retrieve

Specifies a limit on the number of readings that can be madeagainst the data source.

Maximum number ofreadings to make

Specifies the default styling template when you open the Reportfeature.

Default Style Template

Specifies the default report settings when you open the Reportcanvas. Click Browse to select user-created templates.

Default Report Template

Setting the Default Report Format

The Reporting tab of the App Studio Options dialog box allows you to set a report format to useas the default format by the Report feature.

How to Set the Default Report FormatProcedure:

The following procedure describes how to set the default report format. In this example, Userformat is selected.

1. From the Application menu, click Options.

2. Click the Reporting tab.

WebFOCUS App Studio Reference Guide 63

2. Using the WebFOCUS App Studio Interface Components

Page 64: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. From the Default Report Format drop-down list, select the required format, as shown in thefollowing image.

4. Click OK.

The User output is now the Default Report Option in the App Studio Report mode. The Userformat allows the application to select the actual output type at run time. For example, adeveloper could choose to view a report as Excel 2007, PDF, active report for Flash, andmore.

HTML Page Tab

The HTML Page tab contains the following options.

Grid Settings

DescriptionOption

Enables you to view a grid while you create an HTML page.The Show Grid check box is selected by default. Clear thischeck box if you do not want to develop with a grid.

Show Grid

Enables you to snap to grid on demand. The Snap to Gridcheck box is selected by default. Clear this check box if youdo not want to enable the snap to grid option.

Snap to Grid

64 WebFOCUS

Application Button

Page 65: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Customizes the width of your grid. The default is 10 pixels.Width

Customizes the height of your grid. The default is 10 pixels.Height

Form type

DescriptionOption

Specifies no layers in the HTML page.None

Specifies a single layer in the HTML page. This is thedefault setting.

Single layer

Specifies multiple layers in the HTML page.Multiple layer

Opens the Form settings dialog box. The options for Formsettings are described in Form Settings Dialog Box on page67.

Form Settings

Tab Characters

DescriptionOption

Inidicatess that, when the Tab key is pressed,the number of spaces specified in the Tabsize option is inserted.

Insert spaces

Indicates that, when the Tab key is pressed,a tab character is inserted.

Keep tabs

Specifies the number of spaces inserted whenyou press Tab.

Tab size

Check boxes

WebFOCUS App Studio Reference Guide 65

2. Using the WebFOCUS App Studio Interface Components

Page 66: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Sets the New Parameters dialog box to appear in the HTMLpage. This is the default setting.

Show 'New Parameters' dialog

Sets the Default caching option to run in the HTML page.By default, this option is not selected.

Default caching option

Sets the objects in the HTML page to arrange automatically.This is the default setting.

Auto Arrange Objects

Preview settings

DescriptionOption

Enables you to preview reports and charts before savingand deploying the HTML page. This is the default setting.

Reports and Charts Preview

Enables you to run the HTML page based on simulated datafrom WebFOCUS.

Simulated Data

Enables you to run reports and charts using live data in theHTML page. This is the default setting.

Live Data

Sets the record limit for reports. Values range from -1 to999. The default setting is 500.

Record limit for reports

Sets the record limit for input controls. Values range from-1 to 999. The default setting is 10.

Record limit for input controls

Sets a prefix to run before each report or chart componenton an HTML page.

Use Prefix

Sets the time interval for refreshing thumbnails. Valuesrange from 0 to 999 seconds. The default setting is 20.

Refresh thumbnails everyseconds

Sets the default theme for an HTML page from the DefaultTheme drop-down list. The Information Builders theme isthe default theme.

Default Theme

66 WebFOCUS

Application Button

Page 67: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Form Settings Dialog BoxReference:

The following table describes the options available in the Form Settings dialog box.

DescriptionOption

Sets the prompt orientation to appear to the left of theform settings.

To the left of the input

Sets the prompt orientation to appear above the formsettings. This is the default setting.

Above the input

Sets the distance between prompt and input. The range isfrom 0 to 99 pixels. The default setting is 5 pixels.

Distance between prompt andinput

Sets the horizontal distance between controls. The rangeis from 0 to 99 pixels. The default setting is 4 pixels.

Horizontal distance betweencontrols

Sets the vertical distance between controls. The range isfrom 0 to 99 pixels. The default setting is 10 pixels.

Vertical distance betweencontrols

Sets the horizontal distance between controls. The rangeis from 0 to 99 pixels. The default setting is 10 pixels.

Number of columns

Adds a schedule to your HTML page. This is the defaultsetting.

Add schedule button

Enables deferred running of a report. This is the defaultsetting.

Add defer button

Starts chains on a new line. This is the default setting.Start each chain on a new line

WebFOCUS App Studio Reference Guide 67

2. Using the WebFOCUS App Studio Interface Components

Page 68: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Document Tab

The Document tab contains the following options.

Grid Settings

DescriptionOption

Enables you to view a grid while you create a document.The Show Grid check box is selected by default. Clear thischeck box if you do not want to develop with a grid.

Show Grid

Enables you to snap to a grid on demand. The Snap to Gridcheck box is selected by default. Clear this check box ifyou do not want to enable the snap to grid option.

Snap to Grid

Customizes the width of your grid. The default is 10 pixels.Width

Customizes the height of your grid. The default is 10 pixels.Height

Tab Characters

DescriptionOption

Inidicates that, when the Tab key is pressed,the number of spaces specified in the Tabsize option is inserted.

Insert spaces

Indicates that, when the Tab key is pressed,a tab character is inserted.

Keep tabs

Specifies the number of spaces inserted whenyou press Tab.

Tab size

Preview Settings

DescriptionOption

Enables you to preview reports and charts before savingand deploying the document. This is the default setting.

Reports and Charts Preview

68 WebFOCUS

Application Button

Page 69: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Runs the document based on simulated data fromWebFOCUS.

Simulated Data

Runs reports and graphs using live data in the document.This is the default setting.

Live Data

Sets the Record limit for reports. Values range from -1 to999. The default setting is 500.

Record limit for reports

Sets a prefix to run before each report or chart componenton a document.

Use Prefix

Sets the time interval for refreshing thumbnails. Valuesrange from 0 to 999 seconds. The default setting is 20.

Refresh thumbnails everyseconds

Environments Tab

Note: The Environments options are used to control the development areas that are visiblein the Configured Environments tree. At least one option must be selected and applied to allconfigured environments.

The Environments tab contains the following options.

Environments settings

DescriptionOption

Displays the Projects area in the Configured Environmentstree. This is the default setting.

Show Projects area

Displays the Data Servers area in the ConfiguredEnvironments tree.

Show Data Servers area

Displays the Repository area in the Configured Environmentstree.

Show Repository area

Displays the Web Applications area in the ConfiguredEnvironments tree.

Show Web Applications area

WebFOCUS App Studio Reference Guide 69

2. Using the WebFOCUS App Studio Interface Components

Page 70: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Help Configuration Tab

The Help Configuration tab provides the fields in which you can modify the App Studio Helpconfiguration information to access the online Help system from your environment.

DescriptionOption

Specify the protocol, either HTTP or HTTPS.Protocol

Type the name of the machine where the Help resides.Host

Type the port number of the web and/or Application Server.Port

Type the context root for the location where the Help ishosted.

Help Context Root

Output Viewer Settings Tab

The Output Viewer Settings tab enables you to set a specific browser to use for output or to usethe App Studio Internal Viewer (default), and to set the navigation options for the output (run innew window, run in same window).

DescriptionOption

Select a browser to use for output or select the App StudioInternal Viewer (default).

Note:

The Browser Setup section is populated with a list ofbrowsers that are installed on the App Studio machine.

App Studio works with Mozilla Firefox®, GoogleChrome™, and Microsoft Internet Explorer® browsers.

The browser that is highlighted when you close thedialog box is the browser that will be used for execution.

Browser Setup

Sets the location of the browser executable. This field box ispopulated based on the browser selection.

Browser executable path

70 WebFOCUS

Application Button

Page 71: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionOption

Sets the location of the web driver for the browser. This fieldbox is populated based on the browser selection.

Web driver location

Indicates the test URL for testing the browser setup. Thedefault URL is http://www.ibi.com.

Test URL

Tests the browser setup, using the test URL. If the test issuccessful, the webpage will display in the browser and youwill receive a success message. If the test is unsuccessful,you will receive a failed message.

Test browser setup

Saves the setup information for the selected browser.Save selected browser setup

Sets the output to run in a new window.Run in new window

Sets the output to run in the same window.Run in same window

Quick Access Toolbar

The Quick Access Toolbar provides access to frequently used commands, and the option tocustomize the toolbar with the commands that you use most often. By default, the New, Open,Save, Quick Print, Run, Cut, Copy, Paste, Undo, and Redo buttons appear on the Quick AccessToolbar, as shown in the following image.

Note:

When using the undo and redo commands, consider that these actions may not take effecton options or information that is changed in every panel. In addition, if you change multipleoptions in one panel, for example, the undo or redo command will reverse all of thoseindicated changes in one action.

The Cut, Copy. and Paste commands can be used on text, objects on the HTML canvasand Document canvas, and fields on the Report canvas.

WebFOCUS App Studio Reference Guide 71

2. Using the WebFOCUS App Studio Interface Components

Page 72: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Customize Quick Access Toolbar button (down pointing arrow) appears on the Quick AccessToolbar and opens the Customize Quick Access Toolbar menu. This menu contains a list of thedefault commands on the toolbar. You can clear these commands to hide them from the toolbar.There are also options to add more commands with the Customize dialog box, move the QuickAccess Toolbar below the ribbon, and hide the ribbon.

To add commands to the Quick Access Toolbar, right-click a command and select Add to QuickAccess Toolbar. To remove these commands from the Quick Access Toolbar, right-click their iconon the toolbar and select Remove from Quick Access Toolbar.

You can also add commands using the Customize dialog box. To access the Customize dialogbox, select More Commands from the Customize Quick Access Toolbar menu. From the Customizedialog box, you can choose which commands you want to add to or remove from the Quick AccessToolbar, as well as the order in which the commands appear.

The Quick Access Toolbar is always available. By default, it is located in the upper-left corner ofthe App Studio interface. To move the Quick Access Toolbar below the ribbon, click the arrowbutton, and then click Show Below the Ribbon.

72 WebFOCUS

Quick Access Toolbar

Page 73: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Customize Dialog BoxReference:

Using the Customize dialog box, you can add or remove commands from the Quick Access Toolbar.By providing access to the Customize Keyboard dialog box, you can also customize the keyboardby setting keyboard shortcuts for commonly performed tasks. The Customize dialog box is shownin the following image.

Choose commands from:

Opens a list of available areas in App Studio. The Commands section dynamically repopulateswith the commands that are associated with your selection.

Commands

A list of commands from a specific area of App Studio. You can select commands and usethe Add or Remove buttons to add or remove them from the Quick Access Toolbar. Commandsare represented by the icon that displays on the ribbon. Commands that have no icon and avertical arrow are command groups. Commands that have an icon and a horizontal arrow arecommands with submenus. You can add all commands, command groups, and commandswith submenus to the Quick Access Toolbar.

Add

Adds a selected command from the Commands list to the Quick Access Toolbar.

WebFOCUS App Studio Reference Guide 73

2. Using the WebFOCUS App Studio Interface Components

Page 74: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Remove

Removes a selected command from the Quick Access Toolbar. If no command is selected,the last command on the Quick Access Toolbar is removed.

Up

Moves a command up in order on the Quick Access Toolbar.

Down

Moves a command down in order on the Quick Access Toolbar.

Reset

Reverts the Quick Access Toolbar to use the default commands (New, Open, Save, QuickPrint, and Run).

Show Quick Access Toolbar below the Ribbon

Displays the Quick Access Toolbar below the ribbon when selected.

Keyboard shortcuts

Customize

Opens the Customize Keyboard dialog box. For more information on the CustomizeKeyboard dialog box, see Customize Keyboard Dialog Box on page 75.

OK

Applies the changes you made to the Quick Access Toolbar.

Cancel

Exits the Customize dialog box without applying any changes you made to the Quick AccessToolbar.

Help

Opens the App Studio Help.

74 WebFOCUS

Quick Access Toolbar

Page 75: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Customize Keyboard Dialog BoxReference:

The Customize Keyboard dialog box is used to create and edit keyboard shortcuts to commands.You can access the Customize Keyboard dialog box by clicking the Customize button in theCustomize dialog box from the Quick Access Toolbar. The Customize Keyboard dialog box isshown in the following image.

Categories

A list of the available areas in App Studio. The commands associated with that area aredisplayed in the Commands section.

Commands

A list of commands from a specific area of App Studio. You can select commands and thenassign a keyboard shortcut to them.

Current Keys

Displays the current keyboard shortcuts associated with the selected command.

Press new shortcut key

Press the keyboard shortcut you want to assign to a specific command. Once the Assignbutton is clicked, this keyboard shortcut will then be displayed in the Current Keys list forthe selected command.

WebFOCUS App Studio Reference Guide 75

2. Using the WebFOCUS App Studio Interface Components

Page 76: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Set Accelerator for

Enables you to set an accelerator for one of the following: Default, HtmlPage, or Document.

Description

Provides a description of the selected command.

Assign

Allows you to assign a keyboard mapping to a command.

Remove

Allows you to remove an assigned keyboard mapping.

Reset All

Resets all keyboard mapping assignments for every command. A warning displays to ensurethat want to perform this action.

Close

Exits the Customize Keyboard dialog box and return to the Customize dialog box.

How to Create Keyboard ShortcutsProcedure:

1. To open the Customize dialog box, do one of the following:

Click the drop-down arrow on the Quick Access Toolbar and then click More Commands.

Use the shortcut menu on the ribbon or Quick Access Toolbar and then click CustomizeQuick Access Toolbar.

2. Click Customize.

The Customize Keyboard dialog box opens.

3. From the Categories list, select an area that contains the command that you want to createa shortcut for.

4. From the Commands list, select a command.

5. in the Press new shortcut key area, enter the key combination that you want to use with thecommand you selected.

You can make a shortcut up to three keystrokes long. For example, Ctrl+Shift+R.

6. Click Assign.

A shortcut is now assigned with the command you selected.

76 WebFOCUS

Quick Access Toolbar

Page 77: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

7. Click Close to exit the Customize Keyboard dialog box.

Adding Commands to the Quick Access Toolbar

The New, Open, Save, Quick Print, Undo, Redo, Cut, Copy, Paste, and Run buttons appear onthe Quick Access Toolbar, by default. You can also add the commands you use most often. Youcan quickly add commands to the Quick Access Toolbar by right-clicking the ribbon, groups, orthe individual commands, and selecting Add to Quick Access Toolbar, or you can follow theprocedure below.

How to Add Commands to the Quick Access ToolbarProcedure:

1. On the Quick Access Toolbar, click the arrow, and then click More Commands.

The Customize dialog box opens.

2. In the Choose commands from list, select a command group.

3. Select a command name, and then click Add.

The command name appears in the Quick Access Toolbar list.

If you select a command group or a command with a submenu, all associated commandsare accessible from the Quick Access Toolbar.

To remove a command name from the Quick Access Toolbar list, select the command, andthen click Remove.

4. Click the arrow buttons to rearrange the order of command names in the list.

This also rearranges how the command buttons appear in the Quick Access Toolbar.

5. Click OK to save your changes.

Canvas

You can use App Studio features and functions to develop applications in the canvas area of theinterface. The size of your canvas depends on the placement and location of panels around theinterface window.

As you develop in App Studio, tabs open in the canvas area. Since you can develop an HTMLpage at the same time that you create a report, each canvas opens with a different colored tab.The colored tab at the top of each canvas displays the name of the file you are developing.

WebFOCUS App Studio Reference Guide 77

2. Using the WebFOCUS App Studio Interface Components

Page 78: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If you named the file in the Report, Chart, or HTML/Document Wizard, that name appears on thetab. If you chose to name the file after you develop the content, a default file name, such asReport1, appears on the tab, as shown in the following image.

A second set of tabs opens when you create procedures with multiple components. For example,you can add Set, Define, and Join components to a procedure at anytime. These canvases openas tabs below the report or chart procedure, as shown in the following image.

78 WebFOCUS

Canvas

Page 79: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In addition to colored tabs, some canvases also contain View tabs. A View tab appears at thebottom of the canvas and changes the display of information on the canvas. View tabs are shownin the following image.

View tabs display different views of the same component.

View tabs, such as those on the HTML canvas, also enable additional features and functionsthat you can use to customize an application. For example, in the HTML canvas, you can addJavaScript functionality to an HTML page through the Embedded JavaScript view tab.

For more information, see View Tabs on page 137.

You can develop App Studio content in the following canvases.

Alert Assist Canvas

The Alert Assist canvas enables you to distribute an entire report or selected sections of a reportwhen certain test conditions are met.

To access the online Help for the Alert Assist canvas, click the Alert Assist Help icon , locatedwithin the Alert Assist canvas.

Alert Assist Button

The Alert Assist button opens a menu that contains the Save, Save As, Run, and Close buttons.

WebFOCUS App Studio Reference Guide 79

2. Using the WebFOCUS App Studio Interface Components

Page 80: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Alert Assist Quick Access Toolbar

You can access frequently used commands on the Alert Assist Quick Access Toolbar, such asSave, Undo, Redo, View Code, and Run.

Alert Assist Home Tab

You can use the Alert Assist Home tab to access the features and functions necessary to create,open, edit or run an Alert Test or Alert Result. The Alert Assist Home tab contains the Navigationgroup.

Navigation Group

You can create a new Alert Test or Alert Result, open a previously created Alert Test or AlertResult, edit a previously created Alert Test or Alert Result, and run the report in a new browserwindow. The commands are:

New

You can create a new Alert Test or Alert Result by selecting Test or Result, and thenclicking New. This opens a menu from which you can choose to create a new WebFOCUSReport or Test for File Existence. New provides the same functionality as if you rightclicked the Test node and created a report from the menu.

Open

You can open a previously created Alert Test or Alert Result. This invokes the Chartcanvas so that you can make changes to the chart. The Open option is activated onlyafter a report test is created.

Edit

You can edit an Alert Test or Alert Result. This opens the Report on FILENAME datasource dialog box. Here, you can edit the report in the Text Editor canvas.

Run

You can run the report in a new browser window.

Delete Group

You can remove the report from the Alert Test or Alert Result. The command is:

Delete

You can remove the report from the Alert Test or Alert Result.

80 WebFOCUS

Canvas

Page 81: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Chart Canvas

The Chart canvas enables you to create different types of charts. You can select from a varietyof chart types and output formats, and add custom features to a chart. To access the Chartcanvas, on the Home tab, in the Content group, click Chart. The Chart Wizard opens.

Related Information:

How to Create a Chart Using the Chart Wizard on page 434

Launching the Chart Wizard on page 433

Cascading Style Sheet Canvas

The Cascading Style Sheet canvas allows you to create a Cascading Style Sheet. The CascadingStyle Sheet canvas uses the Microsoft IntelliSense® feature to assist in the creation of codesegments. To access the Cascading Style Sheet canvas, click the Application button, and thenclick New. In the New dialog box, click Cascading Style Sheet, and click OK.

Note: Browser specific extensions, not provided by intellisense, may be typed into theCascading StyleSheet canvas. However, some vendor prefixes may be harmful and should bethoroughly researched before being used. For more information on vendor prefixes, see:

http://designmodo.com/vendor-prefixes/

http://www.quirksmode.org/blog/archives/2010/03/css_vendor_pref.html

ESRI Configuration Utility Canvas

The ESRI Configuration Utility canvas allows you to edit configuration options associated withESRI, the ArcGIS Server, and the GIS Adapter. To access the ESRI Configuration Utility canvas,right-click an Application folder in the Data Servers area, point to New, and click XML Documentwith ESRI Configuration.

JavaScript Canvas

The JavaScript canvas allows you to create JavaScript code. To access the JavaScript canvas,click the Application button, and then click New. In the New dialog box, click JavaScript File, andclick OK.

Related Information:

Using JavaScript Code With HTML Canvas Pages on page 389

Using JavaScript IntelliSense on page 82

WebFOCUS App Studio Reference Guide 81

2. Using the WebFOCUS App Studio Interface Components

Page 82: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using JavaScript IntelliSense

The JavaScript canvas and the Embedded JavaScript/CSS view tab use the Microsoft IntelliSense®

feature to assist in the creation of code segments. When you begin typing a string, array, number,or user-defined object, a list of available JavaScript methods, related to those code segments,displays.

Note: If there is a syntax error, IntelliSense will not display.

Text Editor Canvas

The Text Editor canvas allows you to edit component code. To access the Text Editor canvas,right-click a component in the Procedure View panel, point to Open With, and then click Text Editor.

Related Information:

Text Editor Tab on page 469

Document Canvas

The Document canvas enables you to design reports, and to coordinate and distribute layoutsmade up of multiple reports and charts in a document. You can position reports and chartsanywhere on a single page or combine a series of layouts within a single document. To accessthe Document canvas, on the Home tab, in the Content group, click HTML/Document. When theHTML/Document wizard opens, select Document from the available options. The Documentcanvas opens.

Related Information:

How to Create a Document Using the HTML/Document Wizard on page 412

HTML Canvas

The HTML canvas enables you to graphically create an HTML page that incorporates forms,reports, graphs, and web objects. To access the HTML canvas, on the Home tab, in the Contentgroup, click HTML/Document. When the HTML/Document wizard opens, select HTML Page fromthe available options. The HTML canvas opens.

The HTML canvas uses HTML 5 Document Type Definitions (DTD).

Related Information:

How to Create an HTML Page Using the HTML/Document Wizard on page 246

Launching the HTML/Document Wizard on page 411

82 WebFOCUS

Canvas

Page 83: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Report Canvas

The Report canvas provides you with many features that enable you to create and style reports.To access the Report canvas, on the Home tab, in the Content group, click Report. The ReportWizard opens. Follow the prompts in the Report Wizard to create a report. The Report canvasopens.

Related Information:

Launching the Report Wizard on page 147

How to Create a Report Using the Report Wizard on page 148

Report Tab on page 153

Reporting Object Canvas

The Reporting Object canvas enables you to present available data using different terms andformats. You can then use Reporting Objects as templates for the creation of a wide range ofreports and charts.

To access the online Help for the Reporting Object canvas, click the Reporting Object Help icon

, located within the Reporting Object canvas.

Reporting Object Button

The Reporting Object button opens a menu that contains the Save, Save As, Run, and Exit buttons.

Reporting Object Quick Access Toolbar

You can access frequently used commands on the Reporting Object Quick Access Toolbar, suchas Save, Undo, Redo, View Code, and Run.

Reporting Object Home Tab

You can use the Reporting Object Home tab to access the features and functions necessary tocreate, open, edit or run an item. The Reporting Object Home tab contains the Navigation group.

Navigation Group

You can create a new item, open a previously created item in the respective canvas, edit apreviously created item, rename an item, and run the item The commands are:

New

You can create a new join, DEFINE statement, filter, or WHERE statement.

WebFOCUS App Studio Reference Guide 83

2. Using the WebFOCUS App Studio Interface Components

Page 84: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Open

You can open a previously created items in the appropriate canvas.

Edit

You can open the item source code in the Text Editor canvas.

Properties

You can rename the selected filter or filter group.

Run

You can run the selected item.

Delete Group

You can delete a selected item or all items of a specific type. The commands are:

Delete

You can delete the selected item.

Delete All

You can delete all items of the selected item type. For example, all WHERE statements,all filters in a particular group, or all filters in every group.

Metadata Canvas

The Metadata canvas provides a graphical interface that enables you to work with synonyms andperform tasks, such as creating, viewing, and modifying synonyms. To access the Synonym Editorcanvas from the Environments Tree panel, right-click a Master File and select Metadata Canvas.To access the Metadata canvas from the ribbon, on the Home tab, in the Content group, clickData, and then click Synonym via Metadata Canvas.

Related Information:

Creating and Editing Synonyms on page 442

Launching the Data Source Definition Wizard on page 441

Metadata Tab on page 444

Join Canvas

The Join canvas allows you to temporarily join two or more data sources and use data from themas if they were one data source. Joined files remain physically separate but are treated as onedata source. To access the Join canvas, right-click a procedure folder or component in theProcedure View panel, point to New, and then click Join.

84 WebFOCUS

Canvas

Page 85: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Related Information:

Join Tab on page 499

Join on page 480

OLAP Dimensions Canvas

The OLAP Dimensions canvas allows you to create temporary OLAP hierarchy and dimensions.To access the OLAP Dimensions canvas, right-click a procedure folder or component in theProcedure View panel, point to New, and then click OLAP Dimensions.

Related Information:

Olap Dimensions on page 482

Set Canvas

The Set canvas provides you with a graphical option for issuing a SET command. You can usethe SET command to change parameters that govern App Studio and your environment. To accessthe Set canvas, right-click a procedure folder or component in the Procedure View panel, pointto New, and then click Set.

Related Information:

Set on page 480

Use Canvas

The Use canvas enables you to specify the name and location of a WebFOCUS data source. Thisis helpful if the default naming convention is not used, the data source cannot be found on thestandard search path, or an explicit extra option is desired. To access the Use canvas, right-clicka procedure folder or component in the Procedure View panel, point to New, and then click Use.

Related Information:

Use on page 481

Customizing Canvases

You can switch between the canvases by clicking the colored tab at the top of the canvas. Youcan also develop in the canvases side by side.

WebFOCUS App Studio Reference Guide 85

2. Using the WebFOCUS App Studio Interface Components

Page 86: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows an HTML canvas next to a Report canvas.

How to Move Canvases for Side-by-Side DevelopmentProcedure:

To create side-by-side canvas development, follow these steps:

1. Drag one canvas tab away from its original position.

A pointer with a document icon appears.

2. Drag the pointer with the document icon to the upper-right corner of the canvas.

The canvases now appear side by side.

Tip: Repeat the preceding steps to develop on additional canvases side by side.

Ribbon

The App Studio ribbon replaces traditional toolbars with a single command bar that organizescommands and controls into a series of static and contextual tabs. From the ribbon, you canalso access the WebFOCUS Administration menu, the Style menu, and the Help menu.

86 WebFOCUS

Ribbon

Page 87: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The default ribbon is shown in the following image.

Each tab on the ribbon, whether static or contextual, contains commands and controls that areorganized into groups according to their function or relationship. All tabs are named and all groupsare labeled. Icons are used to represent the commands or controls in each group. By default, allicons are labeled. There are a few styling icons in the Style group that are not labeled. Rest yourpointer over an icon to view the tooltip that identifies it. An example of this is shown in thefollowing image.

In addition to single-click commands, some commands on the ribbon contain a submenu ofoptions that opens when you click the arrow associated with the command. These arrows canappear below or next to a label. An example of this is the Data command, which opens a submenuof options, as shown in the following image.

WebFOCUS App Studio Reference Guide 87

2. Using the WebFOCUS App Studio Interface Components

Page 88: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: There is no default ribbon size. As your monitor or application window size changes,the commands and controls on the ribbon resize themselves to fit the available space. Largemonitors or application windows will display larger icons and entire groups. Smaller monitorsor application windows may display groups as a single, labeled icon that opens a submenu.

In the following example, the Output Types group, Navigation group, and Features group displaythe icons at their full size.

In the following example, the Output Types group, Navigation group, and Features group containa combination of full-size icons and smaller-size icons.

In the following example, the Features group and Navigation group contain small icons, somewithout their labels, while the Output Types has collapsed down to a single icon with a submenu.

88 WebFOCUS

Ribbon

Page 89: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Home Tab

The Home tab enables you to access the features and functions necessary to build an application,create new components, open existing components, run existing components, and editcomponents. The Home tab contains the Consoles, Content, Utilities, View, and Window groups.The Home tab is always available and is static. It is located in the upper-left corner of the AppStudio interface, below the Quick Access Toolbar, as shown in the following image.

Note: The Home tab is the only static tab in App Studio.

Content Group

The Content group contains the components or tools that you can use to create an application.These include: Data, Report, Chart, and HTML/Document. The Content group is shown in thefollowing image.

The commands in the Content group are:

Data

Contains the Synonym via Metadata Canvas, Synonym, Manage Adapters, Data SourcePassword, and Rebuild Data Source commands. These provide you the options you need tocreate and edit synonyms for existing adapters, configure a new adapter, or add a remoteserver.

If you click Synonym via Metadata Canvas, the Data Source Definition Wizard opens. Navigateto the location of the data source you want to create or edit and click OK.

WebFOCUS App Studio Reference Guide 89

2. Using the WebFOCUS App Studio Interface Components

Page 90: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If you click Synonym, the Select Server Node dialog box opens. Navigate to the applicationfolder where you want to create your synonym and click OK. After the location of the synonymis determined, the Select Adapter dialog box opens. Select the adapter you want to use andclick OK. You will then be able to edit the synonym details.

If you click Manage Adapters, the Select Server Node dialog box opens. Navigate to a validserver location to begin configuring a new adapter or edit the settings of an existing adapter.

If you click Data Source Password, the Password Dialog box opens. You can enter the passwordfor the data source you have selected in your Environments Tree panel.

If you click Rebuild Data Source, the Rebuild dialog box opens. You can rebuild a disorganizedfile, index a specific field from a file, or check the integrity of a file.

Report

Opens the Report canvas in report mode after you enter a procedure name and select alocation for your report from the Report Wizard.

In report mode, you can create and style simple or complex reports, add data to the Reportcanvas, and style that data creating a graphical representation of the report page. This allowsyou to view how the report displays at run time.

Using report mode, you can:

Display and sort data.

Select records.

Include totals, subtotals, column calculations, headings, footings, and images.

Format columns.

Style fonts, colors, and grids.

Add drill downs to detailed reports and URLs.

Save output in many types of formats for display and reuse.

Create active reports.

Perform predictive analysis (an RStat license is required).

Chart

Opens the Chart canvas after you enter a procedure name and select a location for your chartfrom the Chart Wizard.

90 WebFOCUS

Ribbon

Page 91: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In chart mode, you can easily transform almost any type of data into effective, custom charts.You can create a variety of charts, such as bar charts, line charts, scatter charts or pie chartsto help users analyze data in a different way. You can include selection criteria by definingparameters for your data. Additionally, you can apply drill-down capabilities and conditionalstyling to highlight specific data on a chart.

The Chart canvas contains a ribbon of features and options that allow you to add and stylethe data in your chart. Contextual tabs open within the Chart canvas, rather than on the AppStudio ribbon.

HTML/Document

Opens the HTML/Document wizard. You can choose which type of page that you want tocreate from the following options: HTML Page, Guided Report Page, Document, or activedashboard. Depending on your selection, the corresponding canvas will open.

HTML mode provides the features you need to create HTML pages so that end users caninteract with your data. You can build and customize an HTML page in the HTML canvas,using the contextual tabs on the ribbon to add objects to the page. HTML mode is fullyintegrated with JavaScript and Cascading Style Sheets (CSS).

In the HTML canvas, you can:

Build an HTML launch page.

Add push buttons, hyperlinks, and other controls to launch WebFOCUS reports in yourapplication.

Create a launch page for one or more reports that contain parameters.

Create a complete HTML page, by adding multiple reports and charts.

Create an advanced report layout by including images, frames, and other web objects.

Modify the location, size, and properties of all objects in your page layout.

Set background, font, and other page properties.

In the Document canvas, you can coordinate and distribute layouts made up of multiplereports and charts in a single document. You can position reports and charts anywhere ona single page or combine a series of layouts within a single document. When creatingcompound reports in the Document canvas, PDF, HTML, active reports, PowerPoint, and Excelare available as output formats.

WebFOCUS App Studio Reference Guide 91

2. Using the WebFOCUS App Studio Interface Components

Page 92: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Related Information:

Launching the HTML/Document Wizard on page 411

Launching the Chart Wizard on page 433

Launching the Report Wizard on page 147

Modeling Group

The Modeling Group is only available when RStat is installed. You can deploy an RStat scoringroutine or estimate future values based on selected data.

WebFOCUS RStat is a statistical modeling workbench embedded in App Studio. It allows you toperform common statistical and data mining tasks, and develop models that can be deployedas scoring applications on every platform. RStat enables data miners and Business Intelligencedevelopers to collaborate with the same tools used to access, manipulate, or transform data,develop predictive models, and create and deploy scoring applications along with associatedreports to any worker within their organization. The Modeling group is shown in the followingimage.

The commands in the Modeling Group are:

Model Deployment

Opens the Model Deployment dialog box. This functionality enables you to deploy existing,stored routines.

You can deploy an RStat scoring routine in any application directory within your app path onany WebFOCUS server. The process of deployment includes compiling the routine and placingthe executable file in a location that can be accessed by a WebFOCUS scoring application.

Predictive Modeling

Opens RStat, a statistical modeling workbench that is embedded in App Studio. When youselect the Predictive Modeling command, the RGui window is opened and the R Console andRStat are activated.

92 WebFOCUS

Ribbon

Page 93: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You use RStat to derive expected and predicted values from data observations. Decisiontrees, regression, and the other algorithms are used to generate estimates. For example,you can estimate whether a prospect is a good target for a particular marketing campaign,or you can estimate the expected sales revenues for different stores in order to determinewhether store layout and product mix have an impact on sales.

Utilities Group

You can create a new environment. The Utilities group is shown in the following image.

The command in the Utilities group is:

Environments

Opens the Environments List dialog box. A WebFOCUS environment consists of a web server,a WebFOCUS Client, and a Reporting Server. Adding WebFOCUS environments allows you tocreate and manage multiple environments, such as development, test, and productioninstances. You can set a new development environment, add a new environment, edit anexisting environment, or remove an environment.

Command Console

Opens a command tab for editing.

View Group

The View Group enables you to control what displays on your screen. For example, you can choosewhether to display or hide the Status Bar and Context Bar. The View group is shown in the followingimage.

WebFOCUS App Studio Reference Guide 93

2. Using the WebFOCUS App Studio Interface Components

Page 94: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands in the View group are:

Environments Tree

Displays or hides the Environments Tree panel, which displays on the left side of the screenand displays environment information.

Environments Detail

Displays or hides the Environments Detail panel.

File/Folder Properties

Displays or hides the File/Folder Properties panel.

Procedure View

Displays or hides the Procedure View panel.

Context Bar

Displays or hides the Context Bar. The Context Bar displays under the ribbon.

Status Bar

Displays or hides the Status Bar. The Status Bar displays along the bottom of the screen.

Window Group

You can view and manipulate all opened windows. The Window group is shown in the followingimage.

The command in the Window group is:

Windows

Manipulates all opened windows. You can view and manipulate the windows using the Windowsdialog box. The Windows dialog box enables you to Activate or Save an open window.

Windows Dialog BoxReference:

The Windows dialog box allows you to manage multiple windows. The list box is populated withcurrently opened windows.

94 WebFOCUS

Ribbon

Page 95: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Command Console Tab

The Command Console enables you to send commands directly to a server from App Studio. Thisbenefits users who have worked with Information Builders products and are already familiar withthe command syntax.

The Command Console sends output to your web browser or App Studio Viewer. Output caninclude error messages, responses to query commands, and report output. The Command Consolecan also serve as a troubleshooting and debugging tool.

The following are a set of rules that you should follow when entering commands in the commandconsole.

The Console is case-sensitive. Therefore, you must enter text in the case required forprocessing. For example, keywords must be entered in uppercase characters.

The Command Console is not interactive. Therefore, you must enter all required commandsin sequence and execute them as an entire process. For example, you must enter all stepsrequired to execute the WebFOCUS REBUILD command. The Console does not prompt youfor information.

You can copy or cut text from the Command Console or an outside window, and paste it inthe Command Console.

You can drag command syntax within the Command Console.

The Command Console ribbon tab is shown in the following image.

Execution Path Group

The Execution Path group contains a list of paths that are available for you to use when youexecute commands. The Execution Path group is shown in the following image.

WebFOCUS App Studio Reference Guide 95

2. Using the WebFOCUS App Studio Interface Components

Page 96: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The command is:

Execution Path List

Contains a list of available paths for you to execute commands.

The list of available execution paths is determined by the selected nodes in the EnvironmentsTree Panel. When you open App Studio for the first time, you must expand and select a nodefrom the Environments Tree panel to populate the Execution Path List.

When you run the content of the console, it will be executed using the selected executionpath and the Reporting Server associated with that selected path.

Edit Group

The Edit group allows you to load commands, clear the console, and clear the input stack. Theinput stack is a series of commands that you enter using the Command console. The Edit groupis shown in the following image.

The commands are:

Back

Loads the previous command from the input stack.

Forward

Loads the next command from the input stack.

Clear Console

Clears the current commands from the console.

Clear Input Stack

Clears the input stack. This option is unavailable if you do not have an input stack.

Auto Clear Console

When selected, automatically clears the console after your commands are executed.

96 WebFOCUS

Ribbon

Page 97: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Find Group

The Find group contains options that enable you to find or replace text. The Find group is shownin the following image.

The commands are:

Find

Searches for the specified text. You can also use Ctrl+F to activate the Find dialog box.

Next

Finds the next instance of the specified text.

Previous

Finds the previous instance of the specified text.

Replace

Replaces specific text with different text.

Select All

Selects all of the text in the procedure.

Bookmarks Group

The Bookmarks group enables you to turn bookmarks on or off, find the next bookmark, find theprevious bookmark, and delete all bookmarks. The Bookmarks group is shown in the followingimage.

WebFOCUS App Studio Reference Guide 97

2. Using the WebFOCUS App Studio Interface Components

Page 98: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Toggle

Turns bookmarks on or off.

Next

Goes to the next bookmark.

Previous

Goes to the previous bookmark.

Delete All

Deletes all bookmarks.

Position Group

The Position group allows you to place your curser at the desired line and allows you to turn offline numbers. The Position group is shown in the following image.

The commands are:

Goto Line

Displays the current line your curser is on. You can type a different line number into the textbox to place your curser on that line.

Show Line Numbers

Displays or hides line numbers. This option is selected by default.

98 WebFOCUS

Ribbon

Page 99: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Case/Comment Group

The Case/Comment group contains options for changing selected text to uppercase or lowercase.The Case/Comment group is shown in the following image.

The commands are:

Upper

Changes the selected text to uppercase (all capital letters).

Lower

Changes the selected text to lowercase (all lowercase letters).

Change Case

Changes the case of the selected text to lowercase or uppercase depending on how theselected text appeared first.

Add Comment

Inserts a new comment line if your pointer appears on a new line or changes an active lineof text to a comment.

Remove Comment

Deletes the previous comment change. This option is similar to the Undo command on theQuick Access Toolbar.

Options Group

The Options group contains commands that you can use to format the text. The Options groupis shown in the following image.

WebFOCUS App Studio Reference Guide 99

2. Using the WebFOCUS App Studio Interface Components

Page 100: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Font Style

Opens the Font and Color Settings dialog box, where you can modify the appearance of thesyntax in a procedure.

Show Whitespace

Replaces spaces between characters with a visual indicator.

Tab Size

Controls the number of spaces a tab character uses.

Tab Options

Provides the options to control tab characters. You can substitute spaces for tab charactersor keep tab characters in the syntax.

Auto Indent

Automatically indents the syntax within a procedure.

Reset All

Returns all options to their default settings.

WebFOCUS Administration Menu

From this menu, you can access the WebFOCUS Administration Console, the Reporting ServerConsole, the Security Center, the BI Portal, and the ReportCaster Console. You can also createdeferred status reports from this menu. The WebFOCUS Administration menu is shown in thefollowing image.

100 WebFOCUS

Ribbon

Page 101: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS Administration menu is only available when you select an environment in theEnvironments Tree panel. The options available to you change, depending on the developmentarea that you select in the Environments Tree panel. Deferred Status is only available when youselect a Content node in the Environments Tree panel. The Reporting Server Console is onlyavailable when you select a Web Applications node in the Environments Tree panel.

WebFOCUS Administration Console

Opens the WebFOCUS Administration Console in the App Studio Viewer by default. Here youcan add remote Reporting Servers, configure application settings and client settings, anduse WebFOCUS diagnostic tools.

Reporting Server Console

Opens the Web Console. where a server user with the required metadata privileges canconfigure and manage adapters, and can create synonyms through the Reporting ServerConsole. You can use the Server Console as an alternative to App Studio to configure adapters,add remote servers, and create synonyms. In addition, many other configuration options areavailable through the Server Console.

For a full understanding of configuration options and server capabilities, see the ServerConsole Help system or the following manuals: Server Administration for UNIX, Windows,OpenVMS, IBM i, and z/OS and Adapter Administration for UNIX, Windows, OpenVMS, IBM i,and z/OS.

Note:

The Reporting Server Console is sometimes referred to as the Web Console.

For App Studio installations that allow stand-alone development, the local, defaultReporting Server normally runs with security OFF, and the user who installed App Studiois the default administrator.

Security Center

Opens the WebFOCUS Security canvas. Here you can set user privileges and roles for usersand groups.

BI Portal

Opens the WebFOCUS BI Portal in the App Studio Viewer by default. Here you can createdynamic websites using the content you create in App Studio.

WebFOCUS App Studio Reference Guide 101

2. Using the WebFOCUS App Studio Interface Components

Page 102: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Deferred Report

Opens the Deferred Report Status console in the App Studio Viewer by default. Here you candefer running a report until a specified time. This option is only available in the Content node.

ReportCaster Console

Opens the ReportCaster Console in the App Studio Viewer by default. Here you can scheduleand distribute WebFOCUS reports, the content of URLs, and files.

Style Menu

You can customize the appearance of the App Studio interface from the Style menu. From thismenu, you can select a theme with which to customize the App Studio interface. The themesavailable to you are determined by the themes that you have installed for Microsoft® Office. TheStyle menu is always available. It is located in the upper-right corner of the App Studio interface,as shown in the following image.

Note: When you close App Studio, the theme that you have selected is saved and used thenext time you launch the product.

Help Button

You can access the App Studio Help content, App Studio licensing information, and other productoptions, from the Help menu. The Help button is always available. It is located in the upper-rightcorner of the App Studio interface.

102 WebFOCUS

Ribbon

Page 103: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

From the Help menu, you can do the following:

Access the online Help system. Click Help Topics to open the App Studio Help window.

Reopen the Welcome screen after it has been closed. Click Display Welcome Screen to reopenthe Welcome screen.

Reset the interface layout. Click Reset Layout to return the App Studio interface settings, suchas the ribbon, Quick Access Toolbar, panels, and styling, to their default. This change will notoccur until App Studio is restarted.

View license and product information. Click About to open the About WebFOCUS App Studiodialog box.

Environments Tree Panel

From the Environments Tree panel, you can:

Customize the appearance of the panel.

Filter content listed under the WebFOCUS environments in the Configured Environments tree.

Access configured WebFOCUS environments to create new content or modify existing content.

WebFOCUS App Studio Reference Guide 103

2. Using the WebFOCUS App Studio Interface Components

Page 104: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Environments Tree panel is shown in the following image.

The Environments Tree panel opens with App Studio.

For more information on customizing the Environments Tree panel, see Using the PanelCustomization Options on page 141.

104 WebFOCUS

Environments Tree Panel

Page 105: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Environments Tree Toolbar

The Environments Tree toolbar contains the buttons and menus that you need to navigate, filter,and sort the information that appears in the Configured Environments tree.

View Options

Presents options for viewing items (for example, alphabetical sorting or grouping), as describedin the following table.

FunctionNameOption

Sorts the files alphabetically from A to Z.View items sorted in Alphabeticalorder

Sorts the files alphabetically from Z to A.View items sorted in reverseAlphabetical order

Sorts the files by the last saved time, in descending order.View items sorted inChronological order

Sorts the files by the saved time, in ascending order.View items sorted in reverseChronological order

Sorts the files by file type.View Items grouped by File Type

Displays the files by title and sorts the files by title. If an itemdoes not have a title, its name is shown.

View items by Title

Displays the files by name and sorts the files by name. If anitem does not have a title, its name is shown.

View items by Name

Toggles between showing files that belong to the Project orfolder, or files that are visible in paths associated with theProject or folder.

Available only in the Local Projects and repository nodes.

Note: A red line appears to the left of the files that arenot added to a Project or folder, but are visible in the pathsassociated with the Project or folder.

Show All Files in AssociatedPaths

WebFOCUS App Studio Reference Guide 105

2. Using the WebFOCUS App Studio Interface Components

Page 106: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

FunctionNameOption

Refreshes the files and folders that you see in the ConfiguredEnvironments tree. Refresh View also shows the dependenciesof the file or folder that you have selected.

Refresh View

Filters the tree to show all file types.Show All files

Filters the tree to show only this file type.Show only Procedure files

Filters the tree to show only this file type.Show only Master files

Filters the tree to show only this file type.Show only HTML files

Filters the tree to show only this file type.Show only Maintain files

Filters the tree to show only this file type.Show only Image files

Filters the tree to show only this file type.Show only ReportCaster files

Filters the tree to show only this file type.Show only Library files

Filters the tree to show only this file type.Other files

Configured Environments Tree

The Configured Environments tree displays the WebFOCUS Environments, Data Servers, LocalProjects, and Web Applications nodes. If you have the Managed Reporting version of App Studioand WebFOCUS Release 8.0 Version 05 or higher installed on your machine, or configured aremote WebFOCUS 8 environment, a repository node also appears.

106 WebFOCUS

Environments Tree Panel

Page 107: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If a node under the Configured Environments Tree has been populated and contains content, agreen dot is shown on the node icon. If a node has been populated and does not contain anycontent, a red dot is shown on the node icon. If a node has not been populated, App Studio doesnot know if there is any content in that node and no dot is shown on the node icon. If you createa new content in a node with a red dot on it, that node now has content in it and will change toa green dot. If you delete all content in a node with a green dot, that node now has no contentin it and will change to a red dot.

Note: By default, the Configured Environments tree sorts files and folders by title. If you changethe sorting options to View Items by Name, the names of your files and folders will display.Whether you display content by title or by name, the Content, Data Servers, Local Projects,and Web Applications nodes do not display differently.

You can expand the nodes on the Configured Environments tree to view your configuredenvironments, projects, folders, and application files. Use the filtering commands on the toolbarto sort files alphabetically, display by name or title, or include the associated paths.

From the Configured Environments tree, you can manage content for each of your WebFOCUSenvironments. This includes creating new folders or files, opening existing files, and copying files.Right-click a node, folder, or file to view the shortcut menu of options. You can also open filesby double-clicking them.

Note:

You can use the shortcut menu on any file, select New, and click the type of content youwant to create, to create new content in the same location.

If a Master File is located in a nested folder (for example, folder xyz is within folder abc),you must first use the Reporting Server Console to map the nested application folder asa new application.

You can copy files from your desktop to the Configured Environments Tree.

From the Configured Environments node, you can access the following shortcut menu option:

Add. Opens the WebFOCUS Environments Properties dialog box where you can add additionalenvironments.

From your WebFOCUS environment, in the Environments Tree panel, you can access the followingshortcut menu options:

Sign In. Allows you to sign in to your WebFOCUS environment. This option is only availableif you are not already signed in to your WebFOCUS environment.

WebFOCUS App Studio Reference Guide 107

2. Using the WebFOCUS App Studio Interface Components

Page 108: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Sign Out. Allows you to sign out of your WebFOCUS environment. This option is only availableif you are already signed in to your WebFOCUS environment.

Note: You can copy files that are not in App Studio and paste them in the ConfiguredEnvironments tree to use those files when creating your application.

For more information, see WebFOCUS Environment Properties on page 115.

Data ServersReference:

The Data Servers node lists each Reporting Server that the WebFOCUS Client can access. Thisnode expands to display the files that you can use to develop WebFOCUS applications successfully.

From the Applications folder or a file, you can access the following shortcut menu options:

New Application. Creates a new application folder.

Configure Application Path. Opens the Application Path dialog box from which you cancreate applications, add applications to the search path, map and reorder applications, deleteapplications or mappings from the path.

Show Applications in Path. Shows all applications that are in the designated path.

From an application folder, you can access the following shortcut menu options:

New. Creates a new folder or file. The following shortcut menu options are available whenpointing to New:

Procedure. Creates a new procedure folder in the your current application folder.

Report. Creates a new report.

SQL Report. Creates a new SQL report.

Chart. Creates a new chart.

SQL Chart. Creates a new SQL chart.

HTML/Document. Creates a new HTML page or document.

XML Document with ESRI Configuration. Creates a new XML document using an ESRIconfiguration.

Application. Creates a new application folder in your current application folder.

Paste. Pastes cut or copied folder or file.

Rename. Changes the name of the selected folder or file.

108 WebFOCUS

Environments Tree Panel

Page 109: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Delete. Deletes the selected folder or file.

For more information, see How to Add a New Project on page 128.

From a Master File the following shortcut menu options are only available in the Data Serversarea:

Configure Application Path. Allows you to edit the application path of a Master File. Thisoption is unavailable if you do not have the appropriate access privilege.

Local ProjectsReference:

You can use the a Local Projects node to develop content if, during installation, you used a serialnumber that allows project development. The Local Projects node is part of the ConfiguredEnvironments tree. It helps you organize, develop, maintain, and deploy WebFOCUS applicationsas a project.

Local Projects does not require the web-tier APPROOT and the Reporting Server APPROOT tomatch. This is only necessary if you are developing content that requires the use of the ReportingServer. An example of content that uses the Reporting Server would be an HTML Page that runsprocedures

If the APPROOTs do not match you will still see the Local Projects node and can create newprojects. However, the content you create can only be saved on the web tier and cannot accessReporting Server files. An example of this type of content would be an HTML page that does notrun procedures.

You can uncheck the option, Start local Reporting Server, in the App Studio Options dialog box,and,if you try to create Reporting Server content, such as a report, you will recieve an error whenselecting a Master File.

You can specify a Reporting Server to use for project development in the Environments List dialogbox.

From a project folder, you can access the following shortcut menu options:

New Project. Creates a directory in which you store your procedures. Opens the New Projectdialog box which facilitates the creation of your new project.

From an application folder or a file, you can access the following shortcut menu options:

Paste. Pastes cut or copied folder or file.

Rename. Changes the name of the selected folder or file.

Delete. Deletes the selected folder or file.

WebFOCUS App Studio Reference Guide 109

2. Using the WebFOCUS App Studio Interface Components

Page 110: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

New. Creates a new file. The following shortcut menu options are available when pointing toNew:

Procedure. Creates a new procedure folder in the your current application folder.

Report. Creates a new report.

SQL Report. Creates a new SQL report.

Chart. Creates a new chart.

SQL Chart. Creates a new SQL chart.

HTML/Document. Creates a new HTML page or document.

Maintain Procedure. Creates a new Maintain file.

Synonym. Creates a new Master File after you have selected a configured adapter, orconfigure a new adapter.

Synonym via Metadata Canvas. Creates a new Master File in the Metadata canvas.

Define Function Library. Creates a user-defined function library. Any user-defined functionscreated in this library are available for use in any content created within the same folderas the library. After the creation of the first function, you can create additional functionsor editing existing ones. Once the initial function library is created, future additions ormodifications are done through the Procedure View panel.

Upload Data. Uploads your content.

JavaScript File. Creates a new JavaScript file from which you can create original JavaScript.

Cascading Style Sheet. Creates a base template from which you can create a uniqueCascading Style Sheet (CSS).

WebFOCUS Stylesheet. Creates a template WebFOCUS Stylesheet.

Text Document. Creates a text document that can be stored to a local project. You canuse the add or remove comment to comment the file.

For more information, see How to Add a New Project on page 128.

110 WebFOCUS

Environments Tree Panel

Page 111: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

RepositoryReference:

The Repository node is storage space for data or information, and allows you to use App Studioto administer and develop against a Managed Reporting environment. The Repository node letsyou manage resources and applications on remote servers, as well as on your local machine ifyou have performed a full installation of App Studio. You can create and edit application files onall remote servers from one easily accessible interface. You can also create and administerreports for Managed Reporting from a Windows application rather than a web browser.

From a repository node, you can access the following shortcut menu options:

New Folder. Creates new folder.

Mode Manager. Allows you to edit private files, if you have the proper authorization setting.

Hide/Show. Allows you to hide or show a folder to a user. You can also change this optionfrom the File/Folder Properties panel by changing the Do not show on user’s list property.

Security. Enables you to control user permissions, which limit what development areas auser can access.

ReportCaster Explorer. Opens the ReportCaster Explorer.

From a folder or file, in the repository, you can access the following shortcut menu options:

New. Creates a new file. The following shortcut menu options are available when pointing toNew:

Procedure. Creates a new procedure folder in your current application folder.

Report. Creates a new report.

SQL Report. Creates a new SQL report.

Chart. Creates a new chart.

SQL Chart. Creates a new SQL chart.

HTML/Document. Creates a new HTML page or document.

Visualization. Creates a new chart, map, or grid.

Alert. Creates a new alert.

Reporting Object. Creates a new reporting object.

URL. Creates a new URL.

Cascading Style Sheet. Creates a new Cascading StyleSheet.

WebFOCUS App Studio Reference Guide 111

2. Using the WebFOCUS App Studio Interface Components

Page 112: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS StyleSheet. Creates a new WebFOCUS Stylesheet.

Text Document. Creates a new text document.

Schedule. Creates a new schedule.

Distribution List. Creates a new distribution list.

Library Access List. Creates a new library access list.

Folder. Creates a new folder.

Publish. Enables you to publish a selected folder within the repository.

Unpublish. Enables you to unpublish a selected folder within the repository.

Security. Enables you to control user permissions, which limit what development areas auser can access.

Rename. Changes the name of the selected folder or file.

Delete. Deletes the selected folder or file.

ReportCaster Explorer. Opens the ReportCaster Explorer.

Note: For more information on publishing and unpublishing folders and items within therepository, see the WebFOCUS Security and Administration manual.

SchedulingReference:

Scheduling allows you to indicate the method and time at which the procedure should run. Youcan schedule a procedure using one of the following options:

Email

FTP

Printer

Report Library

Managed Reporting

For more information, see the ReportCaster manual.

112 WebFOCUS

Environments Tree Panel

Page 113: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Web ApplicationsReference:

The Web Applications node allows you to open files with the Text Editor, or the mode you usedto create them.

Note: Based on the file type, different options may display.

From the Web Applications node, you can access the following shortcut menu options:

New Application. Creates a new application folder.

From an application folder, you can access the following shortcut menu options:

Rename. Changes the name of the selected folder or file.

Delete. Deletes the selected application folder.

New. Creates a new file. The following shortcut menu options are available when pointing toNew:

HTML File. Creates a page in html format. You can import existing HTML content, as well.

JavaScript File. Creates a new JavaScript file from which you can create original JavaScript.

Cascading Style Sheet. Creates a base template from which you can create a uniqueCascading Style Sheet (CSS).

Delete. Deletes the selected folder or file.

Properties. Displays the folder properties in the File/Folder Properties panel.

From a file, you can access the following shortcut menu options:

Open in Text Editor. Opens the file in the Text Editor canvas.

New. Creates a new file. The following shortcut menu options are available when pointing toNew:

HTML File. Creates a page in html format. You can import existing HTML content, as well.

JavaScript File. Creates a new JavaScript file from which you can create original JavaScript.

Cascading Style Sheet. Creates a base template from which you can create a uniqueCascading Style Sheet (CSS).

Delete. Deletes the selected folder or file.

Copy. Copies the selected file to the clipboard where you can paste it to a different node.

Rename. Changes the name of the selected file.

WebFOCUS App Studio Reference Guide 113

2. Using the WebFOCUS App Studio Interface Components

Page 114: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Delete. Deletes the selected file.

Properties. Displays the folder properties in the File/Folder Properties panel.

Node PopulationReference:

Population is a check to see what content, if any, is contained within a node in the ConfiguredEnvironments tree. Node population occurs when you select a node in the Configured Environmentstree. The node icon will be different depending on whether population has occurred. If a nodecontains files after population a green dot appears on the node icon. If a node does not containfiles after population, a red dot appears on the node icon.

DescriptionIcon

If a node has not been populated.

If a node has been populated and contains content.

If a node has been populated and does not contain files.

If a node has been populated and contains content, deleting that content will change the greendot to a red dot. Conversely, if a node has been populated and contains no content, creatingcontent in that node will change the red dot to a green dot.

Master File Shortcut Commands

The following shortcut menu options are available for a Master File:

Open. Opens the Master File in the Metadata canvas.

Open in Text Editor. Opens the Master File in the Text Editor canvas.

Open in Windows Associated Tool. Opens the Master File in your Windows associated tool.

Refresh Synonym. Regenerates the synonym. Use this option if the underlying object hasbeen altered.

Sample Data. Displays sample output for the Master File in the App Studio Viewer.

Update Assist. Opens the Update Assist dialog box where you can add records, updaterecords, or delete records against any data source for which you have read and write access.

114 WebFOCUS

Environments Tree Panel

Page 115: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Check. Tests the validity of the Master File.

Edit Access File as Text. Enables you to view and manually edit the Access File synonym.

Note: When a Master File is opened in the Text Editor canvas or the Metadata canvas, allother open options from the shortcut menu are unavailable.

Opening Files in the Configured Environments Tree

In addition to opening files through the Application menu, or from the Quick Access Toolbar, youcan also open files from the development areas in the Configured Environments tree.

To open a file in its native canvas, double-click the file or right-click the file, and then clickOpen.

To open a file in the Text Editor canvas, right-click the file and then click Open in Text Editor.

To open a file in a Windows Associated Tool, right-click the file and then click Open in WindowsAssociated Tool. This option appears only if a Windows associated tool is available. When youaccess this functionality, the file will open in a separate dialog box using the relevant Windowstool.

Note: Files can only be opened in one area of App Studio at a time to ensure that your changesare not overwritten by another opened version of the file. However, you are able to open a filein App Studio and in a Windows Associated Tool at the same time. To ensure that your changesare saved properly, you should only modify one opened version of the file at a time.

WebFOCUS Environment Properties

As you set up access to WebFOCUS environments, your settings are retained in a file namedwfscom.xml. WebFOCUS environment settings are typically stored in the following locations.

Windows 7:

drive:\Users\user_id\ AppData\Roaming\Information Builders\wfscom.xml

where:

user_id

Is your Windows user ID.

WebFOCUS App Studio Reference Guide 115

2. Using the WebFOCUS App Studio Interface Components

Page 116: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

This file and directory might not be visible by default. To see this directory, open WindowsExplorer. On the Tools menu, click Folder options. Click the View tab. Select Show hiddenfiles, folders, and drives, and click OK.

User IDs and passwords stored in wfscom.xml are encrypted to keep them confidential.

WebFOCUS environment properties apply to your current App Studio configuration.

To ensure access to the WebFOCUS tools that create charting procedures, alert procedures,and Reporting Objects, you must develop against WebFOCUS environments that are Release8.0 Version 0.5 or higher. When App Studio connects to a WebFOCUS environment, of aprior release, you will receive an error message, as shown in the following image.

You can choose to remove this environment from your configuration files or leave theenvironment, and continue to develop against other environments that you configure. Ifyou choose to remove the environment from your configuration files, you must restart AppStudio.

How to Add a WebFOCUS EnvironmentProcedure:

A WebFOCUS environment consists of a web server, a WebFOCUS Client, and a Reporting Server.Adding WebFOCUS environments lets you create and manage multiple environments, such asdevelopment, test, and production instances.

To add a WebFOCUS environment, do the following:

Specify a web server that includes a host name and port number.

Configure the HTML alias/context root to access the WebFOCUS Client.

116 WebFOCUS

Environments Tree Panel

Page 117: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Provide the appropriate user credentials if web server authentication is required.

The following procedure provides the information you need to add a WebFOCUS Environment.

1. On the Home tab, in the Utilities group, click Environments.

The Environments List dialog box opens, as shown in the following image. This dialog boxlists all WebFOCUS environments defined for App Studio.

WebFOCUS App Studio Reference Guide 117

2. Using the WebFOCUS App Studio Interface Components

Page 118: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Click Add.

The WebFOCUS Environment Properties dialog box opens, as shown in the following image.

At the top of the dialog box is the Description field, followed by the Environments Settingsarea. The Environments Settings area contains a series of buttons that represent componentsin a WebFOCUS environment, and the required parameter fields to configure that environment.When you configure an environment, the areas below the buttons can change according tothe parameters that are required.

3. In the Description field, type a description for the WebFOCUS environment. This descriptionappears in the Configured Environments tree.

118 WebFOCUS

Environments Tree Panel

Page 119: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The description cannot contain special characters, such as ., /, \, ?, *, and others.A message with characters not allowed appears if one of the restricted characters isdetected during validation.

4. In the Web Component area, specify the web server information.

For some environments, once you specify the web server, all other settings default. If theWebFOCUS environment you are accessing does not use default settings, or the componentsrequire authentication, click the appropriate button in the Environment Settings area toprovide the parameters. The areas that follow explain the parameters available for eachcomponent.

Note: WebFOCUS environment properties must be supplied in a specific order. For example,if web server security is enabled, you cannot set the WebFOCUS Client script name untilyou have provided valid web server credentials. Similarly, you cannot retrieve a list ofReporting Servers until you have provided a valid WebFOCUS Client Path.

As you select a component button in the WebFOCUS Environment Properties dialog box, AppStudio ensures that it has the necessary information before it displays the properties of thatcomponent in the lower part of the dialog box. If the required information is not available,you cannot proceed to the next component.

5. Click OK.

The WebFOCUS Logon - WebFOCUS dialog box, shown in the following image, opens andprompts you for a WebFOCUS ID and password.

WebFOCUS App Studio Reference Guide 119

2. Using the WebFOCUS App Studio Interface Components

Page 120: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS logon dialog box populates the ID wfdesktop, by default. This user ID isconfigured with WebFOCUS and allows self-service development: development from the LocalProjects, Data Servers, and Web Applications area.

Access to the Repository is restricted, and you cannot create new content with this user ID.You can only see and run published content.

There is a check box option on the logon dialog box for remembering the ID or password. Bydefault, it is not selected. If you select this box, your credentials are stored and encryptedin the wfscom.xml file, the local configuration file that stores information processed by theApp Studio communication layer.

To clear stored credentials, open the WebFOCUS Environment Properties dialog box andselect the environment that users need to make changes. Click WebFOCUS Client. UnderWebFOCUS Credentials, delete the User ID and Password information, and then clear theSupply Credentials check box.

Note: A logon dialog box can also opens for connection to the web server, applicationserver, or Reporting server, depending on the security implemented in the WebFOCUSenvironment that is being accessed.

6. Type the appropriate user name and password, and then click Logon.

The WebFOCUS Environment Properties dialog box closes.

7. In the Environments List dialog box, click OK.

Local Machine Properties

Local Machine properties are optional. Click the Local Machine button to access the WebFOCUSEnvironment Caching area. Select the options in this area to cache remote directory and fileinformation, and enable file-content caching.

120 WebFOCUS

Environments Tree Panel

Page 121: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the WebFOCUS Environment Caching area of the WebFOCUSEnvironment Properties dialog box. The file content caching location path is for a Windows 7machine.

In caching, copies of files or information stored on a remote machine are temporarily stored onyour local App Studio machine. App Studio then works with the locally stored files.

Caching speeds App Studio performance because remote machines are not accessed and queriedevery time you request information. This is especially useful when accessing mainframes or whena network connection is slow.

However, caching should not be used when multiple developers are working with the same filesbecause they could overwrite changes made by other developers. By default, caching is notenabled.

Two properties are available:

Cache remote directory and file information. This option caches information about filesstored in the WebFOCUS environment. This does not actually cache files, only informationabout them. If you select this property, App Studio does not requery the Reporting Serverevery time it needs a list of files stored in the WebFOCUS environment.

Enable file content caching. This option caches files typically stored on the server. AppStudio only retrieves files once. When you want to read or edit your files, App Studio uses acached copy. When you edit a cached file, the edited cached file is returned to the server andreplaces the actual file on the server.

App Studio retrieves information and files the first time you request them and then caches themlocally. App Studio then uses the cached copies until App Studio is restarted, or you click theClear buttons for each level.

WebFOCUS App Studio Reference Guide 121

2. Using the WebFOCUS App Studio Interface Components

Page 122: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

If you create a new synonym, you have to perform a refresh to view the new files in theApp Studio Environments Tree panel when caching is enabled.

You cannot use the caching options for the local development environment if the SourceControl feature is enabled.

Web Component Properties

The Web Components button is typically selected by default. Web Component properties specifyhow App Studio accesses the web server. The web server must be identified before any othercomponents. The following image shows the Web Component area of the WebFOCUS EnvironmentProperties dialog box.

The following properties are available:

Host Name/IP Address. Specifies the host name or IP address where your web server isrunning. This field is required and has no default value.

Protocol. The protocol to use for accessing the web server (HTTP or HTTPS).

Port. The TCP/IP port for accessing the web server. Port 8080 is the default.

122 WebFOCUS

Environments Tree Panel

Page 123: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

HTML Alias. Identifies the alias used to access content from the WebFOCUS environmentdirectory, ibi_html. In App Studio, there is no need to configure an ibi_html alias. The ibi_htmlcontent is accessed through the ibi_apps alias. The configuration of this alias is:

/ibi_apps/ibi_html

where:

ibi_apps

Is customizable.

ibi_html

Is constant.

Client Path. Specifies how calls are made from App Studio to the web server. By default,when you add a new WebFOCUS environment, it is set to use the WebFOCUS Servlet with thedefault ibi_apps context path:

/ibi_apps/WFServlet

where:

ibi_apps

Is customizable.

WFServlet

Is constant.

If the WebFOCUS environment uses a non-default context path, clear the Use Default checkbox and provide the correct Client Path. For example:

/ibi_apps8/WFServlet

If the Client Path is incorrect for the environment, you receive an error when you click theWebFOCUS button at the top of the page, or when you click OK to exit and save your changes.

If you do not know your path, ask your WebFOCUS Administrator or check the WebFOCUSAdministration Console of the environment to which you want to connect. The Client Pathsettings for the environment are located under Utilities and Client Selection.

Use Default. Specifies that the default ibi_html alias is used. Keep this option selectedunless you change the HTML Alias value.

WebFOCUS App Studio Reference Guide 123

2. Using the WebFOCUS App Studio Interface Components

Page 124: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

If the Client Path field is empty, and the Use Default check box is selected, there is aproblem connecting to the WebFOCUS Client. Ensure your web server is started andthat you typed the correct properties on the Web Components page. If you cannotconnect, contact your WebFOCUS Administrator.

If while providing a custom HTML Alias and Client Path, your connection fails becauseof incorrect information and the Client Path is deleted, you can clear Use Default torestore the values you entered. Click the Use Default check box to edit the HTML Aliasand Client Path, and type the correct information. If a custom ibi_apps alias or contextpath is used, it needs to be entered in both the HTML Alias and Client Path fields. Forexample:

HTML Alias:

/ibi_apps8/ibi_html

Client Path:

/ibi_apps8/WFServlet

Connection timeout. The default time to connect to a WebFOCUS environment is 60 seconds.However, in some slow systems this needs to be increased to avoid connection failures whenthe timeout period is reached. If timeout issues are experienced, please increase this to 240or higher. Also, increasing the timeout can address issues with slow environments orenvironments that have many resources (Applications/files) during development.

Web Component Authentication. Specifies whether authentication is required on the webserver. To set security, select Basic in the drop-down list, and type a web server user ID andpassword. If this is set to None, the web server allows anonymous access.

For more information, see the WebFOCUS Security and Administration manual.

WebFOCUS Properties

When you click the WebFOCUS button, App Studio makes a connection to your web server toretrieve information about the WebFOCUS environment. Therefore, you have to first specify WebComponent properties, and your web server must be running. The following image shows theWebFOCUS area of the WebFOCUS Environment Properties dialog box.

124 WebFOCUS

Environments Tree Panel

Page 125: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You are prompted to sign in to WebFOCUS to verify your configuration. You will also be promptedto sign in to WebFOCUS if you click OK to exit the dialog box.

The following properties are available:

Client Path. Is specified in the WebFOCUS Component properties area, and only appears inthis pane for reference. This field is read-only and can only be changed in the WebFOCUSComponent properties area.

Select Language. Specifies the language of the WebFOCUS Client.

Supply Credentials. Specifies whether to supply and store credentials when you connect toWebFOCUS and access the environment.

When the correct WebFOCUS Client Path is provided, you can specify properties for the remainingcomponent.

Managed Reporting and ReportCaster Properties

Managed Reporting and ReportCaster properties are not available in this version of App Studio.

Data Server Properties

You can set authentication and view available Reporting Servers by clicking the Data Serversbutton. When you select Data Servers, App Studio connects to the WebFOCUS Client and retrievesa list of servers from its communication configuration file (odin.cfg).

WebFOCUS App Studio Reference Guide 125

2. Using the WebFOCUS App Studio Interface Components

Page 126: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the WebFOCUS Data Servers area of the WebFOCUS EnvironmentProperties dialog box.

The following property is available:

Supply Credentials. If selected, you can type a WebFOCUS Server ID and password for theserver highlighted in the list. Clicking Set stores the credentials with the environment properties,and the ID entered is shown next to the server in the list. The credentials are checked thenext time you use a feature on that server, not when you click Set.

Project Development Properties

Note: These properties only apply to self-service application development, and when performingproject development.

If you use remote Project-based development and your remote environment has multiple ReportingServers, click the Project Development button to specify which server to use when processingrequests. This server is referred to as the Project Development Server. The Project DevelopmentServer and the WebFOCUS Client must be installed on the same machine or use the sameApplication Root directory (APPROOT directory) as each other.

126 WebFOCUS

Environments Tree Panel

Page 127: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the Project Development Server area of the WebFOCUS EnvironmentProperties dialog box.

The following property is available:

Project Development Server. This specifies which server to use for Project Development.All servers defined in the WebFOCUS Client appear in the drop-down list.

How to Edit an Existing WebFOCUS EnvironmentProcedure:

1. On the Home tab, in the Utilities group, click Environments.

The Environments List dialog box opens, as shown in the following image.

2. Select the environment that you want to edit.

WebFOCUS App Studio Reference Guide 127

2. Using the WebFOCUS App Studio Interface Components

Page 128: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Click Properties.

The WebFOCUS Environment Properties dialog box opens, as shown in the following image.

4. Edit the WebFOCUS environment accordingly, and then click OK to accept your changes.

5. In the Environments List dialog box, click OK.

How to Add a New ProjectProcedure:

To add a project to the Local Projects node:

1. In the Configured Environments tree, right-click the Local Projects node, and select NewProject.

The Create a Project wizard opens.

128 WebFOCUS

Environments Tree Panel

Page 129: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In the Create a Project - Step 1 of 2 dialog box, you can:

Type a name for the new project you are creating.

Select a different directory name, or browse for an existing directory.

View the location and name of the new project.

2. In the first input field, type a name for the new project. The name can be a maximum of 18characters in length including spaces.

3. The Create a Project wizard displays the project name as the default directory in the secondinput field. You can optionally enter the name of a subdirectory associated with anotherproject file, so that the new project shares project files with the existing project.

The location and name of the new project displays at the bottom of the dialog box.

4. Click Next.

A message displays if the directory does not exist.

5. Click Yes to create the new directory.

The Create a Project - Step 2 of 2 dialog box opens.

From this dialog box, you can add other directories to the project path. Project files in thosedirectories are visible to the project and are accessible for development.

6. Click Add to add other directories to the project path.

7. Select a folder you want to add to the project path, and then click OK.

Repeat this step to add more directories to the project path.

To change the order of the directories, select the directory, and click Move Up or MoveDown.

To remove a directory from the list, select the directory, and click Remove.

8. When you are satisfied with the order of the directories, and have no other changes, clickFinish.

The new project now appears under the Local Projects node.

You can update the directory folders associated with a Project after you create it by right-clicking the Project and selecting Properties. The Properties dialog box opens, click the Pathstab. In the Related Application Paths area, you can add, delete, and reorder the directoryfolders. Click OK to accept the changes.

WebFOCUS App Studio Reference Guide 129

2. Using the WebFOCUS App Studio Interface Components

Page 130: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Mode Manager

If you have the manage private resources permission, you can use Mode Manager to view andedit private files. To enable Mode Manager, right-click on the Repository node and click ModeManager. Your view refreshes, displaying all private files in the Repository. You can open andmake changes to these private files as needed. When you are finished, right-click on the Repositorynode and click Mode Normal. Your view refreshes, hiding the private files in the Repository node.

Note: When a file in the Repository is marked as shared, and you do not have permission tosave the original file, you will only be allowed to use the Save As command to save the file.This will allow you to save the file under a different name, leaving the original file untouched.

Environments Detail Panel

The Environments Detail panel is an optional panel, which contains panel customizationcommands, the Environments Detail toolbar, the Configured Environments tree, and the Detailspane. To display the Environments Detail panel, on the Home tab, in the View group, select theEnvironments Detail check box.

The Environments Detail panel is similar to the Environments Tree panel except that content isdisplayed in the Details pane rather than under the Configured Environments tree.

When you select a folder in the Configured Environments tree, the content within that folder isshown in the Details pane.

For more information on customizing the Environments Detail panel, see Using the PanelCustomization Options on page 141.

130 WebFOCUS

Environments Detail Panel

Page 131: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Environments Detail Toolbar

The Environments Detail toolbar contains the buttons and menus that you need to navigate andfilter the information that appears in the Configured Environments tree.

View Options

Presents options for viewing items (for example, alphabetical sorting or grouping), as describedin the following table.

FunctionNameOption

Displays the files by title and sorts thefiles by title. If an item does not have atitle, its name is shown.

View items by Title

Displays the files by name and sorts thefiles by name. If an item does not have atitle, its name is shown.

View items by Name

Toggles between showing files that belongto the Project or folder, or files that arevisible in paths associated with the Projector folder.

Available only in the Local Projects andrepository nodes.

Note: A red line appears to the left ofthe files that are not added to a Projector folder, but are visible in the pathsassociated with the Project or folder.

Show All Files in AssociatedPaths

Refreshes the files and folders that yousee in the Configured Environments tree.Refresh View also shows the dependenciesof the file or folder that you have selected.

Refresh View

Filters the tree to show all file types.Show All files

Filters the tree to show only this file type.Show only Procedure files

WebFOCUS App Studio Reference Guide 131

2. Using the WebFOCUS App Studio Interface Components

Page 132: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

FunctionNameOption

Filters the tree to show only this file type.Show only Master files

Filters the tree to show only this file type.Show only HTML files

Filters the tree to show only this file type.Show only Maintain files

Filters the tree to show only this file type.Show only Image files

Filters the tree to show only this file type.Show only ReportCasterfiles

Filters the tree to show only this file type.Show only Library files

Filters the tree to show only this file type.Other files

Note: To sort content in the Environments Detail panel, you do not use the View Optionscommand. Instead, you would click the columns at the top of the Details pane to sort contentby either name, size, type, last modified, or location.

132 WebFOCUS

Environments Detail Panel

Page 133: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

File/Folder Properties Panel

The File/Folder Properties panel is always open and shows the properties of a project folder orthe files within a project. The File/Folder Properties panel is shown in the following image.

The options within this panel change according to the type of file or folder you select. You canview the properties of a file or folder in the Data Servers, Local Projects, and repository areas ofthe Configured Environments tree.

For more information on customizing the File/Folder Properties panel, see Using the PanelCustomization Options on page 141.

Editing Properties in the File/Folder Properties Panel

The following table defines the properties that you can change for each node within the File/FolderProperties panel.

WebFOCUS App Studio Reference Guide 133

2. Using the WebFOCUS App Studio Interface Components

Page 134: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The changes that you make in the File/Folder Properties panel are not reflected in theConfigured Environments tree until you click outside of the panel.

Editable Panel PropertiesElementNode

Title. Changes the title of the Data Server node in theConfigured Environments tree.

Name. Changes the name of the Data Server node in theConfigured Environments tree.

NodeData Servers

Title. Changes the title of the primary folder in theConfigured Environments tree.

Name. Changes the name of the primary folder in theConfigured Environments tree.

Primary Folder

Name. Changes the name of the selected folder in theConfigured Environments tree.

Sub-Folder

Name. Changes the name of the selected file in theConfigured Environments tree.

File

Title. Changes the title of the Local Projects node in theConfigured Environments tree.

Name. Changes the name of the Local Projects node in theConfigured Environments tree.

NodeLocal Projects

Name. Changes the name of the selected project folder inthe Configured Environments tree.

Application Paths. You can manually modify the name ofthe current application path or you can select a new pathusing the ellipsis (...) option.

Project Folder

Name. Changes the name of the file in the ConfiguredEnvironments tree.

Files

134 WebFOCUS

File/Folder Properties Panel

Page 135: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Editable Panel PropertiesElementNode

Title. Changes the title of the repository node in theConfigured Environments tree.

Name. Changes the name of the repository node in theConfigured Environments tree.

NodeContent/Repository

Name. Changes the name of the folder in the ConfiguredEnvironments tree.

Title. Changes the title of the folder in the ConfiguredEnvironments tree.

Summary. Adds summary information to the folderproperties.

Do not show on user’s list. This value is set to No bydefault. If Yes is selected, this folder will display on theuser’s list.

Auto Create My Content Folders. This value is set to Yesby default. You can optionally set this to No to disable thisfunctionality.

Server. This value defaults to the server that is currentlyin use. You can use the drop-down list to affiliate a differentserver with the folder.

Application Paths. This value defaults to the applicationpath indicated for the selected folder. You can modify thisvalue as needed.

Folder

WebFOCUS App Studio Reference Guide 135

2. Using the WebFOCUS App Studio Interface Components

Page 136: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Editable Panel PropertiesElementNode

Name. Changes the name of the file in the ConfiguredEnvironments tree.

Title. Changes the title of the file in the ConfiguredEnvironments tree.

Summary. Adds summary information to the folderproperties.

Do not show on user’s list. This value is set to No bydefault. If Yes is selected, this file will display on the user’slist.

Prompt for parameters. This value is set to Yes by default.If No is selected, you will not be prompted for parameters.

Run with OLAP. This value is set to No by default. If Yesis selected, you can run the report or procedure with OLAP.

Only run as deferred report. This value is set to No bydefault. If you select Yes, the report or procedure will runonly as a deferred report.

Schedule only. This value is set to No by default. If Yesis selected, you will only be able to schedule the report orprocedure.

Server. This value defaults to the server that is currentlyin use. You can use the drop-down list to affiliate a differentserver with the file.

Application Paths. This value defaults to the applicationpath indicated for the selected file. You can modify thisvalue as needed.

File

Application Paths Dialog Box

The Application Paths of a project folder (.gfa) display in the File/Folder Properties panel whenyou select the project from the Local Projects area. You can add, remove, or reorder the associatedapplication paths in the Application Paths dialog box.

136 WebFOCUS

File/Folder Properties Panel

Page 137: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Open the Application Paths dialog box by clicking the ellipsis button next to the Associated Pathsinformation. The Application Paths dialog box displays a list of applications that you can associatewith your project and a list of projects that are currently associated with your project.

Adding or Removing Applications

To add an application to the project, click the name of the application in the Available list, andthen click add. Click OK to view your changes in the File/Folder Properties panel.

To remove an application from the project, click the name of the application in Selected list, andthen click remove. Click OK to view your changes in the File/Folder Properties panel.

Reordering Applications

To reorder an application in the Available list, click the name of the Application and then click upor down. Click OK to view your changes in the File/Folder Properties panel.

View Tabs

You can use the view tabs to edit different areas of functionality for the same document. Thesetabs show information that would be inaccessible from any other view tab.

Design View Tab

The Design View tab is accessible when you are creating an HTML page or document. From here,you can design the layout of your page by adding controls and components to the canvas. Thisis tab is selected by default when you are creating an HTML page or document.

Parameters View Tab

The Parameters View tab is accessible when you are creating an HTML page or active dashboard.From here, you can create and modify parameter values, input controls, and customize parameterconditions. You can also bind parameters to controls and chain controls to one another.

Working With the Parameters View Tab

The Parameters tab enables you to create and modify parameter values, input controls, andcustomize parameter conditions. You may also bind parameters to controls and chain controlsto one another. The Parameters tab consists of the following components:

Input control objects.

You may select the input control object to view and edit the Properties and settings of thecontrol.

WebFOCUS App Studio Reference Guide 137

2. Using the WebFOCUS App Studio Interface Components

Page 138: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating an input control from the Design view prompts you to create a bound parameteron the Parameters tab.

Editing an input control, which is inserted when setting input controls for new parameters.

Add new parameters.

Right-click anywhere on the Parameters tab to add a new parameter.

Note: Manually adding a parameter creates an unbound parameter.

Refresh unresolved parameters.

All parameters on the parameters tab are parsed every two minutes to check if any areunresolved. If there are any unresolved parameters, their surrounding polygon is colored red.If you want to check for unresolved parameters on demand, right-click and select Refreshunresolved.

Binding controls and parameters.

Input controls and parameters can be bound and unbound from the Parameters tab.

You may bind a parameter to an input control, or bind an input control to a parameter.

Binding a parameter to a control makes it an incoming parameter that will populate thecontrol. Drag a parameter object to a control object on the Parameters tab.

Binding a control to a parameter will populate the parameter. Drag a control object to aparameter object on the Parameters tab.

Chain one control to another.

Chaining will populate controls based on the selected value from the prior control in the chain.You can chain static and dynamic controls, link or unlink parts of a chain, and create conditionson links in a chain. Chains are represented by lines connecting control objects on theParameters tab. By clicking the arrow head in a link of a chain, the Properties and settingsdialog box enables you to modify and set properties and conditions of the chain.

Note: Chaining is applicable only for controls, not parameters. For details about chaining.

138 WebFOCUS

View Tabs

Page 139: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Embedded JavaScript/CSS View Tab

The Embedded JavaScript/CSS View tab is accessible when you are creating an HTML page.From here, you can create JavaScript code and Cascading Style Sheets for use in your HTMLpage. You can reference existing Cascading StyleSheet files and JavaScript files by typing in theURL in the URL/Find file area. You can also search for these files by using the CSS or JavaScriptcommands.

Related Information:

Using JavaScript IntelliSense on page 82

Field View Tab

The Field View tab is accessible when you are creating or editing a synonym. From this tab, youcan see a table with all available fields. This is the default view tab when you are creating orediting a synonym.

For more information, see How to Create Procedures and Procedure Components on page 483.

Segment View Tab

The Segment View tab is accessible when you are creating or editing a synonym. The SegmentView tab shows the segments that the synonym contains.

List View Tab

The List View tab is accessible when you are creating or editing a synonym. The List View tabshows the fields in list form, with their properties displayed next to their name.

Modeling View Tab

The Modeling View tab is accessible when you are creating or editing a synonym. The ModelingView tab shows a graphical representation of the synonym. You can use the Modeling View tabto define dimensions for OLAP analysis, view Join properties, create cluster Joins, and add oredit segments.

Text View Tab

The Text View tab is accessible when you are creating or editing a synonym. The Text View tabshows the Master File in a text editor. You can manually edit the file from this tab.

WebFOCUS App Studio Reference Guide 139

2. Using the WebFOCUS App Studio Interface Components

Page 140: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Access File Text View Tab

The Access File Text View tab is accessible when you are creating or editing a synonym. TheAccess File Text View tab shows the description of the Access File for a synonym, which is usedto access the database.

140 WebFOCUS

View Tabs

Page 141: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Customizing WebFOCUS App Studio Panels3Chapter

Similar to the ribbon tabs, App Studio features open panels that provide additional optionsto assist in the development of your application. Not all panels open at the same time, nordo they provide the same options. When you launch App Studio for the first time, only theEnvironments Tree panel appears docked to the edge of the canvas. The File/FolderProperties panel also appears, but is auto hidden.

All panels, except the Environments tree panel, are auto hidden by default. You can controlthe visibility of the panels in the View groups on the Home tab and Utilities tab. You canalso customize the appearance and placement of each panel around your canvas.

In this chapter:

Using the Panel Customization Options

Using Handles

Using the Panel Customization Options

By default, all panels, except the Environments Tree panel, are auto hidden when they first open.You can use the panel customization options, which are located in the upper-right corner of thepanel, to change the appearance and location of the panels around the canvas.

How to Rearrange Panels on the CanvasProcedure:

To rearrange a panel on your canvas using the panel properties menu, follow these steps:

1. Click the Window Position button .

The panel properties menu opens, as shown in the following image.

WebFOCUS App Studio Reference Guide 141

Page 142: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Select an option from the panel properties menu.

The options available are:

Floating. Undocks the panel and allows you to move it freely around the canvas.

Docking. Docks the panel onto the edge of your canvas where it last appeared.

Tabbed Document. Opens the panel in the canvas area, as a tab. This option isunavailable in App Studio.

Auto Hide. Hides the panel as a tab on the edge of your canvas. When you pause overthe tab, the panel reopens. .

Hide. Closes the panel.

Note: You can also open the panel properties menu if you right-click the top of the panel.

How to Pin and Unpin Panels to the CanvasProcedure:

You can pin a panel to the canvas to keep it open while you develop your application. When youunpin the panel, it becomes auto hidden again, and appears as a tab on the edge of the canvas.When you hover the mouse over this tab, the panel reopens.

To pin a panel to your canvas, click the Auto Hide horizontal pin button .

To unpin a panel to your canvas, click the Auto Hide vertical pin button .

How to Close and Reopen PanelsProcedure:

To close a panel, click Close in the upper-right corner of the panel.

To reopen the panel, go to the Home tab, and in the View group, and select the appropriatecheck box.

Using Handles

You can dock floating panels within the canvas to ease accessibility. When you drag a panelacross the App Studio canvas, a set of handles appears. These handles guide the placement ofthe panel, and automatically dock the panel to the edge of the canvas upon which you rest themouse.

142 WebFOCUS

Using Handles

Page 143: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows an example of the handles that appear when you drag the EnvironmentsTree panel across the canvas.

How to Dock Panels Around the Canvas Using HandlesProcedure:

1. From the panel customization toolbar, click the arrow, and then click Floating.

2. Drag the panel across the canvas and rest the mouse on a handle.

WebFOCUS App Studio Reference Guide 143

3. Customizing WebFOCUS App Studio Panels

Page 144: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

When you rest the mouse over a handle, a shaded area appears. This shaded area providesa preview of where the panel will dock if you release the mouse, as shown in the followingimage.

3. Release the mouse when you are satisfied with the previewed location of the panel.

The panel automatically docks to the edge of the canvas.

144 WebFOCUS

Using Handles

Page 145: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Additional panels open as you develop applications throughout the product. To conserve spacearound the canvas, you can combine these panels. When you mouse over a docked panel, atabbed handle option appears, as shown in the following image.

This handle option combines the panels into a single container with tabs. You can switch betweenthe panels by clicking the appropriate tab at the bottom of the container. An example of theEnvironments Tree tab and File/Folder Properties tab, in a combined panel container, are shownin the following image.

WebFOCUS App Studio Reference Guide 145

3. Customizing WebFOCUS App Studio Panels

Page 146: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

146 WebFOCUS

Using Handles

Page 147: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating Reports in WebFOCUS App Studio4Chapter

In App Studio, you can create and edit reports using the Report canvas. When you createa new report, you use the Report Wizard.

This topic describes how to launch the Report Wizard to create reports. It also identifiesand explains the tabs and panels that are available when you are developing reports in theReport canvas.

In this chapter:

Launching the Report Wizard

Report Tab

Format Tab

Data Tab

Layout Tab

View Tab

Images Tab

Field Tab

Appearance Tab

Active Technologies Report Options Tab

Matrix Tab

Modeling Tab

Launching the Report Wizard

The Report Wizard allows you to create a new report procedure or SQL report procedure, andopen an existing report.

To open the Report Wizard:

On the Home tab, in the Content group, click Report.

In the Environments Tree panel, right-click an application folder, point to New, and click Report.

WebFOCUS App Studio Reference Guide 147

Page 148: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you choose to create a new report using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Report Wizard. You will not have to specifywhether you are creating a report or SQL report. You will instead be brought to the Selecta Data Source screen, with the location for your report already selected.

The Report Wizard opens, as shown in the following image.

From the Report Wizard, you can open a recent procedure, search for an existing procedure,create a new report or SQL report procedure, and access documentation resources.

How to Create a Report Using the Report WizardProcedure:

After you launch the Report Wizard, you can begin to create your report procedure.

Note: If you choose to create a new report using the shortcut menu in the Environments Treepanel, you will skip the first screen of the Report Wizard. You will not have to specify whetheryou are creating a report or SQL report. You will instead be brought to the Select a Data Sourcescreen, with the location for your report already selected.

1. Click Create Report.

148 WebFOCUS

Launching the Report Wizard

Page 149: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Navigate to where you want to create the new procedure and select a data source.

a. Select the Use Qualified Path checkbox if you want to only display the data sources inthe application folder.

b. Click Select Styling if you want to edit the style sheet for the report.

3. Click Finish.

The Report canvas and the Procedure View panel open.

4. Double-click fields in the Object Inspector, or drag them on to the canvas to add them to thereport.

5. Format your report by using the options on the Report, Format, Data, Layout, Images, View,Field, and Appearance tabs.

Tip: The Field and Appearance tabs appear when you select a data column on the Reportcanvas.

6. To save your report, click Save on the Quick Access Toolbar, or click Save or Save As fromthe Application menu.

7. To run your report, click Run on the Quick Access Toolbar, or click Run from the ApplicationMenu.

How to Create an SQL Report From an External .sql FileProcedure:

After you launch the Report Wizard, you can begin to create your SQL report procedure.

Note: If you choose to create a new SQL report using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Report Wizard. You will not have to specifywhether you are creating a report or SQL report. You will instead be brought to the Select aData Source screen, with the location for your report already selected.

1. Click Create SQL Report.

The SQL Report Wizard - SQL Data Source window opens.

2. Select a location for your SQL report.

3. Click Select Styling if you want to add a stylesheet to your report.

4. Click Next.

The SQL Report Wizard - Welcome window opens.

5. Click the Included from an external ‘.sql’ file option. This enables you to browse and selectexternal procedures that exist in the repository of the project.

WebFOCUS App Studio Reference Guide 149

4. Creating Reports in WebFOCUS App Studio

Page 150: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

6. Click Next. The SQL Report Wizard - Data access information window opens.

7. In the Select the database engine area, select a database from the drop-down list.

8. In the Select connection area, choose a connection from the drop-down list generated fromthe engine you selected.

9. Click Next. The SQL Report Wizard - Include external SQL file window opens.

10. Click Browse to select an external SQL file name or type the external SQL file name in thefield.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit.

11. Click Next. The SQL Report Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Report Wizard - SQL Data Source window.

12. Navigate to where you want to create the new procedure.

13. In the Enter a Procedure Name field, type a name for the SQL report.

Note: Typing a procedure name is not required to create a new report. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

14. Click Select Styling if you want to edit the style sheet for the report.

15. Click Finish.

The Report canvas and the Procedure View panel open. You can now add data to your reportand format the data using the tabs on the ribbon.

How to Pass SQL Commands to the RDBMS Using SQL PassthruProcedure:

After you launch the Report Wizard, you can begin to create your SQL report procedure.

Note: If you choose to create a new SQL report using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Report Wizard. You will not have to specifywhether you are creating a report or SQL report. You will instead be brought to the Select aData Source screen, with the location for your report already selected.

1. Click Create SQL Report.

The SQL Report Wizard - SQL Data Source window opens.

150 WebFOCUS

Launching the Report Wizard

Page 151: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Select a location for your SQL report.

3. Click Select Styling if you want to add a stylesheet to your report.

4. Click Next.

The SQL Report Wizard - Welcome window opens.

5. Click Type SQL statements in the report request. This enables you to type SQL commandsthat will be passed on to the RDBMS with the SQL Passthru feature.

6. Click Next. The SQL Report Wizard - Data access information window opens.

7. In the Select the database engine area, select a database from the drop-down list.

8. In the Select connection area, choose a connection from the drop-down list generated fromthe engine you selected.

9. Click Next. The SQL Report Wizard - Enter SQL statements window opens.

10. In the field box, type the SQL statements you want to pass to the RDBMS.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit.

11. Click Next. The SQL Report Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Report Wizard - SQL Data Source window.

12. Navigate to where you want to create the new procedure.

13. In the Enter a Procedure Name field, type a name for the SQL report.

Note: Typing a procedure name is not required to create a new report. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

14. Click Select Styling if you want to edit the style sheet for the report.

15. Click Finish.

The Report canvas and the Procedure View panel open. You can now add data to your reportand format the data using the tabs on the ribbon.

How to Import SQL Commands From an Existing .sql FileProcedure:

You can import commands from existing .sql files.

WebFOCUS App Studio Reference Guide 151

4. Creating Reports in WebFOCUS App Studio

Page 152: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you choose to create a new SQL report using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Report Wizard. You will not have to specifywhether you are creating a report or SQL report. You will instead be brought to the Select aData Source screen, with the location for your report already selected.

1. Click Create SQL Report.

The SQL Report Wizard - SQL Data Source window opens.

2. Select a location for your SQL report.

3. Click Select Styling if you want to add a stylesheet to your report.

4. Click Next.

The SQL Report Wizard - Welcome window opens.

5. Click Import from an existing ‘.sql’ file and click Next. This enables you to modify SQL codeafter importing it from an external file to the procedure being built. You can modify the requestusing bits of the code.

6. The SQL Report - Data access information window opens. In the Select database enginearea, select a database from the drop-down list.

7. In the Select the connection area, choose a connection from the drop-down list generatedfrom the engine you selected.

8. Click Next. The SQL Report Wizard - Import external SQL file window opens.

9. Type the SQL file name that you want to import or click Browse to select it.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit. You can edit these options here orin the next step.

10. Click Next. The SQL Report Wizard - Enter SQL statements window opens.

11. In the field box, type the SQL statements you want to pass to the RDBMS.

12. Click Next. The SQL Report Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Report Wizard - SQL Data Source window.

13. Navigate to where you want to create the new procedure.

14. In the Enter a Procedure Name field, type a name for the SQL report.

152 WebFOCUS

Launching the Report Wizard

Page 153: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Typing a procedure name is not required to create a new report. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

15. Click Select Styling if you want to edit the style sheet for the report.

16. Click Finish.

The Report canvas and the Procedure View panel open. You can now add data to your reportand format the data using the tabs on the ribbon.

Report Tab

You use the Report tab to modify report properties, change the style of rows and columns onyour report, or create filters. The Report tab contains the following groups: Filter, Report, TrafficLights, Style, and Links. The Report tab is located at the top of the App Studio interface and isavailable only when you are creating or working with a report. The Report tab is shown in thefollowing image.

Filter Group

You use the Filter group to define filter fields when creating a report. The Filter group is shownin the following image.

The commands are:

Filter

Filters fields using Where, If, Where Total, and Limits screening options. You can access theExpression Builder by selecting Where, If, or Where Total from the Filter drop-down menu.

WebFOCUS App Studio Reference Guide 153

4. Creating Reports in WebFOCUS App Studio

Page 154: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using the Expression Builder, you can create expressions quickly by selecting fields, relations,operators, and values from lists. You can base selection criteria on a specified value, avariable value, or a field value. For more information, see Using the Expression Builder onpage 154.

If you selecting Limits, the Retrieval Limits dialog box opens, where you can set the RecordLimit and Read Limit values. This enables you to set how much data is displayed or previewed.

Using the Expression Builder

The Expression Builder enables you to create expressions quickly by selecting fields, relations,operators, and values from lists. You can base selection criteria on a specified value, a variablevalue, or a field value.

You can access the Expression Builder by clicking Where, If, or Where Total from the Where/Ifdrop-down menu. The Expression Builder dialog box displays.

The Expression Builder is divided into four sections. The Data section is located in the upper-leftof the Expression Builder. The Criteria section is located to the lower-left of the Expression Builder.The Advanced section is located in the lower-right of the Expression Builder. The Expression Gridis located to the upper-right of the Expression Builder.

The Data section displays a list of all fields in the data source. Double-click or drag the field intothe Expression Grid to build an expression using the options provided. You can also drag fieldsto the Criteria section and the Advanced section, once it is enabled.

The Criteria section displays which expression you are working on, as well as which expressions,of the same type, you have already created. If you double-click a field and it is added to theExpression Grid, the field will be shown in the Criteria section. Alternatively you can drag a fieldinto the Criteria section begin working on a new expression. Dragging more than one field intothe Criteria section allows you to create multiple of whatever type of statement you selected(Where, If, or Where Total). For example, if you clicked Where to open the Expression Builder,then dragging more than one field into the Criteria section will create multiple Where expressions.Selecting an expression in the Criteria section will show you the details of that expression in theExpression Grid and/or the Advanced section.

Note: The type of expression you are creating is shown next to the Criteria section.

The Advanced section is where, instead of creating an expression using the Expression Grid, youare creating it using syntax. This is for if you do not want to use the Expression Grid to create anexpression. The Advanced check box is only available to be checked once a field is in the Criteriaor Expression Grid. Once the Advanced check box is checked, the Advanced section, the Functionbutton, and the Variable button are available for use.

154 WebFOCUS

Report Tab

Page 155: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Expression Grid is where you build an expression using the drop-down options available. Youcan add more fields to the Expression Grid to make a more complex expression by using OR andAND.

Expression Builder Dialog BoxReference:

The Expression Builder dialog box has the following sections:

Data section

Displays a list of all of the fields in the data source. Double-click or drag a field to add it tothe Expression Grid.

Expression Grid

Create an expression by using the drop-downs in correlation with a field.

You can delete expressions from the Expression Grid using the Delete key or right-click Deleteoption when either the And/Or or Column to filter columns are selected. If you use the Deletekey or right-click Delete option on any other column, it will only delete that column option.You can only delete entire expressions, using the Expression Grid, when there are multipleexpressions present. If you want to delete a single expression, you must do it from the Criteriasection.

And/Or

Displays the keyword used in the expression listed in the Expression list box. You must selectmore than one field for the expression to activate this option.

Parentheses

Allows you to add either one, two, or three parentheses before and after an expression.

Column to filter

The field you clicked or dragged in from the Data section. This field can be changed afterbeing added by clicking the drop-down list and selecting a different field.

Logical Relation

Displays a list of possible relations between the selected data source field and the value,parameter, or other field that WebFOCUS will compare it to. Select a relation to activate theCompare Type column.

The following relations are available from the drop-down list:

equals

does not equal

WebFOCUS App Studio Reference Guide 155

4. Creating Reports in WebFOCUS App Studio

Page 156: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

is greater than

is greater than or equal to

is less than

is less than or equal to

is

is not

contains

does not contain

matches the pattern

does not match the pattern

is like

is not like

is missing

is not missing

includes

excludes

is from

is not from

is in literal list

is not in literal list

is in external file of literals

is not in external file of literals

none

Note: The is and is not relations are only available for an IF statement. The matches thepattern, does not match the pattern, is like, is not like, is in literal list, is not in literal list,is in external file of literals, and is not in external file of literals relations are only availablefor a WHERE statement.

156 WebFOCUS

Report Tab

Page 157: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Compare Type

Indicates the nature of the comparison you wish to make to the field selected in the fieldsection.

The following is a list of the available Compare Types and a brief description of what eachis:

Value is a set value the user creates, using the Multiple or Single Value Builder, in theCompare Value section.

Field is a selected field the user specifies, using the Multiple or Single Value Builder,from the Compare Value section.

Parameter is a parameter created by the user, using the Variable Editor, in the CompareValue section.

Parameter (Dynamic) is a parameter option that allows a user to multiselect values usinga button. This option automatically generates the required syntax so that the VariableEditor does not need to be invoked.

Parameter (Static) is a parameter option that presents a value list to select from. Thisoption automatically generates the required syntax so that the Variable Editor does notneed to be invoked.

Parameter (Simple) is a parameter option that prompts the user to enter a value. Thisoption automatically generates the required syntax so that the Variable Editor does notneed to be invoked.

Function is a function created by the user, from the Compare Value section, using theFunction Arguments dialog box.

Import Values is a list of values, created by the user, using the Multiple or Single ValueBuilder, in the Compare Value section.

Note: The external file should be a text file with new line delimiters.

Other allows you to enter your own expression.

Note: After choosing Other and double-clicking on Compare Value to enter a value,you will be prompted with the following warning message.

If using a literal value, it must be enclosed in single quotes. Please use "Compare Type" "Value" instead for quotes to be added automatically.

WebFOCUS App Studio Reference Guide 157

4. Creating Reports in WebFOCUS App Studio

Page 158: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can choose to not show this message again by selecting the option at the bottom ofthe warning window.

Compare Value

Specifies the literal value, parameter, or other field to which the selected field is compared.

The choices available here are dependent on the selection you make in the Compare Typecolumn.

Criteria

The Criteria section shows the different expressions you created. Selecting an expression inthe Criteria section will show you that expressions details in the Expression Grid and/or theAdvanced section.

Advanced check box

This option can only be checked if there is an expression in the Criteria or Expression Gridsection. This option will enable you to use the Advanced section, the Function button, andthe Variable button.

Advanced section

In this section you can type an expression out rather than using the Expression Grid.

Function

Only available when Advanced is checked. Opens the Functions Arguments dialog box toassist in the creation of an expression that is being made with the Advanced section.

Variable

Only available when Advanced is checked. Opens the Functions Arguments dialog box toassist in the creation of an expression that is being made with the Advanced section.

Delete

Deletes an expression.

Up

Moves an expression up one.

Down

Moves an expression down one.

How to Display Records Based on Specified ValuesProcedure:

In the Expression Builder dialog box:

158 WebFOCUS

Report Tab

Page 159: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

1. Select a field name from the Data section.

The field is added to the Expression Grid.

2. Select a relation from the Logical Relation column.

3. In the Compare Type column, select Value.

4. Double-click the Compare Value column. The Multiple Value Builder dialog box opens.

5. Click the Select a field button and select a value from the list.

6. Double-click the value to add the value to the list.

Note: Repeat this process to add other values to the list.

7. Click OK.

The values are shown in the Compare Value column.

How to Display Records Based on a Variable ValueProcedure:

In the Expression Builder dialog box:

1. Select a field name from the Data section.

The field is added to the Expression Grid.

2. Select a relation from the Logical Relations column.

3. In the Compare Type column, select Parameter (Dynamic).

This creates a Multiselect OR parameter. If you want to make a single select parameter,double-click the Compare Value column to open the Variable Editor and change the VariableType to Single Select.

How to Display Records Based on Field ValuesProcedure:

In the Expression Builder dialog box:

1. Select a field name from the Data section.

2. Select a relation from the Logical Relations column.

3. In the Compare Type column, select Field.

4. Double-click on Compare Value to open the Single Value Builder.

5. Double-click a field from the Data Source section to move it to the Value List.

6. Click OK to close the Single Value Builder. The field is added to the Compare Value column.

WebFOCUS App Studio Reference Guide 159

4. Creating Reports in WebFOCUS App Studio

Page 160: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Display Records Based on Imported Values From an External FileProcedure:

In the Expression Builder dialog box:

1. Select a field name from the field list.

The field is added to the Expression Grid.

2. Select a relation from the Logical Relation column.

3. Select Import Values from the Compare Type list options.

4. Double-click the Compare Value column.

The Multiple Value Builder opens.

Note: A Single or Multiple Value Builder opens, based on your Logical Relation selection.In the Multiple Value Builder, you may select more than one value. In the Single ValueBuilder, only one value may be selected.

5. Click the Select File button to import values from an external file.

6. Select a text file from your local machine and click Open.

Note: The external file should be a text file with new line delimiters.

The imported values are loaded into the Data Source area of the Multiple Value Builder.

7. Double-click an imported value to add it to the Values List.

8. Click OK to close the Multiple Value Builder dialog box and return to the Expression Builder.

The imported values are added to the Compare Value area.

How to Select Multiple Values and FieldsProcedure:

In the Expression Builder dialog box, you can select multiple values or fields to be used for recordselection criteria by selecting options in the And/Or column. The And/Or column is only availableif you have more than one Column to Filter.

1. Select more than one field name from the fields window and drag them to the ExpressionGrid.

Note: For every Column to Filter after the topmost one, And is already selected for you.

160 WebFOCUS

Report Tab

Page 161: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Click the down arrow in the And/Or column. Select one of the following:

And

To start a new expression that will be combined with the previous expression by thekeyword AND.

Or

To start a new expression that will be combined with the previous expression by thekeyword OR.

3. Select remaining criteria from the other columns in the Expression Builder to complete theexpression.

4. Click OK.

Note: When the keyword And is used, WebFOCUS only selects data that meet both conditions.When the keyword Or is used, WebFOCUS selects data that meet either condition.

Report Group

You use the components of the Report group to customize your reports. For example, you canadd a header and footer to your report and include row and column totals. You can also sort thedata on your report. The Report group is shown in the following image.

The commands are:

Header & Footer

Adds a header, footer, or both to your report. You can define a Report Header, Page Header,Page Footer, or Report Footer.

Column Total

Displays column totals in the report. You can select No Totals, Column Totals, or Summarize.

Row Total

Displays row totals in the report. You can select Row Total or Off.

WebFOCUS App Studio Reference Guide 161

4. Creating Reports in WebFOCUS App Studio

Page 162: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Compound Document

Converts your report to a Compound document. The original report remains unchanged whilea copy of that report is placed on the Document canvas.

Universal Concatenation

Retrieves data from unlike data sources in a single request. Opens the UniversalConcatenation dialog box, where you can add the additional data sources to concatenate.For more information, see How to Concatenate Data Sources on page 162.

Sorted Data

Assumes that the data is already sorted in the database. If the data you are accessing isalready in the correct sort order, you can prevent WebFOCUS from resorting it. This featureprovides a fast method of retrieving data if it is already stored in the order required for display,and no further sorting is required.

Custom Field Placement

Allows sort fields to be moved from their default location.

How to Concatenate Data SourcesProcedure:

Universal concatenation specifies how to combine data from sources with dissimilar Master Files.

1. Create the main request.

This contains all the formatting for the resulting report and names the first file to beconcatenated. It also contains all printing and sorting information. The fields printed and thesort fields must exist as real or DEFINE fields in each file.

2. On the Report tab, in the Report group, click Universal Concatenation.

The Universal Concatenation dialog box opens.

3. Click the Add Source button to add additional data sources.

The Open File dialog box appears.

4. Select a Master File and click OK.

If there are temporary HOLD files associated with the procedure, HOLD files are availablefrom the Open dialog box.

The selected data source is added, showing the Report Field Resolutions and Filters.Additionally, the Define Tool is activated.

162 WebFOCUS

Report Tab

Page 163: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If the field names for the selected data source are not the same names and formatsas the fields being printed and sorted in the main request, the Universal Concatenationdialog box indicates that you need to define these fields with status icons.

5. Create or modify a field for the universal concatenation with the Define Tool.

Click the Define button from the Universal Concatenation toolbar.

or

Double-click the field name from the Additional Data Sources window.

The Define Tool opens.

Note: The Define Tool opens automatically if the Create all needed fields for a data sourcewhen launching the Define tool option is selected. This creates the missing defines forthe data source. A message appears before the Define tool opens, stating which DEFINEswill be created and require expressions, followed by a list of the created DEFINE fields.This option is off by default.

Create the DEFINE expression using the selected universally concatenated Master File,generating the required DEFINEs for the data source to have the same field names andformats as the fields used in the main request.

Click OK to close the Define tool.

The DEFINE expression is written in the procedure ahead of the TABLE request.

6. Create selection criteria for the universal concatenation with a Filter.

You may create a filter through a WHERE clause.

Select the Where button from the Where/If drop-down menu.

The Expression Builder opens.

Create selection criteria and click OK to close the Report Options dialog box.

To modify or view the filter, double-click the filter expression from the Additional DataSource window to open the Report Options dialog box.

7. Click OK to close the Universal Concatenation dialog box and add the MORE command tothe procedure.

WebFOCUS App Studio Reference Guide 163

4. Creating Reports in WebFOCUS App Studio

Page 164: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Traffic Lights Group

You use the Traffic Lights group to set styling and hyperlinks conditions. The Traffic Lights groupis shown in the following image.

Traffic Lights

Sets the current condition for styling and hyperlinks. Options include: None or Add/EditConditions. If you select Add/Edit Conditions, the Traffic Light Condition dialog box opens.From this dialog box, you can add new conditional styling by applying traffic light (and other)colors to a selected field in the output.

Style Group

You use the tools in the Style group to apply stylistic changes to a report, including data, title,and all other components of the report. The Style group is shown in the following image.

The commands are:

Change Theme

Changes the theme of the report from a list of available style sheets.

Manage Theme

References or embeds an external StyleSheet or applies no styling to your report. TheWebFOCUS StyleSheet is applied by default. When you click this button, the StyleSheetSelection dialog box opens.

Save Theme

Saves your current theme options.

164 WebFOCUS

Report Tab

Page 165: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Scope

Indicates the scope to which your changes will apply. For example, if you choose Report, yourstyle changes will be applied to the whole report. If you choose Footing, your changes will beapplied to the footer only. You can use the Scope function to apply styling to different areasof your report. The Scope options available from the Report tab are:

Report

Title

Data

Report Header

Report Footer

Page Header

Page Color

Page Footer

Subhead

Subfoot

Subtotal

Subtotal Tag

Across Title

Across Data

Column Totals

Report Totals (Report)

Report Totals (Title)

Report Totals (Data)

Recap

Cell

Page Color

(Selected Item)

WebFOCUS App Studio Reference Guide 165

4. Creating Reports in WebFOCUS App Studio

Page 166: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The (Selected Item) scope is only available when you select a text or field item. Thetype of item selected will come before (Selected Item). For example, if you have text selectedin the Page Footer, the Scope would display Page Footer (Selected Item).

Bold

Applies bold font formatting to the highlighted text or text within a selected object.

Italic

Applies italic font formatting to the highlighted text or text within a selected object.

Underline

Underlines the highlighted text or text within a selected object.

Left

Aligns the highlighted text or text within a selected object to the left.

Center

Aligns the highlighted text or text within a selected object to the center.

Right

Aligns the highlighted text or text within a selected object to the right.

Default

Aligns the highlighted text or text within a selected object to the default alignment option.This aligns numbers to the right and text to the left.

Report Width

Sets report width options.

Copy Style

Copies the current style settings, enabling the Paste Style button.

Paste Style

Pastes the copied style settings.

Font Name

Changes the font of the highlighted text or text within a selected object. Fonts are listed inalphabetical order.

166 WebFOCUS

Report Tab

Page 167: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Font Size

Changes the font size of the highlighted text or text within a selected object. Font sizes rangefrom 8 to 72 (whole numbers only).

Color

Changes the font color of the highlighted text or text within a selected object. Applies thecolor change to the selected Scope. Opens the Color dialog box, where you can select thefont color.

Background Color

Changes the background color of the highlighted text or text within a selected object. Appliesthe color change to the selected Scope. Opens the Color dialog box, where you can selectthe background color.

Defaults

Resets the style settings of the highlighted text or text within a selected object to the default(original) style.

Borders/Grid

Turn on or disable borders and grid lines. You can apply borders and gridlines to HTML, Excel,and PDF reports. For all other report types, this option is disabled.

User Style

Enables you to set User Format Style Blocks, if available.

Related Information:

Color Dialog Box on page 173

Borders Dialog Box on page 174

Using the StyleSheet Selection Dialog Box on page 167

Width Options Dialog Box on page 177

Using the StyleSheet Selection Dialog Box

The StyleSheet Selection dialog box enables you to reference or embed an external style sheet,use the default WebFOCUS StyleSheet, or apply no styling to your report. You may also save andinclude multiple style sheet. The StyleSheet Selection dialog box is accessible from the Stylegroup on the Report canvas ribbon.

The StyleSheet Selection dialog box provides the following capabilities:

WebFOCUS App Studio Reference Guide 167

4. Creating Reports in WebFOCUS App Studio

Page 168: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Include a StyleSheet.

Apply an external Cascading Style Sheet (CSS).

Embed a StyleSheet.

Apply the default WebFOCUS StyleSheet.

Save the modified style sheet as a new style sheet file (.sty).

To open the StyleSheet Selection dialog box, on the Report tab, in the Style Group, click ManageTheme.

Note: The StyleSheet Selection dialog box opens to the Include StyleSheet File section, sinceevery procedure has existing embedded styling by default. You may click Change Options andchoose to embed or reference an external StyleSheet, use the WebFOCUS default StyleSheet,or turn off all report styling, as described in the procedures below.

How to Include a StyleSheet in a ReportProcedure:

Since every procedure has existing styling, the Include StyleSheet File section opens by default.

When a StyleSheet is included, part of the styling is embedded in the report. You may includeStyleSheets up to an INCLUDE depth of three in your report, with the last selected StyleSheethaving precedence.

1. On the Report tab, in the Style group, click Manage Theme.

The StyleSheet Selection dialog box opens.

2. Click the Add new item button.

The Open File dialog box opens.

3. Select a StyleSheet file and click OK.

4. Optionally, you may select to include additional StyleSheets, up to an INCLUDE depth ofthree in your report.

Note: The last selected StyleSheet has precedence in the report. You may use the arrowsto reorder the arrangement of StyleSheets.

168 WebFOCUS

Report Tab

Page 169: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following syntax will be added to the procedure for the included StyleSheets.

ON TABLE SET STYLE * INCLUDE = citrus,$ INCLUDE = teal,$ INCLUDE = olive,$...

5. Click Finish to close the StyleSheet Selection dialog box.

6. Optionally, you may apply styling options from the Report canvas and save the StyleSheetcode using the Save Theme command, in the Style group. on the Report tab.

How to Apply an External Cascading Style Sheet (CSS)Procedure:

In addition to including StyleSheets to your report, you may apply an external Cascading StyleSheet to your report. An external Cascading Style Sheet (CSS) is an extension to HTML thatenables you to specify formatting for an HTML document. To link the CSS to the report, use theExternal Cascading Style Sheet URL field in the StyleSheet Selection dialog box.

Note: An external Cascading Style Sheet is only applicable when using the HTML report outputformat.

1. On the Report tab, in the Style group, click Manage Theme.

The Stylesheet Selection dialog box opens.

2. Type a name of the customized StyleSheet (.css) in the External Cascading StyleSheet URLinput field.

Note: The external CSS (Cascading StyleSheet) file should be saved in an alias on theweb server.

3. Optionally, you may include StyleSheets to be added to the report.

Note: A CSS file is separate from a StyleSheet file and can exist on its own.

4. Click Finish to close the StyleSheet Selection dialog box.

WebFOCUS App Studio Reference Guide 169

4. Creating Reports in WebFOCUS App Studio

Page 170: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Embed a StyleSheet in a ReportProcedure:

Embedding a StyleSheet stores your style information within the report, from which you can readan existing file as a starting point, start with a empty style, or leave the current StyleSheetcontents without any modifications.

1. On the Report tab, in the Style group, click Manage Theme.

The StyleSheet Selection dialog box opens.

2. Click Change Options to change the StyleSheet Selection dialog box options. The StyleSheetSelection dialog box displays.

3. Accept the default, Normal Embedded Styling, and click Next.

4. To read an existing file as a starting point:

a. Select Initialize with the contents of a pre-existing file.

Note: Preserve referenced StyleSheets so any “INCLUDE=name” will not be deletedis selected by default. When a StyleSheet is included, a reference of the StyleSheetis added to the report syntax as INCLUDE=name. This reference is added to theexisting style information already in the TABLE request.

b. Click Next.

The StyleSheet File Selection dialog box appears.

c. Select a Predefined Template file to use as your starting point and click OK.

The selected StyleSheet file is shown as the origin embedded StyleSheet file. Optionally,you may include additional StyleSheets or add an External Cascading StyleSheet (CSS).

d. Click Finish to close the StyleSheet Selection dialog box.

The selected StyleSheet code is imported into the procedure and overwrites any existingstyling in the report.

5. To start with an empty style:

a. Click Change Options to change the StyleSheet Selection dialog box options.

b. Keep Normal Embedded Styling selected and click Next.

c. Select Start fresh with an empty StyleSheet.

170 WebFOCUS

Report Tab

Page 171: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Preserve referenced StyleSheets so any INCLUDE=name is selected by default.When a StyleSheet is included, a reference of the StyleSheet is added to the reportsyntax as INCLUDE=name. This reference is added to the existing style informationalready in the TABLE request.

d. Click Next.

The Include StyleSheet File section opens indicating that the origin of the embeddedStyleSheet file is unknown.

Tip: You may select StyleSheet files to embed to your currently empty style.

e. Click Finish to close the StyleSheet Selection dialog box.

f. Click OK to close the StyleSheet Selection dialog box.

Starting with an empty style clears any styling from the report and initializes a procedure withthe WebFOCUS default style code (basic styling that is used when styling is not specified).

6. To leave Report canvas generated styling untouched:

a. Click Change Options to change the StyleSheet Selection dialog box options.

b. Keep Normal Embedded Styling selected and click Next.

c. Select Leave current StyleSheet contents without modification.

Note: Preserve referenced StyleSheets so any INCLUDE=name is selected by default.When a StyleSheet is included, a reference of the StyleSheet is added to the reportsyntax as INCLUDE=name. This reference is added to the existing style informationalready in the TABLE request.

d. Click Next.

The Include StyleSheet File section opens indicating that the origin of the embeddedStyleSheet file is unknown.

Tip: You may include StyleSheets to be added to the report.

e. Click Finish to close the StyleSheet Selection dialog box.

7. Optionally, you may apply styling options from Report canvas and save the StyleSheet code.

WebFOCUS App Studio Reference Guide 171

4. Creating Reports in WebFOCUS App Studio

Page 172: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Apply the Default WebFOCUS StyleSheetProcedure:

The WebFOCUS Default Styling section applies the default StyleSheet to your report, with nostyling visible in the procedure.

Note: The default WebFOCUS StyleSheet disables any styling options in the report. No furtherstyling options of any kind can be applied to the report.

1. On the Report tab, in the Style group, click Manage Theme.

The StyleSheet Selection dialog box opens.

2. Click Change Options to change the StyleSheet Selection dialog box options.

3. Select WebFOCUS Default Styling and click Finish.

Tip: To remove the default WebFOCUS StyleSheet and enable styling, click the Style FileSelection button to open the StyleSheet Selection dialog box and select the NormalEmbedded Styling option.

How to Reset the Default Report Canvas StylingProcedure:

To reset the default Report canvas styling in the StyleSheet Selection dialog box:

1. On the Report tab, in the Style group, select Manage Theme.

The StyleSheet Selection dialog box opens.

2. Highlight the added StyleSheet files (.sty) listed in the Include StyleSheet File section andclick Delete selected items (Del).

How to Save a StyleSheetProcedure:

After including StyleSheets and applying styling options from Report canvas, you may save theStyleSheet as a new StyleSheet file (.sty).

1. On the Report tab, in the Style group, click Save Theme.

The Save As dialog box opens.

2. Type a name for the StyleSheet in the File name input field and click Save.

The .sty file is saved in the working directory. You may browse to select a different location.

172 WebFOCUS

Report Tab

Page 173: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tip: The saved StyleSheet can be included in other reports from the StyleSheet File Selectiondialog box.

Usage Notes for the StyleSheet Selection Dialog BoxReference:

The following apply when using the StyleSheet Selection dialog box in Report canvas:

Applying StyleSheets through the StyleSheet Selection dialog box follows the same rules ofWebFOCUS StyleSheet inheritance. For details, see WebFOCUS StyleSheet Attribute Inheritancein the Creating Reports With WebFOCUS Language manual.

When including or referencing a StyleSheet that is not in the current application, the StyleSheetgets copied to the working directory.

If the StyleSheet already exists in the current application, it does not get overwritten.

To refresh an existing StyleSheet, you must copy the new StyleSheet to the working directoryor remove the StyleSheet from the procedure, delete it from the working directory, and thenadd it back to the procedure.

The default location for StyleSheets that are Included or referenced in App Studio is(...\AppStudionn\ibi_html\javaassist\intl\locale\combine_templates), which contains a setof sample StyleSheets. You can also search other WebFOCUS locations for availableStyleSheets.

When a StyleSheet is used in the procedure and the StyleSheet Selection dialog box is opened,it opens in the Include StyleSheet File section, enabling you to change the included StyleSheet.You may also change the StyleSheet options. This occurs even when the Defaults option(located in the Style group on the Report canvas ribbon in App Studio) is clicked.

Note: If you go back and select to embed or reference a StyleSheet, or use the WebFOCUSdefault option, the StyleSheet that was in the report will get overwritten.

If the report does not have any styling, the StyleSheet Selection dialog box opens to theChange Options section. As is the case where the report code contains the command:

ON TABLE SET STYLE OFF

Color Dialog Box

The Color dialog box lets you choose a color by selecting it from the color palette or entering ahexadecimal value

WebFOCUS App Studio Reference Guide 173

4. Creating Reports in WebFOCUS App Studio

Page 174: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Access the Color Dialog BoxProcedure:

1. On the Report tab, in the Style group, click Color or Background Color.

The Color dialog box displays.

2. Click Default to restore the formatting back to its original state.

3. Click Custom to access custom coloring.

4. Click OK and click OK again to close the Color dialog box.

Borders Dialog Box

You use the Borders dialog box to add borders to your report.

How to Add Borders to an HTML, Excel, or PDF ReportProcedure:

You can add borders to an entire report, a column, or another object area, such as a heading orfooting.

Note: You must remove grids from the report, column, or object area before you can applyborders.

You can set borders to a report globally, so that they will apply to all objects you subsequentlyadd to the report.

Note: Ensure that HTML, Excel, or PDF is selected as the report output format on the Formattab.

To set global borders:

1. On the Report tab, in the Style group, click Borders/Grid and then click Borders.

The Borders dialog box opens.

Note: By default, the Make all borders the same option is selected.

2. To specify border settings for the top, bottom, left, and right borders, click the Make allborders the same check box to disable that option. Make your border selections:

Select the following options from the Width drop-down list:

OFF to turn borders off.

LIGHT to apply thin border lines.

174 WebFOCUS

Report Tab

Page 175: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

MEDIUM to apply medium border lines.

HEAVY to apply thick border lines.

From the Scope drop-down list, select a line style.

From the Color drop-down list, select a color. For more information, see How to Accessthe Color Dialog Box on page 174.

After you select your border width, style, and color selections, you can see them in the BorderPreview window in the Borders dialog box.

Note: You can restore the original default borders by clicking the Default button.

3. Click OK.

To apply a border to a column:

1. Select the column you want to apply a border.

2. On the Appearance tab, in the Style group, select an option from the Scope drop-downcommand. The options are:

Data and Title applies grids to the column title and data.

Data Only applies grids to the column data.

Title Only applies grids to the column title.

3. On the Appearance tab, in the Style group, click Borders.

The Borders dialog box opens.

4. To specify border settings for the top, bottom, left, and right borders, select the Make allborders the same check box to turn off that option.

5. Make your border selections:

Click the down arrow in the Width drop-down list box and select:

OFF to turn borders off. (This is the default.)

LIGHT to apply thin border lines.

MEDIUM to apply medium border lines.

HEAVY to apply thick border lines.

From the Scope drop-down list, select a line style.

From the Color drop-down list, select a color.

WebFOCUS App Studio Reference Guide 175

4. Creating Reports in WebFOCUS App Studio

Page 176: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

After you select your border width, style, and color selections, you can see them in the BorderPreview window in the Borders dialog box.

Note: If the OFF option is selected in the Width drop-down list, no borders will be shown.

6. Click OK.

To apply a border to another object area:

1. On the Report tab, in the Style group, select an option from the Scope drop-down commandThe options are:

Report

Title

Data

Report Header

Report Footer

Page Header

Page Footer

Subhead

Subfoot

Subtotal

Across Title

Across Data

Column Totals

Report Totals (Report)

Report Totals (Title)

Report Totals (Data)

Recap

Cell

Page Color

(Selected Item)

176 WebFOCUS

Report Tab

Page 177: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. On the Report tab, in the Style group, click Borders/Grid and click Borders.

The Borders dialog box opens.

3. To specify border settings for the top, bottom, left, and right borders, select the Make allborders the same check box to turn off that option.

4. Make your border selections:

Select the following options from the Width drop-down list:

OFF to turn borders off. (This is the default.)

LIGHT to apply thin border lines.

MEDIUM to apply medium border lines.

HEAVY to apply thick border lines.

From the Scope drop-down list, select a line style.

From the Color drop-down list, select a color.

After you select your border width, style, and color selections, you can see them in the BorderPreview window in the Borders dialog box.

Note: If the OFF option is selected in the Width drop-down list, no borders will be shown.

5. Click OK.

Width Options Dialog Box

The Width Options dialog box allows you to set how values will be handled if they extend thereport cell. You can also enter a value to specify a limit for how large or small a value can bebefore these options take effect.

How to Set Width Options for a ReportProcedure:

1. On the Report tab, in the Style group, click Report Width.

The Width Options dialog box displays.

2. From the <not set> drop-down dialog box, select one of the following options:

Minimum

Maximum

Truncate

WebFOCUS App Studio Reference Guide 177

4. Creating Reports in WebFOCUS App Studio

Page 178: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Wrap

3. Indicate a value (in inches) by which to limit the width of the report.

Note: This only applies to Truncate and Wrap.

4. Click OK.

Links Group

You use the Links Group to create drill-down procedures. The Links group is shown in the followingimage.

Hyperlink

Enables you to create a drill-down procedure. For more information, see How to Access theDrill Down Dialog Box on page 224.

How to Access the Drill Down Dialog BoxProcedure:

1. On the Report tab, in the Links group, select Hyperlink.

The Drill Down dialog box displays.

2. Select one of the following actions:

No action (default)

Execute Procedure (FOCEXEC)

URL

URL from field

Javascript

Maintain Case

Maintain Procedure

Maintain Procedure Compiled

178 WebFOCUS

Report Tab

Page 179: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you select an action involving a procedure, the Browse button will be enabled,allowing you to navigate to the location of the procedure.

3. Select a Target Frame using the drop-down list box.

Note: This does not display when URL from field is selected.

4. Click Add.

The Drill Down Parameter dialog box displays.

5. Select a Parameter name from the drop-down list box.

6. For Parameter value, select one of the following options:

Field. Allows you to select a specific field from the drop-down list.

Constant Value. Allows you to specify a constant value.

Variable. Allows you to specify a variable.

7. Click OK.

8. On the Drill Down dialog box, click OK.

Format Tab

You use the Format tab to change the output type of the report, control the navigational settingsof a report, and access the special features of a report. Accordingly, this tab contains the OutputTypes, Navigation, and Features groups. The Format tab is located at the top of the App Studiointerface and is available only when you are creating a report. The Format tab is shown in thefollowing image.

WebFOCUS App Studio Reference Guide 179

4. Creating Reports in WebFOCUS App Studio

Page 180: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Output Types Group

The Output Types group enables you to choose the type of report (for example, PDF, Excel, oractive report) that you would like to produce. You can also set the output format and thedestination of the report using the elements in this group. The Output types group is shown inthe following image.

The report type options are:

HTML

Changes the report output type to HTML. This is the default value.

active report

Changes the report output type to HTML active report (AHTML).

active flex

Changes the report output type to active Flex, which creates an HTML report for Adobe FlashPlayer.

PDF

Changes the report output type to PDF.

active PDF

Changes the report output type to active PDF, which creates a PDF report for Adobe FlashPlayer.

Excel

Changes the report output type to Excel. You can select the following types of Excel Reports:Excel XLSX, Excel XLS, Excel XLSX Formula, Excel XLS Formula, or the Excel XLS PivotTable.

PowerPoint

Changes the report output type to PowerPoint. You can select PowerPoint PPTX or PowerPointPPT.

180 WebFOCUS

Format Tab

Page 181: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Output Format

Changes the output format of a report. The options that are available to you change dependingon which output format you select. Formats are grouped into the following categories: Styledreport formats, Unstyled formats, and Database formats.

Output Format Options

Opens the Output Format Options dialog box where you can set a report title, turn on linesuppression, turn on Cascading StyleSheets, and set how to expand report rows.

Destination

Opens the Output Destination dialog box, where you can set the destination of your outputto either Web Browser, Temporary File, or Save File. If you select Temporary File or Save File,you can set the name and location of that file using the Name text box and directory selectionicon. For more information, see How to Set the Output Destination on page 181.

How to Set the Output DestinationProcedure:

1. On the Format tab, in the Output Types group, click Destination (PCHOLD).

The Output Destination dialog box displays.

2. For Destination, select one of the following options:

Web Browser (default)

Temporary File

Save File

Note: If you select Temporary File or Save File, the Name field is activated.

3. Enter a file name and click the ellipsis button (...)

The File name and location dialog box displays.

4. Select where you want to save the file.

Note: The file name that you specified on the Output Destination dialog box is carriedover to the Filename field in the File name and Location dialog box.

5. Click OK.

6. Click OK on the Output Destination dialog box.

WebFOCUS App Studio Reference Guide 181

4. Creating Reports in WebFOCUS App Studio

Page 182: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Output Format Options Dialog Box for an HTML Report

Report Title

You can type a report title into the text box.

Cascading Style Sheets

You can select whether or not to include Cascading StyleSheets in your report. You can selectOn or Off. On is selected by default.

Expand By Row

You cans select how you would like rows to be expanded. Only show top level is the default.

Only show top level. Creates a report which initially displays only the highest sort fieldlevel. To see rows on lower levels, click the plus sign (+) next to one of the displayed sortfield values.

Off. Does not create a report where you can expand rows.

Expand everything. Creates a report in which all sort field levels are initially expanded.To roll up a sort field level, click the minus sign (-) next to one of the sort field values onthat level.

Note: If you want to set your report rows to expand to a specific number, you must typean integer into the text box rather than selecting one of the options.

Suppress blank lines

You can select whether to suppress blank lines or not.

Off. The suppression of blank lines will not occur.

Only within report body. The suppression of blank lines will only occur within the bodyof the report.

Output Format Options Dialog Box for a PDF Report

Repeat sort fields per panel

Enables the display of By fields in the left portion of each panel of a multi-panel report.

Repeat heading/footing per panel

Repeats headings/footings on each panel page when the columns presented on PDF reportscannot be displayed on a single page.

182 WebFOCUS

Format Tab

Page 183: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Use settings for Postscript printing

Sends the page settings to a PostScript printer when printing in PS format.

Display grid for object placement evaluation

Displays a grid in the report output, which enables you to evaluate the correct placement ofdata and objects during your report design.

Output Format Options for Excel Reports

Create separate worksheets for each primary sort value

Adds the highest-level sort field and its values as a TOC in the report. This option deactivatesall other options on the Format tab.

Report Title

You can type a report title into the text box.

Generate overflow sheets

This indicates where the overflow rows of data break in the Excel worksheet. The default is65,000 rows of data before an overflow sheet is generated.

Note: When you change formats from XLSX to EXL2K and ROWLIMIT exceeds 65,000,you will receive a message asking you if you want to proceed. If you decide to continue,ROWLIMIT will be set to 65,000. If you decide not to continue, the format will revert toXSLX, with no change to ROWLIMIT.

Rows per sheet

Specifies the number of rows per sheet. This option is set to max and unable to be editedwhen Generate overflow sheets is turned off.

Define a range name for the data

Assigns a named range to a group of cells in Excel. There is a 256 character limit for namedranges.

Template

You can set which template to use in your Excel report.

Item to populate

Sets the number of items to populate.

WebFOCUS App Studio Reference Guide 183

4. Creating Reports in WebFOCUS App Studio

Page 184: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Output Format Options for PowerPoint Reports

Template

You can set which template to use in your Excel report.

Item to populate

Sets the number of items to populate.

User Format Selection Dialog Box

You can use the User Format Selection dialog box to choose which formats and options areavailable, at runtime, when you select the User output format from the Styled report formats,from the Output Formats command. You can select which formats a user can choose from, andcustomize the options specific to each format.

184 WebFOCUS

Format Tab

Page 185: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The User Format Selection dialog box is shown in the following image.

Selection

Provides a list of check boxes that indicate whether or not an output format is available tothe user. All formats are selected by default. You can click the check box for a format to clearit.

Format

Displays a list of available output formats.

Description

Provides a brief description of the output format which is displayed to the user, at runtime.You can edit the description by double-clicking the description text box.

Options

Indicates which output formats have options you can customize. You can click the double-arrow to open the Output Format Options dialog box, which displays the options available forthat format. For example, if you click the double-arrow for the HTML output format, the OutputFormat Options dialog box opens, displaying the options for the HTML output format.

WebFOCUS App Studio Reference Guide 185

4. Creating Reports in WebFOCUS App Studio

Page 186: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Enter text for the WFFMT prompt:

You can type what the user sees when prompted to choose an output format, at runtime.

OK

Accepts the changes and closes the dialog box.

Cancel

Discards the changes and closes the dialog box.

Navigation Group

The navigation group contains the functionality for setting navigational options for your report (forexample, adding a Table of Contents or freezing an area of the report). You can also page thereport on-demand and control OLAP options from the Navigation group. The Navigation group isshown in the following image.

The commands are:

Table of Contents

Displays every value of the highest-level sort field as a hyperlink, and then toggles betweena display of the entire report and a designated section. It also applies a dynamic table ofcontents to the first By field in an HTML report. You can select Report, Heading, or None.

Note: You create a Table of Contents on a BY field.

For more information, see How to Add a TOC or Disable the TOC Feature on page 187.

Freeze

Freezes the scrolling area of a report so that Headings or Footings display with the full reportin a narrow browser window. You can select Off, On, Top, Bottom, or Custom. For moreinformation, see How to Freeze the Area You Are Scrolling for HTML Report Output on page187.

186 WebFOCUS

Format Tab

Page 187: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

On-Demand Paging

Displays one page of an HTML report, where the server sends the report to your browser onepage at a time. You can use controls on your browser to display the next or previous page,all pages, or to navigate to a specific page. You can select On or Off (default).

Auto Drill & Analysis

Controls the appearance of OLAP options, the OLAP Selections pane, and automatic drilldowns.It also opens the Auto Drill & Analysis dialog box. You can select options related to OLAP,the OLAP Selections pane, and automatic drilldowns.

Note: You can use the Auto Drill & Analysis with HTML reports only.

For more information, see Auto Drill & Analysis on page 189.

How to Add a TOC or Disable the TOC FeatureProcedure:

1. Select a BY column in your report.

2. On the Format tab, in the Navigation group, click Table of Contents.

3. Choose one of the following options:

Report to embed the TOC in the executed report as an expandable tree control.

Heading to add the By columns as the last objects in the page heading. The TOC appearsin a drop-down list in the heading when the report is executed.

None to turn the TOC feature off.

Tip: Click the Properties tab in the Object Inspector to verify that the Table of Contentsis turned on.

or

1. Right-click the first By column in the Report canvas window and click Table of Contents.

2. Select either Report, Header, or None.

How to Freeze the Area You Are Scrolling for HTML Report OutputProcedure:

You can freeze page headings/footings, report headings/footings, column titles, and totals foryour report output. The freeze option is available from the Navigation group of the Format tab.

1. On the Format tab, in the Navigation group, select Freeze from the Report menu.

WebFOCUS App Studio Reference Guide 187

4. Creating Reports in WebFOCUS App Studio

Page 188: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Select the freeze type from the drop-down list.

The options are:

Off. This is the default.

On. Freezes the headings/footings, column titles, and totals.

Top. Freezes the headings and column titles.

Bottom. Freezes the totals and footings.

3. Save and run your report.

188 WebFOCUS

Format Tab

Page 189: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Auto Drill & Analysis

This section describes the functionality for Auto Drill & Analysis.

Auto Drill and Analysis

OLAP Options

Disabled. OLAP options are disabled and not shown in the OLAP report. By default,the Enable OLAP option is set to Disabled.

Off. Turns off the OLAP Control Panel and the OLAP Selections pane, but allows OLAPfunctionality from the report itself. You can access options on right-click menus, dragcolumns within the report, and use up and down arrows to sort columns fromhigh-to-low or vice versa.

On. Provides access to the OLAP Selections pane from a square button to the left ofthe column titles. You can open the Control Panel by clicking the OLAP button in theOLAP report.

Top Panel. Opens the OLAP Selections pane above the report. The Measures, Graph,and Dimension controls, the band containing the OLAP, Run, and Reset buttonsappear above the report output. You can open the Control Panel by clicking the OLAPbutton on the Selection pane.

Bottom Panel. Opens the OLAP Selections pane below the report. The Measures,Graph, and Dimension controls, the band containing the OLAP, Run, and Reset buttonsappear below the report output. You can open the Control Panel by clicking the OLAPbutton on the Selection pane.

Hidden Panel. Opens the OLAP report with the OLAP Selections pane hidden. Youcan perform a variety of analytic tasks from the report itself. Selection Criteria isshown next to the OLAP button.

Show Tabbed. For OLAP reports that have multiple dimensions, this option groupsthe dimension elements under a tab labeled with the dimension name.

Auto Drill Options

Automatic Drill Down controls access to automatic drill downs in a report:

None. Disables automatic drill downs. By default, the Automatic Drill Down option isto None.

Dimensions. Enables automatic drill downs on dimensions in a report.

WebFOCUS App Studio Reference Guide 189

4. Creating Reports in WebFOCUS App Studio

Page 190: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Dimensions and Measures. Enables automatic drill downs on dimensions andmeasures in a report.

Features Group

Options in the Features group enable to you control the appearance of pop-up descriptions,whether a report is an Accordion Report, whether to repeat a sorted value, whether to use specialactive report options, and if accessibility options are on. The Features group is shown in thefollowing image.

The commands are:

Popup Description

Enables the display of pop-up field descriptions for columns in your report. You can selectOn or Off. The default is <not set>. For more information, see Displaying Pop-up FieldDescriptions for Column Titles on page 191.

Accordion Report

Changes a report to an Accordion Report. You can select On or Off. Accordion reports providea way to control the amount of sorted data that appears on an HTML report page. You canproduce reports with expandable views of data for each vertical sort field. When an AccordionReport first appears, only data values of the first (highest-level) vertical sort field are shown.All other data is hidden. You can manually expand your view to expose data values of lower-level sort fields. For more information, see Controlling the Display of Sorted Data With AccordionReports on page 192.

Repeat Sort Value

Displays all repeated sort values instead of blanks in the output after the first instance of anew sort value, which is the default behavior. You can select On or Off. The default is <notset>.

Lines per Page

Determines how many lines are displayed on each report page. Options are 10, 20, 30, 40,50, and Show All. The default is 20.

190 WebFOCUS

Format Tab

Page 191: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Accessibility

Offers options that help users with disabilities to interact with the report.

Mailing Labels

Opens the Mailing Labels Options dialog box, which allows you customize the layout,dimensions, spacing, and print order of your mailing label. This option is only available forPDF and PostScript reports.

For more information, see Mailing Labels Options Dialog Box on page 193.

Displaying Pop-up Field Descriptions for Column Titles

You can have pop-up field descriptions display in an HTML report when the mouse pointer ispositioned over column titles. Field description text displays in a pop-up box near the column titleusing the default font for the report.

Note: Pop-up Field Descriptions are available for HTML Web Document (HTML), HTML Table(HTMTABLE), Default, and User styled report formats.

The pop-up text displayed for a column title is defined by the Description attribute in the MasterFile for the corresponding field. If a column title has no Description entry in the Master File, thenno pop-up box is generated when your mouse is positioned over the title.

The following procedure provides information on displaying pop-up descriptions in an HTML report.

How to Display Pop-up Field Descriptions in an HTML ReportProcedure:

1. Open a report in App Studio.

2. On the Format tab, in the Features group, click Popup Desc.

The selection menu displays.

3. Select one of the following options:

On. Turns Pop-up Field Descriptions on.

Off. Turns Pop-up Field Descriptions off.

<not set>. Indicates that a value has not been set for Pop-up Field Descriptions. This isthe default value.

WebFOCUS App Studio Reference Guide 191

4. Creating Reports in WebFOCUS App Studio

Page 192: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Controlling the Display of Sorted Data With Accordion Reports

Accordion Reports provide a way to control the amount of sorted data that appears on an HTMLreport page. You can produce reports with expandable views of data for each vertical sort field.When an Accordion Report first appears, only data values of the first (highest-level) vertical sortfield are shown. All other data is hidden. You can manually expand your view to expose datavalues of lower-level sort fields.

When you create an Accordion Report, a plus sign (+) appears to the left of each data value inthe column under the highest-level sort heading. For data associated with lower-level sort fields,a plus sign (+) is placed to the left of each data value, but the data does not appear unlessmanually expanded. Data values of the lowest-level sort field are not expandable.

To expand your view of data for any expandable sort field, click a plus sign (+) and all dataassociated with the next lower-level sort field appears. When you expand a data value under thenext to lowest sort heading, all of the remaining associated data values in the report appear.

Note: Two vertical (BY) sort fields are required. If your report does not contain two verticalsort fields, then the Accordion Reports option is ignored and a standard HTML report is created.

The use of horizontal (ACROSS) sort fields is supported with Accordion Reports. The horizontalsort headings that appear above vertical sort headings in a standard HTML report are not displayedin an Accordion Report until at least one sorted data value has been manually expanded in eachexpandable sort column.

PDF and Excel formats are not supported with Accordion Reports.

Requirements for Accordion ReportsReference:

The following requirements must be taken into consideration when creating Accordion Reports:

Adding a drill-down link to an Accordion Report requires that the TARGET parameter must beset to a value that specifies a new HTML frame.

Once an Accordion Report is created and delivered to the user, there are no subsequent callsto the WebFOCUS Reporting Server required when the user is interacting with the report.However, the collapsible folder controls on the sort fields require JavaScript and images thatreside on the WebFOCUS Client. The user must be connected to the WebFOCUS Web tiercomponents in order to use this feature. For online connected users of WebFOCUS, no changeis required to the report.

192 WebFOCUS

Format Tab

Page 193: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Create an Accordion ReportProcedure:

1. Create a report in Report canvas using the GGSALES Master File.

2. In the Report canvas main window, add the following fields:

UNITS, ST, DOLLARS, CITY, REGION, CATEGORY

3. Highlight the UNITS and DOLLARS fields and Sum these fields.

4. Highlight the ST, CITY, and CATEGORY fields and make them By fields.

5. On the Format tab, in the Features group, select Accordion Report.

Note: Accordion Reports are available for HTML Web Document (HTML), HTML Table(HTMTABLE), Default, and User styled report formats.

6. Select one of the following options:

On to turn on Accordion reports.

Off to turn off the feature and display the Accordion report.

<not set> to indicate no choice.

Note: The default value is <not set>.

Mailing Labels Options Dialog Box

You can use the Mailing Labels Options dialog box to customize the settings for your mailinglabel. You can customize the layout, dimensions, spacing, and print order of your label.

Label Type

None. Removes all label settings in the Cascading Style Sheet.

Custom label. Enables you to specify custom label settings.

All other preset label types automatically load the appropriate settings into the CascadingStyle Sheet.

Label layout

Sets the number of rows and columns for the labels.

Label dimensions

Determines the height and width of each label.

WebFOCUS App Studio Reference Guide 193

4. Creating Reports in WebFOCUS App Studio

Page 194: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Label spacing

Determines the amount of horizontal and vertical spacing between each label (in the currentunits of measure).

Print order

Determines whether the data output flows down a column or across a row.

Down. Labels are printed top-to-bottom and moves left-to-right until each column is filled.

Across. Labels are printed left-to-right and then moves down until all rows are complete.

Data Tab

You use the options on the Data tab to manipulate mathematical data in a report. You can createdefines and computes.

This tab contains the Calculation, Forecast, and Guided Reports groups. The Data tab is locatedat the top of the App Studio interface. It is only available when you are creating a report. TheData tab is shown in the following image.

Calculation Group

You can use the options in the Calculation group to include calculated values, or computes inyour report. The Calculation group is shown in the following image.

194 WebFOCUS

Data Tab

Page 195: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Summary (Compute)

Opens the Computed Field Creator dialog box, where you can create and manage calculatedvalues to be used in a report. Specifically, you can create a computed field, type a name forthe field, and enter a format. You can also specify how missing values are handled using theOptions command, in the dialog box. For more information, see How to Access the ComputedField Creator on page 195 and Defines and Computes on page 195.

Across Compute

Opens the Across Compute dialog box, where you can create a calculated value to be usedin a report.

Note: An Across Compute can only be applied to an Across field. For example, if SortAcross is indicated on the Field tab, you can then apply an Across Compute to that field.

How to Access the Computed Field CreatorProcedure:

On the Data tab in the Calculations group, click Summary (Compute).

The Computed Field Creator dialog displays.

Defines and Computes

The Calculation group contains commands to create Define and Compute fields.

DEFINE and COMPUTE fields are two different types of temporary fields. A temporary field is afield whose value is not stored in the data source, but can be calculated from the data that isthere, or assigned an absolute value. A temporary field takes up no storage space in the datasource, and is created only when needed.

When you create a temporary field, you determine its value by writing an expression. You cancombine fields, constants, and operators in an expression to produce a single value.

You can specify the expression yourself, or you can use one of the many supplied functions thatperform specific calculations or manipulations. In addition, you can use expressions and functionsas building blocks for more complex expressions, as well as use one temporary field to evaluateanother.

A virtual field (DEFINE) is evaluated as each record that meets the selection criteria is retriedfrom the data source. The result of the expression is treated as though it were a real field storedin the data source.

WebFOCUS App Studio Reference Guide 195

4. Creating Reports in WebFOCUS App Studio

Page 196: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A calculated value (COMPUTE) is evaluated after all the data that meets the selection criteria isretrieved, sorted, and summed. Therefore, the calculation is performed using the aggregatedvalues of the fields.

Detail (Define). Opens the Detail Field (DEFINE) dialog box, where you can create a definedfield, type a name for the field, and enter a format. A Define field is added to the actual data.

Note: To enable the objects when creating a Define, click the New button.

Summary (Compute). Opens the Computed Field Creator dialog box, where you can createa computed field, type a name for the field, and enter a format.

Forecast Group

You can calculate trends in numeric data and predict values beyond the range of those storedin the data source by using the Forecast feature. The Forecast group is shown in the followingimage.

For more information on Forecasting, see Overview of Forecasting on page 196.

The command is:

Forecast

Opens the Forecast dialog box, where you can calculate trends in numeric data and predictvalues beyond the range of values stored in the data source. You can also add a Forecastcolumn to the report. For more information, see How to Calculate a Simple Moving Averageon page 197.

Overview of Forecasting

You can calculate trends in numeric data and predict values beyond the range of those storedin the data source by using the Forecast feature.

The calculations you can make to identify trends and forecast values are:

Simple Moving Average. Calculates a series of arithmetic means using a specified numberof values from a field.

196 WebFOCUS

Data Tab

Page 197: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Exponential moving average. Calculates a weighted average between the previouslycalculated value of the average and the next data point. There are three methods for usingan exponential moving average:

Single Exponential Smoothing. Calculates an average that allows you to choose weightsto apply to newer and older values.

Double Exponential Smoothing. Accounts for the tendency of data to either increaseor decrease over time without repeating.

Triple Exponential Smoothing. Accounts for the tendency of data to repeat itself inintervals over time.

Linear Regression Analysis. Derives the coefficients of a straight line that best fits thedata points and uses this linear equation to estimate values.

When predicting values in addition to calculating trends, Forecast continues the same calculationsbeyond the data points by using the generated trend values as new data points. For the linearregression technique, the calculated regression equation is used to derive trend and predictedvalues.

Forecast performs the calculations based on the data provided, but decisions about their useand reliability are the responsibility of the user. Therefore, Forecast predictions are not alwaysreliable, and many factors determine how accurate a prediction will be.

How to Calculate a Simple Moving AverageProcedure:

1. Select the By and Across fields that you want to use for your calculations.

2. On the Data tab, in the Forecast group, click Forecast.

The Forecast dialog box opens.

3. If you want to change the name of the output field that displays the Forecasted values, editthe default name that exists in the Field Name field.

4. Select Moving Average from the Step 1: Choose a Method drop-down list.

5. Select an input measure field from the Step 2: Choose a Measure drop-down list.

If you select the same field as the By or Across field, this field will not appear in the outputeven if it is included in a display command.

6. Select the increment number to count each instance of the By or Across field from the Step3: Choose The Interval field.

7. Select the number of predictions to be calculated for the Forecast field from the Step 4:Choose Number of Predictions field.

WebFOCUS App Studio Reference Guide 197

4. Creating Reports in WebFOCUS App Studio

Page 198: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

8. Select the number of values to average from the Step 5: Choose Number Of Values to Averagefield.

9. Optionally, change the default field format by clicking the Change Format button and selectinga different format from the Format dialog box.

10. Click OK.

Guided Reports Group

A Guided Report is a highly parameterized report that allows you to select fields and options thatparticipate in a report at run time. Fields and options that have been added to the Guided Reportare displayed in controls and are available for selection. Selecting fields from controls and runningthe report will display the data that correlates to the field values. For more information, seeOverview of Guided Reports on page 199.

You use the options in the Guided Reports group to generate and delete parameter groups. TheGuided Reports group is shown in the following image.

The commands are:

Generate Parameter Group

Generates a parameter group from the selected column or columns. It opens a drop-downmenu that has the One variable for each selected column and One variable for all selectedcolumns options. One variable for each selected column creates one control for every selectedcolumn with all the selected field names as values. One variable for all selected columnscreates one control for all selected columns with all the selected field names as values. Formore information, see How to Generate a Parameter Group for One or More Columns on page199.

Remove from Parameter Group

Removes a column or columns from the parameter group. This command is available onlywhen the selected columns are part of a parameter group. For more information, see Howto Remove One or More Columns from a Parameter Group on page 199.

198 WebFOCUS

Data Tab

Page 199: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Overview of Guided Reports

A Guided Report is a highly parameterized report that allows you to select fields and options thatparticipate in a report at run time.

Fields and options that have been added to the Guided Report are displayed in controls and areavailable for selection. Selecting fields from controls and running the report will display the datathat correlates to the field values.

The advantage of using a Guided Report is that you can create one streamlined, highlyparameterized report and from that one report, you can generate thousands of different reportoutputs at run time. It requires no knowledge of code to customize the final report with the datayou want displayed.

How to Generate a Parameter Group for One or More ColumnsProcedure:

You use this procedure to assign one or more columns to a Parameter Group with either a uniqueor common variable.

1. Create a report with multiple columns.

2. Select the column or columns to include in the Parameter Group.

3. On the Data tab in the Guided Reports group, click Generate Parameter Group.

4. Select one of the following options:

One variable for each selected column. Assigns a unique variable to each column.

One variable for all selected columns. Generates one unique variable for all selectedcolumns.

Note: To reverse a parameter group assignment, you can press Ctrl-Z, provided that thisis immediately following the assignment and no other action has taken place on thecanvas.

How to Remove One or More Columns from a Parameter GroupProcedure:

You use this procedure to remove one or more columns from a Parameter Group assignment.

1. Open or create a report with multiple columns.

2. Review the Parameter Group assignment.

WebFOCUS App Studio Reference Guide 199

4. Creating Reports in WebFOCUS App Studio

Page 200: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Parameter Group assignments are indicated by an ampersand in the top-leftto signify that it is a member of a parameter group. If multiple variables were indicated,each column icon will have a different color scheme. For example, COLUMN1 may havea blue background with a yellow ampersand and COLUMN2 may have a blue backgroundwith a white ampersand. The color scheme varies depending on how the Parameter Groupswere assigned (one variable for each selected column or one variable for all selectedcolumns).

3. Select the column(s) for which you want to remove the Parameter group assignment.

4. On the Data tab in the Guided Reports group, click Remove from Parameter Group.

Layout Tab

You can control the page properties of a report using the functionality available on the LayoutTab. You can change the margin size, page layout, type of material the report will be printed on,what unit of measurement the report uses, page numbering, cell padding, and whether to autofitcolumns. The Layout tab is located at the top of the App Studio interface. It is available onlywhen you are creating a report. The Layout tab is shown in the following image.

Page Setup Group

You can change the margins, orientation, paper type, unit of measurement, and page numberingof a report. The Page Setup group is shown in the following image.

200 WebFOCUS

Layout Tab

Page 201: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Margins

Changes the margin dimensions. You can change the margin dimensions using the Customoption or use one of the other four preset margin types, Normal, Narrow, Moderate, or Wide.Selecting Custom opens the Margins dialog box, where you can set each margin value.

Report Page

Changes the orientation of the report page. You can select Landscape or accept the default,Portrait.

Paper Type

Displays a list of paper types and media outlets for the report output.

Units

Displays the unit of measurement in inches, centimeters, or points.

Page Numbering

Adds page numbering or removes lead space. You can select On, Off, or OFF without leadspace. Select On to turn page numbering on. Select Off to turn page numbering off. SelectOFF without lead space to turn off page numbering and the two leading blank lines on eachpage.

Report Group

You can change the way that columns are shown. The Report group is shown in the followingimage.

The commands are:

Cell Padding

Edits the space between the gap values in the cascading style sheet. The cell Padding displaysvalues that indicate the top, left, bottom, and right margins. The values increment by 1/100of an inch. For more information, see How to Access the Cell Padding Dialog Box on page 202.

WebFOCUS App Studio Reference Guide 201

4. Creating Reports in WebFOCUS App Studio

Page 202: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Access the Cell Padding Dialog BoxProcedure:

1. On the Layout tab, in the Report group, click Cell Padding.

The Cell Padding dialog box displays, as shown in the following image.

2. Enter values for Top, Bottom, Left, and Right.

Note: Values increment by 1/100 of an inch.

3. Click OK.

View Tab

You use the View tab to change the way that you view your data or fields. The View tab is shownin the following image.

202 WebFOCUS

View Tab

Page 203: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Object Inspector Group

You can change the way that you view your data or fields. When an command is used on theObject Inspector group, that same option is respected on the Object Inspector shortcut menu.The Object Inspector group is shown in the following image.

The command types are:

Dimension View

Enables you to view the hierarchical structure of the data. Options include: No ExtendedInformation, Alias, Title, and Description. The default is Description.

List View

Enables you to view fields in a list. You can select one or more field categories to view,including: Name, Alias, Title, Description, Format, and Type. Name and Description areselected by default.

Tree View

Enables you to view fields by type. Options include: No Extended Information, Alias, Title,and Description. The default selection is Description.

Show Qualified Fields

Enables you to display any list of field names as qualified field names, which includes datasources and table names

Field Details Section

Enables you to display the field details section in the Object Inspector.

WebFOCUS App Studio Reference Guide 203

4. Creating Reports in WebFOCUS App Studio

Page 204: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

General Group

Allows you to display boundaries, test data, tooltips, invisible fields, and the ruler. The Generalgroup is shown in the following image.

Boundaries

Enables you to show or hide the boundaries for report objects, such as headings and footings.

Test Data

Enables you to display test data in design mode.

Show Field Tooltips

Enables you to display tooltips.

Show Invisible Fields

Enables you to display hidden fields.

Show Ruler

Enables you to display the standard ruler at the top of the Report canvas.

Field Length Group

Allows you to edit the amount of data displayed by a field. The Field Length group is shown inthe following image.

Limit Field Lengths

Enables you to limit the length of data displayed by a field.

204 WebFOCUS

View Tab

Page 205: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Field Limit Length

Enables you to set the maximum length of a field in your report. This option is only availablewhen Limit Field Lengths is selected.

Repetitions Group

Allows you to edit the amount of data displayed by a field. The Repetitions group is shown in thefollowing image.

Repetitions

Enables you to specify the number of test data instances that appear for a field. The defaultvalue is 2. You can select either 1, 2, or 3.

Zoom Group

Allows you to edit the amount of data displayed by a field. The Zoom group is shown in thefollowing image.

Zoom

Enables you to Specify the size (magnification/scale) of the Report canvas. For example,100%, 75%, 50%, or 25%. The default value is 100%.

WebFOCUS App Studio Reference Guide 205

4. Creating Reports in WebFOCUS App Studio

Page 206: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

SQL Group

Allows you to view the SQL code your report generates. The SQL group is shown in the followingimage.

View Generated SQL

Allows you to view the SQL code generated by your report in a separate viewer. This commandin only available if you are creating a report using a RDBMS data source.

Virtual Screen Size Group

The Virtual Screen size group lets you set how much space the report will occupy when displayedin an HTML page. The Virtual Screen size group is shown in the following image.

Width

Sets the width your report will occupy when displayed in an HTML page.

Height

Sets the height your report will occupy when displayed in an HTML page.

Images Tab

You use the Images tab to add images to your report or edit images that are already insertedinto your report. The Images tab is shown in the following image.

206 WebFOCUS

Images Tab

Page 207: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

New Image Group

Allows you to insert a new image into your report. The New Image group is shown in the followingimage.

File

Enables you to view the hierarchical structure of the data. Options include: No ExtendedInformation, Alias, Title, and Description. The default is Description.

Field

Inserts a new image into your report by using a field that specifies the image file name.

Current Image Group

Allows you to select a specific image, delete an image, make an image a hyperlink, change thelocation of the selected image, and add a pop-up description to the selected image. This groupis unavailable if there is no image in your report. The Current Image group is shown in the followingimage.

Image

Displays the name of the selected image. You can change the selected image by clicking thearrow and selecting the image name.

Delete

Deletes the selected image.

Hyperlink

Opens the Drill-down dialog box where you can make your image a drill-down procedure or ahyperlink to a URL.

WebFOCUS App Studio Reference Guide 207

4. Creating Reports in WebFOCUS App Studio

Page 208: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Image Location

Displays where the image is located. You can click the arrow to change the image locationto either the page or the background.

Popup Desc.

Displays the pop-up description for an image.

Position Group

Allows you to change the horizontal and vertical position of the selected image. The Positiongroup is shown in the following image.

X

Displays the horizontal position of the selected image.

Y

Displays the vertical position of the selected image.

Size Group

Allows you specify whether the selected image will have a set size or custom size. The Size groupis shown in the following image.

Custom Size

Allows you to select whether the image will have a set size or a custom size. When selected,you can enter values into the Width and Height fields.

208 WebFOCUS

Images Tab

Page 209: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Width

Specifies the width of the selected image. This field is unavailable when Custom Size is notselected.

Height

Specifies the height of the selected image. This field is unavailable when Custom Size is notselected.

Options Group

Allows you to set various options pertaining to the selected image. The Options group is shownin the following image.

Line Break

Adds a line break after the selected image, when selected.

Include As Reference

Includes the current image as a reference, when selected.

Preserve Ratio

Keeps the aspect ratio of the selected image.

Show Images in Report View

Shows images when in report view. This option is selected by default.

WebFOCUS App Studio Reference Guide 209

4. Creating Reports in WebFOCUS App Studio

Page 210: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Field Tab

You use the Field tab to change the field type, filter specific fields, sort data in fields, and stylethe titles and data of a field from the Field tab. The Field tab is located at the top of the AppStudio interface. It is accessible only when a field is selected on the Report canvas. The Fieldtab is shown in the following image.

Column Type Group

You can change the field type of a selected field. The Column Type group is shown in the followingimage.

The command types are:

Detail

Changes the field type of the selected field to Detail.

Aggregate

Changes the field type of the selected field to Aggregate.

Sort Down

Changes the field type of the selected field to Sort Down.

Sort Across

Changes the field type of the selected field to Sort Across.

For Row

Changes the field type of the selected field to For Row.

Delete

Deletes the selected field or column.

210 WebFOCUS

Field Tab

Page 211: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Report canvas uses smart context functionality to determine what column type a field shouldbe, given the metadata of the field and/or the position of the field on the canvas.

If smart context is on, and the metadata indicates that a field should be a measure or dimension,when you add that field to the canvas, it will automatically be added as an aggregate or sort downfield type, respectively.

If smart context is on, but the metadata does not indicate whether a field is a measure ordimension, then alphanumeric fields and date fields are added as BY fields, while numeric fieldsare added as SUM fields.

If smart context is off, all fields are added as DETAIL fields.

While smart context is on, and you try to add a numeric field between two alphanumeric fields,a message will appear, prompting you to either add the field as a sort or an aggregate. If you tryto add a alphanumeric field between two numeric fields, a message will also appear, promptingyou to either add the field as a COUNT or as an aggregate.

Filter Group

You can filter fields when creating a report. The Filter group is shown in the following image.

The commands are:

Filter

Filters fields using Where, If, Where Total, and Limits screening options. You can access theExpression Builder by selecting Where, If, or Where Total from the Filter drop-down list.

Using the Expression Builder, you can create expressions quickly by selecting fields, relations,operators, and values from lists. You can base selection criteria on a specified value, avariable value, or a field value. For more information, see Using the Expression Builder onpage 154.

If you select Limits, the Retrieval Limits dialog box opens where you can set the Record Limitand Read Limit values. This enables you to set how much data is shown or previewed.

WebFOCUS App Studio Reference Guide 211

4. Creating Reports in WebFOCUS App Studio

Page 212: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Sort Group

You can sort data, rank data, or limit the amount of data shown. These options are enabled onlywhen Sort Down is selected in the Column Type group. If Sort Across is selected, the options forUp and Down are available. The Sort group is shown in the following image.

The commands are:

Up

Sorts column data from lowest to highest value. If the values were alphabetical, this optionwould place the columns in alphabetical order.

Down

Sorts column data from highest to lowest value. If the values were alphabetical, this optionwould place the columns in reverse alphabetical order.

Rank

Allows you to enable or disable numeric ranking for the selected column. This is particularlyuseful when sorting a report vertically.

Hierarchy

Sorts and formats a hierarchy, showing the parent and child relationships.

Note: This option is only available when using a multidimensional data source.

Limit

Limits the number of sort values shown. The options are 5, 10, 15, None, and Variable.When you use Limit with Up, the chosen number of lowest values is shown. When you useLimit with Down, the chosen number of highest values is shown. Limit is available only whenthe selected field is a By field.

212 WebFOCUS

Field Tab

Page 213: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Break Group

You can add a page break, line break, subheading or subfooting, and subtotal columns. You canalso recompute calculated values and recap calculated values. The Break group is shown in thefollowing image.

The commands are:

Page Break

Starts a new report page when the value of a selected sort field changes. Options includeOn, Off, or Variable.

No Split

Breaks sort fields logically and regenerates the field heading on the next page or screen.

Line Break

Inserts a line break at a specified point in the report. The options are On, Off, or Variable.

Fold Line

Causes columns to be placed on a separate line when the value of the sort field changes.This feature is not supported for HTML styled report formats. Click Variable to make theoption a parameter whose value is prompted for at run time. Click the ampersand (&) tochange the parameter name suffix, display text, order of values, and display or return values.

Skip Line

Skips a line on a report when the value of the selected sort field changes. To apply this actionin HTML styled report formats, ensure that a Cascading Style Sheets is selected. Click Variableto make the option a parameter whose value is prompted for at run time. Click the ampersand(&) to change the parameter name suffix, display text, order of values, and display or returnvalues.

Subtotal

Adds a subtotal for the selected column or on all outer sort fields. The options are Apply toselected column or Apply to all outer sort fields. The Layout tab appears, where you canmodify the Page Setup.

WebFOCUS App Studio Reference Guide 213

4. Creating Reports in WebFOCUS App Studio

Page 214: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Subheader

Inserts a subheader for the selected column into the report. The Layout tab appears, whereyou can modify the Page Setup.

Subfooter

Adds a subfooter for the selected column into the report. The Layout tab appears, where youcan modify the Page Setup.

Recompute

Recalculates totals for the selected column or on all outer sort fields. Recalculates only atthe specified sort break, similar to Subtotal.

Recap

Creates subtotal values in a calculation for the selected column.

Related Information:

Page Setup Group on page 200

Field Properties Dialog Box

The Field Properties dialog box contains options that pertain to the selected field. You can accessthe Field Properties dialog box by using the shortcut menu of a field, on the Report canvas, andclicking Options. You can also access the Field Properties dialog box by double-clicking a field onthe Report canvas.

Field Properties General TabReference:

Select a Detail or Aggregate field on the Report canvas and click Options from the shortcut menuto open the Field Properties dialog box at the General tab.

Output

New Line (OVER) places field names over one another. This is one way to decrease the widthof a report, particularly when you are sorting horizontally (Across).

Within

Select a WITHIN phrase, which requires a BY phrase and/or an ACROSS phrase. A maximumof two WITHIN phrases can be used per display command.

First Within (BY)

Select a first WITHIN phrase.

214 WebFOCUS

Field Tab

Page 215: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Second Within (ACROSS)

Select a second WITHIN phrase, if necessary.

Field Properties Sort TabReference:

Select a Sort By field on the Report canvas and click Options from the shortcut menu to openthe Field Properties dialog box at the Sort tab.

Sorting Tab

The sorting tab contains options for how to sort the selected fields data.

Current Sort Statement

Reflects the sort conditions that are in effect.

Sort Limit

Limits the number of sort values to display.

Subtotal others

Subtotals the items selected.

Title

The title of the limit item.

Total

These options pertain to the total of an item.

On calculates and displays the total.

Off does not calculate or display the total. This is the default option.

Variable makes the option a parameter whose value is prompted for at run time. Clickingthe ampersand (&) button opens the Guided Variable Definition dialog box, which enablesyou to change the parameter name suffix, display text, order of values, and display orreturn values.

Sort Sequence

The Sort Sequence button opens the Sort Sequence Builder, which allows you to pull in datafrom a field and customize sorting priorities.

WebFOCUS App Studio Reference Guide 215

4. Creating Reports in WebFOCUS App Studio

Page 216: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Grouping Tab

The Grouping tab is only available when you sort a report using a numeric sort field.

Current Sort Statement

Reflects the sort conditions that are in effect.

Grouping

None

No grouping option will be in effect. This is the default option.

IN-GROUPS-OF

Groups sort field values in specified increments.

IN-RANGES-OF

Defines the range by which sort field values are grouped.

Variable

Variable makes the option a parameter whose value is prompted for at run time. Clickthe ampersand (&) button to open the Guided Variable Definition dialog box, which enablesyou to change the parameter name suffix, display text, order of values, and display orreturn values.

Range or Number of Tiles

Allows for a range of number tiles to be present with the grouping.

None is the default option.

Variable makes the option a parameter whose value is prompted for at run time. Clickthe ampersand (&) button to open the Guided Variable Definition dialog box, which enablesyou to change the parameter name suffix, display text, order of values, and display orreturn values.

Limit

If specified, this value limits the number of groups of the specified interval to be retrieved.

On allows for a limit to be in place.

Off does not allow for a limit to be in place. This is the default option.

216 WebFOCUS

Field Tab

Page 217: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Variable makes the option a parameter whose value is prompted for at run time. Clickthe ampersand (&) button to open the Guided Variable Definition dialog box, which enablesyou to change the parameter name suffix, display text, order of values, and display orreturn values.

Highest Value

In order to use the Highest Value option, Limit must be set to On or Variable. This optionenables you set the highest value for the limit.

None is the default option.

Variable makes the option a parameter whose value is prompted for at run time. Clickthe ampersand (&) button to open the Guided Variable Definition dialog box, which enablesyou to change the parameter name suffix, display text, order of values, and display orreturn values.

Tiles

Select this option to group numeric data into any number of tiles (percentiles, deciles,quartiles, and so on). A new column, labeled TILE by default, is added to the report outputand displays the tile number assigned to each instance of the tile field.

Title

You may type in a unique title name.

You can combine these selections with the list of defined Actions.

Appearance Tab

You use the Appearance tab while creating or editing a report to filter specific fields, sort datain a field, and style the titles and data of a field. The Appearance tab is located at the top of theApp Studio interface. It is only accessible when a field is selected on the Report canvas. TheAppearance tab is shown in the following image.

WebFOCUS App Studio Reference Guide 217

4. Creating Reports in WebFOCUS App Studio

Page 218: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Style Group

You can the style data, titles, and text of a selected field. The Style group is shown in the followingimage.

The commands are:

Scope

Indicates whether style options apply to the data, title, or both.

Bold

Applies bold font formatting to the text or selected object.

Italic

Applies italic font formatting to the text or selected object.

Underline

Underlines the text or selected object.

Left

Aligns the text or selected object to the left.

Center

Aligns the text or selected object to the center.

Right

Aligns the text or selected object to the right.

Default

Applies the default alignment options. In this case, numerals are aligned to the left and textis aligned to the right.

Column Width

Sets column width options.

Copy Style

Copies the style of the selected object, enabling the Paste Style command.

218 WebFOCUS

Appearance Tab

Page 219: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Paste Style

Pastes your copied style settings to the selected field.

Match Style

Copies the specific style settings from one column to another.

Font Name

Changes typed or highlighted text to the selected font.

Font Size

Changes typed text or a selected object to the selected size.

Color

Changes typed text or a selected object to the selected color.

Background Color

Changes the background color. Opens the Color dialog box, where you can select thebackground color.

Defaults

Resets the typed text or a selected object to the default style settings.

Borders

Turns borders and gridlines on or off.

Related Information:

Color Dialog Box on page 173

Borders Dialog Box on page 174

Width Options Dialog Box on page 177

Format Group

Use the tools in the Format group to change the formatting of numeric detail fields. For example,you can add percentage signs to data and indicate currency (with or without symbols). This groupis unavailable when the format option or edit option for the selected field are eight characters inlength or attempt to go over eight characters in length.

Note: If you select Sort Down, Sort Across, or For Row, the options in the Format group willbe unavailable.

WebFOCUS App Studio Reference Guide 219

4. Creating Reports in WebFOCUS App Studio

Page 220: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Format group is shown in the following image.

The commands are:

Currency

Adds a currency symbol in front of the field data. Enables the selection of a currency, forexample Floating Dollar or Fixed Euro. The symbol used is that of the currency selected. If aFixed currency is selected, no symbol appears. If a Floating currency is selected, the currencysymbol appears.

Percent

Adds a percentage symbol after the field data.

Comma

Enables the display of commas in the field data.

More Decimals

Decreases the number of decimal positions shown.

Less Decimals

Increases the number of decimal positions shown.

Display Group

You can add a data visualization column to a report, display numeric data differently, and addconditional styling. The Specific group is shown in the following image.

220 WebFOCUS

Appearance Tab

Page 221: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Data Bars

Enable the Data Visualization dialog box, through which you can add a data visualizationcolumn to the right of a selected numeric field. The column displays values in each row usinghorizontal bars that extend from left to right in varying lengths, depending on the correspondingdata values. For more information, see Data Visualization Dialog Box on page 222.

Aggregation

Displays numeric data using a variety of aggregation types. Different aggregation types areavailable depending on the field and the column type for that field. These aggregation typesare:

(None)

Sum

Average

Count

Count Distinct

Percent of Count

Distinct Values

First Value

Last Value

Minimum

Maximum

Total

Percent

Row Percent

Median

Mode

Average Square

WebFOCUS App Studio Reference Guide 221

4. Creating Reports in WebFOCUS App Studio

Page 222: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Traffic Lights

You use the Traffic Lights functionality to set styling and hyperlinks conditions. Adds conditionalstyling or modifies existing conditional styling by applying colors to a field in the output whenthe field meets specified criteria. Options include: None or Add/Edit Conditions. If you selectAdd/Edit Conditions, the selection option changes to Sorted Data.

To style a specific condition, select a condition and then use the Style group. This will onlystyle the condition you selected.

Hide Field

You can hide or show a selected field in the output. Fields added to a report or chart arevisible in the output by default. The Visibility group is shown in the following image. Optionsinclude On, Off, or Variable. When a data field is invisible, it appears on the Report canvas(dimmed) and is not visible in the report output.

Note: An invisible column or field may be used in the report as part of a calculation, eventhough it is set to invisible and will not display in the output.

Data Visualization Dialog Box

You use the Data Visualization dialog box to define the data visualization bar graphs that appearin your report.

If you are setting conditions to control the display of bar graphs, you use the Data VisualizationConditional Styling dialog box instead of this one.

The Data Visualization dialog box contains the following fields or options:

Visualize

Initiates the Data Visualization feature.

Color

Specifies the color of the bar graphs. Select a color from the drop-down list. Black is usedas the default color.

The color option is the default for HTML, PDF, and PS formats.

Pattern

Specifies the shading patterns for bar graphs. Select a shading pattern from the drop-downlist.

222 WebFOCUS

Appearance Tab

Page 223: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

This option is only available for PDF and PS formats to make graphs in black and white reportsmore readable. If the report format is HTML, the Pattern option button is inactive becausethe shading option is only available for PDF and PS formats.

Graphlook

Specifies how the graph looks. Select a look from the drop-down list.

Note: Graphlook Gauge or Quality do not support negative values. Use Bar Graphs instead.

Scale

Specifies the relative bar graph scaling for multiple report columns under a common Acrosssort field to which you have applied data visualization.

Note: This option only appears when applied to the entire report.

Choose one of the following options from the Scale drop-down list:

Uniform

Specifies that each vertical bar graph be scaled based on the minimum and maximumvalues of the entire set of values compiled from each Across column to which you haveapplied data visualization bar graphs.

Distinct

Specifies that each vertical bar graph be scaled based on the distinct minimum andmaximum values for each Across column to which you have applied data visualizationbar graphs.

Maximum Length:

Specifies the length of the longest bar graph.

Default. The default length of 60 pixels is used for a vertical bar graph and 80 pixelsfor a horizontal bar graph.

Custom. Sets the value for displaying the vertical or horizontal bar graph for the maximumdata value in the associated report column. This value must be a positive number.

This value is initially expressed in the current windows measurement units (inches,centimeters), then converted into the corresponding number of pixels.

Width:

Specifies the width of the bar graphs in a report.

Default. This value is preset based on the current font size.

WebFOCUS App Studio Reference Guide 223

4. Creating Reports in WebFOCUS App Studio

Page 224: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Custom. Sets the value for displaying the width of the bar graphs in a report. This valuemust be a positive number.

This value is initially expressed in the current windows measurement units (inches,centimeters), then converted into the corresponding number of pixels.

Default Values button

Resets all defaults.

Conditional Styling button

Opens the Data Visualization Conditional Styling dialog box where you can define conditionsand colors for bar graphs.

Links Group

You can add a hyperlink or drill-down procedure to a selected field in a report. The Links groupis shown in the following image.

The command is:

Hyperlink

Adds a hyperlink or drill-down procedure to a selected field in a report. For more information,see How to Access the Drill Down Dialog Box on page 224.

How to Access the Drill Down Dialog BoxProcedure:

1. On the Report tab, in the Links group, select Hyperlink.

The Drill Down dialog box displays.

2. Select one of the following actions:

No action (default)

Execute Procedure (FOCEXEC)

URL

URL from field

224 WebFOCUS

Appearance Tab

Page 225: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Javascript

Maintain Case

Maintain Procedure

Maintain Procedure Compiled

Note: If you select an action involving a procedure, the Browse button will be enabled,allowing you to navigate to the location of the procedure.

3. Select a Target Frame using the drop-down list box.

Note: This does not display when URL from field is selected.

4. Click Add.

The Drill Down Parameter dialog box displays.

5. Select a Parameter name from the drop-down list box.

6. For Parameter value, select one of the following options:

Field. Allows you to select a specific field from the drop-down list.

Constant Value. Allows you to specify a constant value.

Variable. Allows you to specify a variable.

7. Click OK.

8. On the Drill Down dialog box, click OK.

Active Technologies Reports Group

You can choose to show or hide columns in an active report, as shown in the following image.

Present Hidden

You can select which columns are hidden from view, in the report output, when using theHTML active report output format.

WebFOCUS App Studio Reference Guide 225

4. Creating Reports in WebFOCUS App Studio

Page 226: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Active Technologies Report Options Tab

You can change the options that apply to an active report. The active report Options tab is locatedat the top of the App Studio interface and is accessible only when you have selected an activereport output. The active report Options tab is shown in the following image.

Active Technologies Cache Group

You can change the paging of a report and the number of rows retrieved. The active cache groupis shown in the following image.

The commands are:

On-Demand Paging

When on-demand paging is enabled, the viewer displays one page of report output andnavigational controls. You use the navigational controls to change the report page that appearsin the viewer.

Your browser consists of two frames, the Report Frame and the Viewer Control Panel frame.The Report Frame is the larger frame and contains one page of report output. When you firstrun a report, the Report Frame contains the first page of report output.

The Viewer Control Panel frame contains the controls you use to navigate through the reportand to search for a string. The navigational controls allow you to display the next or previouspage, the first or last page, or to display a specific page. You use the searching function tolocate a page of the report that contains the search string you specify.

Rows Retrieved

Sets the number of rows displayed in the output. 100 is the default.

226 WebFOCUS

Active Technologies Report Options Tab

Page 227: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Viewing Restrictions Group

You can set a password to access an active report, and set an expiration date so that an activereport is no longer viewable past that date. The Viewing Restrictions group is shown in the followingimage.

The commands are:

Password

Sets a password that must be entered to view the active report output.

It is a character string up to 32 characters in length. Only standard alphanumeric Englishcharacters are allowed in the password for an active report in AHTML format. NationalLanguage Support (NLS) characters are not allowed in the password. Any NLS character inthe password for an AHTML report makes the password invalid.

Expire

The date when an active report expires and the report output can no longer be viewed(displayed).

Enter the expiration date in year, month, day (yymmdd) format or in day format (1-999 DAYS)where the value indicates the number of days from the current date that the report expires.Valid values are 1 to 999 days. Note that you must enter the number and the word DAYS aspart of the value.

Chart Engine Group

You can change which chart engine to use when creating charts. The Chart Engine group is shownin the following image.

WebFOCUS App Studio Reference Guide 227

4. Creating Reports in WebFOCUS App Studio

Page 228: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Chart Engine

You can select which engine to use when creating a chart. The options you can select are:

<not set>. No selection has been made.

Standard. The default JavaScript charts will be used.

Flash. This option will change the engine to use Fusion charts.

HTML5. This option will change the engine to use High charts. This is the default chartengine for AHTML and FLEX formatted reports.

Flex. This option will change the engine to use Flex charts, if available.

Calculations Group

You can set the color, position, and options available for calculations. The Calculations group isshown in the following image.

The commands are:

Calculation Options

Enables you to turn on calculations for fields in the report. All visible fields in the reportappear in the Column list in the order they appear in the report. Hidden fields do not appearin the Column list.

You can select a calculation for each field in the Column list from the Calculation drop-downlist. Calculation options are determined by the field type. If the field is in an alphanumericformat, the drop-down list contains Count and Count Distinct. If the field is a numeric format,the drop-down list contains Sum, Average, Count, Count Distinct, Minimum, and Maximum.

Values

Opens the Color dialog box, where you can set the color of calculation values.

Background

Opens the Color dialog box, where you can set the background color of calculations.

228 WebFOCUS

Active Technologies Report Options Tab

Page 229: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Top

Displays calculations at the top of the report.

Bottom

Displays calculations at the bottom of the report.

Legend Options Group

You can change the visibility, collapsibility, and position of the legend. The Legend Options groupis shown in the following image.

The commands are:

Fixed

Sets the legend to always be visible.

Collapsible

Sets the legend to be collapsible.

Bottom Left

Minimizes the legend and moves it to the bottom left.

Bottom Center

Minimizes the legend and moves it to the bottom center.

Bottom Right

Minimizes the legend and moves it to the bottom right.

WebFOCUS App Studio Reference Guide 229

4. Creating Reports in WebFOCUS App Studio

Page 230: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Window Display Group

You can use this group to display multiple reports differently. The Window Display group is shownin the following image.

The commands are:

Default

View multiple reports with default windows.

Cascade

View multiple reports with cascading windows.

Tabs

View multiple reports in one window with a tab for each report.

Freeze Columns Group

You can freeze the selected column and all columns to the left of that column. The Freeze Columnsgroup is shown in the following image.

The command is:

Freeze columns

Freezes the report at a particular point so that columns to the left of the freeze point remainin view while you scroll through the other report columns. You can select any of the fieldspresent on the report canvas to freeze the report at that point, or you can select None toturn off the Freeze option.

If the report can be fully viewed in the browser window, then freeze is not applied.

The Freeze columns option is not available for expandable report (Accordion) views.

230 WebFOCUS

Active Technologies Report Options Tab

Page 231: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Pagination Group

You can set the location and color of the status bar and page navigation bar. You can also specifywhether or not to display these bars. The Pagination group is shown in the following image.

The commands are:

Top Left

Sets the record status bar and page navigation bar to display on the top left.

Top Center

Sets the record status bar and page navigation bar to display on the top center.

Top Right

Sets the record status bar and page navigation bar to display on the top right.

Bottom Left

Sets the record status bar and page navigation bar to display on the bottom left.

Bottom Center

Sets the record status bar and page navigation bar to display on the bottom center.

Bottom Right

Sets the record status bar and page navigation bar to display on the bottom right.

Off

Sets the record status bar and page navigation bar to not display.

Text

Sets the text color for the record status bar and page navigation bar. Opens the Color dialogbox.

Background

Sets the background color for the record status bar and page navigation bar. Opens the Colordialog box.

WebFOCUS App Studio Reference Guide 231

4. Creating Reports in WebFOCUS App Studio

Page 232: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Visualize Group

You can apply data visualization to numeric fields in an active report. You can designate thecolors of the bars and set different colors for positive and negative values. The default color forpositive and negative values is black. The Visualize group is shown in the following image.

The commands are:

Positive

Sets the color for positive numeric values. Opens the Color dialog box.

Negative

Sets the color for negative numeric values. Opens the Color dialog box.

Icons

Sets which icon set to use for your active report.

Row Selection Group

You can set the color of a row of data when you pause the mouse pointer on the row or whenyou select the row. The Row Selection group is shown in the following image.

The commands are:

Hover

Sets the color of a row of data when you pause the mouse pointer on the row. Opens theColor dialog box.

Selected

Sets the color of a row of data when you select that row. Opens the Color dialog box.

232 WebFOCUS

Active Technologies Report Options Tab

Page 233: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Menu Options Group

You can make specific options available in the active report and set the color of menu items.The Menu Options group is shown in the following image.

The commands are:

Show Records

Adds pagination options when selected.

Filter

Adds filter options when selected.

Freeze

Adds freeze options when selected.

Calculations

Adds calculation options when selected.

Hide/Unhide

Adds hide options when selected.

Chart

Adds chart options when selected.

Export

Adds exportation options when selected.

Visualize

Adds visualization options when selected.

Sorting

Adds sorting options when selected.

Rollup

Adds rollup options when selected.

WebFOCUS App Studio Reference Guide 233

4. Creating Reports in WebFOCUS App Studio

Page 234: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Pivot (Cross Tab)

Adds pivot options when selected.

Comments

Adds comment options when selected.

Window Type

Adds window options when selected.

Restore Original

Adds restoration options when selected.

Send as Email

Adds email options when selected.

Save Changes

Adds save options when selected.

Print

Adds print options when selected.

Accordion

Adds accordion options when selected.

Advanced Tools

Adds tool options when selected.

Grid Tool

Adds grid options when selected.

Font Text

Sets the color of menu text. Opens the Color dialog box.

Font Hover

Sets the color of menu text when you pause the mouse pointer on menu text. Opens theColor dialog box.

Menu Background

Sets the background color of menu text. Opens the Color dialog box.

234 WebFOCUS

Active Technologies Report Options Tab

Page 235: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Menu Hover

Sets the background color of menu items when you pause the mouse pointer on the menuitems. Opens the Color dialog box.

Menu Border

Sets the color of the border for menu text. Opens the Color dialog box.

Application Container Group

Sets the width and height of FLEX or APDF formatted active reports. The Application Containergroup is shown in the following image.

Width

Sets the width of the active report container for FLEX or APDF formatted reports.

Height

Sets the height of the active report container for FLEX or APDF formatted reports.

Matrix Tab

You can create, calculate, and present financially oriented data such as balance sheets,consolidations, profit and loss statements, budgets, and certain government mandated financialreports. These reports are distinguished from other WebFOCUS reports because calculations areinter-row as well as inter-column. Each row or line represents a unique entry or series of entriesthat can be aggregated directly from the input data, or calculated as some function of the data.The Matrix tab is located at the top of the App Studio interface and is only accessible when aFOR field is selected on the report canvas and the Matrix tab is selected from the bottom of theReport canvas. The Matrix tab is shown in the following image.

WebFOCUS App Studio Reference Guide 235

4. Creating Reports in WebFOCUS App Studio

Page 236: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

View Group

You use the View group to change the type of a field. The View group is shown in the followingimage.

The commands are:

Design Mode

Toggles the financial report between Design mode and Preview mode. Design mode is whata user will see at run time and Preview mode is used to assist you in the creation of yourfinancial report.

In Preview mode, the Financial Report Painter displays the following:

In the first column, a label assigned to each row in the report such as R1 and R2 (or anexplicit row label if you have supplied one).

In the second column, default titles, or titles you assigned to rows in the report,representing TAG values of the FOR field and other row types.

In subsequent columns, any other fields you specified for the report.

Display Properties

Shows the properties of the selected row in a dialog box named after the row type. Forexample, if your row was the DATA type, the associated dialog box would be shown as theDATA dialog box. You can edit the properties for that row from this dialog box.

236 WebFOCUS

Matrix Tab

Page 237: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Insert Group

You can use the Insert group to insert a row into the financial report. The type depends on whichbutton you click. You can choose between Tag, Recap, Text, Bar, Data, and Pickup. You can alsochange the a row to a different type by selecting the row and clicking one of the row type buttons.The Insert group is shown in the following image.

The commands are:

Tag

Inserts a tag row or changes a row to a tag row. Tags identify the data values of the FOR fieldin your report. A report row can be associated with a tag that represents:

A single data value of the FOR field.

The aggregate of two or more data values of the FOR field.

The aggregate of a range of data values of the FOR field.

The aggregate of a related group of data values of the FOR field.

You can also identify tag values that are organized in a parent/child hierarchy up to 99 levelsdeep and extending over many rows in the matrix.

The Tag button on the Financial Report Painter toolbar opens the TAG dialog box, from whichyou can define all of these variations.

Recap

The date when an active report expires and the report output can no longer be opened(displayed).

Enter the expiration date in year, month, day (yymmdd) format or in day format (1-999 DAYS)where the value indicates the number of days from the current date that the report expires.Valid values are 1 to 999 days. Note that you must enter the number and the word DAYS aspart of the value.

Text

Sets a password that must be entered to view the active report output.

WebFOCUS App Studio Reference Guide 237

4. Creating Reports in WebFOCUS App Studio

Page 238: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A character string up to 32 characters in length. Only standard alphanumeric English charactersare allowed in the password for an active report in AHTML format. National Language Support(NLS) characters are not allowed in the password. Any NLS character in the password for anAHTML report makes the password invalid.

Bar

The date when an active report expires and the report output can no longer be opened(displayed).

Enter the expiration date in year, month, day (yymmdd) format or in day format (1-999 DAYS)where the value indicates the number of days from the current date that the report expires.Valid values are 1 to 999 days. Note that you must enter the number and the word DAYS aspart of the value.

Data

Sets a password that must be entered to view the active report output.

A character string up to 32 characters in length. Only standard alphanumeric English charactersare allowed in the password for an active report in AHTML format. National Language Support(NLS) characters are not allowed in the password. Any NLS character in the password for anAHTML report makes the password invalid.

Pickup

The date when an active report expires and the report output can no longer be opened(displayed).

Enter the expiration date in year, month, day (yymmdd) format or in day format (1-999 DAYS)where the value indicates the number of days from the current date that the report expires.Valid values are 1 to 999 days. Note that you must enter the number and the word DAYS aspart of the value.

Row/Cell Group

You use the Row/Cell group to create and edit rows and cells. The Row/Cell group is shown inthe following image.

238 WebFOCUS

Matrix Tab

Page 239: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Add Row

Adds a blank row at the bottom of the matrix.

Insert Row

Inserts a blank row between two existing rows.

Delete Row

Deletes the selected row.

Make Recap (Rows)

Creates a RECAP row based on the sum of other values in the matrix.

Make Recap (Cells)

Creates a RECAP cell based on the sum of other values in the matrix.

Report Properties Group

You use the Report Properties group to control financial report properties. The Report Propertiesgroup is shown in the following image.

The commands are:

Use Multiple Values

Allows you to add the same data value to multiple rows.

First Instance

When enabled, adds the .FST to all summed numeric columns, ensuring the shared value isonly counted once.

WebFOCUS App Studio Reference Guide 239

4. Creating Reports in WebFOCUS App Studio

Page 240: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Row Properties Group

You use the Row Properties group to control row properties from this group. The Row Propertiesgroup is shown in the following image.

The commands are:

Invisible

When enabled, hides the selected row.

When Exists

When enabled, you can hide a row, if no data exists in that row.

Post To

You can enter the name of a file you want to a row of output.

Modeling Tab

You can use the Modeling tab to access WebFOCUS RStat, a statistical modeling workbench thatis embedded in App Studio. You can perform common statistical and data mining tasks, anddevelop models that can be deployed as scoring applications on every platform. RStat enablesdata miners and Business Intelligence developers to collaborate with the same tools used toaccess, manipulate, or transform data, develop predictive models, and create and deploy scoringapplications along with associated reports to any worker within their organization.

You can pass any data generated from the Report canvas directly into RStat. After you pass thedata to RStat, you can develop your data, join various data sources, build virtual fields, and createdata sets to pass to RStat for modeling. The Launch button extracts the data defined within yourreport and loads it directly into RStat. Within each report, you can customize the name of thehold file that you create, and the location at which it is stored. If you do not customize the nameand location of the hold file, a default name and location are assigned.

Note: The Modeling tab is only accessible when RStat is installed.

240 WebFOCUS

Modeling Tab

Page 241: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Modeling Group

You can run RStat and edit the RStat configuration model options. You can also conduct samplingactivities. The commands are:

Launch

Extracts the data defined in your report and loads it directly into RStat. RStat opens in a newwindow.

Note: The file name that loads in RStat is that which you define on the RStat ModelConfiguration dialog box. The default file name is HOLD (HOLD.CSV).

Parameters

When you click the Parameters button, the RStat Model Configuration dialog box displays.In this dialog box, you can name the hold file that will be used to pass the model data fromthe Report canvas into RStat (the default file name is HOLD). You can also define the directoryin which the hold file should be placed. You can customize the default hold path for yourprocedures (.fex files). Your model configuration parameters are saved when you exit theRStat Model Configuration dialog box.

Sampling

Opens the Sampling dialog box. You can generate statistically representative data extractsfor data examination and modeling purposes. You can select Random, Numeric Stratified,or Categorical Stratified sampling.

You can also disable sampling. Each option contains a set of criteria that you can edit forthe sampling.

Note: In order for sampling to work, you must select a data field prior to clicking Sampling.If you do not select a data field, the message No field is available for sampling will be theonly item that appears in the dialog box.

Related Information:• How to Launch RStat on page 241• How to Set Parameters Using the RStat Model Configuration on page 242• Sampling Functionality on page 242• Basic Sampling Concepts and Terminology on page 243

How to Launch RStatProcedure:

1. Create a report in App Studio.

WebFOCUS App Studio Reference Guide 241

4. Creating Reports in WebFOCUS App Studio

Page 242: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Add fields to the report.

3. On the Modeling tab, in the Modeling group, click the RStat icon.

RStat launches in a separate window.

4. Optionally, customize the variables that are imported into RStat.

Note: The fields that you define on your report canvas are imported into RStat in the orderspecified in your report.

For more information on using RStat, refer to the Using WebFOCUS RStat for Predictive Analyticsmanual.

How to Set Parameters Using the RStat Model ConfigurationProcedure:

You use the Parameters option to specify a name for the data file, as well as an output directory.

1. On the Modeling tab, in the Modeling group, click Parameters.

The RStat Model Configuration dialog box displays.

2. In the Hold File Name field, enter a name for the file or optionally browse to select an existingfile.

Note: The default Hold file name is HOLD and displays in the file name field on the Datatab in RStat. If you change the name of the file on the RStat Model Configuration dialogbox, this revised file name is reflected in RStat.

3. In the Hold File Path field, enter or select a path in which to save the file.

Note: You can restore the original drive and directory by clicking Default.

4. Click OK.

When you launch RStat, this file name is the default Hold file used upon entry into theapplication.

Sampling Functionality

The sampling functionality is accessible through the Modeling tab in App Studio. Sampling offersthree sampling techniques: Random, Numeric Stratified, and Categorical Stratified.

242 WebFOCUS

Modeling Tab

Page 243: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Random Sampling is a basic sampling technique where you select a group of subjects (asample) from a larger group (a population). Each individual is chosen entirely by chance andeach member of the population has an equal chance of being included in the sample.

Stratified Sampling is obtained by taking separate samples from each sub-group of apopulation (commonly referred to as a stratum).

When you sample a population, stratified sampling allows us to ensure that the proportionof each stratum in the sample is the same as in the population. Numeric stratified samplingis used when the field identifying the strata is a number and can be defined in terms of arange. Categorical stratified sampling is used for all other data.

Accessing sampling criteria within the Modeling tab requires that at least one field is definedwithin the report extract. If no fields have been defined, you will receive a warning messageinforming you that no fields are available for sampling and the Sampling tab will be present, butno actions will be available. For Random Sampling, which is not tied to a specific field value, anyfield will open the option. For Stratified sampling, the stratum field (the field on which the stratawill be defined) must be included in the report.

Basic Sampling Concepts and Terminology

To produce a valid output sample, each sampling definition requires information about the fileto be sampled. In each sampling routine, you can use the sample calculator to calculate thevalues for each of the following or enter your own values:

Population Size. The number of records in the overall data set to be sampled. Beforeperforming a sampling routine, the population size must be determined. Within the samplingfunction, the population size can be retrieved at design time, generated live at run time, ordefined as a fixed value. Although the population size is usually the total number of recordsin the file, there will be times when you want to sample a subset of the file. To ensure astatistically valid sample, the specified population size must be the same as the number ofrecords sampled.

Confidence Level. Is the probability, expressed in percent, that the selected sample willrepresent the total population. Most guidelines establish a minimum acceptable confidencelevel of 90%, 95%, or 98%.

Margin of Error. Represents the amount of error, expressed in percent, that you can tolerate.Lower margins of error require larger sample sizes.

Response Distribution. Allows you to correct for skewness in the sample (if the sampledeviates from the normal standard deviation). Use the Response Distribution percentage toaccount for the skewness in population.

WebFOCUS App Studio Reference Guide 243

4. Creating Reports in WebFOCUS App Studio

Page 244: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Seed. The statistical sampling routines use a seed value for the pseudo random numbergenerator. This generator produces a series of random numbers from the entered seed. Theserandom numbers are then used to determine each record to include in the sample. The seedhas no affect on the number of records included in the sample, it only affects which recordsare selected. A single seed will produce the same set of random numbers, so if you want toreplicate a sample, use the same seed, population size, and record order. To generate aunique sample, enter a new seed value each time.

Sample Size. The number of records that you want to store in the output file. The numbershould be a positive integer, greater than zero and less than the population size.

244 WebFOCUS

Modeling Tab

Page 245: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating HTML Pages in WebFOCUS AppStudio

5Chapter

In App Studio, you can create and edit HTML pages using the HTML canvas. When youcreate a new HTML page, you use the HTML/Document wizard.

This topic describes how to launch the HTML/Document wizard to create HTML pages. Italso identifies and explains the tabs and panels that are available when you are developingHTML pages in the HTML canvas.

In this chapter:

Tasks & Animations PanelLaunching the HTML/Document Wizard

Components Tab Requests & Data Sources Panel

Specifying Browser Defaults With the StyleComposer

Controls Tab

Positioning TabChaining in the HTML Canvas

Utilities TabUsing the Toggle Move Via Drag and DropShortcut Option

Using Parameters

Properties PanelUsing JavaScript Code With HTML CanvasPagesSettings Panel

CSS Support Matrix for Internet Explorer

CSS Class Mapping List

Mobile Design for HTML Pages

WebFOCUS App Studio Reference Guide 245

Page 246: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Launching the HTML/Document Wizard

The HTML/Document wizard allows you to create a new HTML Page, Guided Report Page,Document, and active Dashboard, and open a recent procedure.

To open the HTML/Document wizard:

On the Home tab, in the Content group, click HTML/Document.

In the Environments Tree panel, right-click an application folder, point to New, and clickHTML/Document.

The HTML/Document wizard opens, as shown in the following image.

From the HTML/Document wizard, you can open a recent procedure or create a new one.

How to Create an HTML Page Using the HTML/Document WizardProcedure:

After you have launched the HTML/Document wizard, you can begin to create your HTML Page.

1. In the File Type area, select HTML Page.

2. Navigate to where you want to create the new procedure or select a recent procedure.

Note: If you used the shortcut menu in the Environments Tree panel to create your HTMLpage, a location is already selected.

246 WebFOCUS

Launching the HTML/Document Wizard

Page 247: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Optionally, click Next if you want to add Themes to your HTML page, enable Mobile Design,add a title to your HTML page, or enable Autosize Children.

4. Click Finish.

Note: The Finish button is unavailable until you select a valid path.

The HTML canvas, Thumbnails panel, Settings panel, and Properties panel open. You cannow add data to your HTML page and format the data using the tabs in the ribbon.

5. To save your HTML page, click the Save button on the Quick Access Toolbar or select Savefrom the Application menu.

6. To run your HTML page, click Run on the Quick Access Toolbar or click Run from theApplication Menu.

How to Create a Guided Report Page Using the HTML/Document WizardProcedure:

After you have launched the HTML/Document wizard, you can begin to create your own GuidedReport page.

1. In the File Type area, select Guided Report Page.

2. Navigate to where you want to create the new procedure or select a recent procedure.

Note: If you used the shortcut menu in the Environments Tree panel to create your GuidedReport page, a location is already selected.

3. Click Finish.

Note: The Finish button is unavailable until you select a valid path.

The HTML canvas, Thumbnails panel, Settings panel, and Properties panel open. You cannow add data to your Guided Report page and format the data using the tabs in the ribbon.

4. To save your Guided Report page, click the Save button on the Quick Access Toolbar or selectSave from the Application menu.

5. To run your Guided Report page, click Run on the Quick Access Toolbar or click Run fromthe Application Menu.

Components Tab

You can add a variety of components to an HTML page using the command groups in theComponents tab.

WebFOCUS App Studio Reference Guide 247

5. Creating HTML Pages in WebFOCUS App Studio

Page 248: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Components tab contains the Reports, Generic Elements, Containers, and Objects groups,as shown in the following image.

Reports Group

From the Reports group, you can add a Report or Chart to your HTML page. The Reports groupis shown in the following image.

The commands in the Reports group are:

Report

Inserts a report object. You can add reports to the HTML canvas that will display when yourun the layout. You can either embed or reference reports. Double-clicking a blank reportobject opens the Report canvas where you can create, and style a report to be used in theHTML page.

You can also include parameters in a report whose values can be assigned with controls thatare added with the HTML canvas.

Chart

Inserts a chart object. You can add charts to the HTML canvas that will display when you runthe layout. You can either embed or reference charts. Double-clicking on a blank chart objectwill open the Chart canvas where you can create and style a chart to be used in the HTMLcanvas.

Related Information:• How to Add a New Report or Chart to an HTML Page on page 248• How to Add an Existing Report or Chart to a Layout on page 249

How to Add a New Report or Chart to an HTML PageProcedure:

1. Insert a report or chart object by doing one of the following:

248 WebFOCUS

Components Tab

Page 249: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Click the Report or Chart button from the Components group.

Right-click in the layout and select New Report or New Chart from the shortcut menu.

The pointer changes into a crosshair.

2. Drag the crosshair to create a report or chart object and adjust it to the size that you want.

A report or chart object is created in the layout and assigned the name report(n) or chart(n),where n is a number. The object will appear in gray and white to indicate that the placeholderdoes not have a report or chart associated with it. Once a report or chart is associated withthe object, the object displays the contents of the report or chart if live or simulated data isactive (live data is the default) or a colored placeholder if preview is off in the HTML Pagetab, located in the App Studio Options dialog box.

3. Create a report or chart by doing one of the following:

Double-click the placeholder.

or

Right-click the placeholder and select New Report for a report, or New Chart for a chart.

The Open dialog box opens.

4. Select the Master File you want to use and click Open.

The Report canvas opens for reports and the Chart canvas opens for charts.

5. Optionally, after creating the report or chart, you can change its properties by adjusting theproperties displayed in the Properties tab of the Properties window.

How to Add an Existing Report or Chart to a LayoutProcedure:

1. Insert a report or chart object by doing one of the following:

On the Components tab, in the Components group, click Report or Chart.

The pointer changes into a crosshair. Drag the crosshair to create a report or chart objectand adjust it to the size you want.

A report or chart object is created in the layout and assigned the name report(n) or chart(n),where n is a number. The object will appear in gray and white to indicate that theplaceholder does not have a report or chart associated with it. Once a report or chart isassociated with the object, the object displays the contents of the report or chart if liveor simulated data is active (live data is the default) or a colored placeholder if preview isoff in the HTML Page tab, located in the App Studio Options dialog box.

WebFOCUS App Studio Reference Guide 249

5. Creating HTML Pages in WebFOCUS App Studio

Page 250: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Right-click in the layout and select New Report or New Chart from the shortcut menu.

2. Right-click the report or chart and select Reference existing procedure.

For a report, right-click the report object and select Import existing report.

For a chart, right-click the chart object and select Import existing chart.

The Open dialog box opens.

3. Enter the name of the procedure you want to add to the layout.

4. Click Open.

The report or chart object appears in the Design view of the HTML canvas.

Generic Elements Group

You can add a variety of basic elements. The Generic Elements group is shown in the followingimage.

The commands in the Generic Elements group are:

Image

Inserts an image. You can add an image to the layout. This is useful for including graphics,such as a company logo.

You can insert an image into your report layout and add a hyperlink. After you run your reportand click the image, you can launch a URL or run a report the same way by clicking a hyperlinkor push button.

Note: When inserting images, images must be referenced from a specific directory location.

Hyperlink

Inserts a hyperlink.

250 WebFOCUS

Components Tab

Page 251: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Button

Inserts a button. A push button enables you to execute a report or link to a URL or HTML file.This behavior is similar to a hyperlink.

Reset

Inserts a reset button. A reset button enables you to revert the entire page back to its initialsettings.

Save Selection

Inserts a save selection button. This component is available only when you are using ManagedReporting.

Label

Inserts a label. A label is simply a piece of text. The label component enables you to createand name a label, and link it to a control by assigning the label HTML for property the samevalue as the Unique Identifier property for the control.

Text

Inserts a text box. You can add text to the layout. This is useful for including headings foryour webpage, or adding directions or explanation for your report or chart.

Line

Inserts a line. You can add a horizontal or vertical line to the layout. This is useful fordistinguishing between sections of your launch or display page.

Menu

Inserts a menu. You can add a horizontal or vertical menu to the layout. This component canbe used with Maintain code.

Table

Inserts a table. You can add a horizontal or vertical line to the layout. This component canbe used with Maintain code.

Grid

Inserts a grid.

Related Information:• Specifying Browser Defaults With the Style Composer on page 372• Using the Font Dialog Box on page 252• How to Format Text in the Layout on page 252• How to Insert a Bulleted List or Numbered List Into a Text Element on page 253

WebFOCUS App Studio Reference Guide 251

5. Creating HTML Pages in WebFOCUS App Studio

Page 252: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

• How to Insert Nested Lists Into a Text Element on page 253

Using the Font Dialog Box

You can use the Font dialog box to style your text. The options are:

Font

Determines the type of font used. For example, Ariel, Garamond, Times New Roman. Thefonts available for you to use are determined by what fonts are installed on the currentmachine.

Font Style

Determines whether the text is normal, bold, italic, or bold and italic.

Size

Determines how large the text is.

Color

Determines the color of the text.

Effects

Determines what effects, if any, are used for the text. You can select None, Underline,Strikethrough, Overline.

How to Format Text in the LayoutProcedure:

You may apply various formatting and style options to words and individual text characters withinthe text object.

Note: Any formatting and styling that you may have applied to individual text strings withinthe text object will remain unchanged. Changes made to the entire text object are only appliedto part of the text string that has not been formatted.

1. Insert a text object into the layout and type text in the text object.

2. Select the text that you wish to format:

To format the entire text object, single-click the text object in the layout.

To format an individual word or text character, highlight part of the text within the textobject.

3. Right-click on text to access the shortcut menu.

4. Click Style, and then click Font.

252 WebFOCUS

Components Tab

Page 253: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Font dialog box opens.

5. Select from the formatting options available. You can change the type, style, color, size, andeffect of the font.

Note: The Bold, Italic, Underline, Superscript, and Font Style options are available whenformatting individual words or text characters. The Font Style and Alignment options areavailable when the entire text object is selected.

6. Click OK to close the Font dialog box.

The format options are applied to the text selected.

How to Insert a Bulleted List or Numbered List Into a Text ElementProcedure:

To insert a bulleted list or numbered list into a text object:

1. Insert a text object into the layout and enter text on different lines.

2. Highlight and right-click the text.

The right-click shortcut menu opens.

3. Select Bullets and then either Disc, Circle, or Square if you want a bulleted list. SelectNumbering and then either Numbers, Lowercase Letters, Uppercase Letters, Small Romannumerals, or Large Roman numerals if you want a numbered list.

Note:

Alternatively, you can select a bullet type before typing text to begin the list. Pressingenter will begin the next item in the list on a separate line.

To change the bullet or number list type of an existing list, place your pointer on thelist level you want to change and reselect a bullet or number list type. Selecting Nonewill remove the bullets or numbers for that level and move any nested lists up onelevel. In order to switch between bullets and numbers, you must first remove thecurrent list option by selecting None and then applying the list option you want.

How to Insert Nested Lists Into a Text ElementProcedure:

To insert a nested list into the text object:

1. Insert a text object into the layout and create a list.

2. Place your pointer after a list item.

WebFOCUS App Studio Reference Guide 253

5. Creating HTML Pages in WebFOCUS App Studio

Page 254: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Right-click and select Nested List and then select a bulleted or numbered list option.

A list is started within the current list, allowing you to enter text on that list level.

Note: Pressing tab while your pointer is on the same line as a list item will move thatitem one level down, resulting in a nested list. The bullet or number type selected is thenext list type in the right-click shortcut menu. For example, if you have a bulleted list thatuses the disc bullet type, pressing tab to move an item down one level will cause thatnested list to have the circle bullet type.

You can continue to nest lists within other lists by using the same steps shown above.

Note: You cannot skip a list level. For example, in order to insert a nested bulleted listor nested numbered list on a lower level, there must be a list one level up from it.

Containers Group

You can add specific containers that group objects together on an HTML page. The Containersgroup is shown in the following image.

The commands in the Containers group are:

Form

Inserts either a multi-layer or single-layer form.

Tab

Inserts a tab control. Tab controls enable you to create multiple pages in one HTML formand present a better display for viewing secondary information. You can select Top, Bottom,Left, or Right. This means you can choose to add a tab control that displays tabs at the top,bottom, left, or right on the control.

You can drag and resize this object, at run-time, if the Enable dragging and Enable resizingproperties, in the Properties panel, are set to Yes.

When a tab control object is added to the layout, each tab control consists of:

A tab item.

254 WebFOCUS

Components Tab

Page 255: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A tab item is the tab label. You may edit the name of the tab item, style the tab item,and add multiple tab items. Each tab item is associated with a tab body.

A tab body.

A tab body is the tab page where you associate your components, such as report andgraph objects, images, and lines.

The Tab control can be displayed as a full screen or part of an HTML page.

Accordion

Inserts an Accordion styled box. You can drag and resize this object, at run-time, if the Enabledragging and Enable resizing properties, in the Properties panel, are set to Yes.

Window

Inserts a window. You can drag and resize this object, at run-time, if the Enable dragging andEnable resizing properties, in the Properties panel, are set to Yes.

Group Box

Inserts a group box. A group box can be used to create a border around a group of objects,for example, forms or reports and charts.

Panel

Inserts a panel to group objects together. The panel is invisible at runtime.

Related Information:• Reordering Tabs, Accordions, and Windows on page 257• How to Add Additional Tabs on page 255• How to Enable Full Screen Mode for the Tab Control on page 256

How to Add Additional TabsProcedure:

1. Select the tab control object in the layout.

2. Right-click and select Add Page from the shortcut menu.

A tab is added to the tab control object.

3. To align multiple tab items, select the tab control object and click AutoArrange from theshortcut menu,

The tab items are resized to the size of the widest tab item and they are evenly spaced.

WebFOCUS App Studio Reference Guide 255

5. Creating HTML Pages in WebFOCUS App Studio

Page 256: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Enable Full Screen Mode for the Tab ControlProcedure:

You may resize the tab control to fit the full screen of your layout, making the tab control the fullbackground of your window at run time. When set to full screen mode, scroll bars will not beapplied to the output window. Therefore, you may have to adjust the tab control (and any itemson the tab) in the layout to ensure that they appear appropriately for display at run time.

Note: It is recommended to set the tab control to full screen mode at the beginning of thedevelopment process. If there are existing components on the layout that are not part of thetab control, these components will become inaccessible if the tab control is changed to fullscreen mode.

1. From the Containers group, click Tab.

The pointer changes into a crosshair.

2. Drag the crosshair in the layout to create the tab control object.

3. From the Properties panel, enable Autosize Children for the document, set Autosize optionsfor the tab control object to Accept any changes, and then right-click the canvas and clickUpdate Layout.

The tab control displays as a full screen in the layout.

For more information on Autosize Children, see Autosize Children on page 349.

How to Use a Form Object to Create a Pop-Up Dialog BoxProcedure:

You can use a form object to create a pop-up dialog box.

1. Create a form object.

2. Create a button.

3. Select the form.

4. In the Properties panel, change the Display container as property to popup dialog.

5. Create a new task in the Tasks section of the Tasks and Animations panel.

6. Use the button you create as the trigger.

7. Make the button object toggle the visibility of the form you created.

8. Run the page and click the button to display the form as a dialog box.

How to Create a Pop-Up Dialog Box or Pop-Up Window From a Form ControlProcedure:

1. Add a button object to your HTML page.

256 WebFOCUS

Components Tab

Page 257: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Add a form control to your HTML page.

3. Delete the run and back buttons created with the form control.

4. While the form control is selected, in the Properties panel, change the Display container asproperty to either As popup dialog or As popup window.

As popup dialog causes the form to display as a pop-up dialog box. When the dialog box isdisplayed, you must click Close to return to your HTML page.

As popup window causes the form to display as a pop-up window. When the window isdisplayed, you can resize and move the window around your screen.

5. Create a new task in the Tasks section of the Tasks and Animations panel that uses thebutton object to toggle the visibility of the form you created.

6. Run your HTML page.

When you click the button you added to the HTML page, the form will be displayed as eithera pop-up dialog box or a pop-up window, depending on what option you selected.

Reordering Tabs, Accordions, and Windows

You can reorder tabs, accordions, and windows by dragging the page you want to appear first,onto the page you want it to display before. For example, if you have 3 tabs, Tab1, Tab2, andTab3, and you drag Tab3 onto Tab1, Tab3 will now display ahead of Tab1. The order of the tabswill then be Tab3, Tab1, Tab2. You can reorder windows when they are in tile view.

Objects Group

You can add objects other than reports, charts, elements, or containers to customize your HTMLpage. The Objects group is shown in the following image.

The commands in the Objects group are:

Frame

Inserts a frame. You can use a frame to embed additional web sources or run reports. Youcan also use a frame as the output location or target for a drill-down report. You can alsouse a frame to run a table of contents report, an OLAP report, a PDF report, an Excel® or areport.

WebFOCUS App Studio Reference Guide 257

5. Creating HTML Pages in WebFOCUS App Studio

Page 258: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ActiveX

Inserts an ActiveX control.

Flash

Inserts a Flash component. You can add SWF files that are Adobe® Flash Player compatibleto accompany reports or graphs on an HTML page.

Note:

When inserting Flash animations, only files that are 1 MB or smaller can be run using theHTML canvas.

Internet Explorer® 6 does not support the use of Flash content.

Map

Inserts a map. You can add a Google™, Bing®, or ESRI map to your HTML page. Maps areservices offering powerful, user-friendly mapping technology that can be customized to showpoints on a map with drill-down capabilities. You can customize the map properties and bindthem to a report or chart.

GIS Flex Viewer

Inserts a GIS Flex Viewer. The GIS Flex Viewer contains numerous controls, a report, and amap object.

Using Maps

This topic describes how to integrate maps with reports generated from the HTML canvas. Google,Bing, and ESRI Maps are services offering powerful, user-friendly mapping technology that canbe customized to show points on a map with drill-down capabilities. You can customize the mapproperties and bind them to a WebFOCUS report.

Note: Google and Bing Maps are only available if you have an API license key.

In order to present points on a map generated by a WebFOCUS report, data needs to be ingeocode. In other words, data needs to be enriched with geographical data. When bindingWebFOCUS to a map, the source used to bind WebFOCUS reports needs to be defined by latitudeand longitude coordinates and a marker value associated to a group of data in order for the mapto launch properly.

258 WebFOCUS

Components Tab

Page 259: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Configuring WebFOCUS for Maps

To use Bing or Google Maps in HTML canvas, you must first obtain an API key and then applythat key to the WebFOCUS Administration Console.

How to Configure WebFOCUS to Use MapsProcedure:

To integrate WebFOCUS with Maps, set the Google or Bing configuration option in the WebFOCUSAdministration Console.

1. Obtain a Bing Maps or Google Maps API Key.

Note: You must use a Version 7 API key for Bing Maps and a Version 3 or Version 2 APIkey for Google Maps.

2. Access the WebFOCUS Administration Console, using one of the following methods.

Enter the following URL:

http://hostname:port/ibi_apps/welcome.jsp

Select WebFOCUS Administration Console from the WebFOCUS Administration Consoledrop-down menu in the upper-right corner of App Studio.

The WebFOCUS Administration Console appears. You may have to log on depending on howyour configuration is set.

3. Select General from the Client Settings submenu of the Configuration menu.

4. Scroll down to the bottom of the Client Settings - General page to see the Google Maps andBing Maps configuration settings.

5. In the google_maps_api_key or bing_maps_api_key input field, paste the appropriate mapAPI license key that you saved earlier.

Note:

Google Maps API Version 3 does not require a key.

A Version 7 API key is required for Bing maps and a Version 2 API key is required forGoogle Maps.

6. Click Save and log off from the WebFOCUS Administration Console.

WebFOCUS App Studio Reference Guide 259

5. Creating HTML Pages in WebFOCUS App Studio

Page 260: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating WebFOCUS Procedures for Maps

Before binding maps to a WebFOCUS source, you must predefine marker fields in a source file.The source can be a URL, XML file, or external procedure.

Markers are presented at run time on the map by placing an image at specific geographicalpoints. Clicking on the map marker can result in a drill down to a source file, and optionally, atooltip can be presented when pausing on a map marker.

Markers are defined by the following:

Latitude and Longitude coordinates that are used to plot points, or the marker, on the map.

Marker value, usually a calculated value (COMPUTE field or DEFINE field), that associateseach location to a group or a specific icon type.

Optionally:

Fields that contain tooltips or drill downs for the marker.

Images to represent the marker on the map.

Marker fields are displayed by an image, drill down, and/or tooltip in the map.

Note: The following procedures are applicable for using Google Maps, Bing Maps, and ESRIJavaScript API Maps.

How to Create Map Latitude/Longitude Coordinates in the Source FileProcedure:

In order to plot points on the map, you must define each point by its latitude and longitudecoordinates and associate a marker, or group assignment, to each point. The Source file mustbe XML format and must contain fields called LATITUDE, LONGITUDE and MARKER. Additionalfields can be included for tooltips or image icon information.

Note: The following example creates a source file for a map by:

Using the Century Sales (centurysales.mas) Master file.

Joining Century Sales to the Locale data source for latitude/longitude data.

Grouping the location to the LINEPRICE field in the joined data source.

260 WebFOCUS

Components Tab

Page 261: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

1. Join the Century Sales and Locale data sources.

Tip: The Century Sales and Locale data sources are available from the Master Files folderin the IBI Demonstration project of App Studio. You may copy these source files to theproject directory of your choice.

a. Create a new procedure in App Studio.

b. In the Procedure View panel, right-click the procedure name and select Join.

The Open File dialog box appears.

c. Select centurysales.mas and click Open.

The Join canvas opens.

d. Select the Add button from the Join tab.

The Open File dialog box appears.

e. Select locale.mas and click Open.

App Studio automatically creates a Join between the data sources if they both havefields with the same formats. The Join canvas displays both data sources and the defaultJoins.

f. Close the Join canvas to save the Join and update the procedure.

2. Group the location to the LINEPRICE field.

a. From the Procedure View panel, right-click the Join and select new, then Report.

The Open File dialog box appears.

b. Select centurysales.mas and click Open.

The Report canvas opens.

c. Double-click LATITUDE and LONGITUDE from the Object Inspector, making both of thema Sort Down field.

If fields in your source are not called Latitude, Longitude, or Marker, you can:

Use the SET canvas to Set ASNAMES = ON, to add AS Names in your procedure.

In Report canvas, right-click the field and select Column Title, to type in the correctname.

d. Select Sum from the Columns canvas bar and double-click LINEPRICE from the ObjectInspector.

WebFOCUS App Studio Reference Guide 261

5. Creating HTML Pages in WebFOCUS App Studio

Page 262: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

e. Rename LINEPRICE to Line Total.

Each location (Latitude and Longitude) has been grouped to LINEPRICE for the report.

3. Save the report, but do not close it.

The map Latitude and Longitude coordinates have been set. This source file will be selected asthe source file from the HTML canvas later on.

How to Create Map Marker Group Fields and Tooltip Fields in the Source FileProcedure:

Marker and tooltip fields can be computed fields, or any field from your data source.

Note: If you are using a field from your data source as the Marker field, the field name mustbe renamed Marker.

A COMPUTE field is a calculated value in the source file that is used as the Marker field in themap. A COMPUTE field uses an expression that can be used to assign a value to a field.

Note: If the HTML page where your map resides is created in the Repository area and themarker images also reside in the Repository area, then a fully qualified path to the image files(starting with /WFC) is needed, if using a DEFINE/COMPUTE to determine the marker image.For example:IMAGE/A75='/WFC/repository/images/cust_'||IMAGE_COLOR||IMAGE_SIZE;

The following example creates marker fields and canvas tips fields by:

Using the joined data source, Century Sales (centurysales.mas), that was created in theprevious procedure (gmlayer.fex).

Adding a COMPUTE field to create markers, or group assignments, for each location by usingLINEPRICE to group the data.

Adding a second COMPUTE field to associate each group to a marker.

Optionally, adding a COMPUTE field as a tooltip field.

1. Create markers, or group assignments, for each location.

The Report canvas gmlayer.fex is still open. Create a COMPUTE field to assign an integervalue determined by row-based values.

a. From Data canvas, select Summary (Compute) from the Calculation group.

b. Type LINEPRICE_CLASS as the Field name.

262 WebFOCUS

Components Tab

Page 263: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

c. Add a COMPUTE field to assign an integer based on the LINEPRICE value, as indicatedin the following table.

MarkerIntegerLINEPRICE

redicon20 - 999,999

yellowicon31,000,000 - 9,999,999

greenicon110,000,000 - 49,000,000

blueicon050,000,000 or higher

Enter the syntax to use LINEPRICE to group the data:

COMPUTE LINEPRICE_CLASS/I5 = IF LINEPRICE GE 50000000 THEN 0 ELSE IF LINEPRICE GE 10000000 THEN 1 ELSE IF LINEPRICE LE 1000000 THEN 2 ELSE 3

d. Click Apply.

2. Associate each group to a marker.

Create a new COMPUTE field that sets the Marker field with a DECODE statement to convertthe numerical grouping into icon names.

Note: A Marker field can also be any value field from your data source, but must berenamed Marker.

a. Click New while in the Computed Field Creator dialog box.

b. Type MARKER as the Field name.

c. Enter the syntax to associate each group to a marker:

COMPUTE MARKER/A10 = DECODE LINEPRICE_CLASS( 0 'blueicon' 1 'greenicon' 2 'redicon' ELSE 'yellowicon') ;

d. Click Apply.

3. Assign fields as tooltips.

Optionally, if you want to include a tooltip, create an additional COMPUTE field to assignfields as tooltips.

WebFOCUS App Studio Reference Guide 263

5. Creating HTML Pages in WebFOCUS App Studio

Page 264: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: A tooltip field can also be any value field from your data source.

a. Click New from the Computed Field Creator dialog box.

b. Type REVENUE_RANGE as the Field name.

c. Enter the syntax to include a tooltip:

COMPUTE REVENUE_RANGE/A10 = DECODE LINEPRICE_CLASS( 0 'OVER 50M' 1 '10M to 50M' 2 'UNDER 1M' ELSE '1M TO 10M') ;

d. Click Apply.

The fields are added to the Computed fields folder in the Object Inspector and areautomatically added to the report as LINEPRICE_CLASS, MARKER, and REVENUE_RANGE.

4. On the Format tab, in the Output Types group, click the Output Format command and selectStandard XML (XML) from the Unstyled formats list.

5. On the Format tab, in the Output Types group, click Destination.

The Output Destination dialog box opens.

6. Select Web browser from the Destination drop-down list, then click OK to close the OutputDestination dialog box.

7. Save and close your report.

How to Create the Starting Center Point of the MapProcedure:

In addition to creating the Latitude or Longitude coordinates and associating markers, you mustset the center view of the map to a bound geographical point at run time. Center values can beset dynamically or by a constant value.

Note: The following example creates a report that sets the starting point of your map by:

Joining the Century Sales to the Locale data source for the latitude/longitude data.

Creating the CITY value Where clause and retrieval limit in the report.

264 WebFOCUS

Components Tab

Page 265: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

1. Join the Century Sales and Locale data sources.

Tip: The Century Sales and Locale data sources are available from the Master Files folderin the IBI Demonstration project of App Studio. You may copy these source files to theproject directory of your choice.

a. Create a new procedure in App Studio.

b. In the Procedure View panel, right-click the procedure name and select Join.

The Open File dialog box appears.

c. Select centurysales.mas and click Open.

The Join canvas opens.

d. Select the Add button from the Join tab.

The Open File dialog box appears.

e. Select locale.mas and click Open.

App Studio automatically creates a Join between the data sources if they both havefields with the same formats. The Join canvas displays both data sources and the defaultJoins.

f. Close the Join canvas to save the Join and update the procedure.

2. Create the CITY value where clause in the report.

a. From the Procedure View panel, right-click the Join and select new, then Report.

The Open File dialog box appears.

b. Select centurysales.mas and click Open.

c. Double-click LATITUDE and LONGITUDE from the Object Inspector and make sure bothare a Sort Down field type.

d. Create a Where statement.

The Expression Builder opens.

e. Create the following expression:

CITY EQ 'Nashville'

f. Click Apply.

g. Select Filter and click Retrieval Limits.

h. Enter 1 as the Record Limit.

WebFOCUS App Studio Reference Guide 265

5. Creating HTML Pages in WebFOCUS App Studio

Page 266: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

i. On the Format tab, in the Output Types group, click the Output Format command andselect Standard XML (XML) from the Unstyled formats list.

j. On the Format tab, in the Output Types group, click Destination.

k. Select Web browser from the Destination drop-down list, then click OK to close the OutputDestination dialog box.

3. Save and close the report.

In this example, Nashville is set as the center value starting point for your report.

Adding a Map

Once you have configured the map controls and created a WebFOCUS procedure to get a centervalue, you may add a map through the Insert menu of the HTML canvas.

How to Insert Maps in the HTML CanvasProcedure:

1. Create the HTML canvas Page that contains the map.

a. Create a new HTML page.

2. Select which map you want to use by selecting either Google map, Bing map, or ESRI mapfrom the Map type option in the Property panel.

Note: When ESRI map is selected for the map type, the ArcGIS Server option is addedto the Property panel of the HTML page. A server must be specified or the map will notload without it.

3. On the Components tab, in the Objects group, click Map.

The pointer changes into a crosshair.

4. Drag the crosshair to create the map object and adjust it to the size you want.

The Settings panel opens, from which you can set the map and layers properties.

The map control also has a set of properties for the object.

The map appears as an image in the HTML canvas.

Note: Once a map has successfully been inserted into the HTML page, the COORDINATESfield becomes available for use by any other components further in the chain.

266 WebFOCUS

Components Tab

Page 267: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Customizing the Map Properties

You may customize the map by using the Settings panel and the Properties panel.

Settings Panel for MapsReference:

The Settings Panel for a map object contains many options for controlling how a map behavesand what information it displays.

Center Location

Sets the center view of the map to a bound geographical point at run time. The center locationcan be set dynamically or by a constant value.

Dynamic. If these values are being retrieved from an external source, the source mustcontain two fields called LATITUDE and LONGITUDE, or if using an Address, a field calledADDRESS.

Select a Source Type and a Source. This binds a Source file that contains coordinates toset the center view of the map.

An external file should only return one Latitude and Longitude value for the center point.

You can use the ASNAME command to rename an existing field to the required names.

Constant value. Manually type in a center value.

Location Type

Geographical position can be defined by Latitude or Longitude, or by an address.

The default is Latitude or Longitude.

Note: A Center Location, using address as the Location Type, is not supported when usingan ESRI JavaScript map.

Source Type

When using a Dynamic center value, select the source of your location data. Source Typeoptions are URL, XML File, and External procedure.

If using an External procedure, the report output must be XML.

Source

When using a Dynamic center value, enter the source file for the source type.

The Source field provides an ellipsis button when using XML File and External procedures.Select the source file from the Open File dialog box.

WebFOCUS App Studio Reference Guide 267

5. Creating HTML Pages in WebFOCUS App Studio

Page 268: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Value

When using a constant value, enter the Address or Latitude and Longitude value.

If entering a Latitude or Longitude value, the value entered should be Latitude and thenLongitude, separated with a comma (and/or space).

If entering a Latitude and Longitude value, it must be defined as a numeric value. For example,the following is latitude and longitude for New York, NY 10001:

40 45’ 58.73” N, 73 59” 1.48” W and converts to 40.7663277, -73.9920777.

An example of an Address value is: 2 Penn Plaza New York, NY 10001.

Layers Settings

Layers bind sources to the map in order to define map markers. Markers are presented atrun time in the map, as indicated with images at specified geographical points. Clicking themap marker results in a drill down to a Source file and optionally, a tooltip when pausing ona map marker.

Select a Source Type, Source and Marker. Each Layer row will yield a designated marker inthe Marker Groups box. Optionally, a selected marker can be associated with an Image, DrillDown, and tooltip.

Layers

You can rename the layers by typing in the Layers box. This name should be a uniquename that is used to identify a layer in the layer control and in JavaScript calls.

Note: A default name of Layer1, Layer2, and so on, is applied when you click the AddNew button. You may double-click in the field and manually type a unique name.

Source Type

Select the source of your layer. Source Type options are URL, XML File, and Externalprocedure.

If using an External procedure, the report output must be XML.

268 WebFOCUS

Components Tab

Page 269: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Source Name

Enter the source file for the source type.

Note: The Source field provides an ellipsis button which enables you to select thesource file from the Open File dialog box.

When the source is selected, the Marker Groups box is populated with the values fromthe field MARKER in the WebFOCUS procedure.

Cache run time data

When adding dynamic parameters to the HTML page, input controls retrieve data throughprocedures. Select this option to cache the run-time data for the selected input control.This setting is off by default. This setting overrides the Default caching option from theHTML Page tab, which is located in the App Studio Options dialog box.

Visible

Controls the initial visibility of the marker groups, from the layer control, when the mapruns. The visible option is useful when you want to make selections on the map withoutother markers, from other layers, interfering. For example, when making selections anddoing a drill down, only visible markers should be selected and passed along.

True shows the marker groups when the map runs. This is the default visible setting.

False hides the marker groups when the map runs.

Refresh (Seconds)

You can refresh the source for a layer when the map runs. You may refresh a layer ondemand, or automatically at a timed interval. The default refresh time is set to 0 seconds,which indicates that the automatic refresh is disabled. The minimum automatic refreshtime is 60 seconds.

Refresh is not applicable to markers in the Marker Groups.

Marker Groups

The Marker Group box lists all unique markers defined in the source of the highlighted sourcerow. When the source is selected, the Marker Groups box changes, listing all markers in theselected Layer. Optionally, a selected marker can be associated with an Image, Drill Down,and tooltip.

The possible values for markers are generated by previously defined fields in the Layer source.

WebFOCUS App Studio Reference Guide 269

5. Creating HTML Pages in WebFOCUS App Studio

Page 270: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Image/tooltip

Select the Image and/or tooltip to be associated for the selected marker.

Select an image to be used to mark a point on the map at run time.

When hovering over a map marker, a tooltip containing a description of the selected mapmarker appears.

If you do not specify marker images, the default marker image (a green pin) is used.

Source Type

Images can be an image or a field.

tooltips can be a constant value or a field.

Source

Enter the source field, or constant value, for the source type.

When the Source Type is Image, the Source field provides an ellipsis button which enablesyou to select the image file from the Open File dialog box.

Properties Panel for MapsReference:

Map: Bullseye Inner Ring

The inner ring radius is the distance between the center of the bullseye chart to the first ring,where 10 miles is the radius of distance.

Map: Bullseye Outer Ring

The outer ring radius is the distance from the center of the bullseye chart, where 100 milesis the radius of distance.

Map: Bullseye Rings

The number of rings to draw for the bullseye chart, where three rings is the default numberof rings.

When you set the number of rings, the inner radius, and the outer radius, any rings betweenthe innermost and the outermost ring, are proportionally separated.

Map: Default Type

Sets the default map rendered at run time. Select from Map/Road, Satellite/Bird’s Eye, orHybrid/Automatic. Each option is presented as part of the map in the output, allowing youto change views.

270 WebFOCUS

Components Tab

Page 271: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Map/Road. Presents geographical borders and streets. This is the default map type.

Satellite/Bird’s Eye. Presents real imagery.

Hybrid/Automatic. Presents real imagery with borders and streets.

Note: Map, Satellite, and Hybrid are used for Google Maps while Road, Bird’s Eye, andAutomatic are the equivalent for Bing Maps.

Map: dragging

Controls the ability to drag the map in order to reposition the center point to a new location.This option is set by default.

Note: This option cannot be disabled for Bing or ESRI maps. Selecting No from the drop-down list will not disable dragging.

Map: Menu Layers

The Layers menu control provides options to show or hide markers in the layers of the map,and manually refresh the layer(s).

Map: Menu Polygon

The New Polygon menu control provides options to select multiple markers on maps bycreating shape selectors, such as a freehand polygon, rectangle, or bullseye chart.

You can select multiple markers on maps at run time by creating polygon shapes. Polygonfeatures enable you to add both tooltips and actions to all polygons when you pause on themin the map.

Map: Menu Run

The Run menu control runs the drill downs for the selected markers.

Map: Polygon Action Copy

Enables copying of a polygon.

Map: Polygon Action Delete

Enables deleting of a polygon.

Map: Polygon Action Move

Enables moving of a polygon.

Map: Polygon Action Resize

Enables resizing of a polygon.

WebFOCUS App Studio Reference Guide 271

5. Creating HTML Pages in WebFOCUS App Studio

Page 272: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Map: Polygon tooltip Area

tooltips appear when you pause on a shape selector in the map.

All tooltip options are turned on by default.

Shows the Area tooltip.

Map: Polygon tooltip Dimensions

Shows the Dimensions tooltip.

Dimensions appears as Radius (for a circle polygon shape) in the tooltip.

Map: Polygon tooltip Markers Count

Shows the Markers Count tooltip.

Map: Selected Marker Image

Sets the icon or image associated with a marker when selected. Click the Selected MarkerImage ellipsis button to open the Open File dialog box and select a marker image. If you donot specify a selected marker image, the default selected marker image (a red bulb) is used.

Map: Units

Options for the location distance are miles (mi) or kilometers (km), where miles is the defaultunit selection.

Map: Zoom Continuous

Enables smooth, continuous zooming for select browsers.

Map: Zoom Double Click

Enables you to double-click to zoom in and out of the map.

Note: This option cannot be disabled for Bing maps. Selecting No from the drop-down listwill not disable zooming when double-clicking.

Map: Zoom Level

Sets the default zoom level of the map at run time. The levels available are 0 through 18. Ifthe zoom level is set to 8 or higher, the initial map will have only one point visible. The defaultvalue is 10.

You may also change the zoom level in the output with the scrolling and arrow buttons onthe map.

272 WebFOCUS

Components Tab

Page 273: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Map: Zoom Scroll Wheel

Enables you to use the scroll wheel of your mouse to zoom in and out of the map.

Note: This option cannot be disabled for Bing maps. Selecting No from the drop-down listwill not disable zooming using the scroll wheel.

How to Customize a MapProcedure:

Customize the map by selecting the map and layer options.

1. From the Settings panel, select the starting center point for the map in the Center Locationsection.

If you are using a Dynamic value, select the Location Type, Source Type and a Source.

Source Type options are URL, XML File, and External procedure. If you are using anExternal procedure, the report output must be XML.

For example, select Dynamic, Latitude/Longitude from the Location Type drop-down list,and External procedure from the Source Type drop-down list. Click the Source ellipsisbutton to open the Open File dialog box and double-click setcentervalue.fex as the externalXML file.

If you are using a Constant value, select the Location Type and enter the Value.

An example of an Address value is: 2 Penn Plaza New York, NY 10001.

If entering a Latitude and Longitude value, it must be defined as a numeric value. Forexample, the following is latitude and longitude for New York, NY 10001: 40 45’ 58.73”N, 73 59” 1.48” W and converts to 40.7663277, -73.9920777.

2. To set the image for a selected marker at run time, in the Map: Selected Marker Image sectionof the Properties panel, click the Source ellipsis button to open the Open File dialog box,and select a marker image.

For example, click the Source ellipsis button to open the Open File dialog box and double-click purplepin.png as the marker image file.

3. In the Properties panel, while your map is selected, change the Zoom level to 6 and keepthe other Default Map Type options.

4. From the Request section of the Settings panel, select a request to one or more WebFOCUSprocedures to load data into the map by selecting the Source Type and Source Name.Optionally, you may edit the name of the layer or the Visible and Refresh options for thesource layer.

WebFOCUS App Studio Reference Guide 273

5. Creating HTML Pages in WebFOCUS App Studio

Page 274: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

For example, click the Add new button to create a layer. Click the Request drop-down to selecta request used to populate this layer. A request is created in the Tasks & Animations panel.

When the source is selected, the Marker Groups box is populated with the values from theField MARKERS in the WebFOCUS procedure.

5. Double-click a group from the Marker Groups box to set the associated Image, tooltip, andDrill Downs.

6. You may edit the Image, tooltip, or Drill Down for each marker group selected.

Each marker group can have its own image and tooltip.

For example, select greenicon from the Marker Groups box. Double-click greenpin.png fromthe Image Source section. The marker image is automatically saved. Repeat this process toapply individual images to each of the marker groups.

Tip: To select multiple marker groups at one time:

Press and hold the Shift key while selecting the marker groups from the Marker Groupsbox.

Edit the tooltip and drill-down options to apply the selections to all of the marker groupsselected.

For example, apply the tooltip to all of the marker groups by selecting Field as the SourceType and REVENUE_RANGE as the Source.

7. Select the map object from the HTML canvas and set the size and position in the Propertiespanel:

Position: Left 30 px.

Position: Top 30 px.

Size: Height 260 px.

Size: Width 640 px.

8. Save and run the report.

You may use map controls to navigate around the map, zoom in or out, drag the map to anew position, select different map types, and see marker groups. For example, click theminus icon on the map to zoom out and see all of the colored marker groups.

Note: The Zoom In and Zoom Out slider control appears on the map since the Size: Heightproperty is greater than 280px.

274 WebFOCUS

Components Tab

Page 275: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

For more information about using map controls, see the documentation from the website ofeach respective map.

Integrating WebFOCUS With Maps

You can integrate WebFOCUS reports with maps by:

Customizing map properties and binding them to a WebFOCUS report, enabling drill-downreports to be run from a map.

Updating map views based on values selected in a WebFOCUS report.

Latitude and longitude values can be passed as a parameter from a map to update a WebFOCUSprocedure. Latitude and longitude are sent as a pair of values, and the HTML canvas uses aspecific parameter, &COORDINATES, to parse the value pairs correctly.

How to Update a WebFOCUS Report Based on a Map LocationProcedure:

By adding a drill down to a map, you can filter a WebFOCUS report by the latitude and longitudecoordinates of the selected marker(s). The parameter to pass the longitude and latitude valuesmust be called &COORDINATES. This HTML canvas parameter will parse the Latitude and Longitudeas paired data sets.

The following example updates a WebFOCUS report based on a map location by:

Joining Century Sales to the Locale data source.

Creating a Revenue by Category report.

Creating the &COORDINATES parameter in the report.

Adding the report to the HTML canvas.

Changing the map properties to drill down to the embedded procedure.

1. From the HTML canvas with a map and report created, use the shortcut menu for the reportand click New Report.

The Procedure View panel opens and the Open File dialog box opens.

2. Cancel the Open File dialog box.

3. Join the Century Sales and Locale data sources.

Tip: The Century Sales and Locale data sources are available from the Master Files folderin the IBI Demonstration project of App Studio. You may copy these source files to theproject directory of your choice.

WebFOCUS App Studio Reference Guide 275

5. Creating HTML Pages in WebFOCUS App Studio

Page 276: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

a. Create a new procedure in App Studio.

b. In the Procedure View panel, right-click the procedure name and select Join.

The Open File dialog box appears.

c. Select centurysales.mas and click Open.

The Join canvas opens.

d. Select the Add button from the Join tab.

The Open File dialog box appears.

e. Select locale.mas and click Open.

App Studio automatically creates a Join between the data sources if they both havefields with the same formats. The Join canvas displays both data sources and the defaultJoins.

f. Close the Join canvas to save the Join and update the procedure.

4. Create a Revenue by Category report.

a. From the Procedure View panel, create a report after your Join.

The Open File dialog box appears.

b. Select centurysales.mas and click Open.

The Report canvas opens.

c. Double-click CITY, PRODUCTTYPE, REGION, STATE, and STORENAME from the ObjectInspector and make sure they are the Sort Down field type.

d. Click the mouse after the STORENAME field to add the next field.

e. Double-click LINEPRICE from the Object Inspector and make sure it is an Aggregate.

f. Rename the PRODUCTTYPE and LINEPRICE fields:

Select PRODUCTTYPE, right-click and select Column Title from the shortcut menu.Type Category in the Title dialog box and click OK.

Select LINEPRICE, right-click and select Column Title from the shortcut menu. TypeRevenue in the Title dialog box and click OK.

g. Type Revenue by Category in the Page Heading.

5. Create the &COORDINATES parameter.

276 WebFOCUS

Components Tab

Page 277: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In the Object Inspector, expand the Variables folder, right-click on Report Variables andselect the New Report Variable option.

The Variable Editor opens.

a.

b. Enter COORDINATES in the Name box and click OK to exit the Variable Editor.

c. Select Where from the Filter command.

The Expression Builder opens.

d. In the Data pane, navigate to the Report Variables folder and drag &COORDINATES tothe Criteria (WHERE) pane.

e. Click OK.

6. Add the report to the HTML canvas.

a. The report and &COORDINATES parameter have been created, save and close the report.

You are returned to the HTML canvas where the New Parameters dialog box appears.

b. Clear the Create control check box for the parameter, and click OK.

You will not need a control for the &COORDINATES parameter because the parameterswill be passed by the map.

The Revenue by Category report appears in the HTML canvas.

c. Select the report object to view the associated properties in the Properties panel.

d. Select False from the Auto Execute drop-down list in the Properties panel.

7. Change the map properties to drill down to an embedded procedure.

a. Select the Settings panel.

b. Click the mouse and hold the Shift key and select all marker groups.

c. From the Drill Down section, select:

Existing request as the Drill Down Action.

report1 from the Source drop-down list.

8. Select the Parameters tab.

9. Bind the map control to the &COORDINATES parameter.

10. Save and run the layout.

Click the markers on the map to update the report based on the location selected.

WebFOCUS App Studio Reference Guide 277

5. Creating HTML Pages in WebFOCUS App Studio

Page 278: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using the Maps Functionality

This section describes how to use maps with the custom functionality provided by InformationBuilders. You can select multiple markers on maps at run time and drill down to WebFOCUSprocedures filtered by the marker locations selected.

Note: For Google and Bing maps, the functions in this section can be accessed by right-clickingon a map during run time. To access the same functions for ESRI JavaScript API maps, youmust click on the canvass button at the top of the map during run time.

There are several ways of selecting markers, such as:

Manual Selection.

Shape Selection.

Combination Selection.

Note: Selected markers are indicated by the Selected Marker Image that you supply on themap Properties panel.

How to Use Manual Selection in a MapProcedure:

Manual selection is the act of clicking on one or more individual markers in succession.

1. To initiate a manual selection, click on a marker while pressing and holding the Ctrl key fromyour keyboard.

2. To clear a selected marker, press and hold the Ctrl key and click the marker again.

3. To make selections without the risk of clearing a marker, press and hold the Shift key ratherthan the Ctrl Key.

Note: The Shift key does not clear the selected markers.

278 WebFOCUS

Components Tab

Page 279: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

When the green and blue markers are selected, they become purple markers.

How to Use Shape Selection in a MapProcedure:

Shape selection is the act of clicking in a specific location on the map and then drawing an areawith the mouse on the map to form a shape. This shape enables you to select all markers withinthe drawn area. The map provides various selector shapes to choose from.

Tip: The shape selection options are available from the right-click shortcut menu on Googleand Bing maps and through the canvass menu for ESRI JavaScript API maps. You may alsocustomize these options from the map Properties panel.

1. To initiate a shape selection, right-click anywhere on the map or click the canvass button ifyou are using an ESRI JavaScript API map.

The canvass menu appears.

You may create a new polygon shape, change the polygon settings, show or hide markersfrom a layer, and refresh a layer.

2. To create a shape selection, select an option from the New Polygon menu, drag your mousefrom the shape selection point on the map.

Note: The method by which selections are made depends on the selector shape used.

WebFOCUS App Studio Reference Guide 279

5. Creating HTML Pages in WebFOCUS App Studio

Page 280: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The shape selector is created with the selected markers, and a tooltip indicating the detailsof the shape selector.

3. To clear the markers in the shape selection, unselect Select Markers from the Update Polygonmenu.

Note: Selecting Clear Selection clears all of the selected markers from the map.

4. To remove the shape selection from the map, select Remove from the Update Polygon menu.

Note: Selecting Remove Polygons removes all the shape selectors from the map.

5. Optionally, to reposition any of the selector shapes to a different location on the map:

Pause the mouse over the center of the selector shape to be repositioned.

Drag from the middle of the shape to the new location.

The selector shape is repositioned over the new location.

How to Use Combination Selection in MapsProcedure:

Combination selection is the act of using both the manual selection method and the shapeselection method separately, or in coordination with one another, to make marker selections.Multiple selections can be made by using any of the above procedures prior to drilling down toWebFOCUS procedures.

How to Show and Hide Markers in MapsProcedure:

All layer marker groups are visible in a map by default. You may edit the visibility option to hidethe markers in a map at run time.

1. To edit the visibility option from the map output:

Right-click anywhere on the map if you are using a Google or Bing map or click the canvassbutton for ESRI JavaScript API maps.

The menu appears.

Select the layer name from the Layer menu.

Note: The layer name is the unique name for the layer created in the Map Propertiesdialog box.

280 WebFOCUS

Components Tab

Page 281: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

From the unique name layer menu, you may select the markers to hide from the selectedlayer.

The selected markers are not visible on the map.

Tip: To show all marker groups from all layers on the map, select Show All from the Layersmenu.

2. To edit the visibility option from the Settings panel:

From the HTML canvas with a map created, go to the Settings panel.

Clear the Visible option.

Note: Only layers have a visibility option on the Settings panel. You may hide individualmarkers from a layer in the map output, as described in the first step of this procedure.

When you run the map, all of the layer markers are not visible.

How to Refresh the Map OutputProcedure:

You may refresh the map output on demand or by setting up an automatic refresh at a timedinterval.

1. To refresh a map on demand:

From the map output, right-click anywhere on the map or click the canvass button if youare using an ESRI JavaScript API map.

The menu appears.

To refresh all layers on the map, select Refresh All from the Layers menu.

To refresh individual layers on a map, select Refresh Layer from the layer name of theLayer menu.

Note: The layer name is the unique name for the layer created in the Map Propertiesdialog box.

2. To automatically refresh the map output at a timed interval:

From the HTML canvas with a map created, go to the Settings panel.

Select the refresh time, in seconds, by using the Refresh (Seconds) option.

WebFOCUS App Studio Reference Guide 281

5. Creating HTML Pages in WebFOCUS App Studio

Page 282: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The default refresh time is set to 0 seconds, which indicates that the automaticrefresh is disabled. The minimum automatic refresh time is 60 seconds.

Close the Settings panel.

Refresh is not applicable to markers in the Marker Groups.

The source for the layer refreshes on the map at the set timed interval.

How to Create Polygons in the Map OutputProcedure:

The available shape selections from the New Polygon menu are Freehand, N-sided Polygon,Rectangle, Bullseye Fixed, and Bullseye Freehand.

Note: Polygons created when using ESRI maps are unable to be moved, copied, or resized.

1. Create a freehand polygon.

A freehand polygon shows the selector shape as a series of lines that you mark at specificpoints on the map.

For Google and Bing maps, right-click anywhere on the map and select Freehand fromthe New Polygon menu. For ESRI JavaScript API maps, click the canvass button and selectFreehand from the New Polygon menu.

A cross is indicated on the map.

Left-click to indicate the starting point and create the crosshair on the map.

Drag and release to drag a line from one point to the next. Repeat left-click, drag, andrelease. These clicks will represent the corners of the shape to be drawn.

When you close the connector lines, the selected markers are indicated within the polygonshape.

Note: You can also use the Freehand Close option to close the polygon. The FreehandClose option is found in the New Polygon menu. This option is unavailable unless youare using the Freehand option. The Freehand Close options is best used on an iPaddevice.

2. Create an N-sided polygon.

282 WebFOCUS

Components Tab

Page 283: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

An N-sided polygon shows the selector shape as a continuous line you draw around themarkers to be selected. N-sided indicates that you can select the number of sides for thepolygon.

Note: The default polygon is a circle.

For Google and Bing maps, right-click anywhere on the map and select N-sided Polygonfrom the New Polygon menu. For ESRI JavaScript API maps, click the canvass button andselect N-sided Polygon from the New Polygon menu.

A cross is indicated on the map.

Left-click to indicate the starting point and create the crosshair on the map.

Drag the crosshair to a different point on the map and around the markers to be selected.

Left-click to close the polygon. The selected markers are indicated within the polygonshape.

To change the number of sides for the polygon:

Select Number of Sides from the Polygon Settings menu.

Note: The default polygon is a 12-sided polygon. You may change the number of sidesfor a polygon by using the Polygon Settings menu on the map.

Select the number of sides you wish to create. Options are 6 sided, 8 sided, 12 sided,16 sided, or Circle (this is the default).

Optionally, you may select to Show tooltips for the polygons on the map.

Select N-sided Polygon from the New Polygon menu and drag the object on the map.

The polygon shape has the number of sides that you indicated from the Polygon Settings.

3. Create a rectangle.

For Google and Bing maps, right-click anywhere on the map and select Rectangle fromthe New Polygon menu. For ESRI JavaScript API maps, click the canvass button and thenselect Rectangle from the New Polygon menu.

A cross is indicated on the map.

Left-click to indicate the starting point and create the crosshair on the map.

Drag the crosshair to a different point on the map and around the markers to be selected.

WebFOCUS App Studio Reference Guide 283

5. Creating HTML Pages in WebFOCUS App Studio

Page 284: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Left-click to close the polygon. The selected markers are indicated within the rectangleshape.

How to Create Bullseye Charts in the Map OutputProcedure:

You may create a fixed or freehand bullseye chart in the map output. A bullseye chart is used toshow radius distance from a location using three rings of increasing size. The bullseye optionsare available from the New Polygon shortcut menu on the map.

Note: You may customize the ring and radius options of the bullseye chart from the MapProperties dialog box.

1. Create a fixed bullseye chart.

A fixed bullseye chart applies a predetermined size at the selected location.

For Google and Bing maps, right-click anywhere on the map and select Bullseye: Fixedfrom the New Polygon menu. For ESRI JavaScript API maps, click the canvass button andselect Bullseye: Fixed from the New Polygon menu.

A cross is indicated on the map.

Left-click to insert the fixed bullseye chart in the map.

The bullseye chart is inserted in the selected location with a randomly generated color.

Optionally, you may drag the bullseye to another point on the map. The selected markersand tooltip for the bullseye chart are indicated.

2. Create a freehand bullseye chart.

A freehand bullseye chart enables you to create the size and location of the initial bullseyechart.

For Google and Bing maps, right-click anywhere on the map and select Bullseye: Freehandfrom the New Polygon menu. For ESRI JavaScript API maps, click the canvass button andselect Bullseye: Freehand from the New Polygon menu.

A cross is indicated on the map.

Left-click to insert the freehand bullseye chart in the map.

Drag the bullseye chart to the desired size and release the mouse.

The bullseye chart is inserted in the selected location with a randomly generated color.

284 WebFOCUS

Components Tab

Page 285: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Optionally, you may drag the bullseye to another point on the map. The selected markers,and tooltip for the bullseye chart are indicated.

3. Resize the bullseye chart.

Select the bullseye chart. Right-click if you are using a Google or Bing map, and chooseResize from the Update Polygon menu. For ESRI JavaScript API maps, click the canvassbutton and choose Resize from the Update Polygon menu.

A white box appears in the center of the bullseye and on the outer ring.

Drag the box to the desired location.

Release the mouse to resize the bullseye.

Optionally, you may select Freehand Resize to manually resize the bullseye chart.

Clearing and Removing Shape Selectors on MapsReference:

To show or clear selected markers within an individual shape selector, select the shapeselector, then right-click and choose Select Markers from the Update Polygon menu.

To remove individual shape selectors from map, select the shape selector, then right-clickand choose Remove from the Update Polygon menu.

To clear all selected markers on the map, right-click anywhere on the map and select ClearSelection from the shortcut menu.

The polygon shapes will remain on the map when the markers are cleared.

To remove all shape selectors from the map, right-click anywhere on the map and selectRemove Polygons from the shortcut menu.

The polygon shapes are removed from the map but the markers remain selected.

Running Maps Against a Secured ServerReference:

Whenever maps are run against a secured server (SSL configuration), the user is prompted witha message for display of secured and unsecured content on the HTML page. This messageoriginates from map provider and is shown because they establish a link to an unsecured serverto present the map.

WebFOCUS App Studio Reference Guide 285

5. Creating HTML Pages in WebFOCUS App Studio

Page 286: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Enabling Actions for Shape Selectors on MapsReference:

When actions are enabled from the map Properties panel, you may Copy, Delete, Move, andResize the polygon shape selectors on the map.

All action options are selected by default.

To copy a shape selector, left-click in the center of the polygon, press the Shift key, drag thepolygon and release it to create a copy of the polygon.

To delete the shape selector, left-click in the center of the polygon, and press the Delete key.

To move the shape selector, left-click and hold in the center of the polygon and drag thepolygon to move it.

To resize the shape selector, drag the edge of the polygon shape to resize the polygon.

Chaining for Maps

When chaining maps with other controls in the HTML canvas, you are able to pass fields that arenot displayed by the map. These fields can be passed from one control to the map and then fromthe map to another control, where those undisplayed fields will then be used.

Map ChainingExample:

The following example shows how a map can be chained with other controls and how it can passfields through the map for use later in the chain. For this example, the centurystores Master Filewas used.

This example contains an HTML page that has two listboxes and one map control.

The Parameters tab view shows that these controls are chained together.

Listbox1 is populated with a list of store names from the centurystores Master File. When oneof the stores on the list is selected, the store location is shown on the map.

When the store marker image is selected on the map, the store address is displayed in listbox2.

Listbox1 passes the necessary fields to mapcontrol1 so that it can display the store location onthe map. In this case, it passes the STORENAME field.

The layer procedures include BY STORENAME to filter the layer to show only the markers for theselected store in listbox1. The layer procedures also include a BY STOREID reference, which themap does not display, but is used in listbox2 to retrieve the correct store address for the selectedmap marker.

286 WebFOCUS

Components Tab

Page 287: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Mapcontrol1 does not use this field. However, when the store marker is selected on the map,the STOREID field is passed from mapcontrol1 to listbox2.

STOREID is passed to listbox2 where it is used to filter out the store address from the selectedmarker.

Maps can pass fields that they do not display. They can then pass those unused fields to anothercontrol, down the chain, which can use the passed fields.

Using JavaScript Code With Maps

The toggleLayer(‘mapId’, ‘layerName’) function toggles the visibility of the specified layer.

How to Toggle Layer VisibilitySyntax:

function button1_onclick(ctrl) {toggleLayer('mapId', 'layerName');}

where:

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

layerName

Alphanumeric

Is the unique identifier of a layer within the map. For example, Layer1.

The toggleLayer(‘mapId’, ‘layerName’, ‘markerName’) function toggles the visibility of the specifiedmarker.

How to Toggle Marker VisibilitySyntax:

function button2_onclick(ctrl) {toggleLayer('mapId', 'layerName', 'markerName');}

where:

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

WebFOCUS App Studio Reference Guide 287

5. Creating HTML Pages in WebFOCUS App Studio

Page 288: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

layerName

Alphanumeric

Is the unique identifier of a layer within the map. For example, Layer1.

markerName

Alphanumeric

Is the unique identifier of a marker within the map. For example, redpin.

The refreshLayer(‘mapId’, ‘layerName’) function refreshes the specified layer.

How to Refresh a LayerSyntax:

function button3_onclick(ctrl) {refreshLayer('mapId', 'layerName');}

where:

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

layerName

Alphanumeric

Is the unique identifier of a layer within the map. For example, Layer1.

How to Pan to an AddressSyntax:

function button4_onclick(ctrl) {panToAddress('address', 'mapId', 'zoom');}

where:

address

Alphanumeric

Is the address you want to pan to. For example, 2 Penn Plaza New York NY 10001.

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

288 WebFOCUS

Components Tab

Page 289: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

zoom

Integer

Is how much you wish to zoom. For example, 7.

How to Pan to a PointSyntax:

function button5_onclick(ctrl) {panToPoint('lat', 'long', 'mapId', 'zoom');}

where:

lat

Integer

Is the latitude coordinate of the point you want to pan to. For example, 40.7663277.

long

Integer

Is the longitude coordinate of the point you want to pan to. For example, -73.9920777.

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

zoom

Integer

Is how much you wish to zoom . For example, 7.

How to Show All Map MarkersSyntax:

function button6_onclick(ctrl) {panToAddress('mapId');}

where:

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

WebFOCUS App Studio Reference Guide 289

5. Creating HTML Pages in WebFOCUS App Studio

Page 290: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The drawBullseye('mapId', 'lat', 'long', 'selectmarkers', 'units', 'rings', '(list-of-sizes)', '(list-of-colors)') function draws a bullseye at a point on the map. This function has optionalparameters to select whether to display markers, the units of measure used for the bullseye,the number of rings, the size of the rings, and the color of the rings.

How to Draw a BullseyeSyntax:

function button5_onclick(ctrl) {drawBullseye('mapId', 'lat', 'long', 'selectmarkers', 'units', 'rings', '(list-of-sizes)', '(list-of-colors)');}

where:

mapId

Alphanumeric

Is the unique identifier of the map control. For example, mapcontrol1.

lat

Integer

Is the latitude coordinate of the point you want to pan to. For example, 40.7663277.

long

Integer

Is the longitude coordinate of the point you want to pan to. For example, -73.9920777.

selectmarkers

Boolean

Is an operator that, when set to true, selects all markers within the Bullseye.

units

Alphanumeric

The unit of measure for the Bullseye rings For example, mi for miles.

rings

Integer

The number of rings the bullseye uses. For example, 3.

list-of-sizes

Integer

290 WebFOCUS

Components Tab

Page 291: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A comma separated list of sizes for the bullseye rings. For example, 1, 3, 5.

list-of-colors

Alphanumeric

A comma separated list of colors for the bullseye rings. The colors can be RGB values orhexadecimal values. For example, Blue or #FFFF.

ESRI Flex Viewer Integration

The ESRI Flex Viewer creates a component that adds numerous controls, a report, and a mapobject when used.

The ESRI Flex Viewer component can be accessed from the Insert menu, by selecting Componentsand clicking ESRI Components. You can then drag the crosshair to the desired size for the ESRIFlex Viewer controls and report. The ESRI Flex Viewer component will contain a number of controls,a report, and a map object. It is recommended that the ESRI Flex Viewer component be drawnbig enough to accommodate all of these items.

You will then choose the esriinfo XML file to use with the ESRI Flex Viewer component.

Note: The following line must be present in your esriinfo XML file for you to pass parametersfrom the controls to the map object and from the map object to the report.

<callback identify="parmcollect" map="IBI_GetLayoutPainterParameters" report="IBI_GetLayoutPainterParameters"/>

The New Parameter dialog box will open and you will be able to change the options for theparameters contained within the ESRI Flex Viewer component.

The ESRI Flex Viewer component will then be inserted into the HTML page.

Note: Controls and reports within the ESRI Flex Viewer can be chained. Maps within the ESRIFlex Viewer component cannot be chained.

Controls Tab

You can insert controls in an HTML page or a Guided Report page using the Controls tab andgroup. The controls are Edit Box, Hidden, Drop Down, List Box, Double list, Radio Button, CheckBox, Text area, Tree, Calendar, and Slider.

WebFOCUS App Studio Reference Guide 291

5. Creating HTML Pages in WebFOCUS App Studio

Page 292: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Controls Group

You can use the Controls tab and group to insert controls in an HTML page or a Guided Reportpage. Controls enable you to prompt users for a parameter value. When you create a parameteras part of a report or graph, the HTML canvas automatically adds a control, Submit button, andReset button for the parameter to your layout, and the parameter appears on the Parameterstab. You can also add an input control and bind it to a parameter.

Controls, with the exception of a text box which does not supply a list of possible values, cansupply values with a dynamic or static list of values:

A dynamic list retrieves values from a specified data source when the request is run.

A static list consists of a list of values you supply. These values do not change unless youchange them.

An active report control lists active report values that mimic active report menu items. The activereport controls cannot be associated to any parameters in the layout. This type of control canonly be associated with an active report in the layout.

The properties of a control, as well as the parameters associated with each control, can becontrolled with the Properties tab of the Properties window, and with the Parameters tab. TheControls tab is shown in the following image.

The controls are:

Edit Box

Inserts a text box. A text box enables you to enter a value in an entry field. You can specifya list of static or dynamic accepted values in Settings panel and, at runtime, when you typethe first letter of a value into the text box, that value will be listed as an autocompletesuggestion.

292 WebFOCUS

Controls Tab

Page 293: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Hidden

Inserts a hidden control. A hidden input control allows parameter values to be used in acontrol without the user seeing them. When a hidden control is used, the current input controlassigned to the parameter will not be visible. The value of the parameter can be entered inthe Properties and settings dialog box of the Parameters tab, or supplied through chaining.

Drop Down

Inserts a drop-down list. A drop-down list enables you to select a single value from a list ofsupplied values. You can use a dynamic or static list of values for the drop-down list.

List Box

Inserts a list. This enables you to select single or multiple values at one time:

A single-select list enables you to select only one value for each time a request is run.

A multi-select list enables you to select multiple values by using the Ctrl key while selectingvalues.

In order to provide multiple values, the procedure must be set up to accept multiple values.

List box values can be dynamic or static.

Double list

Inserts a double list. Displays multi-select values. This enables you to view a list of theavailable values and add or remove them from one list to another. At run time, a report isgenerated based on the values that are added.

Radio Button

Inserts a radio button. Radio buttons enable you to select a single value from a list of suppliedvalues. Radio button values can be static or dynamic.

Check Box

Inserts a check box. Check boxes enable you to select a single value from a list of suppliedvalues. Note that if there are multiple check box input controls that are grouped together,you may select the Multiple properties for each control. Multiple ensures that you can selecta single value from each check box control. Check box list values can be dynamic or static.

WebFOCUS App Studio Reference Guide 293

5. Creating HTML Pages in WebFOCUS App Studio

Page 294: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Text area

Inserts a text area. A text area is a single-select control that enables you to enter multiplelines of text that can be assigned to a single variable. The behavior is similar to a text box,but you are not restricted to entering just one line of text. For example, if you want to assigna paragraph (multiple lines of text) to a variable that can be referenced by a procedure, youcan add the paragraph to a text area from the Properties and settings dialog box on theParameters tab. You can specify a list of values in the Settings panel and, at runtime, whenthe first letter

Tree

Inserts either a single-source tree control or multi-source tree control. By using a tree structurein an HTML report, you can show hierarchical data from a multi-dimensional data source (forexample, SAP BW), that uses the parent/child model. You may also use a tree control fornon-hierarchical data sources. Level hierarchies are not supported. The behavior of the treecontrol is integrated with the parameter definition. If a parameter is defined as a single valueand that parameter is bound to a tree control, the tree control uses option buttons for eachnode in the hierarchy. If the parameter is defined as Multiselect OR or Multiselect AND, andthat parameter is bound to a tree control, then the tree control uses check boxes for eachnode in the hierarchy, enabling you to select multiple nodes.

Calendar

Inserts a calendar. Date parameters can utilize a built-in calendar control that enables youto select the desired date or range of dates in a pop-up dynamic calendar. A procedure thatis added to or referenced in the HTML canvas and contains date parameters will have aCalendar control type available in the Properties tab of the Properties window. When theCalendar control type is selected, a text box with a calendar icon will display in the Designview of the layout. The text box is the only control available for the calendar, and the iconwill always display to the right of the text box. The icon cannot be positioned independentlyfrom the text box. Note that when programmatically returning a date to the calendar, the datemust be in a WebFOCUS date format that specifies the complete date from the list ofsupported data types in Calendar Properties.

Slider

Inserts a horizontal or vertical slider control that has a numeric range of values to be usedwith a report or chart. This enables you to use a slider bar to select from a range of values.

Related Information:• How to Enter Masked Text in a Text Box on page 299• How to Set Calendar Properties on page 295• Using a Double-head Slider Control on page 297

294 WebFOCUS

Controls Tab

Page 295: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

• How to Select Multiple Values From a Drop-Down List on page 299• Using Tree Controls on page 300

How to Set Calendar PropertiesProcedure:

1. Add a calendar to the HTML page by clicking the Calendar command on the Controls tab.

The pointer changes to a crosshair.

2. Drag the crosshair to create a calendar and adjust it to the size you want.

A calendar placeholder is created in the layout and assigned the name calendar(n), where(n) is a number.

3. Optionally, change the calendar properties by adjusting the properties displayed in theProperties panel.

4. Bind an existing parameter to the calendar.

Binding a parameter to a calendar creates an incoming parameter. An incoming parameteris a parameter that is bound to a control. If binding a parameter to a calendar, the parametervalue must be in a WebFOCUS date format that specifies the complete date from the list ofsupported data types in Calendar Properties. The parameter value will populate the calendarwith date values.

Click the Parameters tab.

Select the center of the parameter name object, drag the parameter to the center of thecalendar object, and release the mouse to complete the binding.

To unbind the parameter from the calendar, select the arrow head on the line, so thatthe line is bold, right-click, and click Break binding.

5. Bind the calendar to a parameter.

Binding the calendar to a parameter will populate the parameter with a date value.

Click the Parameters tab.

The Settings panel opens, showing the calendar setup options. The calendar setup optionsenable you to set the range of dates available to the user at run time. Available dateswill be represented as an active hyperlink (blue and underlined) and unavailable dateswill be static (black without underlines).

Note: The Settings panel for a calendar will contain different options depending onthe selected data type.

WebFOCUS App Studio Reference Guide 295

5. Creating HTML Pages in WebFOCUS App Studio

Page 296: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Create the values for the calendar. You can create Static or Dynamic values.

When the Current/Start date option is checked, the current date will be used in thecalendar control at run time.

The Date Range options for setting up the calendar include:

Static. This option will set a static date range in which the developer will select astart date and an end date using a pop-up calendar icon, or by clicking the month,day, or year from the controls.

The pop-up calendar icon appears in the From and To sections when the Static DateRange is selected. If you click the pop-up calendar icon, a pop-up calendar appearsand shows the current date selected and circled in red by default. As you scroll throughthe calendar with the left/right arrows, the currently selected day will remain highlightedfor each month. Clicking a date will add that date to the control. Dates can be selectedby scrolling left to right, entering the month, day, and year as text, or by selecting themonth, day, and year from the drop-down list and spin boxes.

Relative. This option allows you to set a specific number of days, months, and yearsrelative to the current date. The current date (at run time) will always be the referenceor starting point and the calendar will show a number of days, months, and yearsrelative to the current date. The range could be all in the past (for example, five yearsprior to the current date) or all in the future (for example, five years in the future). Thisis selected as the default Date Range.

Dynamic. This option allows you to point to a procedure that returns a range of dates.Clicking the Select custom procedure browse (...) button allows the developer to choosea preexisting procedure. The procedure must return two date values on the same dataline in XML format. The date values must be returned in a format that returns twodigits for the month and day, and four digits for the year, for example, MM/DD/YY.

Close the Settings panel to create the calendar with the range of date values.

Bind the calendar to a parameter. Select the center of the calendar, drag the calendarto the center of the parameter object, and release the mouse to complete the binding.

296 WebFOCUS

Controls Tab

Page 297: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using a Double-head Slider Control

A double-head slider control is a new control you can access from the HTML canvas. A double-head slider control is a type of slider control in which you can select a range of values for displayingdata in a report or chart. Rather than having one slider head, you have two. In order to use adouble-head slider control, you must have two variables in the report or chart that will be controlledby the double-head slider control. One variable will be controlled by one head of the double-headslider control and the other variable will be controlled by the other head of the double-head slidercontrol. The variables need to be specified in the procedure as FROM and TO.

Note: You can use the Report canvas to create a parameter that accepts a range of valuesusing the Expression Builder dialog box. The Chart canvas requires you to manually create aparameter that accepts a range of values.

How to Create a Report That Can Be Used With a Double-head Slider ControlProcedure:

1. Create a new report.

2. Add the fields you want displayed in your report.

3. On the Report tab, in the Filter group, select Filter, and click Where to create a Where filter.

The Expression Builder dialog box opens.

4. Double-click the field you want to use in conjunction with the Double-head slider control.

5. From the Logical Relation drop-down list, select Is From.

This indicates the parameter you are creating is a range of values.

6. Double-click the Compare Type cell to open the Range Builder dialog box.

In the Range Builder dialog box, you can name the parameters you will use for the Double-head slider control or select a field whose values you want to create a range from.

7. Type a name in the From text box.

This is the FROM value.

8. Type a name in the To text box.

This is the TO value.

These are the names of the two parameters that will be controlled by the double-head slidercontrol.

9. Save and close the report.

WebFOCUS App Studio Reference Guide 297

5. Creating HTML Pages in WebFOCUS App Studio

Page 298: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

This report can now be used with a double-head slider control once you set up your HTMLpage.

How to Create a Double-head Slider Control From the RibbonProcedure:

1. While in the HTML canvas, click either Horizontal or Vertical, from the Slider command, inthe Controls group, on the Controls tab.

Your mouse becomes a crosshair.

2. Drag the crosshair to create a single-head slider control.

3. While the single-head slider control is selected, in the Properties panel, change the Rangeproperty from No, to Yes.

Changing the Range property to Yes changes the single-head slider control to a double-headslider control. You can now use this control to select a range of values to display.

How to Create a Double-head Slider Control Using the New Parameters Dialog BoxProcedure:

1. Create a report object or chart object on the HTML canvas.

Your mouse becomes a crosshair.

2. Drag the crosshair to create a report or chart

3. Create, import, or reference a report or chart with two variables.

The New Parameters dialog box opens.

4. In the Control Type column of the New Parameters dialog box, click the ellipsis (...) of thefirst parameter and then click Slider, and select either Double-head horizontal or Double-headvertical.

Note that the Control Type for the second parameter changes to Append to Above. This meansthat the second parameter has been recognized as being part of a range and will be controlledby the double-head slider control specified in the first parameter.

How to Create an HTML Page that Uses a Double-head Slider ControlProcedure:

1. Create a new HTML page.

2. Add a report object to the HTML canvas.

3. Create, import, or reference a report that contains a variable that accepts a range of a values.

The New Parameters dialog box opens.

298 WebFOCUS

Controls Tab

Page 299: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

4. In the Control Type column of the New Parameters dialog box, click the ellipsis (...) of thefirst parameter and then click Slider, and select either Double-head horizontal or Double-headvertical.

Note that the Control Type for the second parameter changes to Append to Above. This meansthat the second parameter has been recognized as being part of a range and will be controlledby the double-head slider control specified in the first parameter.

5. Click OK to close the New Parameters dialog box and add the double-head slider control tothe HTML page.

6. Click the Parameters view tab at the bottom of the HTML canvas.

7. Drag the unbound parameter out of the Unbound Parameters box.

8. Drag the second half of the slider control to the unbound parameter.

9. Click the slider control and click the Settings panel.

10. In the Input Control Population section, change the Data Type to Dynamic.

11. Select the data source you used in the Data Source drop-down list.

12. In the Value Field, click the ellipsis (...) and select the field being controlled by the double-headslider control.

13. Save and run your HTML page.

The double-head slider control controls what you see in your report or chart by allowing youto select a range of values rather than one specific value or all values. The first head updatesthe FROM value and the second head updates the TO value.

How to Enter Masked Text in a Text BoxProcedure:

When entering a value in a text box at run time, you may set the Mask text property so that thetext is not displayed as text, but masked by default characters. This is recommended when usingpasswords or other sensitive information.

1. Select the Edit Box object to view the associated properties in the Properties panel.

2. From the Mask text property field, select Yes.

3. Run the report and enter a value in the text box.

The value being entered appears as masked text.

How to Select Multiple Values From a Drop-Down ListProcedure:

When using a drop-down list input control to supply parameter values, the Multiple property valueindicates whether multiple values can be selected from a list of supplied values at run time.

WebFOCUS App Studio Reference Guide 299

5. Creating HTML Pages in WebFOCUS App Studio

Page 300: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: A multi-select list enables you to select multiple values by using the Ctrl key whileselecting values. In order to select multiple values in the drop-down list, the procedure mustbe set up to accept multiple values. Ensure that the Variable Type for the parameter value isMultiselect OR or Multiselect AND in the procedure.

1. From the HTML canvas, insert a report with parameters that accept multiple values.

For example, create a report with Multiselect OR as the variable type for the parameter,accepting a dynamic list of values from a Master File.

2. When the New Parameters dialog box appears, accept the default control type of Drop downlist and click OK.

A drop-down list is created in the layout and assigned the name combobox(n), where (n) isa number.

3. Select Multiple from the Multiple drop-down list in the Properties panel.

This indicates that multiple items can be selected from the drop-down list.

4. Save and run the HTML page.

Select multiple values by using the Ctrl key while selecting values from the drop-down list.

The drop-down list shows the selected multiple values. Click the Run button to run the reportwith the selected value parameters.

Using Tree Controls

How to Add a Tree Control to an HTML Page Using an Embedded ProcedureProcedure:

This procedure describes how to add a tree control for a multi-dimensional data source, usingan embedded procedure.

1. In the HTML canvas, insert a tree control from the Controls tab.

Tip: You may select Single source Tree control or Multi source Tree control. If no type isselected, Single source Tree control is the default, as shown in the following image.

The pointer changes to a crosshair.

2. Drag the crosshair to create a tree control, and adjust it to the size you want.

A tree control is created in the layout and assigned the name treecontrol(n), where (n) is anumber. Additionally, the Settings panel appears for the tree control.

300 WebFOCUS

Controls Tab

Page 301: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Optionally, you may click the Expanded property from the Properties panel to show the treecontrol expanded at run time.

4. Optionally, you may click the Hyperlink property from the Properties panel to show the treenodes as hyperlinks, instead of radio buttons at run time.

5. From the Settings panel, click Dynamic as the Data type.

6. Keep Embedded procedure selected and click the browse (...) button adjacent to the firstinput field.

The Open dialog box opens.

7. Select a multi-dimensional data source and click Open.

The multi-dimensional data source is added as the embedded procedure.

8. Click the Value field browse button to select a field from the hierarchy.

The Value field is the data source field from which the values will be retrieved.

9. Click the Display field browse button to select a field from the hierarchy.

The Display field is the text that represents the parameter value in the tree control.

10. Save and run the page to view the multi-dimensional data source in the tree control.

How to Add a Tree Control to an HTML Page Using an Existing ProcedureProcedure:

You can select an existing procedure to add to the tree control in an HTML page. When you selecta procedure, it should use fields from the parent/child hierarchy and be set up as follows:

TABLE FILE fileSUM FST.dispfieldBY ParentUniqueFieldBY UniqueFieldBY datafieldON TABLE PCHOLD FORMAT XML END

where:

file

Is the name of the data source.

dispfield

Is the field whose values display in the tree control.

WebFOCUS App Studio Reference Guide 301

5. Creating HTML Pages in WebFOCUS App Studio

Page 302: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ParentUniqueField

Is the field that represents the parent for the parent/child hierarchy (PROPERTY = PARENT_OF).

UniqueField

Is the field that represents the unique IDs for the hierarchy members (PROPERTY=UID).

datafield

Is the field whose values are passed as the parameter value.

After the procedure is set up, follow these steps:

1. From the Controls tab, insert a tree control.

Tip: You may select Single source Tree control or Multi source Tree control. If no type isselected, Single source Tree control is the default.

The pointer changes to a crosshair.

2. Drag the crosshair to create a tree control, and adjust it to the size you want.

A tree control is created in the layout and assigned the name treecontrol(n), where (n) is anumber.

3. Optionally, you may click the Expanded property from the Properties panel to show the treecontrol expanded at run time.

4. Optionally, you may click the Hyperlink property from the Properties panel to show the treenodes as hyperlinks, instead of radio buttons at run time.

5. From the Settings panel, click Dynamic as the Data type.

6. Click External Procedure and click the browse (...) button adjacent to the first input field.

The Open dialog box opens.

7. Select a procedure and click Open.

The procedure name is added as the external procedure.

8. Click the Value field browse button to select a field from the hierarchy.

The Value field is the data source field from which the values will be retrieved.

9. Click the Display field browse button to select a field from the hierarchy.

The Display field is the text that represents the parameter value in the tree control.

10. Save and run the page to view the multi-dimensional data source in the tree control.

302 WebFOCUS

Controls Tab

Page 303: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Populate a Multi Source Tree ControlProcedure:

You can show a tree structure for a non-hierarchical data source by using a tree control. Byidentifying the number of levels for the tree control, you are able to populate each level of thetree control with its own procedure. Setting the number of levels creates a tree structure by whicheach level is its own subcontrol, chained together with no conditions.

This procedure describes how to add parameters for a tree control, where the number of levelsproperty is set.

1. In the HTML canvas, insert a Multi source tree control.

Click Multi source Tree control from the Tree control drop-down list, located on the Controlstab.

The pointer changes to a crosshair.

2. Drag the crosshair to create a tree control, and adjust it to the size you want.

A tree control is created in the layout and assigned the name treecontrol(n), where (n) is anumber.

3. From the Properties panel, type in the Number of levels for the tree control, and press theEnter key.

This enables you to specify the number of levels to populate.

4. Optionally, you may click the Expanded property from the Properties panel to show the treecontrol expanded at run time.

5. Optionally, you may click the Hyperlink property from the Properties panel to show the treenodes as hyperlinks, instead of radio buttons at run time.

6. With the tree control selected, click the Parameters tab.

The tree control object shows the set number of levels.

7. Select each level of the tree control and create the settings for its data population.

When creating a Multi source Tree control, the static data type is not available. If creatingstatic values for the tree control, you must create a single source tree control.

8. Optionally, to add an additional level for the tree control, right-click the tree control objecton the Parameters tab and select Add level.

Note: Add level only appears for a Multi source tree control object.

9. Click the added level to view the Settings panel for that level.

WebFOCUS App Studio Reference Guide 303

5. Creating HTML Pages in WebFOCUS App Studio

Page 304: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

10. Switch to the Design tab of the HTML canvas to preview the populated tree control.

Note that the Properties window drop-down list for the tree control shows each level of inputvalues.

11. Save and run the page.

Note: If a user selects a lower level node in one level and a higher level node in anotherlevel, when the procedure is executed, only the lowest level selections will take effect.For example, you have 3 levels: COUNTRY, CAR, and MODEL. Under ENGLAND, TRIUMPHyou select TR7. Under FRANCE, you select PEUGEOT. At run-time you will only receive therecords for TR7 because you did not select a MODEL under the FRANCE node.

The tree control populates each level with values.

Note: A value must be selected for each level before you can click the Save Selectionbutton.

If a selected value is specified for a field that is not in level1, then corresponding selectedvalues must also be specified for the preceding levels.

Only the first and second levels load at run time. If a selected value is specified for a fieldin level1, only values from the first two levels will be selected.

How to Add a Tree Control to an HTML Page Using Static ValuesProcedure:

This procedure describes how to add static data type parameters for a tree control, where theNumber of levels property for the tree control is not set. This enables you to add a static list ofvalues.

1. In the HTML canvas, insert a tree control.

2. From the Settings panel, select Static as the Data type.

Static is selected by default. You may select an item, delete it, or add a subitem.

3. Create the parameter values for the control:

Click the add value button to add a list of values. The values are added in a sequentialhierarchical structure. The last value added appears in the Value and Display Value fields.

To edit the value, manually type the desired value in the Value and Display Value fields.

Click Append child item from the Static values drop-down list to append a value at thelevel currently selected, and create a new value as the child of the selected value.

304 WebFOCUS

Controls Tab

Page 305: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Click Insert before from the Static values drop-down list to insert a value before theselected value, as shown in the following example. Note the number of the value.

Click Insert after from the Static values drop-down list to insert a value after the selectedvalue, as shown in the following example. Note the number of the value.

Repeat these steps until the list contains all of the values you want to include.

Optionally, click the Delete button to eliminate any values.

4. Click the Selected check box to show the entry in the Value field as the default value.

5. Select the Send display value check box to send the display value, rather than the actualdata, to the parameter.

6. Save and run the page to populate the tree control with static values.

How to Create a New Tree Control From the New Parameters Dialog BoxProcedure:

When a report contains one or more new amper variable parameters, the New Parameters dialogbox opens when you save the report and return to the HTML canvas. You can assign a new Singlesource or Multi source Tree control from the HTML page to the parameter from the New Parametersdialog box.

For each parameter, you will find Name and Control Type fields, a Create control check box, andoptions to set the Control Type to a Single source or Multi source Tree control.

1. Import or create a report that contains parameters.

When importing a report with parameters, the New Parameters dialog box opens, promptingyou to create the control type.

2. Select the new tree control from the New Parameters dialog box.

The Control Type column refreshes, showing the selected control.

3. Click OK to close the New Parameters dialog box.

The report is added and the associated parameters are bound to the tree control.

Usage Notes For Chaining Tree ControlsReference:

The following usage notes apply when chaining tree controls. You may chain controls from theNew Parameters dialog box and from the Parameters tab.

When the Multi source Tree control is a link in the chain, the New Parameters dialog boxenables you to share parameters with the same multi source control.

WebFOCUS App Studio Reference Guide 305

5. Creating HTML Pages in WebFOCUS App Studio

Page 306: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can chain a Multi source Tree control to a Single source Tree control.

You can chain a Single source Tree control to another Single source Tree control.

You can chain a Multi source Tree control to another Multi source Tree control.

You can chain a tree control to another non-tree control, such as Drop down list or List box.

Chaining cannot be done with only field names.

Dynamic population of controls with field names need to use SYSCOLUMN calls.

Positioning Tab

Positioning options enable you to multi-select objects and position them relative to one another.The Positioning tab contains the Positioning, Relationships, and Text Alignment groups, as shownin the following image.

Positioning Group

The Positioning group contains the Left, Right, Top, Bottom, Center, Middle, Same Width, SameHeight, Same Size, and Toggles Grid commands, as shown in the following image.

Left

Aligns the objects to the left. This works in relationship positioning.

Relates an object to the left of another object.

Right

Aligns the objects to the right. This works in relationship positioning.

Relates an object to the right of another object.

306 WebFOCUS

Positioning Tab

Page 307: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Top

Aligns the objects to the top of the highest selected object. This works in relationshippositioning.

Bottom

Aligns the objects by the bottom of the lowest selected object. This works in relationshippositioning.

Center

Aligns the objects to the center of the page. This works in relationship positioning.

Aligns objects at the horizontal center point of the object.

Middle

Aligns the objects to the middle of the page. This works in relationship positioning.

Aligns objects at the vertical center point of the object.

Same Width

Makes two or more objects the same width.

Same Height

Makes two or more objects the same height.

Same Size

Makes two or more objects the same size.

Toggles Grid

Turns the grid on and off.

WebFOCUS App Studio Reference Guide 307

5. Creating HTML Pages in WebFOCUS App Studio

Page 308: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Relationships Group

The Relationships group contains the Top Left, Top Right, Bottom Right, Bottom Left, Break, andShow commands. The Top Left, Top Right, and Bottom Right commands are only available forHTML pages and Guided Report pages. The Relationships group is shown in the following image.

Top Left

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe top left of another object.

Top Right

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe top right of another object.

Bottom Right

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe bottom right of another object.

Bottom Left

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe bottom left of another object.

Break

Breaks the relationship between the objects selected.

Show

Shows or hides the relationship between objects.

308 WebFOCUS

Positioning Tab

Page 309: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Text Alignment Group

The Text Alignment group contains the Left, Center, Right, and Full Justification commands. Thesecommands align text within the HTML page. The Text Alignment group is shown in the followingimage.

Left

Aligns selected text to the left.

Center

Aligns selected text to the center.

Right

Aligns selected text to the right.

Full Justification

Fully justifies the selected text, meaning that the text fills the width of the text box.

Utilities Tab

You can change the font, chaining, active report, template, and page properties of an HTML pageor Guided Report page. The Utilities tab is shown in the following image.

WebFOCUS App Studio Reference Guide 309

5. Creating HTML Pages in WebFOCUS App Studio

Page 310: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Chaining Group

You can add or remove chaining options. The Chaining group is shown in the following image.

The commands are:

Add

Chains two or more objects that are selected in the Parameters tab.

Remove

Unchains two or more selected, chained objects in the Parameters tab.

Active Technologies Reports Group

You can synchronize an active report. This group is available only for an HTML page and a GuidedReport page. The active reports group is shown in the following image.

The commands are:

Sync

Syncs an active report.

Show

Shows the synchronization of the canvas.

310 WebFOCUS

Utilities Tab

Page 311: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Template Group

You can unlock a template to add controls, text, and buttons. This group is available only for anHTML page and a Guided Report page. The Template group is shown in the following image.

The commands are:

Unlock

Unlocks the template that you are using and allows for full control of the page.

Report Set

In template mode, this adds a title bar and a form with controls, text, and buttons as a set.

Files Utility Group

You can import and export a page, save a page, and add pre-processing or post-processing codeto a document. The Files Utility group is shown in the following image.

The commands are:

Thin Client

Saves the page so that it can be run as a thin client. It is available only if there is a VisualDiscovery component on the page and if the page is an HTML page or a Guided Report page.

Export

Exports files from the page. This command is available only for an HTML page and a GuidedReport page.

Import

Imports files to the page. This command is available only for an HTML page and a GuidedReport page.

WebFOCUS App Studio Reference Guide 311

5. Creating HTML Pages in WebFOCUS App Studio

Page 312: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Miscellaneous Group

The Miscellaneous group contains the Visibility, Tab order, and Delete Container commands.This group is available only for an HTML page and a Guided Report page. The Miscellaneousgroup is shown in the following image.

The commands are:

Visibility

Toggles the visibility of hidden objects. Hidden objects are objects that have the Visibilityproperty, in the Properties panel, set to hidden.

For more information on using the Visiblity command, see How to Toggle the Visibility of aHidden Object on page 312.

Tab order

Shows the order of the tabs.

Delete Container

Deletes the selected container without deleting the container content.

Refresh All

Refreshes the HTML page.

How to Toggle the Visibility of a Hidden ObjectProcedure:

1. Insert an object into the HTML canvas.

2. Select the object you created, if it is not already selected.

3. In the Properties panel, change the Visibility property to hidden.

The object on the canvas is hidden from view.

4. On the Utilities tab, in the Miscellaneous group, click the Visiblity command.

The hidden object is now displayed on the canvas. You can click the Visibility command againto hide the object again. At run time, this object will be hidden.

312 WebFOCUS

Utilities Tab

Page 313: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

View Group

The View group allows you to display or hide the panels associated with an HTML Page or GuidedReport page. This group is accessible in the Utilities tab of the HTML canvas and in the TextEditor tab when accessing the Embedded JavaScript/CSS view tab. The View group is shown inthe following image.

The commands are:

Properties

Toggles the visibility of the Properties panel.

Settings

Toggles the visibility of the Settings panel.

Thumbnails

Toggles the visibility of the Thumbnails panel.

Tasks & Animations

Toggles the visibility of the Tasks & Animations panel.

Requests & Data sources

Toggles the visibility of the Requests & Data sources panel.

Using Parameters

Creating Parameter Values

Parameter values and input controls can be created with a dynamic or static list of values:

A dynamic list retrieves values from a specified data source when the request is run.

A static list consists of a list of values you supply. These values do not change unless youchange them.

WebFOCUS App Studio Reference Guide 313

5. Creating HTML Pages in WebFOCUS App Studio

Page 314: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

An active control lists active report values that mimic active report menu items.

Note: The active controls cannot be associated to any parameters in the layout. This typeof control can only be associated with an active report in the layout.

The TOC control list gives you the ability to integrate a report with a Table of Contents andOn Demand Paging in the HTML canvas.

Note: TOC controls cannot be associated to any parameters in the layout. This type ofcontrol can only be associated with certain input controls in the layout.

Working With the Parameters Tab

The Parameters tab enables you to create and modify parameter values, input controls, andcustomize parameter conditions. You may also bind parameters to controls and chain controlsto one another. The Parameters tab consists of the following components:

Input control objects.

You may select the input control object to view and edit the settings of the control.

Creating an input control from the Design view prompts you to create a bound parameteron the Parameters tab.

Editing an input control, which is inserted when setting input controls for new parameters.

Add new parameters.

Right-click anywhere on the Parameters tab to add a new parameter.

Note: Manually adding a parameter creates an unbound parameter.

Refresh unresolved parameters.

All parameters on the parameters tab are parsed every two minutes to check if any areunresolved. If there are, their surrounding polygon is colored red. If you want to check forunresolved parameters on demand, right-click and select Refresh unresolved.

Binding controls and parameters.

Input controls and parameters can be bound and unbound from the Parameters tab.

You may bind a parameter to an input control, or bind an input control to a parameter.

Binding a parameter to a control makes it an incoming parameter that will populate thecontrol. Drag a parameter object to a control object on the Parameters tab.

314 WebFOCUS

Using Parameters

Page 315: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Binding a control to a parameter will populate the parameter. Drag a control object to aparameter object on the Parameters tab.

Chain one control to another.

Chaining will populate controls based on the selected value from the prior control in the chain.You can chain static and dynamic controls, link or unlink parts of a chain, and create conditionson links in a chain. Chains are represented by lines connecting control objects on theParameters tab. By clicking the arrow head in a link of a chain, the Settings panel enablesyou to modify and set properties and conditions of the chain.

Note: Chaining is applicable only for controls, not parameters.

Adding a New Unbound Parameter

An unbound parameter is useful when passing a parameter value used on another page. Youmay also bind the new parameter to a control to create an incoming parameter, or bind a controlto the parameter.

How to Add a New Unbound ParameterProcedure:

The following steps describe how to add a new parameter:

1. Right-click anywhere on the Parameters tab and select Add parameter.

Enter the parameter value information. Options are Single select, Multiselect OR, andMultiselect AND.

2. If using single value, select Single select.

Note: Single select is the default option when adding a new parameter.

a. Enter the Selected Value to be assigned to a single variable.

b. Enter the name for the parameter in the Name field, or keep the default name.

c. Optionally, you may use the Format field to define the format of the parameter, such asA20, or D12.2.

If this field is left blank, it automatically applies the Alphanumeric format to the valuefield.

3. If using a multiselect value, select Multiselect OR or Multiselect AND.

The Value, Display, and Selected columns appear.

WebFOCUS App Studio Reference Guide 315

5. Creating HTML Pages in WebFOCUS App Studio

Page 316: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

a. Click the New button to enter a list of static values.

b. In the Value column, enter the value to be passed to the selected parameter.

c. In the Display column, enter the text that represents the parameter value in the controlthe user views.

d. In the Selected column, check the box for the value you want to be selected by default.More than one value can be selected.

Repeat these steps until the list contains all of the values you want to include.

4. Optionally, you may select values and click the Delete button to eliminate any values, anduse the up and down arrows to rearrange the order of the values.

5. Close the Settings panel to create an unbound parameter.

6. To modify the parameter value, right-click the parameter on the Parameters tab and selectSettings to make your edits.

Tip: You may also use the Undo and Redo buttons located on the Standard toolbar. Notethat undo/redo treats the entire Settings panel as one action.

7. Optionally, bind a control to a parameter to populate the parameter. Select the center of theparameter name object and drag the parameter to the center of the control object.

8. Optionally, bind the new parameter to a control to create an incoming parameter. Select thecenter of the control object and drag the control to the center of the parameter object.

Creating a Static List of Values

When creating a list of static values, you can select from the following options:

Add new value

Add ignore value

Add everything value

Use values from procedure

Use values from external file

When the options are added to the Value list, the display text can be customized, but the valuecannot be changed.

You may create an unbound static parameter, an incoming static parameter (a parameter thatis bound to a control), or a control that is bound to a static parameter.

316 WebFOCUS

Using Parameters

Page 317: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Settings Panel (Incoming Static Parameter and Unbound Control)Reference:

The Settings panel appears when creating or editing a static value on the Parameters tab.

The options available depend on the type of static value.

The Settings panel contains the following fields and options when Static is selected as the Datatype.

Data type

Determines whether values are obtained from a static or dynamic list, an active report, orTOC.

Static. Uses a static list of values you supply. A list of static values can also be created inthe Report canvas.

Static values

Is a list of supplied values for a static list.

Value. The value to be passed to the selected parameter.

Display. The text that represents the value in the control the user views. Press the Ctrl +Shift keys to add a value to the Display field.

Selected. The value to act as the default value. If the control is multi-select, more than onevalue can be selected.

New. Creates a new value.

Delete. Deletes a supplied value from the list.

Move Up. Moves the selected value up in the list.

Move Down. Moves the selected value down in the list.

Send display value

Select this option to send the display value, rather than the actual data, to the parameter.

The Send display value option appears when creating an incoming static parameter (aparameter that is bound to a control), or an unbound control (a control that is not bound toa parameter). It is not available when creating an unbound static parameter.

Values are procedures names

Select this option to have a control populated with procedure names, so that when a valueis selected, that procedure executes. The Value column is the procedure name itself andcannot be edited. The Display column is editable.

WebFOCUS App Studio Reference Guide 317

5. Creating HTML Pages in WebFOCUS App Studio

Page 318: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Settings Panel (Unbound Parameter)Reference:

The Settings panel appears when creating or editing a static value on the Parameters tab.

The options available depend on the type of static value.

The Settings panel contains the following fields and options when adding an unbound parameterwith Single select. Single select is the default option when adding a new parameter.

Name

The default name assigned to the parameter. Optionally, you may enter a new name for theparameter.

Format

The Format field defines the format of the parameter, such as A20, or D12.2.

This field is optional. If this field is left blank, it automatically applies the Alphanumeric formatto the value field.

Selected Value

Enter the selected value to be assigned to the parameter.

Static values

Is a list of supplied values for a static list.

Value. The value to be passed to the selected parameter.

Display. The text that represents the value in the control the user views. Press the Ctrl +Shift keys to add a value to the Display field.

Selected. The value to act as the default value. If the control is multi-select, more than onevalue can be selected.

New. Creates a new value.

Delete. Deletes a supplied value from the list.

Move Up. Moves the selected value up in the list.

Move Down. Moves the selected value down in the list.

Settings Panel (Bound Parameter)Reference:

The Settings panel appears when selecting a bound parameter on the Parameters tab.

The Settings panel for a parameter is read-only and displays the values for the bound control.

318 WebFOCUS

Using Parameters

Page 319: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Settings panel contains the following read-only values:

Value

Shows the selected value for the static parameter data.

Display

Shows the static parameter display value.

How to Add a New Static ValueProcedure:

The steps below describe how to manually add a new static value:

You may create an unbound static parameter, an incoming static parameter (a parameter thatis bound to a control), or a control that is bound to a static parameter.

1. Create a new parameter.

a. Right-click anywhere on the Parameters tab and select Add parameter.

b. Enter the parameter value information in the Settings panel. Options are Single select,Multiselect OR, and Multiselect AND.

c. If using single value, select Single select.

Single select is the default option when adding a new parameter.

Enter the Selected Value to be assigned to a single variable.

Enter the name for the parameter in the Name field, or keep the default name.

Optionally, you may use the Format field to define the format of the parameter, suchas A20, or D12.2.

If this field is left blank, it automatically applies the Alphanumeric format to the valuefield.

d. If using a multiselect value, select Multiselect OR or Multiselect AND.

The Value, Display, and Selected columns appear.

Click the New button to enter a list of static values.

In the Value column, enter the value to be passed to the selected parameter.

In the Display column, enter the text that represents the parameter value in thecontrol the user views.

In the Selected column, check the box for the value you want to be selected bydefault. More than one value can be selected.

WebFOCUS App Studio Reference Guide 319

5. Creating HTML Pages in WebFOCUS App Studio

Page 320: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Repeat these steps until the list contains all of the values you want to include.

Optionally, you may select values and click the Delete button to eliminate any values,and use the up and down arrows to rearrange the order of the values.

e. Close the Settings panel to create an unbound parameter.

An unbound static parameter is useful when passing a parameter value used on anotherpage. You may also bind the new parameter to a control to create an incoming parameter,or bind a control to the parameter.

2. Bind the new parameter to a control.

Binding a new parameter to a control creates an incoming parameter. An incoming parameteris a static parameter that is bound to a control. The parameter value will populate the control.

a. Select the Design tab and create an input control. For example, insert a list box or adrop-down list.

b. Click the Parameters tab.

The Settings panel appears for the control.

c. Close the Settings panel.

Close this dialog since you are populating the control with the parameter value, whichhas already been created in step 1.

d. Select the center of the parameter name object and drag the parameter to the centerof the control object.

e. To unbind the parameter, select the arrow head on the line, so that the line is bold,right-click and select Break binding.

3. Create a control that is bound to a parameter.

Create a control with static values and bind the control to a parameter to populate theparameter with the control values.

a. From the Design view of the HTML canvas, select a control.

The pointer changes into a crosshair.

b. Drag the crosshair to create the control and adjust it to the size you want.

c. Click the Parameters tab.

The Settings panel appears for the control.

d. Select Static as the Data type.

320 WebFOCUS

Using Parameters

Page 321: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Static is selected by default.

e. Create the parameter values for the control:

In the Value column, enter the value to be passed to the control.

In the Display column, enter the text that represents the static parameter value inthe control the user views.

In the Selected column, check the box for the value you want to be selected bydefault. More than one value can be selected.

Repeat these steps until the list contains all of the values you want to include.

Optionally, you may select values and click the Delete button to eliminate any values,and use the up and down arrows to rearrange the order of the values.

f. Close the Settings panel to create the control with static values.

g. Bind the new control to a parameter: Select the center of the control object and dragthe control to the center of the parameter object.

h. To unbind the control, select the arrow head on the line, so that the line is bold, right-clickand select Break binding.

i. To change the default type of control, right-click the control object on the Parameterstab or the Design tab and select Set Control Type.

The options are Calendar, Check box, Drop down list, Hidden, List box, Radio button,Text Area, Text box, Single source Tree control, and Multi source Tree control.

4. To modify the static value, right-click the control, or parameter, on the Parameters tab andselect Settings to make your edits.

Adding Static Field Values From Report CanvasReference:

Instead of adding new static values, you may also import static value parameters that you createdfrom the Variable Editor dialog box. Parameter values can be data values to limit your data orfield names to select the fields in your report. Both types of static lists can be created in Reportcanvas. This example details how to supply field values to a report through the HTML canvas andReport canvas.

For the purposes of this example, use the CAR Master File (car.mas) that is supplied with AppStudio.

1. From the HTML canvas, insert a new report.

WebFOCUS App Studio Reference Guide 321

5. Creating HTML Pages in WebFOCUS App Studio

Page 322: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The pointer changes into a crosshair.

2. Drag the crosshair to create a report object and adjust it to the size you want.

3. Right-click the report object and click New Report.

The Open dialog box appears.

4. Select the car.mas Master File and click Open.

The Report canvas opens.

5. From Report canvas Object Inspector, right-click Report Variables and click New Report VariableField.

The Variable Editor dialog box opens.

Enter SORTVAR in the Name and Prompt input fields, and keep the Variable Type as SingleSelect.

Click Static List from the Accept List section.

Double-click COUNTRY and BODYTYPE from the Fields from database Data Context area.

The fields are added to the Static Accept List.

Click OK to save the variable.

6. Create a second variable.

Right-click Report Variables and click New Report Variable Field.

The Variable Editor dialog box.

Enter MEASURES in the Name and Prompt input fields.

Click Multiselect AND from the Variable Type drop-down list.

Click Static List from the Accept List section.

Double-click CAR, DEALER_COST, RETAIL_COST, and SALES from the Fields from databaseData Context area.

The fields are added to the Static Accept List.

Click OK to save the variable.

7. Double-click &SORTVAR and &MEASURES from the Report Variables in the Object Inspector.

The variables are added to the report.

8. Click &SORTVAR and select By from the Columns toolbar.

322 WebFOCUS

Using Parameters

Page 323: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If the parameter is to be used as a By field in a report, it must be the single-selectvariable type.

9. Save and close the report.

You are returned to the HTML canvas and since you are adding a report with parameters, theNew Parameters dialog box appears.

10. From the New Parameters dialog box:

Select Double list control from the Control Type list for MEASURES.

Select Do not create a form from the Parameter grouping options drop-down list.

Click OK to close the New Parameters dialog box.

The report and associated parameters are added as static field values. You may rearrangeor lengthen the controls in the layout.

11. Save and run the layout.

Select the static field values (By field and the associated measures) and run the report.

How to Add an Ignore ValueProcedure:

The add ignore value option sends _FOC_NULL to the server at run time and is intended for usewith complex applications. The add ignore value option is available for Multiselect OR andMultiselect AND static parameters.

1. From the HTML canvas, use controls to supply parameter values for a report.

A report with parameters requires that you to select values (at run time) in order to generatethe output.

2. Click the Parameters tab.

The parameters associated with each control can be controlled with the Parameters tab. Theproperties of a control can be controlled with the Properties tab.

3. Select a multiselect control object from the Parameters tab.

The Settings panel opens.

4. Select Add ignore value from the Static values drop-down list.

5. Optionally, select Send display value to send the display value, rather than the actual data,for the parameter values in the report.

6. Close the Settings panel.

WebFOCUS App Studio Reference Guide 323

5. Creating HTML Pages in WebFOCUS App Studio

Page 324: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

7. Run the HTML page and select the Ignore All value to ignore the parameter values.

Note: Sending _FOC_NULL to a procedure will result in any clause of that procedure that usesthat variable to be ignored.

How to Add an Everything ValueProcedure:

The add everything value option uses JavaScript to send every value present in the parameterlist to the server at run time. The add everything value option is available for Multiselect OR andMultiselect AND static parameters.

The add everything value option is not available for a Double List Control.

1. From the HTML canvas, use controls to supply parameter values for a report.

2. Click the Parameters tab.

3. Select a multiselect control object from the Parameters tab.

The Settings panel opens.

4. Select Add everything value from the Static values drop-down list.

5. Optionally, select Send display value to send the display value, rather than the actual data,for the parameter values in the report.

6. Close the Settings panel.

7. Run the HTML page and click the Select All parameter value to view all the parameter values.

How to Use Values From a ProcedureProcedure:

This is the default option which populates the static list with field names predefined in theprocedure. The use values from procedure option is available for Multiselect OR and MultiselectAND static parameters, and when adding static field values from Report canvas.

1. From the HTML canvas, use controls to supply parameter values for a report.

2. Click the Parameters tab.

3. Select a multiselect control object from the Parameters tab.

The Settings panel opens.

4. Select Use values from procedure from the Static values drop-down list.

The field names from the procedure appear in the Settings panel.

5. Optionally, select Send display value to send the display value, rather than the actual data,for the parameter values in the report.

324 WebFOCUS

Using Parameters

Page 325: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

6. Close the Settings panel.

7. Run the HTML page and select the parameter values from the procedure.

How to Import Values From an External FileProcedure:

This option enables you to use a local external file to provide values for the parameter. The importvalues from an external file option is available for Multiselect OR and Multiselect AND staticparameters.

1. From the HTML canvas, use controls to supply parameter values for a report.

2. Click the Parameters tab.

3. Select a multiselect control object from the Parameters tab.

The Settings panel opens.

4. Select Use values from external file from the Static values drop-down list.

The Open dialog box appears.

5. Select a text file from your local machine and click Open.

The external file can be a file with single values on each line, or two values per line, comma-delimited.

For example, in the following text file, BOS is the data value and Boston is the display value.

The imported values are loaded into the Static values area of the Parameters tab.

If there is only one value on the line in the text file, the value will populate both the datavalue and the display values.

6. Run the HTML page to see the imported values for the selected parameter.

Creating a Dynamic List of Values

Dynamic values are available by default if a parameter used in the procedure is associated withthe selected control. A dynamic list retrieves values from a specified data source when the requestis run.

Settings Panel (Dynamic Values)Reference:

The Settings panel appears when creating or editing a dynamic parameter on the Parameterstab.

WebFOCUS App Studio Reference Guide 325

5. Creating HTML Pages in WebFOCUS App Studio

Page 326: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Settings panel contains the following fields and options when Dynamic is selected as theData type:

Data type

Determines whether values are obtained from a static or dynamic list, an active report, orTOC.

Dynamic uses a list of values retrieved from a selected data source when the request isexecuted. This is the default if you use an Accept clause in a Master File to create an ampervariable parameter within a procedure.

Embedded procedure

Is the data source from which the values will be retrieved.

External Procedure

Is the existing procedure that will be called.

You may modify the external procedure directly from the Settings panel on the Parameterstab. If you modify the request, you can save the external procedure and overwrite the originalrequest.

Value field

Is the data source field from which the values will be retrieved.

Display field

Is the text that represents the parameter value in the control the user views.

There should be a relationship between the Value field and the Display field. The Displayfield is user-friendly text corresponding to the Value field.

Source Code for the procedure

When the Value field is selected for an Embedded procedure, the corresponding sourcecode appears.

Tip: You may manually edit the source code if you are familiar with WebFOCUS syntax.For example, you may right-click and choose Select a field from the data source to addto the request. You can also right-click and choose Use the default request.

The source code for an embedded procedure includes the line // TODO: Add your filtershere to replace defaults, as a placeholder for you to enter filters, or WHERE clauses, forthe request to resolve at run time. If entering filters, only dynamic filters can be specified.

326 WebFOCUS

Using Parameters

Page 327: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The //TODO line must remain in the source code in order to resolve filters at run time.One such example of this is when filters are based on chains that have conditions. If youwant your own filters specified, then delete this line.

When an external procedure is selected, the corresponding source code appears.

Tip: You may manually edit the source code if you are familiar with WebFOCUS syntax.For example, you may right-click and choose Select a field from the data source to addto the request. After editing the external procedure that is associated with a control,right-click and choose Reload external procedure to reload and display the new syntaxin the Settings panel. You can also right-click and choose Save external procedure.Saving the external procedure overwrites the original requests.

Add "ALL" Option

Adds the option to select ALL data source values to the control. Alternate text can besubstituted for "ALL" using the text field to the right.

Add ‘No selection' option

Optimizes performance by populating a chain one control at a time instead of all the controlswhen the page initially loads. Selecting the Add ‘No selection’ option enables you to populatecontrols when necessary.

Cache run time data

When adding dynamic parameters to the HTML page, input controls retrieve data throughprocedures. Select this option to cache the run-time data for the selected input control. Thissetting is off by default.

This setting overrides the Default caching option from the HTML Page tab, which is locatedin the App Studio Options dialog box.

Limit values returned

Indicates that a specific number of field values will be retrieved from the data source. Thespecific number of fields is selected with the menu to the right.

Sort

Clicking Sort enables you to set the sort order for displaying values in dynamic list controls.This option is useful when you want to sort each control independently of the others.

By default, the request retrieves dynamic display values from the BY sort field in the request.The results display values based on the value field.

WebFOCUS App Studio Reference Guide 327

5. Creating HTML Pages in WebFOCUS App Studio

Page 328: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Sort by

When Sort is enabled, you may sort the display value by the Value field or the Display fieldselected from the Settings panel. The default is Value field.

Sort order

When Sort is enabled, you may select the sort order as Ascending or Descending. The defaultsort order is Ascending.

Send display value

Select this option to send the display value, rather than the actual data, to the parameter.

Selected Value

Enter the values to be selected as the default value whenever the procedure is run.

Check for duplicate values

When creating a dynamic list of values for a report, you may remove duplicate values frominput controls.

Settings Panel (Bound Parameter)Reference:

The Settings panel appears when selecting a bound parameter on the Parameters tab.

The Settings panel for a parameter is read-only and displays the values for the bound control.

The Settings panel contains the following read-only values:

Datasource file

Shows the selected Master File for the parameter data source.

Value field

Shows the value field for the dynamic parameter data.

Display field

Shows the dynamic parameter display field.

Multiselect

Shows OR or AND, if there is a Multiselect OR or Multiselect AND dynamic parameter.

Selected Value

Shows the selected value, if there is one assigned to the variable.

328 WebFOCUS

Using Parameters

Page 329: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Create a Dynamic ValueProcedure:

The steps below describe how to create a dynamic list of values.

You may need to create a dynamic control that is bound to a parameter. Creating a control withdynamic values and binding the control to a parameter will populate the parameter with the controlvalues.

1. From the Design view of the HTML canvas, select a control from the Controls sub menu ofthe Insert menu. For example, insert a list box or drop-down list.

The pointer changes into a crosshair.

2. Drag the crosshair to create the control and adjust it to the size you want.

3. Click the Parameters tab.

The Settings panel opens.

4. Select Dynamic as the Data type.

The dynamic value options appear.

5. Create the dynamic values for the control.

a. If you are using an Embedded procedure to supply dynamic values, follow the stepsbelow.

Select Embedded procedure.

Click the Embedded procedure ellipsis button.

The Open dialog box opens.

Select the Master File name and click Open.

Click the ellipsis button from the Value field.

The Object Inspector opens with the field names from the selected Master File.

Double-click a field name to add it to the Value field.

Tip: You may also use the Object Inspector icons to select a field and close theObject Inspector. The green icon is OK, the red icon is Cancel, double-clicking avalue will select the value and close the dialog without using any button, andpressing the Esc key will cancel the dialog without using any button.

The selected field is automatically added to the Display field and the source codefor the embedded procedure appears.

WebFOCUS App Studio Reference Guide 329

5. Creating HTML Pages in WebFOCUS App Studio

Page 330: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Optionally, you may click the Display field ellipsis button to select a different fieldname for the Display field. (You may also use the Object Inspector icons to select afield and close the Object Inspector).

You may manually edit the source code if you are familiar with WebFOCUS syntax.Right-click and choose Select a field from the data source to add to the request. Forexample, add an additional BY sort field to the request.

To remove any syntax that you added, right-click and select Use the default request.

The source code for an embedded procedure includes the line // TODO: Add yourfilters here to replace defaults, as a placeholder for you to enter filters, or WHEREclauses, for the request to resolve at run time. If you are entering filters, only dynamicfilters can be specified. For example, enter a filter for the CITY in the request.

The //TODO line must remain in the source code in order to resolve filters at runtime. One example of this is when filters are based on chains that have conditions.If you want your own filters specified, then delete this line.

b. If you are using an External Procedure to supply dynamic values, follow the steps below.

Select External Procedure.

Click the External Procedure ellipsis button.

The Open dialog box opens.

Select the procedure (.fex) file name and click Open.

The parameter names from the procedure are automatically added to the Value fieldand Display field, and the source code for the external procedure appears.

Optionally, you may click the Value field and Display field ellipsis button to select adifferent field name.

Tip: You may also use the Object Inspector icons to select a field and close theObject Inspector. The green icon is OK, the red icon is Cancel, double-clicking avalue will select the value and close the dialog without using any button, andpressing the Esc key will cancel the dialog without using any button.

Only the parameter names from the external procedure will be available for selection.

You may manually edit the source code if you are familiar with WebFOCUS syntax.Additionally, you may right-click and choose Select a field from the data source toadd to the request.

330 WebFOCUS

Using Parameters

Page 331: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If you modify the request that is associated with a control, you can right-click andchoose Reload external procedure to reload and display the new syntax in the Settingspanel. Or right-click and choose to Save external procedure. Saving the externalprocedure overwrites the original requests.

6. Optionally, select Add "ALL" option to add the select ALL data source values to the control.

7. Optionally, select Add 'No selection' option to optimize performance by populating a chainone control at a time instead of all the controls when the page initially loads.

8. Optionally, select Cache run time data to cache the run time data for the selected inputcontrol.

9. Optionally, select Limit values returned, and select or type the number of field values youwant to retrieve from the data source in the box to the right of this option.

10. Optionally, click the Sort option to enable and select the sort order options for displayingvalues in dynamic list control.

11. Optionally, select Check for duplicate values to remove any duplicate value entries from theinput control at run time.

12. Close the Settings panel to create the control with dynamic values.

13. Bind the new control to a parameter. Select the center of the control object and drag thecontrol to the center of the parameter object.

14. To unbind the control, select the arrow head on the line, so that the line is bold, right-clickand select Break binding.

15. To change the default type of control, right-click the control object on the Parameters tab orthe Design tab and select Set Control Type.

The options are Calendar, Check box, Drop down list, Hidden, List box, Radio button, TextArea, Text box, Single source Tree control, and Multi source Tree control.

16. To modify the dynamic value, right-click the control and select Settings to make your edits.

How to Create Dynamic Parameters by Adding a FilterProcedure:

You may create new dynamic parameters by adding a filter to a report or graph component in thelayout.

1. To create dynamic parameters for your report or graph in the Design view, right-click thereport or graph object and select Add a filter from the shortcut menu.

The Filter options dialog box opens.

2. Select the field to be used for the parameter, the Multiselect option, and click OK.

WebFOCUS App Studio Reference Guide 331

5. Creating HTML Pages in WebFOCUS App Studio

Page 332: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The New Parameters dialog box appears.

You may select a control type for the parameter from this dialog box, or adjust them laterusing the Settings panel on the Parameters tab.

If the New Parameters dialog box does not appear, ensure that Show New Parameters dialogis selected from the HTML Page tab. To access the HTML Page tab, select Options from theWindow menu to open the App Studio Options dialog box. From the App Studio Options dialogbox, select the HTML Page tab.

3. Click OK to close the New Parameters dialog box.

4. The filter appears above the report or graph object.

Repeat this procedure for each additional parameter for the report or graph.

How to Sort the Dynamic List of ValuesProcedure:

This option is useful when you want to sort each control independently of the others.

Note: If sort options are not selected, the request retrieves dynamic display values from theBY sort field in the request, and the results display values based on the value field. Sortoptions are not selected by default.

1. Select a dynamic control from the Parameters tab.

The Settings panel opens.

2. Select Sort to enable the sort options.

You may select the Sort by and Sort order options for the control.

3. Select the Sort by options:

Sort by Value sorts the value by the field name from the Value field. This is the defaultSort by selection.

Sort by Display sorts the value by the field name from the Display field.

4. Select the Sort order options:

Sort order Ascending sorts the value from lowest to highest. This is the default Sort orderselection.

Sort order Descending sorts the value from highest to lowest.

5. Close the Settings panel.

332 WebFOCUS

Using Parameters

Page 333: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tip: You may repeat these steps and select sort options for each dynamic control on theHTML page.

6. Run the HTML page to see the sort results.

How to Check for Duplicate ValuesProcedure:

When creating a dynamic list of values for a report, you may remove duplicate values from inputcontrols. This is useful if you are using your own procedure that does not use a structured datasource.

The Check for duplicate values option is turned off by default.

1. From the HTML canvas, create an input control with a dynamic list of values.

2. Select the input control and click the Parameters tab.

The Settings panel opens for the input control.

3. Select the Check for duplicate values check box.

The Check for duplicate values option is only available when creating a dynamic list of valuesfor an input control.

4. Close the Settings panel to save your selection.

5. Save and run the HTML page.

The input control removes duplicate value entries.

The following example shows a list box with a list of city values. The first list box shows thelist of values with duplicate entries. The second list box shows the list with duplicate valuesremoved.

Using Custom Procedures to Retrieve Dynamic Values

You have the option to allow customized retrieval of dynamic parameter values. By using a customprocedure, you can use the WebFOCUS language to utilize temporary HOLD files, filtering, andso on. This allows the HTML canvas to better integrate with a multitude of large and/or proprietarydata sources that may require unique retrieval methods. The procedure must meet the followingcriteria:

The procedure must return a name and value pair for each parameter value that will populatethe list. The first value is the submission value which is passed to the control when you clickthe Submit button. The second value is the display value which is what you will see in thecontrol. These two values can be the same or different.

WebFOCUS App Studio Reference Guide 333

5. Creating HTML Pages in WebFOCUS App Studio

Page 334: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The procedure must return the two data values on a single data line in XML format (PCHOLDFORMAT XML).

Note: Different parameters in the same procedure can use both this option and the datasource method.

For chained controls, there are two options based on whether caching is enabled:

By default, caching is not enabled. Each parameter control must be mapped to its ownprocedure and the developer is responsible for writing filters or WHERE criteria to properlyfilter the hierarchy of controls.

If caching is enabled for the parameter values, a single procedure can be used to populatethe controls of the chained variables. In this case, the HTML canvas writes the WHERE criteria.

Limit values returned, will not be applied. When using chaining, HTML canvas does not generatefilters because it does not produce the request to create the population.

Retrieving Dynamic Parameter Values With One ValueExample:

The following example shows the same value being used for the submission value and displayvalue.

TABLE FILE GGSALESPRINT DST.PRODUCTBY PRODUCTON TABLE SET HOLDLIST PRINTONLYON TABLE PCHOLD FORMAT XMLEND

334 WebFOCUS

Using Parameters

Page 335: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The XML output is:

<?xml version="1.0" encoding="ISO-8859-1" ?> - <fxf version="1.0" data="hold"> - <report records="4317" lines="10" columns="2" rows="10"> <target format="" version="" type="" destination="HOLD" /> - <column_desc> <col colnum="c0" fieldname="PRODUCT" alias="E01" datatype="char" width="16" focus_format="A16" description="Product name" accept="" help_message="" title="Product" within="" property="" reference="" valign="left" /> <col colnum="c1" fieldname="PRODUCT" alias="E02" datatype="char" width="16" focus_format="A16" description="Product name" accept="" help_message="" title="Product" within="" property="" reference="" valign="left" /> </column_desc> - <table> - <tr linetype="data" linenum="1"> <td colnum="c0">Biscotti</td> <td colnum="c1">Biscotti</td> </tr> - <tr linetype="data" linenum="2"> <td colnum="c0">Capuccino</td> <td colnum="c1">Capuccino</td> </tr> - <tr linetype="data" linenum="3"> <td colnum="c0">Coffee Grinder</td> <td colnum="c1">Coffee Grinder</td> </tr> - <tr linetype="data" linenum="4"> <td colnum="c0">Coffee Pot</td> <td colnum="c1">Coffee Pot</td> </tr>

Retrieving Dynamic Parameter Values With Two ValuesExample:

The following example shows two different field values being used for the submission value anddisplay value. In this case, PRODUCT (Product Description) is used for the display value and PCD(Product Code) is used as the submission value.

TABLE FILE GGSALES PRINT DST.PRODUCT BY PCD ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END

WebFOCUS App Studio Reference Guide 335

5. Creating HTML Pages in WebFOCUS App Studio

Page 336: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The XML output is:

<?xml version="1.0" encoding="ISO-8859-1" ?>- <fxf version="1.0" data="hold"> - <report records="4317" lines="10" columns="2" rows="10"> <target format="" version="" type="" destination="HOLD" /> - <column_desc> <col colnum="c0" fieldname="PCD" alias="E01" datatype="char" width="4" focus_format="A04" description="Product Identification code (for sale)" accept=""

help_message="" title="Product ID" within="" property="" reference="" valign="left" /> <col colnum="c1" fieldname="PRODUCT" alias="E02" datatype="char" width="16" focus_format="A16" description="Product name" accept="" help_message="" title="Product" within="" property="" reference="" valign="left" /> </column_desc> - <table> - <tr linetype="data" linenum="1"> <td colnum="c0">C141</td> <td colnum="c1">Espresso</td> </tr> - <tr linetype="data" linenum="2"> <td colnum="c0">C142</td> <td colnum="c1">Latte</td> </tr> - <tr linetype="data" linenum="3"> <td colnum="c0">C144</td> <td colnum="c1">Capuccino</td> </tr>

Note: The procedure does not have to follow this WebFOCUS syntax exactly, but the end resultmust be two values per data line in XML format.

Retrieving Values for Chained Variables With Caching DisabledExample:

In the following procedures, there are three parameters (REGION, ST, CITY). Caching is disabled,so each parameter control must be mapped to its own procedures.

336 WebFOCUS

Using Parameters

Page 337: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Procedure 1 (REGION)

TABLE FILE GGSALES PRINT DST.REGION BY REGION ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END

Procedure 2 (ST)

TABLE FILE GGSALES PRINT DST.ST BY ST WHERE REGION EQ '&REGION'; ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END

Procedure 3 (CITY)

TABLE FILE GGSALES PRINT DST.CITY BY CITY WHERE REGION EQ '&REGION'; WHERE ST EQ '&ST'; ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END

Retrieving Chained Variable Values With Caching EnabledExample:

In the following example, caching is enabled, so a single procedure is used to populate thecontrols.

TABLE FILE GGSALES PRINT DST.REGION DST.ST DST.CITY BY REGION BY ST BY CITY ON TABLE SET HOLDLIST PRINTONLY ON TABLE PCHOLD FORMAT XML END

WebFOCUS App Studio Reference Guide 337

5. Creating HTML Pages in WebFOCUS App Studio

Page 338: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The XML output is:

- <table> - <tr linetype="data" linenum="1"> <td colnum="c0">Midwest</td> <td colnum="c1">IL</td> <td colnum="c2">Chicago</td> <td colnum="c3">Midwest</td> <td colnum="c4">IL</td> <td colnum="c5">Chicago</td> </tr>

Automatically Populating Fields With Dynamic Values

When the name of a dynamic parameter matches a corresponding field name in a data source,the HTML canvas automatically populates the field name values for the parameter.

The data source is populated by a default based on the first data source specified by a TABLEFILE or GRAPH FILE command. The data source field is populated for the Value and Display fieldsin the Settings panel of the Parameters tab (when Dynamic is selected as the Data type). Thisgenerates a layout report that is ready to run as long as the parameter names match the fieldnames.

Automatically Populating Fields With Dynamic Parameter ValuesExample:

When the following report request is called from the HTML canvas with a push button control,the Settings panel for the PRODUCT parameter on the Parameters tab is automatically populatedto dynamically retrieve the values of the PRODUCT field.

TABLE FILE GGSALES SUM UNITS BY PRODUCT WHERE ( PRODUCT EQ '&PRODUCT.Product:.' ); END

Parameter Value List Options

When creating a static or dynamic list of values, you may add an ALL value to the list of valuesand/or send the display value in a parameter.

The ALL feature allows developers to automatically add an ALL value to a list of values. An ALLvalue does the following:

For dynamic parameters, the ALL feature sends a value of FOC_NONE to the reporting serveralerting the server to bypass or ignore the parameter altogether. Ignoring the parameter wouldreturn all values in the data source.

338 WebFOCUS

Using Parameters

Page 339: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

With static parameters, the ALL value typically uses JavaScript to return all of the valuesdisplayed in the list. This prevents you from having to select every value in the list manually.When using the ALL feature with static parameters, you can select from the following options:

Add ignore value. This option sends FOC_NONE to the server at run time, alerting theserver to bypass or ignore the parameter altogether. It is intended for complex applications.

Add everything value. This option uses JavaScript to send every value present in the controllist to the server at run time. The Add everything value option is only available with aMultiselect OR variable type.

When using a Dynamic or active report Data type, you may enter the value(s) to be selected asthe default value whenever the procedure is run.

Note: You may also enter the selected value when adding a new unbound parameter on theParameters tab.

How to Send the Display Value for Static and Dynamic ControlsProcedure:

From the HTML canvas, you may send the display value, rather than the actual data, to theparameter. The display value can also be used for headings and footings in the report output.

The Send display value option appears when creating an incoming static parameter (a parameterthat is bound to a control), or an unbound control (a control that is not bound to a parameter).It is not available when creating an unbound static parameter.

1. From the HTML canvas, import or create a report that contains a parameter.

When importing a report with parameters, the New Parameters dialog box appears promptingyou to create the control type.

The report and control is added to the HTML canvas.

2. To send the display value for the parameter selection, select the control object (for example,select listboxn) in the Design view and click the Parameters tab.

The Settings panel opens.

Note: The options available in the Settings panel vary, depending on the type of values(static or dynamic) you are creating.

3. For a static list of values, the Value, Display, and Selected columns appear on the Settingspanel.

WebFOCUS App Studio Reference Guide 339

5. Creating HTML Pages in WebFOCUS App Studio

Page 340: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In the Display column, enter the text that represents the parameter value that the userviews.

Repeat this step until the list contains all of the values you want to include.

Select Send display value.

Tip: You may also update the display values from the Variable Editor dialog box in theReport canvas.

Optionally, you may select values and click the Delete button to eliminate any values,and use the up and down arrows to rearrange the order of the values.

Close the Settings panel.

Click the Design tab to view the display values in the control object of the HTML canvas.

4. For a dynamic list of values, the Value field and the Display field appear on the Settingspanel.

Sending the display value for Dynamic values is only applicable if you are using a Data sourcethat contains both an internal data value and a field that the internal data value maps to fordisplay purposes.

a. If using an Embedded procedure to supply dynamic values, follow the steps below.

Select Embedded procedure.

Click the Embedded procedure ellipsis button.

The Open dialog box opens.

Select the Master File name and click Open.

Click the ellipsis button from the Value field.

The Object Inspector opens with the field names from the selected Master File.

Double-click a field name to add it to the Value field.

The selected field is automatically added to the Display field and the source codefor the embedded procedure appears.

Optionally, you may click the Display field ellipsis button to select a different fieldname for the Display field.

Optionally, select Add "ALL" option to automatically add an ALL value to a list ofparameter values.

340 WebFOCUS

Using Parameters

Page 341: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Optionally, select Add 'No selection' option to optimize performance by populating achain one control at a time instead of all the controls when the page initially loads.

Ensure that Send display value is checked.

Send display value is selected by default.

b. If using an External Procedure to supply dynamic values, follow the steps below.

Select External Procedure.

Click the External Procedure ellipsis button.

The Open dialog box opens.

Select the procedure (.fex) file name and click Open.

The parameter names from the procedure are automatically added to the Value fieldand Display field, and the source code for the external procedure appears.

Optionally, you may click the Value field and Display field ellipsis button to select adifferent field name.

Note: Only the parameter names from the external procedure will be available forselection.

Optionally, select Add "ALL" option to automatically add an ALL value to a list ofparameter values.

Optionally, select Add 'No selection' option to optimize performance by populating achain one control at a time instead of all the controls when the page initially loads.

Ensure that Send display value is checked.

Send display value is selected by default.

Close the Settings panel.

Click the Design tab to view the display values in the control object of the HTMLcanvas.

5. Optionally, you may add a heading to the report to show the display value. Double-click thereport from the HTML canvas to open and edit the report.

The report opens in the Report canvas.

6. Manually add &Variable_TEXT to the report heading or footing.

WebFOCUS App Studio Reference Guide 341

5. Creating HTML Pages in WebFOCUS App Studio

Page 342: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If the report procedure uses it, &Variable_TEXT will always be passed, regardlessof if Send display value is selected.

The heading as Display Value: &STCD_TEXT, where Store Code (STCD) is the variable name.

Tip: This is different from adding the actual value from the data source, where clickingthe variable name would add <STCD to the report heading.

7. Save and close the report to return the HTML canvas.

When you create the Text variable (&Variable_TEXT), you are not prompted to set a controltype for this variable when returning to the HTML canvas, as no control type is needed.

8. Run the HTML page.

9. Select the parameter for the report and run the report.

The display value is shown in the report heading.

Note: The HTML canvas passes &var_TEXT if the report procedure uses it, regardless ofwhether the send display value check box is checked or unchecked.

How to Use Procedure Names as ValuesProcedure:

The Values are procedures names option lets you populate a control with procedure names.When that procedure name is clicked, the procedure executes.

1. Create an HTML page that contains a listbox, a push button, and a report.

Note: In this procedure a listbox is used, however, the following controls are also ableto use the Values are procedures names option: double list, drop-down, radio button, andcheck box.

2. Select the listbox to bring up the Settings panel.

Note: If the Settings panel does not open, select View and click Settings.

3. Select Static as the Data type.

4. At the bottom of the Settings panel, select Values are procedures names.

5. Click the New button and select procedures from your directory.

342 WebFOCUS

Using Parameters

Page 343: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: You can add multiple procedure names to the Settings panel by multi-selectingprocedures while in the Open dialog box.

6. Once the procedures has been added to the Settings panel, edit the display name of theprocedures value by double clicking the display contents if they are not highlighted already.

7. Right-click the button you created and click Create Hyperlink.

The Hyperlink Properties dialog box opens.

8. Create a hyperlink that opens a selected procedure from a control in the report frame createdearlier.

a. For the Action, select Procedures from control from the drop-down list.

This option coincides with the Values are procedures names option found in the Settingspanel. This option will point to an entire procedure for the hyperlink, rather than a simplevalue. This option is only available when a control on the HTML page is using the Valuesare procedures names option.

b. Select listbox1 as the Source.

The source can be different if you use a different control. For example, combobox1,customselect1, radio1, or checkbox1.

c. Select Frame as the Target Type.

You could also select New Window as the target if you wanted the procedure to open ina new window.

d. Select report1 as the Target/Template Name.

9. Run the page.

10. Select the procedure from the listbox and click the button.

The report is run.

How to Use Selected Values as the Default ValueProcedure:

When using a Dynamic or active report Data type, you may enter the values to be selected asthe default value whenever the procedure is run.

WebFOCUS App Studio Reference Guide 343

5. Creating HTML Pages in WebFOCUS App Studio

Page 344: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If you import a procedure (.fex) that has a dynamic prompt value then the input box is populatedwith values retrieved from the data source. If the selected value is available in the data source,the values are selected by default. If the selected value is not available in the data source, thenthe value(s) that you entered are ignored and the first value retrieved from the data source isselected.

1. Create or import a report that contains a parameter value.

The report and control is added to the HTML canvas.

2. To enter the selected value to be used as the default value, select the control object (forexample, select listboxn) in the Design view and click the Parameters view tab.

The Settings panel opens.

Note: The options available in the Settings panel vary, depending on the type of values(static or dynamic) you are creating.

3. For a dynamic list of values, the Value field and the Display field appear on the Settingspanel.

a. If using an Embedded procedure to supply dynamic values, follow the steps below.

Select Embedded procedure.

Click the Embedded procedure ellipsis button.

The Open dialog box opens.

Select the Master File name and click Open.

Click the ellipsis button from the Value field.

The Object Inspector opens with the field names from the selected Master File.

Double-click a field name to add it to the Value field.

The selected field is automatically added to the Display field and the source codefor the embedded procedure appears.

Optionally, you may click the Display field ellipsis button to select a different fieldname for the Display field.

Optionally, select Add "ALL" option to automatically add an ALL value to a list ofparameter values.

Optionally, select Add 'No selection' option to optimize performance by populating achain one control at a time instead of all the controls when the page initially loads.

344 WebFOCUS

Using Parameters

Page 345: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Enter the exact parameter value in the Selected Value input field, as it appears inthe data source.

Parameter values are case-sensitive.

Optionally, you may enter more than one value by using a semicolon between thevalues. For example, CA;GA.

You may enter selected values with a semicolon or a comma. Additionally, you mayalso have embedded commas or semicolons in the data values. If you have theseembedded characters, you must enclose all of the values in the input area in doublequotation marks. For example:

ENGLAND;ITALY

ENGLAND,ITALY

“ENGLAND”,”IT,ALY”

Note that even though one value in the last set has the embedded comma, bothvalues need to be enclosed in double quotation marks.

Close the Settings panel.

b. If using an External Procedure to supply dynamic values, follow the steps below.

Select External Procedure.

Click the External Procedure ellipsis button.

The Open dialog box opens.

Select the procedure (.fex) file name and click Open.

The parameter names from the procedure are automatically added to the Value fieldand Display field, and the source code for the external procedure appears.

Optionally, you may click the Value field and Display field ellipsis button to select adifferent field name.

Note: Only the parameter names from the external procedure will be available forselection.

Optionally, select the Add "ALL" option to automatically add an ALL value to a list ofparameter values.

WebFOCUS App Studio Reference Guide 345

5. Creating HTML Pages in WebFOCUS App Studio

Page 346: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Enter the exact parameter value in the Selected Value input field, as it appears inthe data source.

Parameter values are case-sensitive.

Optionally, you may enter more than one value by using a semicolon (;) between thevalues. For example, CA;GA.

You may enter selected values with a semicolon (;) or a comma (,). Additionally, youmay also have embedded commas or semicolons in the data values. If you havethese embedded characters, you must enclose all of the values in the input area indouble quotation marks. For example:

ENGLAND;ITALY

ENGLAND,ITALY

“ENGLAND”,”IT,ALY”

Note that even though one value in the last set has the embedded comma, bothvalues need to be enclosed in double quotation marks.

Close the Settings panel.

4. For an active report list of values, the Available active reports, Menu Option Types, andCommon Columns appear on the Settings panel.

Select one or more active reports from the list of Available active reports. The selectedreport will be bound to the active report control in the layout.

When an active report is selected, Refresh for active reports is enabled by default.

Select the Menu Options Types for the active report control to sort, filter, list or selectcolumns, and/or change presentation styles of the bound active report and the associatedreport and graph objects synchronized to the active report.

Optionally, select the Add "ALL" option to automatically add an ALL value to a list ofparameter values.

Enter the exact parameter value in the Selected Value input field, as it appears in thedata source.

Parameter values are case-sensitive.

Optionally, you may enter more than one value by using a semicolon between the values.For example, CA;GA.

346 WebFOCUS

Using Parameters

Page 347: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You may enter selected values with a semicolon or a comma. Additionally, you may alsohave embedded commas or semicolons in the data values. If you have these embeddedcharacters, you must enclose all of the values in the input area in double quotation marks.For example:

ENGLAND;ITALY

ENGLAND,ITALY

“ENGLAND”,”IT,ALY”

Note that even though one value in the last set has the embedded comma, both valuesneed to be enclosed in double quotation marks.

Close the Settings panel.

5. For a single-select unbound parameter, the Selected Value input field appears on the Settingspanel.

Enter the exact parameter value in the Selected Value input field, as it appears in thedata source.

Parameter values are case-sensitive.

Optionally, you may enter more than one value by using a semicolon between the values.For example, CA;GA.

You may enter selected values with a semicolon or a comma. Additionally, you may alsohave embedded commas or semicolons in the data values. If you have these embeddedcharacters, you must enclose all of the values in the input area in double quotation marks.For example:

ENGLAND;ITALY

ENGLAND,ITALY

“ENGLAND”,”IT,ALY”

Note that even though one value in the last set has the embedded comma, both valuesneed to be enclosed in double quotation marks.

Close the Settings panel.

Even though it is a Single select parameter, multiple values are specified and selected.

6. Click the Run button to run the report with the selected value parameters.

The report output appears.

WebFOCUS App Studio Reference Guide 347

5. Creating HTML Pages in WebFOCUS App Studio

Page 348: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The selected value, if available from the data source, is automatically selected (highlighted)in the parameter list.

If the selected value is not available in the report results, then the value that you entered isignored and the first value retrieved from the data source is shown.

Properties Panel

The Properties panel shows the attributes of the object or objects selected on the canvas. Forexample, if you select a hyperlink object, the Properties panel shows the different attributesassociated with a hyperlink, such as Enable Dragging. General attributes for the entire HTMLpage or Document are shown when no object is selected. The Properties panel is available whenyou are using the HTML canvas or Document canvas. The attributes can be sorted by categoryor alphabetically.

You can also select Events. When Events is selected, a list of all available JavaScript events thatcan be used in conjunction with an object appears. The events that are available change dependingon what type of object is selected. For example, a report object has different events availablethan a button object. When no object is selected, events for the HTML page are displayed. Double-clicking on an event will create a function block for the selected object, using that event. Youcan view the created functions in the Embedded JavaScript/CSS tab, where you can type theJavaScript code to execute when the selected event occurs.

For more information on customizing the Properties panel, see Using the Panel CustomizationOptions on page 141.

Color Selection

For properties that affect color, such as Background-color, Border-color, and Color, you can enterthe hexadecimal value of the color you want to use directly into the property, rather than openingthe Color Picker dialog box. If you use the Color Picker dialog box to select a color, the hexadecimalvalue of that selected color will be entered into the selected property. For more information onthe Color Picker dialog box, see Color Picker Dialog Box on page 353.

Properties Toolbar

The Properties toolbar contains the buttons and menus that you need to navigate and customizethe contents of the Properties panel.

Categorized

Groups the attributes by category.

348 WebFOCUS

Properties Panel

Page 349: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Alphabetical

Sorts the attributes alphabetically, without categories.

Properties

Shows the property names and values. This is the default setting. Properties and Eventscannot be selected at the same time.

Events

Shows the JavaScript events that can be associated with the selected object on the canvas.Properties and Events cannot be selected at the same time.

Autosize Children

Autosize Children is an option you can access from the Properties panel, in the Miscellaneoussection, in the HTML canvas. Autosize Children changes the size of any component added to thecanvas to fit the maximum size of your available screen space. For example, one component willtake up one hundred percent of the available space, while two components will take up fiftypercent each. This option is used so that when your HTML page is run on different devices,components and controls do not appear off the screen and have to be scrolled to in order to usethem. Depending on the available space, components may move to accommodate this. If a reportand chart are side by side when run on a computer, they may appear stacked on top of eachother when run on a tablet.

Note: When Autosize Children is turned on, the components you add to the canvas will bepositioned and ordered differently, depending on the available space. When your HTML pageis run at full screen, using the Autosize Children option, that HTML page will appear differentlyon 24-inch monitor than a 26-inch monitor.

You can use the Autosize Children option by doing the following:

In the Properties panel, in the Miscellaneous section, change the Autosize Children optionfrom No to Yes.

In the HTML/Document wizard, on the Themes and Settings pane, in the Other Settings area,select the Autosize reports/charts for page option. Selecting this option changes the AutosizeChildren option from No to Yes when the HTML page is created.

WebFOCUS App Studio Reference Guide 349

5. Creating HTML Pages in WebFOCUS App Studio

Page 350: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Autosize Children option is turned off by default. The following image is an example of theAutosize Children option turned on.

The following image shows a report component and a chart component on the HTML canvas whileAutosize Children is enabled. Both components share the available space evenly.

350 WebFOCUS

Properties Panel

Page 351: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Autosize Children is available for any container object, such as a form, tab, window, accordion,panel, or group box. With multi-page containers, such as a tab container, Autosize Children isavailable for each page, so that each page can have this option on or off, independent of therest.

While Autosize Children is turned on for a container object, there is a small amount of canvasspace shown to the bottom and right of the canvas or object. This is so you can use the canvasshortcut options. This extra canvas space is not shown at run time. The following image showsthe canvas shortcut options when you right-click on the canvas.

Each component or control you add to the canvas has a Core attribute named Autosize options.Autosize options contains four selections that are used to set how you want that object to behandled in the HTML page. The following image shows the Autosize options property andselections.

WebFOCUS App Studio Reference Guide 351

5. Creating HTML Pages in WebFOCUS App Studio

Page 352: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The four selections you can choose are:

Accept any changes

The object can change in size and position when the HTML page adjusts to fill the availablespace.

Keep size

The object can change in position but not in size when the HTML page adjusts to fill theavailable space.

Keep position

The object can change in size but not in position when the HTML page adjusts to fill theavailable space.

Keep size and position

The object cannot change in size or position when the HTML page adjusts to fill the availablespace.

Which objects are rendered first when a page is run depends on which option they have set fromthe Autosize options property. The rendering order is shown below.

1. Objects with Keep size and position set.

2. Objects with Keep position set.

3. Objects with Keep size set.

4. Objects with Accept any changes set.

You can move objects around the canvas at design time. However, objects with the Autosizeoptions property set to Accept any changes, need to be moved by holding down the Alt key anddragging to the desired position. Once you are done moving objects around the canvas, right-clickthe canvas and select Update Layout to refresh the canvas and view the new layout positioning.

352 WebFOCUS

Properties Panel

Page 353: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

Whether Autosize Children is on or not, the Autosize options property is available for anyobject.

If you place an object that has Autosize Children set to No inside a container that hasAutosize Children set to Yes and the Autosize options property set to Accept any changes,the object will move to the upper-left corner of the container.

When a container has Autosize Children set to Yes, and a report or chart is added to thatcontainer, the Autosize options property for the report or chart is set to Accept any changes.

If an object has the Autosize options property set to Keep size and position, and you wouldlike that object to take up the entire width of available space, you must set the widthproperty to 100%.

On mobile devices, Autosize Children will recalculate whenever the orientation of the devicechanges from portrait to landscape or landscape to portrait.

Reports and charts do not automatically re-execute once the page loads and the screensize changes. You will need to re-execute reports and charts to display them properly. Ifthe output format of a chart is HTML5, the chart content will refresh automatically and youwill not have to re-execute.

Color Picker Dialog Box

The Color Picker dialog contains the Web Palette tab, Named Colors tab, System Colors tab, andCustom Color tab. From these tabs, you can pick different colors.

Web Palette. You can choose a color from common web colors.

Named Colors. You can choose a color from common named colors.

System Colors. You can choose a color based on the colors of App Studio.

Custom Color. You can drag red, green, and blue sliders to create custom colors.

The hexadecimal value for any color you select or create is displayed at the bottom of the dialogbox. If you want to enter a specific hexadecimal value, you must enter using the Properties panelor the Style Composer dialog box, in the appropriate area. For example, you can enter ahexidecimal value on the Background-color property line.

WebFOCUS App Studio Reference Guide 353

5. Creating HTML Pages in WebFOCUS App Studio

Page 354: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Settings Panel

In App Studio, you use the Settings panel to modify the population settings of components,controls, and parameters. The Settings panel has multiple sections that are only available whenyou select an object or when no object is selected. When you select an object, or when an objectis added to the canvas, the settings for that object are displayed in the Settings panel.

When you select an object, or when you add an object to the canvas, the settings for that objectdisplay in the Settings panel. Settings are grouped under sections, and the sections and settingschange depending on which component, control, or parameter is selected.

Manage CSS and Scripts Section

When no object is selected on the canvas, you can manage your Cascading Style Sheet files andJavaScript files using the Manage CSS and Scripts section. The Settings panel displays thissection by default. While on the Embedded JavaScript/CSS view tab, you can select whether youare editing your HTML page Cascading Style Sheet or JavaScript by selecting either Internal CSSor Internal Java Script, from the Settings panel. You can search for Cascading Style Sheet files

and JavaScript files, located in your WebFOCUS environement, using the CSS button and

JavaScript button. You can reference web-accessible Cascading Style Sheet files andJavaScriptfiles by typing the URL, of those files, in the URL/FindFile area.

The Manage CSS and Scripts section is shown in the following image.

Parameter Created In Current Page Section

354 WebFOCUS

Settings Panel

Page 355: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the Settings panel for a parameter created in the HTML page.

The dynamic parameter data section

The following image shows the Settings panel for a dynamic parameter.

Input Control Population section

WebFOCUS App Studio Reference Guide 355

5. Creating HTML Pages in WebFOCUS App Studio

Page 356: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the Settings panel for an input control.

You can drag fields and parameters from the Requests & Data sources panel to the Settingspanel, when the Input Control Population section is available and the Data type is set to Dynamic.

For more information on customizing the Settings panel, see Using the Panel Customization Optionson page 141.

Using the Selection To Area

The Selection to area, in the Settings panel, assists in directing where control and grid selectionsare sent. For example, you can choose to send any selections made from a drop-down controlto a specific parameter.

You can click the Use ‘Requests_Data sources’ panel button to open the Requests & Data sourcespanel next to the Selection to area. This allows you to drag any parameter from the Requests &Data sources panel, to the Selection to area.

356 WebFOCUS

Settings Panel

Page 357: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tasks & Animations Panel

Using the Tasks & Animations panel, you can submit requests for parsing, execute tasks whenspecific criteria are met, and add jQuery animations to your HTML page. The Tasks & Animationspanel is shown in the following image.

For more information on customizing the Tasks & Animations panel, see Using the PanelCustomization Options on page 141.

WebFOCUS App Studio Reference Guide 357

5. Creating HTML Pages in WebFOCUS App Studio

Page 358: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tasks Section

The Tasks section of the Tasks & Animations panel allows you to execute a request when specificcriteria are met. For example, you can create a task that runs an embedded report when a buttonis clicked. An example of a task created in the Tasks section is shown in the following image.

For more information, see How to Automatically Execute a Request When a Page is Loaded onpage 368.

Tasks

Toggle details

Opens the Tasks dialog box which displays the Tasks section of the Tasks & Animationspanel horizontally rather than vertically. Tasks are displayed in a list. This list shows theTask Name, Trigger Type, Trigger Identified, Requests/Actions, Target Type, and TargetName, of each task, next to each other. When the Tasks dialog box is opened, the Taskssection of the Tasks & Animations panel is collapsed.

List of

A list of tasks defined in the HTML page.

New task

Creates a new task. A task is an actionable item.

358 WebFOCUS

Tasks & Animations Panel

Page 359: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Delete

Deletes a selected task. You can use the drop-down list to delete a selected task or todelete all untriggered tasks.

Trigger Type

Determines when a task should start. You can choose:

Load

UnLoad

Click

Double click

Mouse down

Mouse enter

Mouse leave

Mouse move

Mouse over

Mouse out

Mouse up

Selection changed

Maps: Selected marker drill down

Maps: Anywhere click

API call IbComposer_triggerExecution

Note: The Load and UnLoad trigger types are only available for load tasks. A loadtasks is created for you automatically when you create a new HTML page. You cancreate additional load tasks by creating a new task and renaming it load.

Trigger Identifier list

A list of all possible triggers based on what option you have selected from the Triggerfilters list.

Clear Triggers Selection

Deselects any object you have selected in the Trigger Identifier list.

WebFOCUS App Studio Reference Guide 359

5. Creating HTML Pages in WebFOCUS App Studio

Page 360: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Buttons, Images, Hyperlinks/Selected Only

You can select whether to display buttons, images, hyperlinks, or other objects as possibleTrigger Identifiers. The options are:

Buttons, Images, Hyperlinks

Buttons

Images

Hyperlinks

All

Selected Only

When All is selected, objects that are not buttons, images, or hyperlinks become availablefor use as Trigger Identifiers. For example, with All selected, a text object can be a TriggerIdentifier.

Selected only will make objects you have selected on the canvas appear in the TriggerIdentifier list.

Requests/Actions list

A list that displays the order in which the requests, for the selected tasks, will execute,any Wait for completion requests, and any refresh requests. You can use Wait forcompletion requests to have certain requests execute before others. For example, ifrequest1 is above the Wait for completion action and request2 is below that, thenrequest1 will run first and when that is completed, request2 will then run.

Requests selections

Allows you to add a request, created in the Request & Data sources panel, a refreshrequest, a wait for completion request, or a JavaScript call action.

When using the JavaScript call different results occur depending on what is returned. ifthe JavaScript call returns 0, then all actions after it run. If the JavaScript call returns 1,then one action after the call is skipped, and all actions after that are then run. If theJavaScript call returns 2, all actions after it are skipped.

Delete

Deletes a request from the Requests/Actions list.

Move Up

Move an item on the Requests/Actions list up one place.

360 WebFOCUS

Tasks & Animations Panel

Page 361: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Move Down

Move an item on the Requests/Actions list down one place.

Target Type

The Target Type option contains a list of targets in which the request can be executed.These targets can be controls, frames, windows, or distribution methods when theRequest is set to Schedule. These options can be different for specific actions.

The Window Target Type will execute the request in a window.

The InfoWindow Target Type will execute the request in the WebFOCUS generatedInfoWindow.

The Ajax call Target Type will execute the request as an asynchronous call in JavaScript.

The Frame Target Type will execute the request in a selected frame.

The Deferred Target Type will run the report deferred

The Input Control Target Type is only available when you have a refresh request selectedin the Requests/Actions list. This Target Type specifies that an input control will berefreshed. You specify which control should be refreshed by selecting one from theTarget/Template Name list.

The active report Target Type is only available when you have a refresh request selectedin the Requests/Actions list. This Target Type specifies that an active report will berefreshed. You specify the active report that will be refreshed by selecting one from theTarget/Template Name list.

The Refresh BI Portal Target Type is only available when you have a refresh requestselected in the Requests/Actions list. This Target Type specifies that a WebFOCUS BIPortal page will be refreshed. If you select All pages of the portal, all BI Portal pages willbe refreshed. If you select Current page only, only the current BI Portal page will berefreshed.

Target/Template Name

Contains options that are associated with the Target Type option. This field is onlyavailable for Window, Frame, and Deferred.

Size (Width / Height)

Sets the Width and Height of an InfoWindow. Only available for the InfoWindow TargetType.

WebFOCUS App Studio Reference Guide 361

5. Creating HTML Pages in WebFOCUS App Studio

Page 362: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Current pages only

Refresh the current WebFOCUS BI Portal page. Only available when there is a request torefresh the WebFOCUS BI portal.

All pages of portal

Refresh all WebFOCUS BI Portal pages. Only available when there is a request to refreshthe WebFOCUS BI portal.

Animations

The jQuery Animations section, in the Tasks & Animations panel, allows you to execute jQueryanimations on your HTML page. The animation effects in the jQuery Animations section can beused individually or in conjunction with each other to create more complex animations. TheAnimations section is shown in the following image.

362 WebFOCUS

Tasks & Animations Panel

Page 363: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

For more information, see How to Animate an Object Using the Tasks & Animations Panel on page366.

List of

A list of all animations present in the HTML page. This list will change when animations areadded or deleted.

New

Adds a new animation to the HTML page. The newly added animation appears in the List ofarea.

Delete

Removes an animation from the HTML page. The deleted animation is removed from the Listof area.

All Targets

A list of all possible targets that can be used in the current animation being defined.

Selected Targets

A list of all targets that will be used in the current animation.

Add canvas selection

Adds the currently selected object on the canvas to the Selected Targets list. Multiple objectscan be selected and added at the same time.

Add from list

Adds a selected object from the All Targets list to the Selected Targets list. Multiple objectscan be selected and added at the same time.

Remove

Removes an object from the Select Targets list when that object is selected. Multiple objectscan be selected and removed at the same time.

Visibility

You can select whether or not to animate the target so that it is hidden or displayed. Youcan also select not to animate the target for visibility. The options are No Change, Hide, andShow.

WebFOCUS App Studio Reference Guide 363

5. Creating HTML Pages in WebFOCUS App Studio

Page 364: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Effect

The Effect group contains animation effects and the options you can use to customize thoseanimations. Animation effects can make the target bounce, shake, pulsate, and much more.You can also customize the options associated with that animation effect. The optionscorrelate to the effect used. Such options can be how many times the target bounces afteryou specify that you want the bounce effect.

Type

A drop-down list where you can select the animation effect you want to use.

Option

You can select which option value you would like to edit, if available. For example,selecting the Bounce animation type allows you to select Distance and Times in theOption drop-down list. When you select Distance or Times, you can then edit the valueof either of those options in the Value area. If you select Times and then enter 3 intothe Value area, your object will bounce 3 times. The options available are differentdepending on the effect type you choose.

Value

You can enter a number that pertains to the currently selected option and that affectsthe animation. For example, if you select the Slide type and the Distance option, thenumber you enter in the Value area will be the distance the object will slide when it isanimated. The value options available are different depending on the effect type youchoose.

Effect text area

As the options for the effect are set, the syntax for that effect are displayed here. Youcan manually adjust this syntax to affect the animation.

Additional Properties

The Additional Properties group contains animations that change the location and size of thetarget and the components of that target (text size, text width, border size).

Name

A drop-down list where you can select different properties that can be animated. Suchproperties include height, opacity, font size, and others.

364 WebFOCUS

Tasks & Animations Panel

Page 365: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

End value

The value for the property you choose from the Name field. For example, if you choseLeft and enter 10, the object you are animating would move 10 pixels to the left. Thereason you do not need to specify a start value is because the currently location of theobject is the start value.

Location setting

You can animate the target so that the location and size of that target is changed oncethe animation is activated.

Use location of selected target

This will use the location of the currently selected target. Coordinates, height, andwidth of the object are entered automatically into the Location setting box. This isused when the developer plans to move the selected target object and the animationwill move it back.

Start location’s setting

Inserts an adjustable placeholder object into the canvas, at the location of theselected target. You can move and resize this placeholder object. This objectrepresents where the animation will move and what size it will be when the animationis complete.

Set locations’ settings

Sets the adjustable object location and size. This will be where the animated objectmoves and what size it will be. It is the ending location of the selected target.

Cancel setting

Cancels the setting of the location for the animation.

Additional Properties text area

Once the location has been determined using the Location setting commands, the syntaxfor that location is displayed here. You can manually adjust this syntax to affect theanimation.

Duration

How quickly the animation will execute. You can choose either Slow or Fast.

Toggle animation

Allows you to revert to the pre-animation state. For example, if the target moves from rightto left, the next invocation of the trigger will move the target back to the original position atthe right.

WebFOCUS App Studio Reference Guide 365

5. Creating HTML Pages in WebFOCUS App Studio

Page 366: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Animate an Object Using the Tasks & Animations PanelProcedure:

The following is an example for how to create and animate an HTML page with jQuery animations.

Note: Any of the jQuery animations in the jQuery Animations section can be used individuallyor together. Using different jQuery animations together will create a more complex animation.The example below uses multiple effects in conjunction with each other.

1. Create an HTML page.

2. Insert an image object and a button object onto the HTML page.

3. On the Tasks & Animations panel, in the jQuery Animations section, click New.

A new animation is added to the animation list.

4. To make the image object, image1, the target, do one of the following:

Select the image object on the canvas and click the Add canvas selection command.

Select the image1 from the All Targets area and click the Add from list command.

Double-click on image1 in the All Targets area to move it to the Selected Targets area.

The image object, image1, is added to the Selected Target area.

5. Select Hide for the Visibility option.

This animation option will cause the image to be hidden when the button is clicked.

6. Select an Effect and customize the options for that effect.

a. Select Blind from the Type drop-down list.

This will cause the image to appear as if window blinds have been pulled over it.

b. Select Direction from the Option drop-down list.

Note: Each Effect has different options available to customize. Blind has the Directionoption to customize where Bounce has the Distance and Times options.

c. Select Horizontal from the Value field.

This will cause the image to be animated with a horizontal blind effect.

Note: The Value field will either be a drop-down list or a text entry box depending onwhat you selected for the Option drop-down list. For example, Direction will use thisas a drop-down list while Times will use this as a text entry box.

366 WebFOCUS

Tasks & Animations Panel

Page 367: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

7. Use the Location setting options, found in the Additional Properties area, to animate theobject so that it moves when activated.

a. Click the Start location’s setting command.

A placeholder object is shown overlapping your image.

b. Move the placeholder object to a different location on the HTML page.

c. Click the Set location’s setting command.

This removes the placeholder object and adds syntax to the Additional properties textarea. When your animation is activated, it will move to a different location that youspecified using the placeholder object.

8. Select Fast from the Duration drop-down list.

This will make the animation run at a faster speed.

9. Check the Toggle Animation check box.

Checking the Toggle Animation check box will allow you to click the button after the animationhas run and restore the image to its original state (in its original location and unhidden).

10. On the Tasks & Animations panel, in the Tasks section, click New.

A new task is added to the tasks list.

11. Select Click from the Trigger Type drop-down list.

12. From the Trigger Identifier list, select the button object, button1.

The button will be used to activate the animation.

13. Select Animation1 from the Requests/Actions option, as shown in the following image.

WebFOCUS App Studio Reference Guide 367

5. Creating HTML Pages in WebFOCUS App Studio

Page 368: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

When the animation is activated using the button, the image will move to the location that youset, use the blind effect horizontally, and disappear. If you click the button a second time, afterthe image has been hidden, it will reappear using the blind affect and move back to the originallocation.

How to Create a Hyperlink in App StudioProcedure:

You use the Hyperlink command and the Tasks & Animations panel to create hyperlinks. Thefollowing is an example of creating a hyperlink.

1. In the Components tab, in the Generic Elements group, click Hyperlink.

A task is added to the Tasks section of the Tasks & Animations panel with a trigger type andtrigger identifier already chosen.

2. In the Requests & Data sources panel, create a new external request for a WebFOCUSProcedure.

3. Drag the request on to the canvas to create a frame.

4. In the Tasks section of the Tasks & Animations panel, in the Requests/Actions list, clickthe Requests selection command and select the request you created in step 2.

5. In the Trigger Type drop-down list, select Frame.

6. In the Target/Template Name drop-down, select the frame you created in step 3.

When the HTML page is run and you click on the hyperlink, the WebFOCUS Procedure youchose will run in the frame.

How to Automatically Execute a Request When a Page is LoadedProcedure:

You can use the Requests and Tasks sections to create a request that executes when your HTMLpage is loaded. To do this, you must use the load task, in the Task Section. The load task isautomatically added to every page and runs all selected requests when the page initially loads.

1. Select the load task.

2. Select the Load trigger type in the Trigger Type drop-down list. This option is selected bydefault for a load task.

3. Select a request from the Requests/Actions list.

4. Select the destination of the procedure by using the Target type drop-down list. For example,you can have the procedure run in a new window or in a report frame on the HTML page.

5. Select which frame the procedure will run in. This option is only needed if you want to runthe procedure, in a frame, on the HTML page, and not a new window.

368 WebFOCUS

Tasks & Animations Panel

Page 369: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following is an example of the Tasks section for a procedure that will execute automaticallywhen the page is loaded.

Requests & Data Sources Panel

A request is a definition of something that can executed. For example, you can execute anembedded procedure, external procedure, HTML page, URL, and more. If a request has parameters,those parameters will be indented and listed under the request name. By default, all parametersare sent to the Reporting Server. However, you can choose to not send a parameter in the requestsection by using the shortcut menu of the parameter, and clicking Don’t Send. If you choose tonot send a parameter, you must verify that your procedure can work without that value. Forexample, it contains a -DEFAULT value for the parameter.

When creating an external request that uses an existing file, the request inherits the name ofthat external file. For example, if you create an external request that uses an existing WebFOCUSprocedure called Parameter_Report, then your external request will inherit the nameParameter_Report.

Each request displays two folders beneath it, the Columns and Parameters folders. The Columnsfolder contains the fields used in the request. The Parameters folder contains the parametersused in the request. The Parameters folder is expanded by default, while the Columns folder iscollapsed by default.

WebFOCUS App Studio Reference Guide 369

5. Creating HTML Pages in WebFOCUS App Studio

Page 370: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Data Sources folder contains all data sources, used for embedded procedures and defaultcontrol population requests, in the HTML page. Referenced data sources are not displayed inthe Requests & Data sources panel. You can add additional data sources to the HTML page byembedding additional requests. You can also add additional data sources by right-clicking on theData Sources folder, and using the shortcut menu to click Add Data Source.

You can refresh all requests, except empty requests, using the shortcut menu. Right-click arequest and click Refresh.

You can also duplicate a request by using the shortcut menu, on the request you want to duplicate,and clicking Clone. When you clone an embedded request, you create a copy of the embeddedrequest with the name, name_1. Name is the name of the original embedded request. For example,if you clone a request named SaleReport, the cloned request would be called SalesReport_1.Cloning an external request does not make a second copy of the referenced procedure.

In the Requests & Data sources panel, each icon next to an item indicates the type of requestor parameter. For example, a parameter that was created in the current HTML page has theparameter symbol and an addition sign on it. Another example is how an external URL requesthas the word URL on it. The Requests & Data sources panel is shown in the following image.

You can drag, parameters and fields to the Settings panel to configure the selected componentor control. You can drag requests from the Tasks & Animations panel to the HTML canvas, tocreate objects and controls for the request.

370 WebFOCUS

Requests & Data Sources Panel

Page 371: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Related Information:

How to Create a Hyperlink in App Studio on page 368

How to Create an Embedded Procedure Request in App Studio on page 371

New request

Creates a new request. A request is an item that can be executed.

Delete

Deletes a selected request.

Refresh parameters

Refreshes the parameters used in the request.

Requests and Data Sources list

A list of requests and embedded data sources, defined in the HTML page.

Create input controls

Opens the New Parameter dialog box where you can select which input controls to create forparameters that are checked off in the Parameters list box, and if you want those controlschained to the parameter.

Save selection

Saves the parameters you currently have checked off in the Parameters list box. You canchoose to send more or less parameters than the procedure in the request requires. If yousend less parameters, then you need to make sure the remaining parameters are handledby a -DEFAULT, -SET, or some other construct in the request.

Clear selection

Clears all selected items in the Requests & Data sources panel.

How to Create an Embedded Procedure Request in App StudioProcedure:

1. Add an embedded procedure to the Requests & Data source panel. Click the New drop-downarrow, point to Embedded Request, and then click New Report, New Chart, or New Documentto create and embed a new procedure. Point to Import Existing to embed an existing procedurefile.

A new request is created in the Requests & Data sources panel. If you are creating a newprocedure, the Open File dialog box opens, prompting you to select a Master File. If you areembedding an existing file, the Open File dialog opens, prompting you to select a procedurefile.

WebFOCUS App Studio Reference Guide 371

5. Creating HTML Pages in WebFOCUS App Studio

Page 372: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

2. Select a Master File or procedure file and click OK.

If you are creating a new procedure, the canvas for that type of procedure opens. Once youare done creating the procedure, save and close the canvas.

3. In the Requests & Data sources panel, you may drag the request that you created on to thecanvas.

A procedure object is created on the canvas. If the procedure contains parameters, a formcontrol is also added to the canvas. A task is created in the Tasks section of the Tasks &Animations panel. An example of the Requests & Data sources panel and the Tasks &Animations panel for a request is shown in the following image.

Specifying Browser Defaults With the Style Composer

You can use the Style Composer to control default settings for font, background properties,position mode, flow control, margins, list styles, and visual effects.

Specifying Font Styles Using the Style ComposerReference:

To specify the font styles that will be used in the browser for your HTML page, make your selectionsin the Font window of the Style Composer.

The Font window of the Style Composer is comprised of the following elements:

Font name

Determines the font displayed in a browser.

372 WebFOCUS

Specifying Browser Defaults With the Style Composer

Page 373: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can specify: Family (launches the Font Picker dialog box) or System Font.

Font attributes

Determines the attributes of the font displayed in a browser.

The options include: Color, Italics, Small Caps.

Size

Determines the size of the font displayed in a browser.

The options include: Specific, Absolute, Relative.

Bold

Determines whether the font is displayed as bold in a browser.

The options include: Absolute, Relative.

Effects

Determines whether the font effects are displayed in a browser.

The options include: None, Underline, Strikethrough, Overline, Capitalization.

Specifying Background Properties Using the Style ComposerReference:

To specify the background styles that will be used in the browser for your HTML page, make yourselections in the Background window of the Style Composer.

The Background window of the Style Composer is comprised of the following elements:

Background color

Determines the background color of the HTML page.

You can specify: Color, Transparent.

Background image

Determines the properties of the background image displayed in a browser.

The options include: Image, Tiling, Scrolling, Position (Horizontal and Vertical), Do not usebackground image.

Note: When using a background image with scrolling enabled, you must specify thehorizontal and vertical positions. If you do not specify these positions, your backgroundimage will not show. The horizontal and vertical positions are relative to window and notthe individual element.

WebFOCUS App Studio Reference Guide 373

5. Creating HTML Pages in WebFOCUS App Studio

Page 374: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Specifying Text Styles Using the Style ComposerReference:

To specify the text styles that will be used in the browser for your HTML page, make your selectionsin the Text window of the Style Composer.

The Text window of the Style Composer is comprised of the following elements:

Alignment

Determines the alignment of a text.

You can specify: Horizontal, Vertical, Justification.

Spacing between

Determines the spacing.

You can specify spacing between the following text elements: Letters, Lines.

Text flow

Determines the flow of the text.

You can specify: Indentation, Text direction.

Specifying Position Mode Using the Style ComposerReference:

To specify the position mode that will be used in the browser for your HTML page, make yourselections in the Position window of the Style Composer.

The Position window of the Style Composer is comprised of the following elements:

Position Mode

From which you can specify: Position in normal flow, Offset from normal flow, Absolutely position.

Height/Width

When Absolutely Position is selected, you can specify position indicators in the measurements.

You may specify: Top, Left, Z-Index.

Note: Z-Index is optional. It sets or retrieves the stacking order for absolute or relativelypositioned objects.

Specifying Layout Styles Using the Style ComposerReference:

To specify the layout styles that will be used in the browser for your HTML page, make yourselections in the Layout window of the Style Composer.

374 WebFOCUS

Specifying Browser Defaults With the Style Composer

Page 375: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Layout window of the Style Composer is comprised of the following elements:

Flow control

From which you can specify: Visibility, Allow text to flow, Display, Allow floating objects.

Content

From which you can specify: Overflow.

Clipping

From which you can specify whether or not to clip the layout from the following positions:Top, Bottom, Left, Right.

Printing page breaks

From which you can specify: Before, After.

Specifying Edge Styles Using the Style ComposerReference:

To specify the margins, padding, and border styles that will be used in the browser for your HTMLpage, make your selections in the Edges window of the Style Composer, which is shown in thefollowing image.

The Edges window of the Style Composer is comprised of the following elements:

Margins

From which you can specify: Top, Bottom Left, Right margins.

Padding

From which you can specify: Top, Bottom, Left, Right padding.

Specifying List Styles Using the Style ComposerReference:

To specify the list styles that will be used in the browser for your HTML page, make your selectionsin the Lists window of the Style Composer.

The Lists window of the Style Composer is comprised of the following elements:

Lists

From which you can specify: Bulleted, Unbulleted.

Bullets

From which you can specify: Style, Position, Custom bullet.

WebFOCUS App Studio Reference Guide 375

5. Creating HTML Pages in WebFOCUS App Studio

Page 376: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Specifying Interface Effects Using the Style ComposerReference:

To specify the interface styles and visual effects that will be used in the browser for your HTMLpage, make your selections in the Other window of the Style Composer.

The Other window of the Style Composer is comprised of the following elements:

User interface

From which you can specify: Cursor.

Tables

From which you can specify: Borders, Layout.

Specifying Border Settings Using the Style ComposerReference:

To specify the Border settings will be used in the browser for your HTML page, make your selectionsin the Border window of the Style Composer.

The Border window of the Style Composer is comprised of the following elements:

Borders

Determines which border should be styled, what type of style should be applied, the widthof the border, and the color of the border.

Rounded Border

Determines the whether your border corners will be rounded. You can style each individualcorner to be rounded. You can also specify by how much they are rounded and whether allcorners should be equally rounded.

Chaining in the HTML Canvas

You may chain controls to one another on the Parameters tab and apply conditions to links inthe chain. Chaining will populate controls based on the selected value from the prior control inthe chain. You can chain static and dynamic controls, link or unlink parts of a chain, and createconditions on links in a chain. Chains are represented by lines connecting control objects on theDesign or Parameters tab. Note that chaining is applicable only for controls, not parameters.

376 WebFOCUS

Chaining in the HTML Canvas

Page 377: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

Although you may chain controls from the Design tab, you may only create conditions tolinks in the chain through the Parameters tab.

By clicking the arrow head in a link of a chain, the Settings panel enables you to modifyand set the properties and conditions of the chain.

If using static controls, you must apply conditions for each link in the chain. Conditionsneed to be created for each value of the control chained from, and those values must bemapped to the correct value(s) that will be displayed in the control that it is being chainedto.

Automatically Chaining Parameters From the New Parameters Dialog Box

The auto chain option enables you to automatically chain selected controls from the NewParameters dialog box. Chaining populates controls based on the selected value from the priorcontrol in the chain. The auto chain option is useful since it creates the chain, or links of a chain,automatically.

Note: Automatic chaining creates a basic chain with default functionality that does not includeany conditions. You may create conditions for a chain through the Parameters tab.

When importing or referencing a report with parameters to an HTML page, the controls are notchained by default. You may choose to include or exclude individual controls in a chain with theChain control column from the New Parameters dialog box.

Additionally, when the auto chain option is selected, a separator is added to the parameters liston the New Parameters dialog box. A separator is used to separate controls into multiple chainsand can be moved up or down in the chain sequence.

How to Auto Chain Controls From the New Parameters Dialog BoxProcedure:

The auto chain option creates the chain, or links of a chain, automatically. When the auto chainoption is selected, a separator is added to the parameters list. A separator is used to separatecontrols into multiple chains and can be moved up or down in the chain sequence.

1. In the HTML canvas, import or reference a report with parameters.

The New Parameters dialog box opens.

2. Select Auto chain controls in above specified order.

WebFOCUS App Studio Reference Guide 377

5. Creating HTML Pages in WebFOCUS App Studio

Page 378: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tip: You may use the up or down arrows to change the order of the selected control beforeselecting this option.

The Chain control option is selected for all controls and a separator is added as the lastobject to the list of parameters, as shown in the following image.

3. To create multiple chains, click the separator row and use the up or down arrows to changethe location of the separator in the chain.

Note: If the default separator is moved up, another separator is added to the end of thelist.

4. Click OK to close the New Parameters dialog box and add the control to the HTML page.

On the Design tab, when creating multiple chains from the New Parameters dialog box, eachset of chained parameters appears on a new line, regardless of the grouping option selectedfrom the New Parameters dialog box. This behavior is set through the Start each chain on anew line option, located on the Form Settings dialog box in the HTML Page tab of the AppStudio Options dialog box. This enables you to see the relationship of the chains within theform. Start each chain on a new line is selected by default.

On the Parameters tab, chains are represented by lines connecting control objects.

5. You can remove a chain by clicking Break binding from the shortcut menu when a chain linkis selected.

How to Chain Controls From the New Parameters Dialog BoxProcedure:

The Chain control column enables you to include or exclude individual controls in a chain, fromthe New Parameters dialog box.

1. In the HTML canvas, import or reference a report with parameters.

The New Parameters dialog box opens.

2. Select the Chain control check box for the controls to be included in the chain.

The controls are chained in the order that they appear on the New Parameters dialog box.You may use the up or down arrows to change the order of the selected control beforechaining controls.

Note: If a control is excluded from a chain, the chain automatically links only the selectedcontrols.

378 WebFOCUS

Chaining in the HTML Canvas

Page 379: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Click OK to close the New Parameters dialog box and add the control to the HTML page.

On the Design tab, when creating multiple chains from the New Parameters dialog box, eachset of chained parameters appears on a new line, regardless of the grouping option selectedfrom the New Parameters dialog box. This behavior is set through the Start each chain on anew line option, located on the Form Settings dialog box in the HTML Page tab of the AppStudio Options dialog box. This enables you to see the relationship of the chains within theform. Start each chain on a new line is selected by default.

On the Parameters tab, chains are represented by lines connecting control objects.

4. You can remove a chain by clicking Break binding from the shortcut menu when a chain linkis selected.

Chaining Controls on the Parameters Tab

Chaining enables you to associate two or more related values. When you chain controls together,chained values are filtered as selections are made to each parameter control. For example, ifyou chain the PLANT parameter to the STATE parameter, only PLANT values for the currentlyselected STATE value will be available instead of all the plants in the data source. Each time aselection is made, all chained controls that come after will be dynamically updated. Chainingalso enables you to add, remove, and reverse the order of controls in the chain.

Values are processed with a caching mechanism that gathers all of the necessary values priorto loading the page. This method automatically combines all of the necessary requests into asingle HTTP request and maps the result sets to the appropriate controls, greatly reducing theload time involved with sending multiple requests for data.

How to Chain Controls on the Parameters TabProcedure:

1. Create an HTML page using input controls to supply parameter values.

2. Click the Parameters tab.

3. Select the center of the control object and drag the control to the center of the next controlobject in the chain.

Repeat this step for each link in the chain.

4. Optionally, apply condition settings to the chain to determine how parameters are populated.

If using static controls, you must apply conditions for each link in the chain. Conditions needto be created for each value of the control chained from, and those values must be mappedto the correct value(s) that will be displayed in the control that it is being changed to.

WebFOCUS App Studio Reference Guide 379

5. Creating HTML Pages in WebFOCUS App Studio

Page 380: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Remove a Link in the ChainProcedure:

1. While on the Parameters tab, select the arrow head on the line so that the line is bold.

2. Right-click and select Break binding.

3. Repeat this step for each link in the chain that you want to break.

How to Reverse the Order of Chained ControlsProcedure:

1. While on the Parameters tab, select the arrow head on the line so that the line is bold,right-click and select Break binding.

2. Select the center of the control object and drag the control to the center of the next controlobject in the chain.

Notice the direction of the arrow between the control objects. You may reverse the directionof the link in the chain or reverse the order of the chain by changing the direction of eachlink.

If reversing the direction of a link in the chain and drag the control object in the desiredorder.

If reversing the order of a chain and drag the control objects in the desired order.

Tip: In some scenarios, when reversing the order of chained values, you may want tomove the controls from the default location on the Parameters tab so that you can bettersee the direction of the chain. Moving objects on the Parameters tab will not affect theDesign view of your layout.

Press the Shift key and select the control object and bound parameter to move the objectsas a set.

Chain the control objects together.

3. Optionally, apply condition settings to the chain to determine how parameters are populated.

Applying Conditions to a Chain

A chain contains conditions for each link in the chain. The conditions are linked to the valuesbeing selected in the control object. You may apply multiple conditions to one link. The settingsfor the condition describe how the link should behave. The following options are available:

Apply Actions for the links on the chain.

Apply the Values compare operator for the condition.

380 WebFOCUS

Chaining in the HTML Canvas

Page 381: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Apply Selected values with a Multiselect operator for the condition.

Apply the Resolves parameter values for the condition.

Apply the Compare operator for the condition.

If using static controls, you must apply conditions for each link in the chain. Conditions need tobe created for each value of the control chained from, and those values must be mapped to thecorrect values that will be displayed in the control that it is being changed to.

Settings Panel (Conditions)Reference:

The Settings panel appears when creating a condition for a chain link on the Parameters tab. Achain contains conditions for each link in the chain.

The conditions are linked to the values being selected in the control object. The settings for thecondition inherit the values of the prior bound control and provide additional condition settings.This section describes the additional condition settings.

The Settings panel contains the following fields and options when creating a condition:

Conditions

The conditions list enables you to create multiple conditions for the link. Default is the onlyinitial condition.

To create a new condition, click the New icon. Condition(n) is created, where (n) is thenumber, and added to the Conditions drop-down list. You may type in a unique conditionname, choose Selected values, and set the condition settings.

Click the Delete icon to remove the selected condition from the list. Note that the Defaultcondition name cannot be deleted.

Actions

Select an action for the chain link to control. The options offer variations to populate, show,hide, execute, and select the values. The list of available options are:

Populate, show. Populates the control and displays it at run time. This is the defaultaction for all conditions.

Populate, hide. Populates the control and does not display it at run time.

Populate with alternate, show. Populates the control with alternate values derivedfrom a procedure, or value list, that is not the default and displays the control at run time.

WebFOCUS App Studio Reference Guide 381

5. Creating HTML Pages in WebFOCUS App Studio

Page 382: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Populate with alternate, hide. Populates the control with alternate values derived froma procedure, or value list, that is not the default and does not display the control at runtime.

Show. Shows the control but does not populate it.

Hide. Hides the control but does not populate it.

Execute. Executes the bound object. For example, if you bind a control to a Submit buttonand change the value in the control at run time, the report/chart automatically executeswhen you change the value, without having to click the Submit button.

Select. Selects the bound object. For example, if you bind a control to a tab item andselect a value in the control at run time, the bound object (the tab item) is automaticallyselected as the active tab on the page.

Values compare operator

Values compare operator provides chaining logic scenarios to include such options as Equal,Not Equal, Greater Than, Less Than, and so on. This option sets the condition for how topopulate the control being linked to.

Equal is the default Values compare operator.

Selected values

Selected values enable you to provide the values used in the condition. When creating a newcondition, the Selected values section is activated. You may type selected values in the inputbox or click the ellipsis button to select values from the list.

The list of values that appears is based on the values of the prior bound control in the chain.

When selected values are entered, the Multiselect operator field is activated.

Multiselect operator

The Multiselect operator options are activated when selected values are entered for thecondition. Options are One of or All of. One of is based on one of the values shown in theSelected values, being selected in the prior control, in the chain. All of is based on the valueof all of the Selected values, being selected in the prior control, in the chain.

One of is the default multiselect operator.

Resolves parameter (“To:” field is required)

From. The From field specifies where to get the value used in the To field, if the control beingchained from is a map or activeX control.

382 WebFOCUS

Chaining in the HTML Canvas

Page 383: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

To. The To field is used to dynamically generate the selection list used to populate the controlbeing chained to. This field displays the parameter whose value will drive the conditionevaluation. The parameter name linked to the prior control in the chain is displayed by default.The ellipsis button provides a pop-up dialog of the other parameter values (from the report)to be resolved.

Compare operator

The Parameter’s compare operator provides chaining logic scenarios to include such optionsas Equal, Not Equal, Greater Than, Less Than, and so on. This sets the compare operatorto populate the control.

Equal is the default Compare operator.

How to Create a New ConditionProcedure:

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls on the chain.

3. Click a link in the chain.

The Settings panel shows the bound control values and the Default condition settings forthe link in the chain.

4. Click the New icon to create a multiple condition for the chain.

Condition(n) is created, where (n) is the number, and added to the Conditions drop-down list,and the Selected values section is activated. You may type in a unique condition name.

5. You may type in a unique condition name, choose Selected values, and set the conditionsettings for the new condition.

6. Optionally, you may click the Delete button to remove the selected condition from the list.

Note: Default, the initial condition, cannot be deleted.

How to Select the Action for a ConditionProcedure:

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

WebFOCUS App Studio Reference Guide 383

5. Creating HTML Pages in WebFOCUS App Studio

Page 384: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls on the chain.

3. Click a link in the chain.

4. In the Setting panel, select the action for the condition from the Actions drop-down list. Forexample, to hide the control being chained to, select Hide.

Populate, show is the default option.

5. Close the Settings panel.

When running the HTML page, the action for the chained control is applied.

How to Select the Values Compare Operator for a ConditionProcedure:

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls on the chain.

3. Click a link in the chain.

4. In the Setting panel, select the chaining logic for the parameter being chained to, in thecondition, from the Values compare operator drop-down list.

Equal is the default option.

The compare operator is applied to the value selected.

How to Apply Selected Values With a Multiselect Operator to a ConditionProcedure:

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls of the chain.

3. Click a link in the chain.

4. In the Setting panel, click the New icon to create a multiple condition for the chain.

384 WebFOCUS

Chaining in the HTML Canvas

Page 385: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Condition(n) is created, where (n) is the number, and added to the Conditions drop-down list,and the Selected values section is activated. You may type in a unique condition name.

5. You may type selected values in the input box or click the ellipsis button to select valuesfrom the list.

The list of values that appears is based on the values of the prior bound control in the chain.

Tip: You may also use the pop-up icons to select a field and close the pop-up dialog. Thegreen icon is OK, the red icon is Cancel, double-clicking a value will select the value andclose the dialog without using any button, and pressing the Esc key will cancel the dialogwithout using any button.

When selected values are entered, the Multiselect operator field is activated.

6. Select the chaining logic for the selected values from the Multiselect operator drop-down list.

One of is based on one of the values shown in the Selected values, being selected inthe prior control, in the chain. This is the default selection.

All of is based on the value of all of the Selected values, being selected in the priorcontrol, of the chain.

The selected values and multiselect operator are applied to the condition.

How to Resolve Parameters for a ConditionProcedure:

It is recommended that you populate the controls first, before chaining. When you populate firstcertain information is obtained that allows the determination of the best choice for Resolvesparameter. If you chain first and then populate, the information cannot be obtained because thechaining is already established. If you chain first, you must manually set Resolves parameter.

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls on the chain.

3. Click a link in the chain.

4. In the Setting panel, click the Resolves parameter ellipsis button to select a parameter nameto resolve. If a custom procedure that has a filter (or filters) populates the control, the valueslist shows the parameters from the filters. If a data source populates the control, the valueslist shows all of the fields from the data source shown in the Object Inspector.

WebFOCUS App Studio Reference Guide 385

5. Creating HTML Pages in WebFOCUS App Studio

Page 386: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The value in the Resolves parameter field should be either:

The field name that limits the values for the next control in the chain, if a data sourcepopulates the control.

The parameter name from the procedure, if a procedure populates the control.

In most cases, this value will be populated by default and will not need to be changed.

Tip: You may also use the pop-up icons to select a field and close the pop-up dialog. Thegreen icon is OK, the red icon is Cancel, double-clicking a value will select the value andclose the dialog without using any button, and pressing the Esc key will cancel the dialogwithout using any button.

5. Close the Settings panel.

The parameter value is resolved in the chain if no filter is specified.

How to Select the Compare Operator for the ParameterProcedure:

An example of when to apply chaining logic is when a form offers two lists of dates so that youcan select a FROM/TO date range. By chaining these parameters together and applying theGreater than parameter compare operator, this ensures that when a date is selected for theFROM parameter, only dates that follow the FROM date display in the TO date control, eliminatingthe possibility of selecting an invalid date range.

1. Insert a report with parameters in the HTML canvas.

2. Drag control objects on the Parameters tab to create a chain.

Chains are represented by lines connecting control objects on the Parameters tab.

Chaining controls will populate parameters with values at run time, based on values selectedin prior controls on the chain.

3. Click a link in the chain.

4. In the Setting panel, select the chaining logic option from the Compare operator drop-downlist. This sets the compare operator to populate the control.

Equal is the default option.

The compare operator is applied to the parameter selected.

How to Enable Cache Processing for Chained ValuesProcedure:

You may enable cache processing for chained values in two ways:

386 WebFOCUS

Chaining in the HTML Canvas

Page 387: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Enable the caching option for the HTML page and all objects on the page.

Enable cache run time data for a dynamic control or a condition.

A chain contains conditions for each link in the chain. The conditions are linked to the valuesbeing bound to the control object. If you change the options for the condition, it will also beapplied to the control, and vice versa.

Caching options are turned off by default.

1. To enable caching options for all objects on the HTML page, in the App Studio Options dialogbox:

Select the HTML Page tab.

Select Default caching option.

Click OK to close the App Studio Options dialog box.

2. To enable caching options for a dynamic control or condition:

A chain contains conditions for each link in the chain. The conditions are linked to the valuesbeing chained to the control object. If you change the options for the condition, it will alsobe applied to the control, and vice versa.

For a dynamic control:

1. Create a dynamic input control to supply parameter values.

2. Select the dynamic control object from the Parameters tab.

The Settings panel opens, showing the dynamic control options.

3. Select Cache run time data to cache the run time data for the selected input control.

Note: This setting overrides the Default caching option from the HTML Page tab, inthe App Studio Options dialog box.

4. Select the center of the control object and drag the control to the center of the nextcontrol object.

When binding controls, the conditions inherit the values set in the dynamic control settings.

For a dynamic condition:

1. Click a link on the chain to open the Settings panel for the condition.

2. Select Cache run time data to cache the run time data for the selected input control. Thisoption is only available for dynamic controls.

WebFOCUS App Studio Reference Guide 387

5. Creating HTML Pages in WebFOCUS App Studio

Page 388: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

This setting overrides the Default caching option from the HTML Page tab, in the AppStudio Options dialog box.

When running the HTML page, data for the chained value is cached to improve performance.

Setting the Default Link

If a control or parameter has two or more incoming bindings, one of those bindings can be setas the default link. This ensures that population occurs in the control or parameter. When acontrol or parameter has multiple incoming bindings, the shortcut menu for each of those bindingshas the Default link option, as shown in the following image.

When a binding is the default link, it will have a check mark next to the Default link option in theshortcut menu, as shown in the following image.

388 WebFOCUS

Chaining in the HTML Canvas

Page 389: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

If only one control is chained to another control, the Default link option is unavailable fromthe shortcut menu. If a single control is chained to a single parameter, the Default linkoption is shown, but will be used for future development in a later release.

The first incoming binding that you create is automatically set as the default link when youcreate additional bindings. The first incoming binding is populated automatically. Alladditional bindings need to be populated manually using the Settings panel.

If two controls are chained to a third control, the binding that has Default link selected showswhich control will be used to populate the third control by default. Similarly, if two controls arebound to a parameter, the Default link option shows which control is used to populate theparameter.

If two parameters are bound to a control, the binding that has Default link selected makes theinitial selection in the control.

Using the Toggle Move Via Drag and Drop Shortcut Option

You can use the HTML canvas shortcut menu to select the Toggle move via Drag and Drop option.This option, when selected, changes the way objects are repositioned on the canvas. When Togglemove via Drag and Drop is unselected, you can left-click and drag an object to reposition it inreal-time. When Toggle move via Drag and Drop is selected, you can left-click on an object anddrag your cursor to where you want to position the object. While dragging the object, a smallrectangle will show below your cursor. When you release the mouse button, the object will move.The object does not reposition in real-time when this option is selected. Toggle movie via Dragand Drop is unselected by default.

Note: When this option is selected, you will be unable to reorder tabs or page containers,when using the Tab, Accordion or Window components.

Using JavaScript Code With HTML Canvas Pages

Although the HTML canvas is fully integrated with JavaScript, it is suggested that you do notcreate custom JavaScript that manipulates the HTML canvas generated controls, as WebFOCUScannot support such custom JavaScript code. Additionally, there is no guarantee that the JavaScriptcode will work correctly in future releases.

WebFOCUS App Studio Reference Guide 389

5. Creating HTML Pages in WebFOCUS App Studio

Page 390: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note:

The HTML canvas run time is a set of JavaScript files. You should not be calling thefunctions within them directly. Should you call these functions directly, your code may notfunction in future releases and Information Builders cannot be held responsible.

If you want JavaScript to run after a page loads completely, but before any reports areexecuted, you need to create a function called onInitialUpdate (this function was calledonInitialUpdate() in previous releases). If you have another function, in that function, youcan call IbComposer_onInitialUpdate(). Your code should be added inline in the HTML fileafter the line:

//End function window_onload

The HTML canvas run time will call onInitialUpdate() if it exists.

Function: IbComposer_runAnimation

IbComposer_runAnimation runs the animation defined by the user in the Tasks and Animationspanel.

How to Run an AnimationSyntax:

IbComposer_runAnimation(name);

where:

name

Alphanumeric

Is the name of the animation specified by the user in the Tasks and Animations panel.

Running an AnimationExample:

function submit1_onclick(ctrl) {IbComposer_runAnimation(animation1);}

Function: IbComposer_triggerExecution

IbComposer_triggerExecution allows the user to execute a specific task defined in the Taskssection of the Tasks and Animations panel.

390 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 391: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Execute a Specific TaskSyntax:

IbComposer_triggerExecution(taskName, index);

where:

taskName

Alphanumeric

Is the name of the task specified by the user in the Tasks section of the Tasks and Animationspanel in the HTML canvas.

index

Numeric

Is the task number starting from the number 1.

Executing a TaskExample:

function submit1_onclick(ctrl) {IbComposer_triggerExecution(task1, 1);}

Function: IbComposer_getMapObject

IbComposer_getMapObject returns the map object for the map container that is passed as theparameter. This object can then be used as a parameter in other API functions.

How to Return a Map ObjectSyntax:

IbComposer_getMapObject(mapId);

where:

mapId

Alphanumeric

Is the unique identifier of the map container. For example, mapcontrol1.

Returning the Map Object for a MapExample:

function onInitialUpdate(){var map = IbComposer_getMapObject('mapcontrol1');}

WebFOCUS App Studio Reference Guide 391

5. Creating HTML Pages in WebFOCUS App Studio

Page 392: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Function: IbComposer_getMarkers

IbComposer_getMarkers returns an array of markers for a specific layer of a map.

How to Return an Array of Markers for a MapSyntax:

IbComposer_getMarkers('mapId', 'layerName');

where:

mapId

Alphanumeric

Is the unique identifier of the map container. For example, mapcontrol1.

layerName

Alphanumeric

Is the name of the layer for which the markers are returned. For example, layer1.

Getting an Array of Markers for a MapExample:

function onInitialUpdate(){var map = IbComposer_getMapObject('mapcontrol1');var markers = IbComposer_getMarkers('mapcontrol1','Customers');}

Function: IbComposer_populateDynamicCtrl

IbComposer_populateDynamicCtrl allows you to determine from which control data is drawn fromto populate a destination control.

How to Populate a Control DynamicallySyntax:

IbComposer_populateDynamicCtrl('controlID', 'fromControlId');

where:

controlID

Alphanumeric

Is the unique identifier of the control from which values are obtained. For example, listbox1.

fromControlId

Alphanumeric

392 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 393: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Is the unique identifier of the control from which values are obtained, when two or morecontrols are chained to a destination control. For example, if listbox1 and listbox2 are bothchained to listbox3, by default, the values of listbox3 will be determined by listbox1. You canuse IbComposer_populateDynamicCtrl('listbox3','listbox2') to make listbox2 determine thevalues of listbox3. This identifier is optional.

Populating a Control DynamicallyExample:

function button3_onclick(ctrl) {var acc = IbComposer_populateDynamicCtrl('listbox3', 'listbox2');acc.selectNextPage();}

Function: IbComposer_getComponentById

The IbComposer_getComponentById function obtains a component by using its ID.

How to Obtain a Component by Using Its IDSyntax:

IbComposer_getComponentById('controlID');

where:

controlID

Alphanumeric

Is the unique identifier of the control from which values are obtained. For example, listbox1.

Getting the Accordion Report By Using Its IDExample:

function button3_onclick(ctrl) {var acc = IbComposer_getComponentById('accordion1');acc.selectNextPage();}

Function: IbComposer_getCurrentSelection

The IbComposer_getCurrentSelection function gets the current selected values from a control.

How to Get the Current Selected Value From a ControlSyntax:

IbComposer_getCurrentSelection('controlID', [layer]);

WebFOCUS App Studio Reference Guide 393

5. Creating HTML Pages in WebFOCUS App Studio

Page 394: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

controlID

Alphanumeric

Is the unique identifier of the control from which values are obtained.

layer

Integer

Is an optional parameter used to specify the layer number in a multi source Tree control if aMulti source Tree control is being used. The layer number starts with 1 for the first layer.

Getting the Current Selected Value for a Drop Down ListExample:

function button1_onclick(ctrl) { var values = IbComposer_getCurrentSelection('combobox1'); for(var I = 0; i < values.length; i++) alert(values[i]);}

Function: IbComposer_getCurrentSelectionEx

The IbComposer_getCurrentSelectionEx function gets the current selected actual or display valuesfrom a control. The function can also be used to get the index values for List Boxes, Drop DownLists, and Double Lists.

How to Get the Current Selected Value, Actual Value, or Display Value From a ControlSyntax:

IbComposer_getCurrentSelectionEx('controlID', [layer]);

where:

controlID

Alphanumeric

Is the unique identifier of the control from which values are obtained.

layer

Integer

Is an optional parameter used to specify the layer number in a multi source Tree control if aMulti source Tree control is being used. The layer number starts with 0 for the first layer.

394 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 395: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Getting the Current Selected Index Value, Actual Value, and Display Value for aMulti-Select List

Example:

function button1_onclick(ctrl) {var values = IbComposer_getCurrentSelectionEx('combobox1');for(var i = 0; i < values.length; i++){alert("Index Value: " + values[i].getIndex() + "\n" +"Actual Value: " + values[i].getValue() + "\n" +"Display Value: " + values[i].getDisplayValue());}

Function: IbComposer_setCurrentSelection

The IbComposer_setCurrentSelection function sets the current selected values for controlparameters.

How to Set the Current Selected Value for a ControlSyntax:

IbComposer_setCurrentSelection('controlID', arrValues, bUpdateDependencies);

where:

controlID

Alphanumeric

Is the unique identifier of the control for which to set the values.

arrValues

Array

Is the array of values to be set.

bUpdateDependencies

Boolean

Is an operator that can be set to true to update chained controls and triggered events. Thedefault is false.

Setting the Current Selected Value for a List BoxExample:

function button2_onclick(ctrl) { var arr = []; arr.push('ITALY'); arr.push('JAPAN'); IbComposer_setCurrentSelection('listbox1', arr, false);}

WebFOCUS App Studio Reference Guide 395

5. Creating HTML Pages in WebFOCUS App Studio

Page 396: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Function: IbComposer_execute

The IbComposer_execute function executes a report or chart.

How to Execute a Report or ChartSyntax:

IbComposer_execute('reportID', ['outputTarget']);

where:

reportID

Alphanumeric

Is the unique identifier of the report or chart to execute.

outputTarget

Alphanumeric

Is the optional parameter to set the target of the output. Is one of the following:

The name of a frame.

'_blank'.

'_target'.

The name of a new window.

Executing a Report in a New WindowExample:

function button3_onclick(ctrl) { IbComposer_execute('report1', 'newwin');}

Function: IbComposer_isSelected

The IbComposer_isSelected function determines if a control or value is selected.

How to Determine If a Control or Value Is SelectedSyntax:

IbComposer_isSelected('controlID', 'testValue');

where:

controlID

Alphanumeric

Is the unique identifier of the control being tested.

396 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 397: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

testValue

Alphanumeric

Is the value the control is being checked against.

Determining If a Checkbox Is SelectedExample:

function checkbox1_onclick(ctrl){ var curValue = IbComposer_isSelected('checkbox1'); IbComposer_showHtmlElement('form1', curValue);}

Function: IbComposer_showHtmlElement

The IbComposer_showHtmlElement function shows or hides an HTML element.

How to Show or Hide an HTML ElementSyntax:

IbComposer_showHtmlElement('elementID', bShow);

where:

elementID

Alphanumeric

Is the unique identifier of the element which is shown or hidden.

bShow

Boolean

Is an operator that can be set to true to show the element and false to hide it.

Hiding or Showing a Check BoxExample:

function checkbox1_onclick(ctrl){ var curValue = IbComposer_isSelected('checkbox1'); IbComposer_showHtmlElement('form1', curValue);}

Function: IbComposer_enableHtmlElement

The IbComposer_enableHtmlElement function enables or disables an HTML element.

How to Enable or Disable an HTML ElementSyntax:

IbComposer_enableHtmlElement('elementID', bEnable);

WebFOCUS App Studio Reference Guide 397

5. Creating HTML Pages in WebFOCUS App Studio

Page 398: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

elementID

Alphanumeric

Is the unique identifier of the element which is enabled or disabled.

bEnable

Boolean

Is an operator that can be set to true to enable the element and false to disable it.

Enabling or Disabling ElementsExample:

function checkbox2_onclick(ctrl){ IbComposer_enableHtmlElement('listbox1', IbComposer_isSelected('checkbox2', 'country')); IbComposer_enableHtmlElement('combobox1', IbComposer_isSelected('checkbox2', 'car')); IbComposer_enableHtmlElement('listbox2', IbComposer_isSelected('checkbox2', 'model')); IbComposer_enableHtmlElement('combobox2', IbComposer_isSelected('checkbox2', 'dcost'));}

Function: IbComposer_ResetDownChainControls

The IbComposer_ResetDownChainControls function resets the controls down the chain from thecurrent control to have correct corresponding values.

How to Reset Chain ControlsSyntax:

IbComposer_ResetDownChainControls('ctrl');

where:

ctrl

Alphanumeric

Is the unique identifier of the first control.

398 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 399: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Resetting the Chain Started by a List BoxExample:

function button4_onclick(ctrl) { var arr = [];arr.push('ENGLAND'); IbComposer_setCurrentSelection('listbox1', arr, false); IbComposer_ResetDownChainControls('listbox1');}

Function: IbComposer_selectTab

The IbComposer_selectTab function selects the tab specified by the tabNumberToSelect andmakes it the active tab.

How to Select a Tab and Make It ActiveSyntax:

IbComposer_selectTab('tabControlID', tabNumberToSelect);

where:

tabControlID

Alphanumeric

Is the unique identifier of the tab control being made active.

tabNumberToSelect

Integer

Is the number of the tab to make active.

Making a Tab ActiveExample:

<FORM id=form1 onsubmit="OnExecute(this);IbComposer_selectTab('tab1', 1) name="form1">

Function: IbComposer_selectTemplateTab

The IbComposer_selectTemplateTab function selects a tab on a template page and makes it theactive tab.

How to Select a Template Tab and Make It ActiveSyntax:

IbComposer_selectTemplateTab('tabId');

where:

tabId

Alphanumeric

WebFOCUS App Studio Reference Guide 399

5. Creating HTML Pages in WebFOCUS App Studio

Page 400: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Is the unique identifier of the tab control being made active.

Making a Template Tab ActiveExample:

function submit1_onclick(ctrl) {IbComposer_selectTemplateTab('tab5');}

Function: IbComposer_getAllAmpersValues

The IbComposer_getAllAmpersValues is used to get the current selected values from all thecontrols on your page layout. It then takes those values and assembles them as a string thatcan be added to the end of a URL call. An example of this would be having a REGION control andmultiselecting MidEast, NorthEast, and NorthWest. It will assemble these selections as shownbelow:

&REGION=%27MidEast%27%20OR%20%27NorthEast%27%20OR%20%27NorthWest%27

This function can be used in conjunction with the Business Intelligence Portal, where the generatedstring is appended to all Business Intelligence Portal calls that run reports or charts. This allowsthe parameter values to affect all portal components, even if new ones are added or existingones are removed at runtime.

How to Get all Parameter ValuesSyntax:

IbComposer_getAllAmpersValues([verifySelection]);

where:

verifySelection

Boolean

Is an optional parameter. When true and when the Selection required property for the controlis set to Yes, this returns an empty string for the parameter controls that do not have aselection made.

Note: All controls have the Selection required property. This property is set to Yes bydefault. If a control has no valid selection made at runtime, a red box appears around itand the following status bar message displays:

Please make required selections

400 WebFOCUS

Using JavaScript Code With HTML Canvas Pages

Page 401: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Retrieving a List of All Parameters Selected in a Report.Example:

function button1_onclick(ctrl){var val = IbComposer_getAllAmpersValues();alert(val);OnExecute(ctrl);}

Event: onbeforeload

The onbeforeload event is an event handler that is used before a control is populated with values.

How to Use the onbeforeload EventSyntax:

onbeforeload('ctrl', 'arrValuesToLoad');

where:

ctrl

Is a static term and should not be changed.

arrValuesToLoad

Alphanumeric

Is the array of values that will be loaded into the control.

Populating a Listbox With the onbeforeload EventExample:

function listbox1_onbeforeload(ctrl,arrValuesToLoad) { for(var i = 0; i < arrValuesToLoad.length; i++) { alert(arrValuesToLoad[i].dispValue + " " + arrValuesToLoad[i].value + " " + arrValuesToLoad[i].selected); }}

Event: onafterload

The onafterload event is an event handler used after a control is populated with values.

How to Ese the onafterload EventSyntax:

onafterload('ctrl');

WebFOCUS App Studio Reference Guide 401

5. Creating HTML Pages in WebFOCUS App Studio

Page 402: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

ctrl

Is a static term and should not be changed.

Selecting the ALL Value in a Listbox With the onafterload EventExample:

function listbox1_onafterload(ctrl){ alert(IbComposer_isSelected(ctrl.id, 'ALL'));}

CSS Support Matrix for Internet Explorer

The following table is a list of all CSS properties and whether they are supported in InternetExplorer 9 and Internet Explorer 10.

Internet Explorer 10Internet Explorer 9CSS3 Property

Borders

SupportedSupportedborder-radius

SupportedSupportedbox-shadow

Not SupportedNot Supportedborder-image

Background

SupportedSupportedbackground-size

SupportedSupportedbackground-origin

Animations

SupportedNot Supportedkeyframes

SupportedNot Supportedanimation

SupportedNot Supportedanimation-name

SupportedNot Supportedanimation-duration

SupportedNot Supportedanimation-timing-function

402 WebFOCUS

CSS Support Matrix for Internet Explorer

Page 403: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Internet Explorer 10Internet Explorer 9CSS3 Property

SupportedNot Supportedanimation-delay

SupportedNot Supportedanimation-iteration-count

SupportedNot Supportedanimation-direction

SupportedNot Supportedanimation-play-state

Text

SupportedNot Supportedtext-shadow

SupportedSupportedword-wrap

SupportedSupportedtext-overflow

SupportedSupportedword-break

SupportedNot Supportedtext-justify

2D and 3D Transforms

Supported - 2D and 3Dms-transform - only 2Dtransform

Supported - 2D and 3Dms-transform - only 2Dtransform-origin

SupportedNot Supportedtransform-style

SupportedNot Supportedperspective

SupportedNot Supportedperspective-origin

SupportedNot Supportedbackface-visibility

Fonts

SupportedNot Supportedfont-feature-settings

ms-hyphensNot Supportedhyphens

ms-hyphenate-limit-zoneNot Supportedhyphenate-limit-zone

WebFOCUS App Studio Reference Guide 403

5. Creating HTML Pages in WebFOCUS App Studio

Page 404: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Internet Explorer 10Internet Explorer 9CSS3 Property

ms-hyphenate-limit-charsNot Supportedhyphenate-limit-chars

ms-hyphenate-limit-linesNot Supportedhyphenate-limit-lines

Multi Column Layout

SupportedNot Supportedcolumns

SupportedNot Supportedcolumn-count

SupportedNot Supportedcolumn-gap

SupportedNot Supportedcolumn-rule

SupportedNot Supportedcolumn-rule-color

SupportedNot Supportedcolumn-rule-style

SupportedNot Supportedcolumn-rule-width

SupportedNot Supportedcolumn-span

SupportedNot Supportedcolumn-width

SupportedNot Supportedcolumn-fill

SupportedNot Supportedbreak-after

SupportedNot Supportedbreak-before

SupportedNot Supportedbreak-inside

Transitions

SupportedNot Supportedtransition

SupportedNot Supportedtransition-property

SupportedNot Supportedtransition-duration

SupportedNot Supportedtransition-timing-function

404 WebFOCUS

CSS Support Matrix for Internet Explorer

Page 405: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Internet Explorer 10Internet Explorer 9CSS3 Property

SupportedNot Supportedtransition-delay

User Interface

Not SupportedNot Supportedresize

SupportedSupportedborder-box

Not SupportedNot Supportedoutline-offset

Not SupportedNot Supportedappearance

Gradients

Supported - ms-linear-gradientNot Supportedlinear-gradient

Supported - ms-radial-gradientNot Supportedradial-gradient

Supported - ms-repeating-linear-gradient

Not Supportedrepeating-linear-gradient

Supported - ms-repeating-radial-gradient

Not Supportedrepeating-radial-gradient

CSS Class Mapping List

This section contains a list of IBI classes that are used to style various components and controls.

Classes UsedComponents/Controls

IBI_PageBgBody

IBI_Report-iFrame; IBI_rounded_mReport

IBI_Report-iFrame; IBI_rounded_mChart

IBI_LinkItemHyperlink

IBI_buttonButton

WebFOCUS App Studio Reference Guide 405

5. Creating HTML Pages in WebFOCUS App Studio

Page 406: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Classes UsedComponents/Controls

IBI_buttonReset

IBI_ReportControlLabelLabel

IBI_ReportControlPanel; IBI_rounded_mForm

IBI_button; IBI_btn-runSubmit Button

IBI_button; IBI_btn-resetReset Button

IBI_btn-saveselectionSave Selection Button

IBI_btn-deferDefer Button

IBI_btn-scheduleSchedule Button

IBI_Panel; IBI_rounded_mPanel

IBI_ReportControlTargetMap

IBI_rounded_mFrame

IBI_ReportControlTarget; IBI_rounded_sEdit box

IBI_ReportControlTarget; IBI_rounded_sDrop down

IBI_ReportControlTarget; IBI_rounded_sList Box

IBI_ReportControlTarget, IBI_btn-up, IBI_btn-down,IBI_btn-left, IBI_btn-right

Double List

IBI_ReportControlTarget; IBI_RadioRadio Button

IBI_ReportControlTarget; IBI_CheckBoxCheck Box

IBI_rounded_mText Area

IBI_ReportControlTargetSingle Source Tree

IBI_ReportControlTargetMulti Source Tree

406 WebFOCUS

CSS Class Mapping List

Page 407: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Classes UsedComponents/Controls

IBI_ReportControlTarget; IBI_rounded_s;IBI_SliderInput; IBI_buttonSliderNav; IBI_btn-left;IBI_btn-right; IBI_SliderTrack; IBI_SliderHandle

Horizontal Slider

IBI_ReportControlTarget; IBI_rounded_s;IBI_SliderInput; IBI_buttonSliderNav;IBI_buttonSliderNavVert; IBI_btn-up; IBI_btn-down;IBI_SliderTrack; IBI_SliderTrackVert; IBI_SliderHandle;IBI_SliderHandleVert

Vertical Slider

IBI_InfoWnd; IBI_InfoWndTitleBar; IBI_InfoWndFrameInfo Window

IBI_MultiContentPluginTab

IBI_pageHeaderTab Header

IBI_pageHeaderTab_TopBottomTabHeader - Top Tab

IBI_pageHeaderTab_BottomTabHeader - Bottom Tab

IBI_pageHeaderTab_LeftTabHeader - Left Tab

IBI_pageHeaderTab_RightTabHeader - Right Tab

IBI_pageHeader_SelectedTab Selected

IBI_pageHeader_VerticalVertical Tab/Accordion/Windowheader

IBI_pageHeaderVertical_SelectedVertical Tab/Accordion/WindowSelected

IBI_pageHeaderTextTab Heading Text

IBI_textVerticalTopToBottomTab Heading Text - Left Tab

IBI_textVerticalBottomToTopTab Heading Text - Right Tab

IBI_pageContentTab/Window/Accordion Content

IBI_pageContentTab_TopTab/Window/Accordion Content - Top

WebFOCUS App Studio Reference Guide 407

5. Creating HTML Pages in WebFOCUS App Studio

Page 408: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Classes UsedComponents/Controls

IBI_pageContentTab_BottomTab/Window/Accordion Content -Bottom

IBI_pageContentTab_LeftTab/Window/Accordion Content - Left

IBI_pageContentTab_RightTab/Window/Accordion Content - Right

IBI_windowNavBoxTab/Accordion/Window Min/Max box

IBI_windowMaxRestore; IBI_windowMaximize;IBI_windowMinimize; IBI_windowTiles;IBI_windowFlipRight; IBI_windowFlipLeft

Tab/Accordion/Window images

Mobile Design for HTML Pages

You can create HTML pages that are formatted specifically to be used on a mobile phone. Whenan HTML page is formatted for a mobile phone, components and controls are presented differentlyso that they can be used in conjunction with touch-screen technology.

When an HTML page is converted and used on a mobile phone, it will have one home page andmultiple output pages depending on how many components you have. You can set which pageyou want as your home screen by using the HTML canvas shortcut menu on that particular pageand clicking Use current page as home page.

When viewed on a mobile phone, each frame of output becomes its own screen. For example, ifyou have a report and chart on a mobile-enabled HTML page, these will both be on their ownseparate screen when viewed on a mobile phone. The more output frames you have, the morescreens your HTML page will have on a mobile phone. The order of these outputs, when used ona mobile phone, is determined by the way they are ordered in the Tasks section of the Tasks &Animations panel.

All single-select controls become drop-down boxes, when viewed on a mobile phone. All multi-select controls become listboxes, when viewed on a mobile phone. This allows users the abilityto select options using a touch-screen. Textbox controls, map controls, tree controls, slidercontrols, and calendar controls do not change when converted to mobile layout.

If you are using multiple frames in your HTML page, when you enable mobile layout, these formswill be consolidated to one form.

408 WebFOCUS

Mobile Design for HTML Pages

Page 409: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: JQuery mobile controls do not display when designing your mobile HTML page but willdisplay when your mobile HTML page is run, on a mobile phone.

While in the HTML canvas, you can preview how your HTML page will look on a mobile phone. Todo this, ensure that the Enable mobile property is set to Yes in the Properties panel, and thenclick Show Mobile Layout using the HTML canvas shortcut menu. To return to the desktop view,use the HTML canvas shortcut menu and click Back to desktop.

You must save your HTML page in order to run the page in mobile layout.

Note: If the HTML runtime cannot determine if mobile design or desktop design should beused, your device will display the message: Mobile look? If you select OK, mobile design isused. If you click Cancel, desktop design will be used.

How to Enable Mobile Design for Your HTML Page in the HTML/Document WizardProcedure:

To enable mobile layout in your HTML page:

1. On the Home tab, in the Content group, click HTML/Document.

You can also create a new HTML page from the Application menu or by using the shortcutmenu in the Environments tree panel, when on a valid folder.

The HTML/Document wizard opens.

2. Select a valid path for your HTML page and click Next.

The Themes and Settings window of the HTML/Document wizard opens.

3. In the Mobile Design section, select Enable.

Selecting this option automatically sets the Enable mobile.. property, in the Properties panel,to Yes.

4. Click Finish.

Your HTML page has the Enable mobile.. property set to Yes and you can begin developingyour HTML page for mobile use. You must save your mobile HTML page before you run it inorder to view it in the mobile layout preview.

How to Enable Mobile Design for Your HTML Page Using the Properties PanelProcedure:

To enable mobile layout in your HTML page, using the Properties panel:

1. Create a new HTML page.

WebFOCUS App Studio Reference Guide 409

5. Creating HTML Pages in WebFOCUS App Studio

Page 410: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The HTML canvas opens.

2. Select the Properties panel.

3. Change the Enable mobile.. property from No to Yes.

Your HTML page now has mobile layout enabled. You can begin developing your HTML pagefor mobile use. You must save your mobile HTML page before you run it in order to view itin the mobile layout preview.

410 WebFOCUS

Mobile Design for HTML Pages

Page 411: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating Documents in WebFOCUS AppStudio

6Chapter

In App Studio, you can create and edit documents using the Document canvas. When youcreate a new document, you use the HTML/Document wizard.

This topic describes how to launch the HTML/Document wizard to create documents. Italso identifies and explains the tabs and panels that are available when you are developingdocuments in the Document canvas.

In this chapter:

Launching the HTML/Document Wizard

Insert Tab

Positioning Tab

Utilities Tab

Thumbnails Panel

Launching the HTML/Document Wizard

The HTML/Document wizard allows you to create a new HTML Page, Guided Report Page,Document, and active Dashboard, and open a recent procedure.

To open the HTML/Document wizard:

On the Home tab, in the Content group, click HTML/Document.

In the Environments Tree panel, right-click an application folder, point to New, and clickHTML/Document.

WebFOCUS App Studio Reference Guide 411

Page 412: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The HTML/Document wizard opens, as shown in the following image.

From the HTML/Document wizard, you can open a recent procedure or create a new one.

How to Create a Document Using the HTML/Document WizardProcedure:

After you have launched the HTML/Document wizard, you can begin to create your own Document.

1. In the File Type area, select Document.

2. Navigate to where you want to create the new procedure or select a recent procedure.

Note: If you used the shortcut menu in the Environments Tree panel to create yourdocument, a location is already selected.

3. Click Finish.

Note: The Finish button is unavailable until you select a valid path.

The Document canvas, Thumbnails panel, and Properties panel open. You can now add datato your Document and format the data using the tabs in the ribbon.

4. Click the page layout to add objects to the page.

412 WebFOCUS

Launching the HTML/Document Wizard

Page 413: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

5. To save your Document, click the Save button on the Quick Access Toolbar, or select Savefrom the Application menu.

6. To run your Active Document, click Run on the Quick Access Toolbar, or click Run from theApplication menu.

How to Create an Active Technologies Dashboard Using the HTML/Document WizardProcedure:

After you have launched the HTML/Document wizard, you can begin to create your own activedashboard.

1. In the File Type area, select active dashboard.

2. Navigate to where you want to create the new procedure or select a recent procedure.

Note: If you used the shortcut menu in the Environments Tree panel to create your activedashboard, a location is already selected.

3. Click Finish.

Note: The Finish button is unavailable until you select a valid path.

The active dashboard canvas, Settings panel, Thumbnails, and Properties panel open. Youcan now add data to your active dashboard and format the data using the tabs in the ribbon.

4. Click the page layout to add objects to the page.

5. To save your active dashboard, click the Save button on the Quick Access Toolbar, or selectSave from the Application menu.

6. To run your active dashboard, click Run on the Quick Access Toolbar, or click Run from theApplication Menu.

Insert Tab

You can insert components and controls in a document or active dashboard. The Insert tabcontains the Components, Controls, and Pages groups, as shown in the following image.

WebFOCUS App Studio Reference Guide 413

6. Creating Documents in WebFOCUS App Studio

Page 414: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Components Group

You can insert components in a document or active dashboard. The Components group is shownin the following image.

The components are:

Report

Inserts a report object. You can add reports to the Document canvas that appear when yourun the layout. You can either embed or reference reports. Double-clicking a blank reportobject opens the Report canvas, where you can create and style a report to be used on theDocument canvas.

You can also include parameters in a report. The values of the parameters can be assignedwith controls that are added on the Document canvas.

Chart

Inserts a chart object. You can add charts to the Document canvas that appear when yourun the layout. You can either embed or reference charts. Double-clicking a blank chart objectopens the Chart canvas, where you can create and style a chart to be used on the Documentcanvas.

Image

Inserts an image. You can add an image, such as a company logo, to the layout.

You can insert an image into your document and add a hyperlink to it. After you run yourdocument, and click the image, you can launch a URL, or run a report.

Note: An inserted image must be referenced from a specific directory location.

Text

Inserts a text box. You can add text, such as headings, to your webpage. You can adddirections or explanations for your reports and charts.

414 WebFOCUS

Insert Tab

Page 415: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Line

Inserts a line. You can add a horizontal or vertical line to distinguish between sections ofyour launch or display page.

Controls Group

You can insert controls in a document or active dashboard. The Controls group is shown in thefollowing image.

The controls are:

Edit Box

Inserts a text box. You can enter a value in the text box.

Drop Down

Inserts a drop-down list. You can select a single value from a list of supplied values. You canuse a dynamic or static list of values for the drop-down list.

List Box

Inserts a list. You can select single or multiple values at one time from a list box:

From a single-select list you can select only one value for each time a request is run.

From a multi-select list you can select multiple values all at once by holding down the Ctrlkey as you select values.

In order to provide multiple values, the procedure must be set up to accept multiple values.

List box values can be dynamic or static.

Radio Button

Inserts a radio button. Using a radio button, you can only select a single value from a list ofsupplied values. Radio button values can be static or dynamic.

Check Box

Inserts a check box into an active report, active Flash file, or active PDF file. You can selectmultiple values from multiple check boxes.

WebFOCUS App Studio Reference Guide 415

6. Creating Documents in WebFOCUS App Studio

Page 416: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Pages Group

You can add a new or existing page, Table of Contents, Page Master, or size and overflow in adocument or active dashboard. The Pages group is shown in the following image.

The commands are:

New

Inserts a new page to the Page Layout canvas. The new page appears below the current pageand is named Page layout n, where n is a number that increments by 1.

Existing

Inserts an existing page. This page can contain images, drawing objects, text, page settings,reports, and charts.

To insert an existing page into your document, it must be saved as a procedure and existsomewhere in the WebFOCUS environment.

Table of Contents

You can generate a Table of Contents page that shows a summary of the contents of thedocument, along with page numbers, and that can be printed with the document.

The entries can link to any component of the compound output (page, report, or graph) andvertical sort field values (BY field values) within each component report. The entries in theTable of Contents enable you to easily navigate to a particular section while viewing thedocument online.

When creating a compound layout report or a coordinated compound report, you can enablebookmarks available in Adobe® Acrobat® for PDF formatted reports. Bookmarking uses theTable of Contents descriptions, and the Table of Contents page and levels, to show specificreference points in the compound document.

Note: You cannot add a report, chart, image, text, or line object to the Table of Contentspage. These commands are disabled when the Table of Contents is selected.

416 WebFOCUS

Insert Tab

Page 417: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Master

Inserts a Page Master. A Page Master is a page that can be added in the Design View whereyou can add and edit repeating elements, such as the company logo, or page numbers. Anyelement placed on the Page Master repeats on every page in the resulting report.

Note: You cannot add a report or chart to the Page Master. These options are disabledwhen the Page Master is selected.

Overflow

Sets the size and overflow of a report object at run time.

You can control the overflow and relative (vertical) positioning of reports and graphs incoordinated compound documents so that reports fill the entire page, as well as maintaintheir relative position in the document.

Overflow is defined as the area of a report that exceeds its defined space in the page layout.For example, a multi-page report and a graph can both be added to a single page layout withthe graph positioned beneath the report.

The report can flow or fill the page and the graph can be relatively positioned to the report,so it is placed at the end of the document following the complete rendering of the report.

Overflow and positioning options are available from the Properties window and from thePositioning toolbar.

Add Dashboard Bar

Inserts a Dashboard Bar into an active dashboard. A Dashboard Bar is an additional pagelayout where you can insert controls, reports, and charts that display above the dashboardtabs.

The Dashboard Bar is only available for the active report formatted documents. A DashboardBar can be a maximum of one page.

You can insert a Dashboard Bar into active Flash and active PDF formatted documents.However, if you run these documents, an empty page is returned.

Related Information:• How to Create a Table of Contents Page on page 419• How to Use Bookmarks on page 421• How to Create a Page Master on page 418• How to Save a Page Master on page 419• How to Use an Existing Page Master in Another Document on page 419• How to Control Which Objects Appear in the Table of Contents on page 420

WebFOCUS App Studio Reference Guide 417

6. Creating Documents in WebFOCUS App Studio

Page 418: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

• How to Customize the Overflow for a Fixed Report on page 421• How to Set the Flowing Report Property on page 422• How to Set Flow Margins for the Page Layout on page 423• How to Add a New Overflow Page to a Page Layout on page 423• How to Insert a Dashboard Bar Into the Layout on page 425• How to Add Header and Footer Information to the Overflow Page on page 424

How to Insert a Bulleted List or Numbered List Into a Text ElementProcedure:

1. On the Insert tab, in the Components group, click Text, and add multiple lines of text to thelayout.

2. Select the text that you added, and right-click it to open a shortcut menu.

3. On the shortcut menu, do one of the following:

For a bulleted list, point to Bullets, and then select one of the following: Disc, Circle, orSquare.

For a numbered list, point to Numbering, and then select one of the following: Numbers,Lowercase Letters, Uppercase Letters, Small Roman numerals, or Large Roman numerals.

The text is formatted accordingly.

Alternatively, you can select a bullet type before typing text to begin the list. Press theEnter key to begin the next item in the list on a separate line.

To change the bullet or number list type of an existing list, click the list and reselect abullet or number list type. Selecting None removes the bullets or numbers for that list.To switch between bullets and numbers, you must first remove the current list option byselecting None, and then applying the list option that you want.

How to Create a Page MasterProcedure:

1. Create a new document, or open an existing document.

2. From the Insert tab, in the Pages group, click Master.

The Page Master is added to the document.

3. Add elements and set their properties.

Note: Only text, images, and lines can be added to the Page Master.

418 WebFOCUS

Insert Tab

Page 419: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Save a Page MasterProcedure:

1. Create a new document, or open an existing document.

The document opens on the Document canvas.

2. From the Insert menu, in the Pages group, click Master.

The Page Master is added to the document.

3. Add components (text, images, lines) and set their properties on the Page Master.

4. Click Save to keep your changes to the Page Master.

How to Use an Existing Page Master in Another DocumentProcedure:

1. Create a new document, or open an existing document.

2. From the Insert menu, in the Pages group, click Existing.

The Open dialog box opens.

3. Select the procedure file (.fex) that contains the Page Master.

4. Click Open.

If a Page Master has already been added to the document, a message appears stating thata Page Master already exists in the current layout. You can respond in one of the followingways:

Click Yes to replace the existing Page Master with the new one.

Click No to merge the two Page Masters.

Click Cancel to use the existing Page Master, instead of the Page Master from the PageLayout template.

5. Save the document.

How to Create a Table of Contents PageProcedure:

1. Create a new document, or open an existing document.

2. From the Insert tab, in the Pages group, click Table of Contents.

The Table of Contents page appears in the document.

Table of Contents is the default title for the page. To edit the title, select the current title andtype your new title.

WebFOCUS App Studio Reference Guide 419

6. Creating Documents in WebFOCUS App Studio

Page 420: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

To style the title, select the text, right-click it, and in the shortcut menu that opens, point toStyle, and select from among the following options: Bold, Italic, Underline, or Superscript.

In addition, you can select Font to open the Font dialog box, where you can set the font, fontstyle, font size, font color, and font effects.

Note: The text does not wrap and must fit within the width of the overall text element.

3. Click Run to load your document.

The Table of Contents appears as the first page in your output.

4. Click a hypertext link on the Table of Contents page to jump to that section within thedocument.

How to Control Which Objects Appear in the Table of ContentsProcedure:

Note: The objects that appear in the Table of Contents depend on whether the document iscoordinated or uncoordinated. By default, all report, chart, and page layout objects appear inthe Table of Contents for uncoordinated documents.

To control which objects appear in the Table of Contents:

1. Select a report, chart, or page layout object.

Each object has a TOC description, TOC level option, and TOC Number of sort levels in theProperties panel.

2. To change the name of the description for the object, type over the TOC description in theProperties panel.

This description appears in the Table of Contents at run time.

3. To change the hierarchical order of how the object appears in the Table of Contents, type aTOC level.

For example:

0 = the object is not shown in the Table of Contents.

1 = the object is shown as a first level item in the Table of Contents.

2 = the object is shown as a second level item in the Table of Contents.

Follow this sequence for additional levels.

These levels appear in the Table of Contents at run time.

420 WebFOCUS

Insert Tab

Page 421: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

4. To change the number of vertical sort fields (TOC levels) that appear in the Table of Contentsfor the component, use the up or down arrow to adjust TOC Number of sort levels in theProperties panel. If the value designated is greater than the count of BY fields in thecomponent report, then the value defaults to the total count of available BY fields.

Note: Coordinated reports do not support TOC Number of sort levels within a compoundTOC. Those entries are ignored for coordinated reports.

5. Run the procedure to see the updated TOC description and TOC levels.

How to Use BookmarksProcedure:

1. Create a compound layout that is made up of multiple reports and/or charts.

2. Use the Properties panel to select each report/chart, and enter a bookmark (Table ofContents) description, or use the default selections.

Note: The Table of Contents page might or might not be included in the compounddocument, however, the descriptions and levels that appear as bookmarks are set throughthese options.

3. In the Properties panel, from the Properties list, select Compound document.

4. From the Bookmarking drop-down list, select On.

Note: Bookmarking is off by default.

5. Click Run to load your document.

The bookmark tab is expanded in the PDF output.

6. Click a bookmark link to jump to that section within the document.

Note: You can use the shortcut menu to change the bookmark properties.

How to Customize the Overflow for a Fixed ReportProcedure:

1. Select an object from the Design View.

The Properties panel shows the available properties for the selected object.

2. Select Fixed from the Size and Overflow drop-down list.

Note: Fixed is the default selection. If Not Set is selected, Fixed is used as the default.

WebFOCUS App Studio Reference Guide 421

6. Creating Documents in WebFOCUS App Studio

Page 422: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. Right-click the fixed report in the Design View and select Customize Fixed Overflow.

The overflow page is added after the page layout in the Design View, displaying a copy ofthe fixed component (with the original size and position) from the page layout. Scroll downin the Design View until you see the overflow page.

4. Resize the report to fill the page. You can also reposition the report overflow.

5. Run the report.

Note: If the document contains multiple fixed reports, the report output maintains thesame size and position as the report objects on the Document canvas.

How to Set the Flowing Report PropertyProcedure:

1. Select an object from the Design View.

The Properties panel shows the available properties for the selected object.

2. Click Flowing from the Size and Overflow drop-down list.

Note: Repeat this step for any surrounding report objects to prevent the overlapping ofreports and charts at runtime.

Tip: When set to Flowing, flow margins are available for the page layout. These marginsfurther enable you to adjust the page so that the report fills each page between the flowmargins.

3. Run the document.

Note:

If the document contains multiple flowing reports, the reports might overlap at runtime.If you want one report to run until completion before the next report begins, you mustset the relationship between the reports.

If the document contains a flowing report and a chart, the chart might overlap thereport at runtime. If you want the report to run until completion before the chart begins,you must set the relationship between the chart and the report.

422 WebFOCUS

Insert Tab

Page 423: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Set Flow Margins for the Page LayoutProcedure:

When using Flowing overflow, each page layout has flow margins. Flow margins are set throughthe top and bottom margins. Flowing reports utilize flow margins to ensure that all reports fill thepage, or the selected portion of the page, and that the header and footer information is preservedin the output.

Note: Flow margins are not available for Fixed overflow.

To set flow margins for the page layout:

1. On the Document canvas, select a page layout from the Design View.

Note: Ensure that the report object is set to Flowing overflow.

2. From the Properties panel, type in a value for the flow margin: bottom property.

The flow margin bottom value sets the ending vertical coordinate where a flowing report endson each page.

3. From the Properties panel, type in a value for the flow margin: top property.

The flow margin top value sets the beginning vertical coordinate where a flowing report startson each new page.

Note: When flow margins are changed from the default value, you can see the flow marginsin the Design View of the Document canvas.

4. Adjust the objects in the Design View between the flow margins and run the report.

The report fills each page between the flow margins until it reaches the end.

How to Add a New Overflow Page to a Page LayoutProcedure:

Each page layout works independent of any other page layout in the coordinated compounddocument. This enables you to add a new header and footer for each individual page layout andassociated overflow pages. The following procedure describes how to add a new overflow pagefrom the page layout.

You can use any of the following methods to create an overflow page.

From a fixed report component in a coordinated compound document.

Select the report component on the page and from the shortcut menu, right-click and selectCustomize Fixed Overflow.

WebFOCUS App Studio Reference Guide 423

6. Creating Documents in WebFOCUS App Studio

Page 424: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The overflow page, displaying a copy of the fixed component (with the original size and position)from the page layout, is added after the page layout in Design View. This enables you to moveand resize the overflow object and add reports and charts (as header and footer information)around the overflowing object.

On a page layout with a fixed or flowing report.

From the New Page Layout drop-down list, select Add New Overflow Page.

Click anywhere on the page layout, right-click and, from the shortcut menu, select Add NewOverflow Page.

The overflow page is added after the page layout in the Design View. You can add reports andcharts to the overflow page.

Note: If there is a flowing report component, any flow margins defined on the page layout willalso appear on the overflow page. This enables you to move and resize the flow margins andadd reports and charts (as header and footer information) around the flow margins.

The overflow page is identified as Page layout n, overflow object, where n is the number of thecorresponding page layout.

How to Add Header and Footer Information to the Overflow PageProcedure:

You can add report and chart components on the overflow page as header and footer informationfor the overflow data, and position and size the components. You can copy existing componentsfrom the page layout, or add new report and chart components. All components added to theoverflow page are automatically assigned as fixed components on the overflow page.

Note: The report and chart components added as headers and footers should not generateadditional overflow.

1. To copy an existing report or chart component from the page layout:

a. Select the component from the original page layout, right-click, and select Copy.

b. Select Page layout n, overflow object from the Properties panel list, or scroll down in theDesign View until you see the overflow page.

The overflow page appears in the layout.

c. Right-click the current page and click Paste.

The component is copied to the overflow page, maintaining the size and position from thepage layout.

424 WebFOCUS

Insert Tab

Page 425: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If the component was flowing on the original page layout, it is automatically changedto a fixed object on the overflow page.

2. To add a new report or chart component to the overflow page:

a. From the Properties panel list, select Page layout n overflow object.

The overflow page appears in the layout.

b. Right-click the current page and select New Report or New Graph.

Note: You can also add these components through the Insert tab.

The pointer changes into a crosshair.

c. Drag the crosshair to create a report object or a chart object, and adjust it to the sizeyou want.

d. Open, import, or reference report or chart information as usual. This behavior is identicalto adding a report or chart on the page layout.

Note: Keep in mind that these objects are acting as header and footer information, sothey should not generate additional overflow.

3. To edit the report or chart component on the overflow page, double-click the object to openthe associated tool and apply any styling or data changes.

How to Insert a Dashboard Bar Into the LayoutProcedure:

1. Create a new active dashboard, or open an existing active dashboard.

The active dashboard opens in Document canvas.

2. From the Insert tab, in the Pages group, click Add Dashboard Bar.

The Dashboard Bar is inserted at the top of the document.

You can insert controls, reports, and charts to appear in the Dashboard Bar above thedashboard tabs.

Note: Though the Dashboard Bar can be a full page, it is not recommended that you insertlarge reports and charts, as this would make the Dashboard Bar appear to be the samesize, or larger, than the dashboard.

WebFOCUS App Studio Reference Guide 425

6. Creating Documents in WebFOCUS App Studio

Page 426: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Positioning Tab

Positioning options enable you to multi-select objects and position them relative to one another.The Positioning tab contains the Positioning, Relationships, and Text Alignment groups, as shownin the following image.

Positioning Group

The Positioning group contains the Left, Right, Top, Bottom, Center, Middle, Same Width, SameHeight, Same Size, and Toggles Grid commands, as shown in the following image.

Left

Aligns the objects to the left. This works in relationship positioning.

Relates an object to the left of another object.

Right

Aligns the objects to the right. This works in relationship positioning.

Relates an object to the right of another object.

Top

Aligns the objects to the top of the highest selected object. This works in relationshippositioning.

Bottom

Aligns the objects by the bottom of the lowest selected object. This works in relationshippositioning.

Center

Aligns the objects to the center of the page. This works in relationship positioning.

Aligns objects at the horizontal center point of the object.

426 WebFOCUS

Positioning Tab

Page 427: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Middle

Aligns the objects to the middle of the page. This works in relationship positioning.

Aligns objects at the vertical center point of the object.

Same Width

Makes two or more objects the same width.

Same Height

Makes two or more objects the same height.

Same Size

Makes two or more objects the same size.

Toggles Grid

Turns the grid on and off.

Relationships Group

The Relationships group contains the Top Left, Top Right, Bottom Right, Bottom Left, Break, andShow commands. The Top Left, Top Right, and Bottom Right commands are only available forHTML pages and Guided Report pages. The Relationships group is shown in the following image.

Top Left

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe top left of another object.

Top Right

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe top right of another object.

Bottom Right

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe bottom right of another object.

WebFOCUS App Studio Reference Guide 427

6. Creating Documents in WebFOCUS App Studio

Page 428: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Bottom Left

Relates two or more objects on a page. Two objects must be selected. Relates an object tothe bottom left of another object.

Break

Breaks the relationship between the objects selected.

Show

Shows or hides the relationship between objects.

Text Alignment Group

The Text Alignment group contains the Left, Center, Right, and Full Justification commands. Thesecommands align text within the HTML page. The Text Alignment group is shown in the followingimage.

Left

Aligns selected text to the left.

Center

Aligns selected text to the center.

Right

Aligns selected text to the right.

Full Justification

Fully justifies the selected text, meaning that the text fills the width of the text box.

428 WebFOCUS

Positioning Tab

Page 429: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Utilities Tab

You can change the font, chaining, active report, template, and page properties of a documentor active dashboard.

Chaining Group

You can add or remove chaining options. The Chaining group is shown in the following image.

The commands are:

Add

Chains two or more objects that are selected in the Parameters tab.

Remove

Unchains two or more selected, chained objects in the Parameters tab.

Show Chain order

Shows the order of the chained objects.

Files Utility Group

You can import and export a page, save a page, and add pre-processing or post-processing codeto a document. The Files Utility group is shown in the following image.

WebFOCUS App Studio Reference Guide 429

6. Creating Documents in WebFOCUS App Studio

Page 430: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Save Document As

Saves the document. This command is available only for a document or active dashboard.

Save Page As

Saves the page you are currently on. This command is available only for a document or activedashboard.

Pre-process code

Creates code that is used before the document is processed. This command is availableonly for a document or active dashboard.

Post-process code

Creates code that is used after the document is processed. This command is available onlyfor a document or active dashboard.

Refresh All

Refreshes the document.

Related Information:• How to Add the Pre-Process Component to a Document on page 430• How to Add the Post-Process Component to a Document on page 431

How to Add the Pre-Process Component to a DocumentProcedure:

You can create a pre-process code that applies to all components added to a document. Forexample, if the components in your document all require the joining of two tables, you can createa pre-process code before adding the components. This feature eliminates the need to create aJoin before each component is added to the document.

In addition, you can create a post-process code that runs after all of the components have beenadded to a document.

1. Create a new Document.

2. On the Utilities tab, in the Files Utility group, click Pre-process code.

A new canvas and the Procedure View panel open. The new canvas will show the documentname, an underscore, and the words, Pre-process. For example, if you are applying a pre-process code to Document1, the canvas is titled, Document1_Pre-Process.

3. In the Procedure View panel, right-click the procedure folder, point to New, and click the nameof a procedure component.

430 WebFOCUS

Utilities Tab

Page 431: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

4. Create your component, save, and close it.

5. When you are prompted to save the pre-process code changes, click Yes.

Now, you can add components to the document that will use the pre-process code.

How to Add the Post-Process Component to a DocumentProcedure:

After you have added components to your Document, you can apply a post-process code thatremoves the pre-process code when the procedure is run. For example, if you apply a Join pre-process code, add a report, a chart and format the Document, you can apply a post-process codethat removes the Join when the procedure is run.

1. On the Utilities tab, in the Files Utility group, click Post-process code.

A new canvas and the Procedure View panel open. The new canvas will show the documentname, an underscore, and the words, Post-process. For example, if you are applying a post-process code to Document1 the canvas will be, Document1_Post-Process.

2. In the Procedure View panel, right-click the procedure folder, point to New, and click the nameof a procedure component.

3. Click OK.

4. When you are prompted to save the post-process code changes, click Yes.

View Group

The View group allows you to display or hide the panels associated with a document or activedashboard. The View group is shown in the following image.

The commands are:

Properties

Toggles the visibility of the Properties panel.

Settings

Toggles the visibility of the Settings panel.

WebFOCUS App Studio Reference Guide 431

6. Creating Documents in WebFOCUS App Studio

Page 432: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Thumbnails

Toggles the visibility of the Thumbnails panel.

Thumbnails Panel

The Thumbnails panel contains a preview of what is currently on the canvas. The Thumbnailspanel is available when you are using the HTML or Document canvas. The Thumbnails panel ishidden by default. You can display the Thumbnails panel using the View group, on the Utilitiestab.

For more information on customizing the Thumbnails panel, see Using the Panel CustomizationOptions on page 141.

432 WebFOCUS

Thumbnails Panel

Page 433: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating Charts in WebFOCUS App Studio7Chapter

In App Studio, you can create and edit charts using the Chart canvas. When you create anew chart, you use the Chart Wizard.

This topic describes how to launch the Chart Wizard to create charts.

In this chapter:

Launching the Chart Wizard

Launching the Chart Wizard

The Chart Wizard allows you to create a new chart procedure or SQL chart procedure, and openan existing report.

To open the Chart Wizard:

On the Home tab, in the Content group, click Chart.

In the Environments Tree panel, right-click an application folder, point to New, and click Chart.

Note: If you choose to create a new chart using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Chart Wizard. You will not have to specifywhether you are creating a chart or SQL chart. You will instead be brought to the Select aData Source screen, with the location for your chart already selected.

WebFOCUS App Studio Reference Guide 433

Page 434: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Chart Wizard opens, as shown in the following image.

From the Chart Wizard, you can open a recent procedure, search for an existing procedure, createa new chart or SQL chart procedure, and access documentation resources.

How to Create a Chart Using the Chart WizardProcedure:

After you launch the Chart Wizard, you can begin to create your chart procedure.

Note: If you choose to create a new chart using the shortcut menu in the Environments Treepanel, you will skip the first screen of the Chart Wizard. You will not have to specify whetheryou are creating a chart or SQL chart. You will instead be brought to the Select a Data Sourcescreen, with the location for your chart already selected.

1. Click Create Chart.

2. Navigate to where you want to create the new procedure and select a data resource.

3. Click Finish.

The Chart canvas opens.

434 WebFOCUS

Launching the Chart Wizard

Page 435: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

4. Double-click fields in the Data Panel to add them to the chart.

You can use the features and functions on the ribbon that is located in the Chart canvas toformat the chart.

5. To save your chart, click the Save button on the App Studio Quick Access Toolbar, or selectSave from the Application menu.

6. To run your chart, click the Run button on the App Studio Quick Access Toolbar.

How to Create an SQL Chart From an External .sql FileProcedure:

After you launch the Chart Wizard, you can begin to create your SQL chart procedure.

Note: If you choose to create a new SQL chart using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Chart Wizard. You will not have to specifywhether you are creating a chart or SQL chart. You will instead be brought to the Select a DataSource screen, with the location for your chart already selected.

1. Select Create SQL Chart. The SQL Chart Wizard - Welcome window opens.

2. Click the Included from an external ‘.sql’ file option. This enables you to browse and selectexternal procedures that exist in the repository of the project.

3. Click Next. The SQL Chart Wizard - Data access information window opens.

4. In the Select database engine area, select a database from the drop-down list.

5. In the Select connection area, choose a connection from the drop-down list generated fromthe engine you selected.

6. Click Next. The SQL Chart Wizard - Include external SQL file window opens.

7. Click Browse to select an external SQL file name or type the external SQL file name in thefield.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit.

8. Click Next. The SQL Chart Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Chart Wizard - SQL Data Source window.

9. Navigate to where you want to create the new procedure.

10. In the Enter a Procedure Name field, type a name for the SQL chart.

WebFOCUS App Studio Reference Guide 435

7. Creating Charts in WebFOCUS App Studio

Page 436: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Typing a procedure name is not required to create a new chart. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

11. Click Select Styling if you want to edit the style sheet for the chart.

12. Click Finish.

The Chart canvas and the Procedure View panel open. You can now add data to your chartand format the data using the tabs in the ribbon.

How to Pass SQL Commands to the RDBMS Using SQL PassthruProcedure:

After you launch the Chart Wizard, you can begin to create your SQL chart procedure.

Note: If you choose to create a new SQL chart using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Chart Wizard. You will not have to specifywhether you are creating a chart or SQL chart. You will instead be brought to the Select a DataSource screen, with the location for your chart already selected.

1. Click Create SQL Chart. The SQL Chart Wizard - Welcome window opens.

2. Click Type SQL statements in the chart request. This enables you to type SQL commands thatwill be passed on to the RDBMS with the SQL Passthru feature.

3. Click Next. The SQL Chart Wizard - Data access information window opens.

4. In the Select database engine area, select a database from the drop-down list.

5. In the Select connection area, choose a connection from the drop-down list generated fromthe engine you selected.

6. Click Next. The SQL Chart Wizard - Enter SQL statements window opens.

7. In the field box, type the SQL statements you want to pass to the RDBMS.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit.

8. Click Next. The SQL Chart Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Chart Wizard - SQL Data Source window.

9. Navigate to where you want to create the new procedure.

10. In the Enter a Procedure Name field, type a name for the SQL chart.

436 WebFOCUS

Launching the Chart Wizard

Page 437: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Typing a procedure name is not required to create a new chart. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

11. Click Select Styling if you want to edit the style sheet for the chart.

12. Click Finish.

The Chart canvas and the Procedure View panel open. You can now add data to your chartand format the data using the tabs in the ribbon.

How to Import SQL Commands From an Existing .sql FileProcedure:

You can import commands from existing .sql files.

Note: If you choose to create a new SQL chart using the shortcut menu in the EnvironmentsTree panel, you will skip the first screen of the Chart Wizard. You will not have to specifywhether you are creating a chart or SQL chart. You will instead be brought to the Select a DataSource screen, with the location for your chart already selected.

1. Open the Chart Wizard and click Create SQL Chart. The SQL Chart Wizard - Welcome windowopens.

2. Click Import from an existing ‘.sql’ file and click Next. This enables you to modify SQL codeafter importing it from an external file to the procedure being built. You can modify the requestusing bits of the code.

3. The SQL Chart - Data access information window opens. In the Select database engine area,select a database from the drop-down list.

4. In the Select connection area, choose a connection from the drop-down list generated fromthe engine you selected.

5. Click Next. The SQL Chart Wizard - Import external SQL file window opens.

6. Type the SQL file name that you want to import or click Browse to select it.

Optionally, you can run with limited records by clicking Run SQL. By default, the Run withlimited records check box is selected so you can test your procedure with a read limit if theengine supports it. There is a field box next to the check box in which you can enter thenumber of records to be read. 100 is the default limit. You can edit these options here orin the next step.

7. Click Next. The SQL Chart Wizard - Enter SQL statements window opens.

8. In the field box, type the SQL statements you want to pass to the RDBMS.

WebFOCUS App Studio Reference Guide 437

7. Creating Charts in WebFOCUS App Studio

Page 438: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

9. Click Next. The SQL Chart Wizard - Summary of SQL options window opens. Review youroptions and click Next, which opens the Chart Wizard - SQL Data Source window.

10. Navigate to where you want to create the new procedure.

11. In the Enter a Procedure Name field, type a name for the SQL chart.

Note: Typing a procedure name is not required to create a new chart. If you do not typea procedure name in the Enter a Procedure Name field, a default procedure name will beprovided until you save the procedure.

12. Click Select Styling if you want to edit the style sheet for the chart.

13. Click Finish.

The Chart canvas and the Procedure View panel open. You can now add data to your chartand format the data using the tabs in the ribbon.

438 WebFOCUS

Launching the Chart Wizard

Page 439: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating Visualizations in WebFOCUS AppStudio

8Chapter

In App Studio, you can create and build visualizations.

This topic describes how to create visualizations.

In this chapter:

Creating Visualizations

Creating Visualizations

Visualizations centralize information by providing different views of data that are pertinent to aparticular objective. For example, reviewing trends or fluctuations in data over a period of timeor within a region. A visualization provides you with a quick glance of information on a singlescreen. Visualizations support the use of different types of charts, maps, and grids. For example,you may want to use a bar, pie, and line chart to show different views of the same data.Alternatively, you may want to offset a particular visual by showing other types of related datathat employ a different type of visual. You can also add a text cell to your visualization to provideexplanatory text or information that other users can reference. Visualizations allow you to monitorchanges in data. They also serve to provide information in real-time, based on changes inunderlying data or other components. A visualization can be updated, changed, or revised at anytime to account for shifts in data needs.

To access the online Help for visualizations, click the InfoDiscovery Help icon , located in theupper-right corner of the InfoDiscovery Workbench.

How to Create a New VisualizationProcedure:

1. From the Content node in the Environments Tree panel or Environments Detail panel, right-clicka folder, point to New, and click Visualization.

2. Select a Master File from the list and click Open.

WebFOCUS App Studio Reference Guide 439

Page 440: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS InfoDiscovery Workbench opens, as shown in the following image, whereyou can create charts, maps, and grids to visually represent your data.

440 WebFOCUS

Creating Visualizations

Page 441: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating and Editing Metadata inWebFOCUS App Studio

9Chapter

A Master File describes the data source from which you are reporting. Metadata is a mapof the data source and all of the fields. Metadata, also known as a Master File, candetermine what fields are in the data source, what they are named, and how they areformatted. You can also determine how the fields in the data source relate to each other.To begin creating a Master File, you use the Data Source Definition Wizard, which guidesyou through the steps that you need to follow to open recently used Master Files, create anew Master File, or edit an existing Master File.

You use the Metadata canvas, and the available tab and panels, to develop your MasterFile.

In this chapter:

Launching the Data Source Definition Wizard

Creating and Editing Synonyms

Metadata Tab

Metadata Canvas View Tabs

Business View Panel

Dimension Builder Panel

Using the Metadata Shortcut Menu

Launching the Data Source Definition Wizard

The Data Source Definition Wizard allows you to open recently used Master Files, create a newMaster File, or edit an existing Master File.

To open the Data Source Definition Wizard, on the Home tab, in the Content group, click Data,and then click Synonym via Metadata Canvas.

WebFOCUS App Studio Reference Guide 441

Page 442: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Data Source Definition Wizard opens, as shown in the following image.

From the Data Source Definition Wizard, you can open a recent Master File, create a new MasterFile, or open and edit an existing Master File.

Creating and Editing Synonyms

In App Studio, you create new synonyms and edit existing synonyms using the Metadata canvas.You can access the Metadata canvas through the Data command, in the Content group, on theHome tab.

442 WebFOCUS

Creating and Editing Synonyms

Page 443: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Data Source Definition Wizard allows you to open a recently used Master File, create a newMaster File, or edit an existing Master File.

If you click Create New Synonym, the Select Application pane of the Data Source Wizard isdisplayed. Select a location to create your synonym and click Finish to open the Metadata canvas.

If you click Open Existing, the Select Data Source pane of the Data Source Wizard is displayed.Select a data source to edit and click Finish to open the Metadata canvas.

WebFOCUS App Studio Reference Guide 443

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 444: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Metadata canvas and Metadata tab open, as shown in the following image.

Once in the Metadata canvas, you can begin creating a new data source, if you clicked NewSynonym, or, you can edit your existing data source, if you clicked Open Existing.

Metadata Tab

You can use the Metadata tab to edit or create synonyms. You can undo or redo actions,manipulate selections of data, find and edit text, switch to different view tabs, insert notes, rundifferent reports, and switch between different view modes. The Metadata tab is shown in thefollowing image.

444 WebFOCUS

Metadata Tab

Page 445: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Undo/Redo Group

You can undo and redo actions. The Undo/Redo group is shown in the following image.

The commands are:

Undo

Undoes the last action.

Redo

Restores a previously undone action.

Clipboard Group

You can delete, cut, copy, and paste sections from the canvas. The Clipboard group is shown inthe following image.

The commands are:

Delete

Deletes your selection.

Cut

Cuts your selection.

Copy

Copies your selection.

Paste

Pastes from your clipboard to the designated area.

WebFOCUS App Studio Reference Guide 445

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 446: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Editing Group

You can find specific text, select the entire canvas, replace specific text, and move to a specificpoint in the canvas. The Editing group is shown in the following image.

The commands are:

Find

Finds specified text.

Find Next

Finds the next instance of specified text.

Find Previous

Finds the previous instance of specified text.

Select All

Selects the entire canvas.

Replace

Replaces the specified text with different text.

Go To

Moves your view of the canvas to the specified area.

View Group

You can switch between the different views and switch Aerial view on or off. For more information,see Using the Metadata Shortcut Menu on page 465. The View group is shown in the followingimage.

446 WebFOCUS

Metadata Tab

Page 447: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Field

Switches to the Field View. For more information, see Field View Tab on page 457.

Segment

Switches to the Segment View. The Segment View shows the segments that the synonymcontains.

List

Switches to the List View. The List View shows a list of objects on the left, with the attributesand values of the selected item on the right.

When you right-click a column heading in the List View, a shortcut menu provides options tosort the display based on ascending or descending column values. The display can be sortedby any column.

Modeling View

Switches to the Modeling View. For more information, see Enhancing Synonyms Using theModeling View on page 458.

Text View

Switches to the Text View tab.

You can print the Master File code by selecting Print from the Application menu, performsearch operations, and even make changes.

Access File Text View

Switches to the Access File Text View tab.

The Access File Text View shows the description of the Access File for a synonym, which isused to access the database.

Note: You can print the Master File code by selecting Print from the Application menu,performing search operations, and making changes, if necessary.

Aerial View

Switches between showing and hiding Aerial view.

WebFOCUS App Studio Reference Guide 447

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 448: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Insert Group

You can insert a node. The Insert group is shown in the following image.

The command is:

Insert

Allows you to insert a note. You can insert a Reference to Existing Synonym, Copy of ExistingSynonym, Segment via Metadata Import, Segment Manually, DBA, Field, Define, Filter,Compute, Group, Sort Object, Variable, or a Style.

Default DV/DB

Creates the default Dimension View and Business View folders.

Reports Group

You can run a Sample Data report, Data Profiling report, or Impact Analysis report. The Reportsgroup is shown in the following image.

The commands are:

Sample Data

Displays sample data for the selected segment or synonym.

Data Profiling

Runs a Data Profiling report.

Impact Analysis

Runs an Impact Analysis report for the particular column in the workspace. An Impact Analysisreport identifies the procedures that access a Master File or field within a Master File.

448 WebFOCUS

Metadata Tab

Page 449: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Viewing Data Profiling Characteristics

Data Profiling provides data characteristics for the columns in a synonym. You can display thecharacteristics for all the columns in a synonym or segment, or for an individual column.

For alphanumeric columns, Data Profiling provides the segment, format, count of distinct values,total count, patterns count, maximum, minimum, and average length, minimum and maximumvalues, and number of nulls. Patterns count shows the number of patterns found in eachalphanumeric column.

For numeric columns, Data Profiling provides the segment, format, count of distinct values, totalcount, maximum, minimum, and average values, and number of nulls.

Data Profiling for an individual column provides access to Statistics, Patterns, Values, and Outliersreports.

Data Profiling a Synonym or Segment

Data Profiling provides information on all the columns in a synonym or segment. You can alsodrill down to the Values or Patterns reports for an individual column from a synonym or segmentData Profiling report.

How to View Data Profiling for a Synonym or SegmentProcedure:

To view the Data Profiling information for a synonym or segment:

1. Select a synonym or segment name. Next, click Data Profiling from the Report group andclick Statistics or right-click the synonym or segment name, select Data Profiling, and thenStatistics.

The Data Profiling information displays in the workspace. The last four columns are shownbelow the rest of the information for illustrative purposes only. The actual report runs acrossthe workspace.

You may use the Data Profiling Results toolbar to view server messages, print the report,copy data as text, and export the report.

2. Optionally, you can click a column name or patterns count (for alphanumeric columns) todrill down to the Values or Patterns reports, respectively.

This is a partial Values report produced by clicking a column name.

For pattern analysis, a 9 represents a digit, an A represents any uppercase letter, and an arepresents any lowercase letter. All printable special characters are represented by themselvesand unprintable characters are represented by an X.

WebFOCUS App Studio Reference Guide 449

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 450: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tools Group

You can switch between showing or hiding the Properties, DBA, Dimension Builder, and BusinessView panels. You can also recreate the default Dimension View and Business View folders andedit the user options. The Tools group is shown in the following image.

The commands are:

Properties

Switches between showing and hiding the Properties panel.

Quick ETL Copy

Generates a simple Data Flow without using the Data Flow designer. For the selected tables,all rows and columns are copied to new tables.

Although no transformations or where conditions are generated, the Data Flow can still beopened as such and additional criteria can be added.

DBA

Switches between showing and hiding the DBA panel.

Dimension Builder

Switches between showing and hiding the Dimension Builder panel. For more information,see Dimension Builder Panel on page 464.

Business View

Switches between showing and hiding the Business View panel. For more information, seeHow to Create a Business View Using the Metadata Canvas on page 461.

Options

Allows you to edit the user options. When you click Options from the Tools Group, the Optionsdialog box appears. It enables you to set preferences and customize the look of the Metadatacanvas.

Options Dialog Box

Click the Options button in the Tools group to open the Options dialog box.

450 WebFOCUS

Metadata Tab

Page 451: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Synonym Editor Options SettingsReference:

When you click Options from the Tools group. The options dialog box appears. It enables you toset preferences and customize the look of Synonym Editor.

The Synonym Editor settings page has the following fields and options:

Use application directory name with synonym

If this check box is selected, an application directory name is used when you select a synonymname for both referencing an existing synonym and a transformation with db_lookup.

Undo/Redo Limit

Specifies the maximum number of undo/redo operations allowed in the Synonym Editor.

Support extended options

If this check box is selected, both the Sort objects and Styles folders appear when you edita synonym.

Automatically detect new segment relations

When you create a new synonym in the modeling view of the Synonym Editor with theAutomatically detect new segment relations option selected and select or drag these threetables into the work area (modeling view). The relationships (joins) will automatically becreated for you based on the foreign key information in the access file.

Automatically arrange segments/folders in Modeling View

If you select or drag multiple or individual tables while in Modeling View, they will beautomatically arranged for you.

Show parent segments in Join Editor

If this check box is selected, it controls whether or not columns in parent segments aredisplayed in the Join Editor for a cluster join or a synonym that references or includes, othersynonyms.

Default Join Type

Sets the default Join type.

One-to-Many. This join indicates a multiple instance (one-to-many) type of join. At runtime, each host record can have many matching records in the cross-referenced file. JoinAll is the default option.

WebFOCUS App Studio Reference Guide 451

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 452: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

One-to-One. This join indicates a single instance (one-to-one) type of join. At run time,each host record has, at most, one matching record in the cross-referenced file.

Modeling View Line Colors list box

Allows you to set colors for connector lines in the modeling view.

Default. Changes the color lines in the modeling view.

Highlighted. Changes the color of the highlighted lines in the modeling view.

No keys. Changes the color of lines with no keys in the modeling view.

Reset Colors

Restores the default colors.

Synonym Editor Format Options SettingsReference:

The Format pane is available from the Options dialog box. To open the Options dialog box, selectOptions from the Tools group. Expand the General node, and select Format.

The Fonts section has the following fields and options.

Category

Allows you to set the font for text in the process flow workspace, reports, text views, and logviews.

Font

Launches a dialog box for specifying font settings.

Reset font to defaults

Restores the default fonts.

Synonym Editor Column Management SettingsReference:

Column Management user preferences enable you to choose which columns to display on thegrids for transformations, column selection, joins, and sorts. You can also set the column displayorder. The settings apply to all column-related dialog boxes.

The Column Management pane is available from the Options dialog box. To open the Optionsdialog box, select Options from the Tools group. Expand the General node, and select ColumnManagement.

452 WebFOCUS

Metadata Tab

Page 453: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Column Management pane has the following fields and options:

Customize column display

Lists the column-related dialog boxes that can be customized. Expanding a folder will displaycheck boxes that can be used to add columns to each dialog box.

Reset to default

Restores the default values.

Column Name Display Strategy

Controls the information that appears in trees and grids. The available options are Name,Title, Description, and Alias. If no Title, Description, or Alias exists, the display will defaultto the Name.

Note: It is recommended that you use Title when working with Business Views.

Expand any of the available Customize column display options to see default settings. Not allcolumns are on every grid. The following columns can be added:

Alias

Assigns an alternative name for a column or the real column name for a DBMS synonym.

Application

Indicates the application where the synonym resides.

Belongs To Segment

Shows the parent segment.

Connection

Indicates the adapter connection name used.

Data Origin

Indicates the date the synonym was created.

Datetime Modified

Indicates when the synonym was last modified.

Description

Is a description or comments about the column.

Expression

Is the expression for the column.

WebFOCUS App Studio Reference Guide 453

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 454: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Extension

Indicates the suffix (data source type) of the synonym.

Field Type

Indicates that a column is an index (I) or is read-only.

Format

Is the type and length of a column data as stored.

Function

Indicates the name of the function.

Has Foreign Keys

Indicates that the synonym includes foreign keys.

Index

Indicates an index column.

Join Conditions

Indicates the conditions for the join.

Join Parent

Indicates the parent of the join.

Join Strategy

Indicates strategy for the join.

Keys

Indicates the keys in the synonym.

Length

Is the column length.

Nulls

Indicates whether or not the column can contain null data.

Number of Segments

Indicates the number of segments in the synonym.

Order

Indicates the order of the column in the segment.

454 WebFOCUS

Metadata Tab

Page 455: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Prefix

Indicates a prefix for the column.

Primary Key Tables

Indicates the primary key for the synonym.

Property

Indicates whether the column is an attribute or a measure.

Real Table Name

Indicates the actual name of the table or the physical file name.

Reference

Indicate a reference for the column to an index column.

Scale

Is the maximum number of digits to the right of the decimal.

SCD Type

Used for processing slowly changing dimensions.

Segment

Indicates the parent segment.

Size

Indicates the size of the synonym.

Source

Indicates the source of the synonym.

SQL Conversion Notes

Indicates how SQL is converted.

Table

Is the synonym that contains the column.

Title

Supplies a title to replace the column name normally used in reports.

Type

Is the type of object in an application directory.

WebFOCUS App Studio Reference Guide 455

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 456: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following columns are available from each column display option. The default columns areshown in bold.

Business View Editor.

Belongs to Segment, Format, Expression, Description, Nulls, Segment, Type, Length,Scale, Alias, Title, SCD Type, Field Type, Index, Order, Property, Reference.

Calculator Functions.

Format, Description, SQL Conversion Notes.

Calculator Source.

Table, Format, Description, Nulls, Prefix, Segment, Type, Expression, Length, Scale, Alias,Title, SCD Type, Field Type, Index, Order, Property, Reference.

You can change the display order of the columns by moving them up or down using the arrows.

Synonym Editor Traces Options SettingsReference:

Trace option settings enable you to configure tracing for the server.

You can enable tracing for all components, default components, or a set of custom components.Trace output can be directed to the Web Console log (etlgprint.log), or to the tscom3.trc orconnection.trc trace files.

Synonym Editor Run Options SettingsReference:

Run Options user preferences include determining the number of rows and columns to retrieve,as well as the default format when sampling data.

The Run Options settings window has the following fields and options:

Maximum number of rows for test reports

Sets the number of rows retrieved to produce sample data when testing transformations orSQL. The default is 50.

Maximum number of columns for test reports

Sets the number of columns retrieved to produce sample data when testing transformationsor SQL. The default is to retrieve all columns (with a highest value setting of 999999).

Test reports default format

Sets the format of reports for retrieving sample data when testing transformations or SQL.The default is Default. There are seven report formats available:

456 WebFOCUS

Metadata Tab

Page 457: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Default. Formats numeric and date columns based on edit options in the synonym.

HTML. Produces the report in HTML format.

HTML - Plain Text. Produces the report in plain text format.

active report. Produces an HTML active report designed for offline analysis.

Excel. Produces the report in Excel format.

PDF. Produces the report in PDF format.

Unformatted. Does not apply formatting to numeric and date columns.

Stop after DBMS error

Sets the number of DBMS-related errors allowed before the server stops running the procedure.

Metadata Canvas View Tabs

You can switch to different views in the Metadata canvas to edit different aspects of your datasource more efficiently.

Field View Tab

The Field View tab is accessible when you are creating or editing a synonym. From this tab, youcan see a table with all available fields. This is the default view tab when you are creating orediting a synonym.

Segment View Tab

The Segment View tab is accessible when you are creating or editing a synonym. The SegmentView tab shows the segments that the synonym contains.

List View Tab

The List View tab is accessible when you are creating or editing a synonym. The List View tabshows the fields in list form, with their properties displayed next to their name.

Modeling View Tab

The Modeling View tab is accessible when you are creating or editing a synonym. The ModelingView tab shows a graphical representation of the synonym. You can use the Modeling View tabto define dimensions for OLAP analysis, view Join properties, create cluster Joins, and add oredit segments.

WebFOCUS App Studio Reference Guide 457

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 458: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Text View Tab

The Text View tab is accessible when you are creating or editing a synonym. The Text View tabshows the Master File in a text editor. You can manually edit the file from this tab.

Access File Text View Tab

The Access File Text View tab is accessible when you are creating or editing a synonym. TheAccess File Text View tab shows the description of the Access File for a synonym, which is usedto access the database.

Enhancing Synonyms Using the Modeling View

The Metadata canvas Modeling View tab provides a visual presentation for the synonym for whichpositioning is preserved and stored in the Access File. Use the Modeling View to define dimensionsfor OLAP analysis, view join properties, create cluster joins, and add or edit segments.

Note: The Modeling View is not available for Cube data sources.

How to Enhance Synonyms Using the Modeling ViewProcedure:

Use the Modeling View to enhance a synonym by adding a segment.

1. Click the Modeling View button in the View Group.

2. Right-click a segment in the workspace.

3. Insert segments through one of the methods listed:

Reference to Existing Synonym adds an existing synonym as a segment to the currentsynonym.

Copy of Existing Synonym enables you to add a table as a segment from an existingsynonym.

Segment via Metadata Import enables you to add segments by using the Create Synonymtool. This tool creates a synonym and includes it as a segment in the synonym from whichthe tool was launched.

Segment Manually enables you to add segments manually to the current synonym.

How to Edit Synonyms Using the Modeling ViewProcedure:

To edit synonyms using Modeling View:

1. Right-click a segment icon in Modeling View.

458 WebFOCUS

Metadata Canvas View Tabs

Page 459: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A shortcut menu appears, providing options for adding segments.

Note: Options for adding segments are also available from the icons above the workspace.

To insert a segment from an existing synonym:

a. Select Insert, then Reference to Existing Synonym from the shortcut menu.

The Insert Reference to Existing Synonym as Child dialog box opens.

Columns can be customized and sorted. Synonyms displayed in this dialog box are basedon the Reporting Servers APP Path configuration.

b. Click a synonym and click Select.

The segment is added to the synonym.

To insert a segment via Metadata Import:

a. Select Insert, then Segment via Metadata Import from the shortcut menu.

This method enables you to launch the Create Synonym tool, create a synonym, andincorporate it as a new segment in the synonym from which you initiate the import.

b. When this option is selected, you are first presented with the Select Adapter dialog boxwhere you can select a configured adapter connection to continue or configure a newadapter, if necessary, as the following example demonstrates.

The segment is added to the synonym.

To insert a segment manually:

a. Select Insert, then Segment Manually.

The segment is added to the Modeling View and a default field is created, using a defaultsegment name.

b. Attributes for the new segment or segments can be modified in the Modeling View tabthrough the Properties window or from the other views.

Modeling View Shortcut Menu

When you right-click a synonym or segment in the Metadata canvas Modeling View tab, a shortcutmenu appears.

WebFOCUS App Studio Reference Guide 459

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 460: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The shortcut menu has the following options:

Collapse Segment

Changes the view from a file icon to a table view, which enables you to see columns, sampledata, and sample data parent keys.

Tip: You may also double-click a file icon to open the table view. Double-click the table toclose the table view, or click the X button from the toggle toolbar to close.

Join Properties

Provides access to the Join Properties window.

Data Profiling

Provides the characteristics of the data for a segment.

Sample Data

Displays sample data in the workspace.

Sample Data with parent key

Displays sample data with parent key in the workspace.

Insert

Reference to Existing Synonym. Enables you to reference an existing synonym as asegment to the current synonym.

Copy of Existing Synonym. Copies an existing synonym to the current synonym.

Segment via Metadata Import. Enables you to create a new synonym through the CreateSynonym tool and add it to the current synonym.

Segment Manually. Inserts a segment to the current synonym, that must by codedmanually.

Delete

Deletes the segment.

Rename

Enables you to rename the segment.

460 WebFOCUS

Metadata Canvas View Tabs

Page 461: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Join Editor Dialog Box

When you right-click a segment and select Join Properties, the Join Editor dialog box appears.

The Join Editor dialog box contains Left and Right Source columns, Join Type, and Join Conditionoptions, as well as One-to-Many and One-to-One choices. Use the left and right source columnsto create join maps and view sample data.

Business View Panel

By defining a Business View of a Master File, you are creating an alternative view of the MasterFile and can limit the fields available or create a subset of fields from the original Master File.Fields can be grouped into meaningful folders. Field names, titles, and descriptions can becustomized for each Business View.

Fields in a Business View are organized into folders. Each folder contains a group of fields. Thefields in a folder can come from different segments in the original Master File. The Business Viewmay contain existing fields and can include existing custom fields for DEFINE, COMPUTE, andFilters. Custom fields are associated with a specific segment in the original Master File and aresubject to the same rules as real fields. A report can reference fields from multiple folders if theyall lie along a single path in the original Master File.

When opening a Master File in the Synonym Editor and clicking the Business View button on thetoolbar, a Business View pane opens inside the Synonym Editor where Business View attributescan be added. Adding Business View attributes at this point would update the Master File byinserting the Business View attributes at the end of the file, and once the file is saved, theBusiness View becomes the active view when the file is used for reporting.

If you do not wish to turn your Master File into a Business View, it is recommended that you savethe Business View using a different name or preferably start by creating a new Master File byselecting New, then Synonym via Metadata Canvas. Then, insert a reference to an existing synonymand continue to build the Business View. In this case, the Business View points to the cross-referenced Master File, and all of the actual fields and security information comes from thereferenced file when the Business View is used in WebFOCUS tools (such as Joins and Defines)and in reports.

You may create a Business View for an existing Master File by using the Synonym Editor.

How to Create a Business View Using the Metadata CanvasProcedure:

1. From the Content group, click Data and then click Synonym via Metadata Canvas. Select amaster file and click OK.

2. Right-click a segment, select Insert, and then Reference to Existing Synonym.

WebFOCUS App Studio Reference Guide 461

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 462: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. From the Insert Reference to Existing Synonym dialog box, select the synonym for which youwant to create a Business View.

The referenced file is added to the new synonym and its fields are visible in the left frame.

4. Select Business View from the Tools group to open the Business View panel.

Note: A Business View Master File may contain only one root folder.

Tip: Right-click a node in Business View and select Properties to open the Properties paneland view additional information for items selected in the Business View pane. Use theProperties pane to change titles, descriptions, or field names. Items that cannot be editedare grayed out.

5. In the Business View panel, right-click the file name and select Create Default Business Viewor New Folder.

The Create Default Business View option duplicates the segments and fields that are availablein the Master File. You can reorganize the view as necessary. The New Folder option createsa root folder to which you can add fields from the Master File on the left pane by selectingthem and then dragging them inside the folder. You can create additional folders to createthe structure you want.

6. To add additional folders for the Business View, right-click the Business View root folder thatwas created in the Business View pane and select New Folder.

Note: Multiple subfolders can be created and folders may be empty for organizationalpurposes.

7. Select fields from the Master File on the left and drag them to the appropriate folder in theBusiness View pane. Press the Shift or Ctrl key while selecting multiple fields.

Note: If needed, fields may be duplicated by placing them in multiple folders, but anygiven folder may contain a field only once.

The selected fields appear in the Business View pane.

Usage Notes for Business ViewsReference:

When creating a Business View using a referenced Master File:

The detailed information about fields, such as USAGE and ACTUAL formats or indexesremain in the referenced Master File.

462 WebFOCUS

Business View Panel

Page 463: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

All information about Cluster Master Files remain in the referenced Master File.

DBA attributes specified in the referenced Master File are respected by the Business Views

When a Master File contains more than one field with the same name, as can occur whenfiles are joined, the BELONGS_TO_SEGMENT attribute identifies which instance of the fieldname is being referenced in the Business View.

Folders can be empty for organizational purposes. For example, Region can have empty folderscalled North, South, East, and West.

You can issue an SQL SELECT command against a Business View. However, a Direct SQLPassthru request is not supported against a Business View.

Business Views support alternate file views and fully qualified field names.

The SEG. operator against a Business View folder displays all of the fields in that folder, notall of the fields in the real segment.

Requests against a Business View cannot reference any fields or segments not in the BusinessView.

All HOLD formats are supported against a Business View.

All adapters for non-WebFOCUS data sources support retrieval requests against a BusinessView.

Business Views are not supported with data source maintenance commands, such as Maintainor REBUILD.

The referenced Master File or the Master File currently being used to create the BusinessView, may contain Defines, Computes, Filters, and other fields for use in the Business View.

Using a Business View Master FileReference:

When you use the Business View Master File with WebFOCUS tools and reports, the field formats,descriptions, and titles will be retrieved from the original Master File, unless they are customizedand a title and description is available through the Business View.

The Table List shows all available Master Files, including the Business Views, that are available.The Remarks column shows a description from the original Master File unless the Business Viewfile contains its own remarks.

WebFOCUS App Studio Reference Guide 463

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 464: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Dimension Builder Panel

The Dimension Builder enables you to create logical views based on enterprise data (relationalor legacy data sources) for multidimensional analysis without manually editing metadata. Youcan enable the Dimension Builder by selecting Dimension Builder from the Tools group.

How to Add a Parent/Child HierarchyProcedure:

1. From the Metadata canvas, click the Modeling View tab.

2. Click the Dimension Builder icon from the Tools group.

The Dimension Builder opens.

3. Click the Parent/Child Hierarchy icon from the Dimension Builder toolbar.

The Mandatory Properties for Parent/Child Hierarchy dialog box opens.

4. Select a field from the Field Tree and click Assign to assign a Unique ID for the hierarchy.

5. Repeat step 4 for the Caption and Parent hierarchy properties.

6. Click OK to close the Mandatory Properties for Parent/Child Hierarchy dialog box.

The Mandatory Properties are added to the Dimension Builder.

7. Use the right-click menu to rename the dimension, view properties, or view sample data forthe dimension.

How to Delete a DimensionProcedure:

To delete a dimension, right-click a dimension and select Delete, or click the Delete button fromthe Dimension Builder toolbar.

How to Add Levels to the HierarchyProcedure:

This process enables you to edit an existing Master File, add tables (for non-WebFOCUS MasterFiles), and create and modify dimensions.

1. From the Synonym Editor, click the Modeling View tab.

2. Select the Levels Hierarchy button from the Dimension Builder toolbar.

A level is added to the hierarchy. Use the right-click menu to rename the dimension or keepthe default name.

3. Drag the selected fields from a segment into the Dimension Builder hierarchy folder.

464 WebFOCUS

Dimension Builder Panel

Page 465: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You may also drag the fields to and from other hierarchies using the Dimension Builder.

Dimension Builder Panel ToolbarReference:

You can access the following commands from the Dimension Builder toolbar.

DefinitionButton

Adds a level hierarchy.

Enables you to create a parent/child hierarchy and assign mandatoryproperties for the hierarchy.

Deletes the selected item.

Enables you to view and refresh sample data for the selected field.

Enables you to edit a hierarchy.

Using the Metadata Shortcut Menu

When you right-click a segment in the Metadata canvas, a shortcut menu appears. This menu isavailable from the Field View and Segment View tabs.

The following options are available:

Properties

Opens a pane showing the properties of the selected segment.

Insert

Enables you to insert one of the following:

Reference to Existing Synonym

Adds a reference pointer from the current synonym to an existing synonym. The selectionlist will show candidate synonyms. If you subsequently make changes to the sourcesynonym, reopening the current synonym will reflect those changes.

Default DV/BV

Creates Dimension View or Business View folders.

WebFOCUS App Studio Reference Guide 465

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 466: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Copy of Existing Synonym

Adds a static copy of an existing synonym to the current synonym. If you subsequentlymake changes to the source synonym, the current synonym will not reflect those changes.

Segment via Metadata Import

Enables you to create and add a new synonym to the current synonym through the CreateSynonym tool.

Segment Manually

Inserts a synonym that must be coded manually.

Field

Inserts a general column to the segment.

Define

Inserts a virtual or defined column to the segment.

Filter

Inserts a filter to the segment.

Compute

Inserts a calculated value to the file.

Group

Inserts a group column to the segment.

Variable

Inserts a variable name that can be used for a Synonym/Access File parameter.

Data Profiling

Provides the characteristics of the data for a segment.

Data Profiling is available from the right-click shortcut menu for all columns in the MasterFile hierarchy tree.

Sample Data

Displays sample data in the workspace for the selected segment or synonym.

Note: Sample data is a great way to test the synonym for field data and to view the typeof records returned. This can assist when performing Joins, testing connectivity to datasources, and so on.

466 WebFOCUS

Using the Metadata Shortcut Menu

Page 467: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Sample Data with parent key

Displays sample data for the selected segment joined to the parent segment. This option isonly available when a child segment is selected in a multisegment synonym.

Delete

Deletes the segment.

Rename

Enables you to rename the segment.

Join Properties

Opens the Join Editor so that you can specify how the selected segment is joined to theparent segment. This option is only available when a child segment is selected in amultisegment synonym.

WebFOCUS App Studio Reference Guide 467

9. Creating and Editing Metadata in WebFOCUS App Studio

Page 468: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

468 WebFOCUS

Using the Metadata Shortcut Menu

Page 469: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using the Text Editor Tab in WebFOCUSApp Studio

10Chapter

In App Studio, you can create, view, and edit the source code for procedures, procedurecomponents, and other types of files required by your projects.

This topic identifies the tab that is available when you are developing the source code forprocedures, procedure components, and other types of files.

In this chapter:

Text Editor Tab

Text Editor Tab

App Studio provides a fully integrated text editor that you can use to create, view, and edit thesource code for procedures, procedure components, and other types of files required by yourprojects.

You can access the Text Editor tab by selecting Procedure via Text Editor or Text Document in theNew dialog box, or by right-clicking a procedure in the Environments Tree panel and selectingOpen in Text Editor. You can also access the Text Editor tab by selecting the EmbeddedJavaScript/CSS view tab in the HTML canvas. Some commands are unavailable while in the TextEditor tab accessed through the Embedded JavaScript/CSS view tab. The Text Editor tab is shownin the following image.

In addition, you can:

Take advantage of color-coded syntax designed to make writing, editing, and debuggingprocedures easier.

Bookmark lines of a file for quick editing and easy reference.

Find and replace text.

Run procedures or procedure components directly from the Editor.

WebFOCUS App Studio Reference Guide 469

Page 470: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Find Group

The Find group contains options that enable you to find or replace text. The Find group is shownin the following image.

The commands in this group are:

Find

Finds the specified text. You can also use Ctrl+F to activate the Find dialog box.

Next

Finds the next instance of the specified text.

Previous

Finds the previous instance of the specified text.

Replace

Replaces specific text with different text.

Select All

Selects all of the text in the procedure.

Find Dialog BoxReference:

You can use the options on the Find dialog box to indicate how to search for information. TheFind dialog box is shown in the following image.

470 WebFOCUS

Text Editor Tab

Page 471: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The options in this dialog box are:

Find what

Provides a text box where you can specify the text that you want to find. Optionally, you canclick the arrow to select a search term or phrase that was previously specified.

Match whole word only

Select this option to match the whole word only.

Match case

Select this option to match the uppercase or lowercase value, as specified in the Find whatfield.

Regular expression

Select this option to use a regular expression, which is a pattern matching expression.Indicate the pattern in the Find what field and the Text Editor will look for anything thatmatches the pattern.

Direction

Select up or down to indicate the direction the Text Editor should search in.

Find Next

Allows you to find the next instance of your search term.

Mark All

Marks all instances of your search term in the Text Editor.

Cancel

Cancels the current search and closes the Find dialog box.

WebFOCUS App Studio Reference Guide 471

10. Using the Text Editor Tab in WebFOCUS App Studio

Page 472: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Find Dialog BoxReference:

You can use the options on the Find dialog box to indicate how to search for information. TheFind dialog box is shown in the following image.

The options in this dialog box are:

Find what

Provides a text box where you can specify the text that you want to find. Optionally, you canclick the arrow to select a search term or phrase that was previously specified.

Match whole word only

Select this option to match the whole word only.

Match case

Select this option to match the uppercase or lowercase value, as specified in the Find whatfield.

Regular expression

Select this option to use a regular expression, which is a pattern matching expression.Indicate the pattern in the Find what field and the Text Editor will look for anything thatmatches the pattern.

Direction

Select up or down to indicate the direction the Text Editor should search in.

Find Next

Allows you to find the next instance of your search term.

Mark All

Marks all instances of your search term in the Text Editor.

472 WebFOCUS

Text Editor Tab

Page 473: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Cancel

Cancels the current search and closes the Find dialog box.

Bookmarks Group

The Bookmarks group enables you to turn bookmarks on or off, find the next bookmark, find theprevious bookmark, and delete all bookmarks. The Bookmarks group is unavailable when youaccess the Text Editor tab through the Embedded JavaScript/CSS view tab, in the HTML canvas.The Bookmarks group is shown in the following image.

The commands are:

Toggle

Turns bookmarks on or off.

Next

Goes to the next bookmark.

Previous

Goes to the previous bookmark.

Delete All

Deletes all bookmarks.

Case/Comment Group

The Case/Comment group contains options for changing selected text to uppercase or lowercase.The Case/Comment group is unavailable when you access the Text Editor tab through theEmbedded JavaScript/CSS view tab, in the HTML canvas. The Case/Comment group is shownin the following image.

WebFOCUS App Studio Reference Guide 473

10. Using the Text Editor Tab in WebFOCUS App Studio

Page 474: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The commands are:

Upper

Changes the selected text to uppercase (all capital letters).

Lower

Changes the selected text to lowercase (all lowercase letters).

Change Case

Changes the case of the selected text to lowercase or uppercase depending on how theselected text appeared first. You can also change the case of selected text by using theshortcut menu, on the canvas, while text is selected.

Add Comment

Inserts a new comment line if your pointer appears on a new line or changes an active lineof text to a comment. You can also use the shortcut menu, on the canvas, to add a comment.

Remove Comment

Deletes the previous comment change. This option is similar to the Undo command on theQuick Access Toolbar. You can also use the shortcut menu, on the canvas, to remove acomment.

Options Group

The Options group contains commands that you can use to format the text in a procedure. TheOptions group is unavailable when you access the Text Editor tab through the EmbeddedJavaScript/CSS view tab, in the HTML canvas. The Options group is shown in the following image.

The commands are:

Font Style

Opens the Font and Color Settings dialog box from which you can modify the appearance ofthe syntax in a procedure.

Show Whitespace

Replaces spaces between characters with a visual indicator.

474 WebFOCUS

Text Editor Tab

Page 475: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Tab Size

Controls the number of spaces a tab character uses.

Tab Options

Provides the options to control tab characters. You can substitute spaces for tab charactersor keep tab characters in the syntax.

Auto Indent

Automatically indents the syntax within a procedure.

Reset All

Restores all options back to the default settings.

View Group

The View group allows you to display or hide the panels associated with an HTML Page or GuidedReport page. This group is accessible in the Utilities tab of the HTML canvas and in the TextEditor tab when accessing the Embedded JavaScript/CSS view tab. The View group is shown inthe following image.

The commands are:

Properties

Toggles the visibility of the Properties panel.

Settings

Toggles the visibility of the Settings panel.

Thumbnails

Toggles the visibility of the Thumbnails panel.

Tasks & Animations

Toggles the visibility of the Tasks & Animations panel.

Requests & Data sources

Toggles the visibility of the Requests & Data sources panel.

WebFOCUS App Studio Reference Guide 475

10. Using the Text Editor Tab in WebFOCUS App Studio

Page 476: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

476 WebFOCUS

Text Editor Tab

Page 477: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating Procedures in WebFOCUS AppStudio

11Chapter

In App Studio, you can develop multi-component procedures using the Procedure Viewpanel.

This topic explains the components that can make up a procedure and identifies theProcedure View panel.

In this chapter:

Procedure View Panel

Joins

Join Tab

Using Dialogue Manager

Use Qualified Path Command

Procedure View Panel

The Procedure View panel contains the panel customization commands, Procedure View toolbar,and the Procedure View tree. This panel displays all components in a procedure. You can addnew components to a procedure, such as Report, Define, Define Function, Chart, Set, Join, Use,Allocation, Olap Dimensions, or Match.

If a component in the procedure is open, a green arrow appears next to the component icon.

When a new procedure is created the Comment component opens automatically. In a previouslycreated procedure that is reopened, the last report component or chart component opensautomatically.

WebFOCUS App Studio Reference Guide 477

Page 478: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Procedure View panel is available when you create or open a procedure or report. TheProcedure View panel is shown in the following image.

For more information on customizing the Procedure View panel, see Using the Panel CustomizationOptions on page 141.

Procedure View Toolbar

The Procedure View toolbar contains the File Information button.

File Information

Displays information about the selected file, such as item position, file type, line count, andfile code.

Procedure View Tree

The Procedure View tree displays the components and folders associated with a procedure.

Open Folder Node

Displays different options depending on the selected component or components in theprocedure.

Procedure Contents Tree

Shows the components in a procedure.

478 WebFOCUS

Procedure View Panel

Page 479: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Components of a Procedure

A procedure is a .fex file that defines how data is retrieved and displayed. Procedures requestdata from the data source using a Master File to understand how the data is organized. Whenyou run a procedure, it executes a series of commands that process your data and transform itinto a readable output.

Procedures can consist of the following components:

Report

SQL Report

Define

Define Function

Chart

SQL Chart

Set

Join

Use

Include

Allocation

HTMLForm

Olap Dimensions

Match

Dialogue Manager

Other

You can add these components to new or existing procedures, and are responsible for the orderin which you add them. The following topics describe how these components modify a procedure.

Report

You can add a report to a procedure. In report mode you can create and style simple or complexreports, add data to the Report canvas, and style that data creating a graphical representationof the report page. This allows you to view how the report displays at run time.

WebFOCUS App Studio Reference Guide 479

11. Creating Procedures in WebFOCUS App Studio

Page 480: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Define

You can use the Define feature to create a virtual field as a component in a procedure.

Note: To enable the objects when creating a Define, click the New button.

A virtual field is evaluated on each retrieved record that passes any selection criteria on realfields. Define the virtual field by assigning a format and typing an expression, or composing itusing the calculator fields and functions. The result of the expression is treated as though it werea real field stored in the data source.

Define Function

You are able to create your own functions by using the Define Function Wizard. The Define FunctionWizard assists in the creation of a user function. The created functions can later be retrievedthrough the Function Arguments dialog box using the Retrieve User Functions button. By clickingRetrieve User Functions, your created functions will be available for use.

Chart

You can add a chart to a procedure. In chart mode, you can easily transform almost any type ofdata into effective, custom charts. You can create a variety of charts, such as bar charts, linecharts, scatter charts or pie charts to help users analyze data in a different way. You can includeselection criteria by defining parameters for your data. Additionally, you can apply drill-downcapabilities and conditional styling to highlight specific data on a chart.

The Chart canvas contains a ribbon of features and options that allow you to add and style thedata in your chart. Contextual tabs open within the Chart canvas, rather than on the App Studioribbon.

Set

You can add the Set component to a procedure to select Environment Parameters and customizethe procedures. The Set component controls the way that reports and charts appear on the screenor printer, the content of reports and charts, data retrieval characteristics that affect performance,and system responses to user requests. It also helps you set up your metadata and manipulateinformation, such as dates.

Join

If a report requires data from two or more related data sources, you can temporarily join the filesand report from them as if they were one. Joined files remain physically separate, but are treatedas one data source structure.

480 WebFOCUS

Procedure View Panel

Page 481: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Join component provides a graphical method for creating and manipulating all types of Joins.To create a Join you must specify a host file, and then a cross-referenced file. Both host filesand cross-referenced files are Master Files.

You create the Join as an component that is separate from any other component or procedure.You are responsible for placing the Join object in the correct position within your procedure, (thatis, before a Define, Report, or Chart), and running it. The Join remains active for the entire session,unless you explicitly clear it.

Use

When you access a WebFOCUS data file, WebFOCUS searches for a Master File with the specifiedfile name, and then searches for a data source with the same name. With the Use component,you can specify the name and location of a WebFOCUS data source.

You can apply the Use component to a procedure in App Studio when the default namingconvention is not used, the data source cannot be found in the standard search path, or anexplicit extra option is desired.

When you identify a WebFOCUS data source with the Use component, a Use directory is created,which is a list of data source definitions. When a Use directory is in effect, WebFOCUS locatesa data source using the information in the directory instead of searching for it using the defaultname and search path. A Use directory enables you to access up to 1022 data sources andapplies only to WebFOCUS data sources.

Allocation

For a file managed by the operating system, such as a comma-delimited data file, the physicalfile name is the actual name of a file as it appears to the operating system. A logical name isthe shorthand name that points to a physical file name. Logical names simplify code by allowingshort names to be used in place of the longer physical file name.

With the Allocation Wizard you can create a FILEDEF command and generates platform independentfile paths for all portable platforms by creating FILEDEF syntax with application names.

HTMLForm

Creates a procedure component that you can use to add HTML code to the active procedure.HTML forms are used to display HTML content.You can choose to reference or embed HTMLforms in your procedure.

WebFOCUS App Studio Reference Guide 481

11. Creating Procedures in WebFOCUS App Studio

Page 482: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: HTML pages created in the HTML canvas are not meant to be used with an -HTMLFORMthat uses runtime references. The HTML canvas cannot evaluate -HTMLFORM when runtimereferences to file names and objects are used.

Related Information:

Using -HTMLFORM Syntax on page 496

Olap Dimensions

OLAP Dimensions component allows you to create a temporary OLAP hierarchy and dimensionsto build reports from, without modifying the Master File. Instead, you create a local hierarchy,where the information is stored in the active procedure. After you create the local hierarchy, youcan build a report.

Match

Using the Match Wizard, you can merge two or more data sources and specify which records tomerge and which to sort out. The wizard creates a new data source (a HOLD file) which mergesfields from the selected records. You can report from the new data source and use it as youwould any other HOLD file. The merge process does not change the original data sources.

You select the records to be merged into the new data source by specifying sort fields in theMatch Wizard. You specify one set of sort fields (using the BY phrase) for the first data source,and a second set of sort fields for the second data source. The Match Wizard compares all sortfields that have been specified in common for both data sources, and then merges all recordsfrom the first data source whose sort values match those in the second data source into the newHOLD file. You can specify up to 32 sort sets, which includes the number of common sort fields.

In addition to merging data source records that share values, you can merge records based onother relationships. For example, you can merge all records in each data source whose sortvalues are not matched in the other data source. Yet another type of merge combines all recordsfrom the first data source with any matching records from the second data source.

You can merge up to 16 sets of data in one Match request. For example, you can merge differentdata sources, or data from the same data source.

Note: The limit of 16 applies to the most complex request. Simpler requests may be able tomerge more data sources.

482 WebFOCUS

Procedure View Panel

Page 483: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Dialogue Manager

Dialogue Manager is the part of the WebFOCUS language that controls the execution of yourapplication components. You can add flexibility to your application design by dynamically managingthe flow or control in procedures using Dialogue Manager commands and variables whose valuesare supplied at run time.

You can select five different types of Dialogue Manager components to add to your procedure.

DM If. Creates a Dialogue Manager IF statement by having you type an expression andchoosing a label. You can choose to create an IF template if you want.

DM Goto. Creates a Dialogue Manager GOTO statement by having you type a label.

DM Label. Creates a Dialogue Manager label by having you type a label name.

DM Repeat. Creates a Dialogue Manager REPEAT statement by having you choose labels,amper values, steps, times, and expressions. You can choose to create an REPEAT templateif you want.

Dialogue Mngr. Opens the Dialogue Manager canvas where you can manually create yourdialogue manager code.

Related Information:• How to Create Procedures and Procedure Components on page 483• Using Dialogue Manager on page 512

How to Create Procedures and Procedure Components

How to Create a New ProcedureProcedure:

1. Create a new procedure by doing one of the following:

Click the New button on the Quick Access Toolbar. In the New dialog box, select Procedure,and click OK.

Click New from the Application menu. In the New dialog box, select Procedure, and thenclick OK.

In the Environments Tree panel, right-click a folder, point to New, and click Procedure.

2. The Procedure View panel opens.

WebFOCUS App Studio Reference Guide 483

11. Creating Procedures in WebFOCUS App Studio

Page 484: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The New button is unavailable until you select a valid path. You do not need toenter a name to create a procedure. You can enter a name after the procedure has beencreated.

You can add components to your procedure in the Procedure View panel. Right-click theprocedure folder or component that you want to add a new component after, point to New,and click the component name. You can choose from Report, Define, Define Function, Chart,Set, Join, Use, Allocation, Olap Dimensions, or Match.

How to Create a Report as a Component of a ProcedureProcedure:

1. Create a new procedure, or open an existing procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Report after, point to New, and click Report.

If you are developing in the Data Servers area or in the Repository, a WebFOCUS Table Listdialog box opens. If you are developing in the Local Projects area, the Open dialog box opens.

3. Select a Master File from the list and click OK.

The Report canvas and the Procedure View Panel open.

4. Double-click fields in the Object Inspector to add them to the report.

5. Format your report by using the options on the Report tab, Format tab, Data tab, and Layouttab.

Tip: The Field tab appears when you select a data column on the Report canvas.

6. To save your report, click the Save button on the Quick Access Toolbar, or select Save orSave As from the Application menu.

7. To run your report, click the Run button on the Quick Access Toolbar, or select Run from theApplication menu.

How to Define a Virtual FieldProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the virtual field after, point to New, and click Define.

Note: When you click New, you enable the objects to be used when creating a Define.

484 WebFOCUS

Procedure View Panel

Page 485: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Open File dialog box opens.

3. Select a Master File from the list and click OK.

The Define canvas opens.

4. Type a name for the virtual field in the Field input box.

5. Click the Format button.

The Format dialog box opens.

6. Select the formatting options you want to apply to the virtual field and click OK.

7. Build an expression in the expressions box. You can double-click fields from the Fields Listto add them to the expression. Use the calculator buttons under the expressions window toprovide numbers and operators in the expression.

8. Click the Check button to validate the generated code.

The Check dialog box opens displaying the component code and either an error message,or text stating that no error exists.

9. Click OK and close the Define canvas.

You can define multiple virtual fields for a procedure. After you define a virtual field, you cancreate a report that uses the virtual field. Right-click the Define component, point to New,and click Report.

How to Create a User Defined FunctionProcedure:

To create a user defined function:

1. Right-click a procedure component in the Procedure View panel, point to New, and click DefineFunction.

The Name part of the Define Function Wizard is displayed.

2. Type a name and description for the function and click Next.

The Parameters section of the Define Function Wizard is displayed.

3. Click the Add new item button to add new parameters to the function.

You can rename the parameters by double-clicking on the name column. For each parameter,clicking the ellipsis button in the Format column will open the Format dialog box, allowingyou to edit the format of that parameter. Double-clicking in the Description column for eachparameter will allow you to edit the description for parameter.

4. Click Next.

WebFOCUS App Studio Reference Guide 485

11. Creating Procedures in WebFOCUS App Studio

Page 486: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Defined Fields section of the Define Function Wizard is displayed. One defined field (withthe same name as your function) is already entered.

Note: A function is comprised of expressions that returns a value to the caller of thefunction.

5. Click the Add new item button if you want to add more defined fields.

You can rename the fields by double-clicking on the name column. For each field, clickingthe ellipsis button in the Format column will open the Format dialog box, allowing you to editthe format of that field. Clicking the ellipsis button in the Expression column will open adialog box where you can edit what the function will do.

Note: The last defined field must have the same name as the function. This is why onedefined field is already entered with the same name as the function. If multiple expressionsare present, then the defined field with the same name as the function must be in thelast position. If no defined field has the same name as the function, or if the defined fieldis not in the last position, you will be unable to progress to the next window.

6. Click Next.

The Complete the Define Function Wizard window is displayed. The function, as well as itsparameters and logic, are displayed before completion.

7. Click Finish to create the function.

The Define Function Wizard opens to a new window.

If there are no more functions you want to create, clicking OK will close the Wizard with allfunctions created.

8. If you want to create more functions, click New to bring up the Define Function Wizard again,allowing you to create another function.

This can be done as many times as needed, allowing you to create multiple functions in theprocedure, without having to exit and repeat certain steps.

Selecting a function and clicking Edit will open the Define Function Wizard. Here you canchange any part of the already created function by going through each window.

Selecting a function and clicking Delete will delete the function.

486 WebFOCUS

Procedure View Panel

Page 487: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Create a Defined Function LibraryProcedure:

To create a user defined function:

1. Right-click a project folder in the Environments tree panel, point to New, and click DefineFunction Library.

The Name part of the Define Function Wizard is displayed.

2. Type a name and description for the function and click Next.

The Parameters section of the Define Function Wizard is displayed.

3. Click the Add new item button to add new parameters to the function.

You can rename the parameters by double-clicking on the name column. For each parameter,clicking the ellipsis button in the Format column will open the Format dialog box, allowingyou to edit the format of that parameter. Double-clicking in the Description column for eachparameter will allow you to edit the description for parameter.

4. Click Next.

The Defined Fields section of the Define Function Wizard is displayed. One defined field (withthe same name as your function) is already entered.

Note: A function is comprised of expressions that returns a value to the caller of thefunction.

5. Click the Add new item button if you want to add more defined fields.

You can rename the fields by double-clicking on the name column. For each field, clickingthe ellipsis button in the Format column will open the Format dialog box, allowing you to editthe format of that field. Clicking the ellipsis button in the Expression column will open adialog box where you can edit what the function will do.

Note: The last defined field must have the same name as the function. This is why onedefined field is already entered with the same name as the function. If multiple expressionsare present, then the defined field with the same name as the function must be in thelast position. If no defined field has the same name as the function, or if the defined fieldis not in the last position, you will be unable to progress to the next window.

6. Click Next.

The Complete the Define Function Wizard window is displayed. The function, as well as itsparameters and logic, are displayed before completion.

WebFOCUS App Studio Reference Guide 487

11. Creating Procedures in WebFOCUS App Studio

Page 488: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

7. Click Finish to create the function.

The Define Function Wizard opens to a new window.

If there are no more functions you want to create, clicking OK will close the Wizard with allfunctions created.

8. If you want to create more functions, click New to bring up the Define Function Wizard again,allowing you to create another function.

This can be done as many times as needed, allowing you to create multiple functions in theprocedure, without having to exit and repeat certain steps.

Selecting a function and clicking Edit will open the Define Function Wizard. Here you canchange any part of the already created function by going through each window.

Selecting a function and clicking Delete will delete the function.

How to Create a Chart as a Component of a ProcedureProcedure:

1. Create a new procedure, or open an existing procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Chart after, point to New, and click Chart.

If you are developing in the Data Servers area, or in the Repository, a WebFOCUS Table Listdialog box opens. If you are developing in the Local Projects area, the Open dialog box opens.

3. Select a Master File from the list, and click OK.

The Chart canvas opens.

4. Double-click fields in the Data Panel to add them to the chart.

You can use the features and functions on the ribbon that is located in the Chart canvas toformat the chart.

5. To save your report, click the Save button on the App Studio Quick Access Toolbar, or selectSave or Save As from the Application menu.

6. To run your report, click the Run button on the App Studio Quick Access Toolbar, or selectRun from the Application menu.

How to Set Parameters for a ProcedureProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Set after, point to New, and click Set.

488 WebFOCUS

Procedure View Panel

Page 489: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Set canvas opens.

3. From the Available Settings list, double-click a parameter.

The selected parameter is added to the Used Settings list. The available values for thatparameter display in the Current Value list.

Note: You can also select a parameter and click the Add button to add it to the UsedSettings list.

4. Select a value from the Current Value list.

5. Click the Check button to validate the generated code.

The Check dialog box opens displaying the component code and either an error message,or text stating that no error exists.

6. Click OK, and close the Set canvas.

This setting is now on, and will affect the way the procedure works.

How to Join Data SourcesProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Join after, point to New and click Join.

3. Select a Master File (host file) and click OK.

The Join canvas opens and displays the fields in the Master File.

4. On the Join tab, in the Join group, click Add.

You can also right-click the Join canvas and select Add File.

5. Select a Master File (cross-referenced file) and click OK.

The new Master File is added to the canvas. Common fields in both files are joined by a Joinconnector line.

6. Click Save.

7. Click Run.

A dialog box opens, displaying the component code, and either an error message or textstating that no error exists.

8. Click OK and close the Join canvas.

WebFOCUS App Studio Reference Guide 489

11. Creating Procedures in WebFOCUS App Studio

Page 490: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can add another component to the procedure by right-clicking the Join component,pointing to New, and clicking the component. When you are prompted to select a MasterFile, select the same host file you used to create the Join component. This allows you touse the joined data sources.

How to Identify a Data Source With the Use FeatureProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Use after, point to New, and click Use.

The Use canvas opens.

3. In the Use canvas, do one of the following:

Type the name of a WebFOCUS data source in the Database Filename field.

Click Browse to search the network drives and directories for the file you want to add.

Type the Universal Naming Convention (UNC) name of the file in the Database Filenamefield. For example:

\\Server1\Disk1\employee.foc

The Universal Naming Convention (UNC) allows you to enter the server name withoutentering the explicit path to the server. However, in order to take advantage of the UNCyou must first attach to the server. For information on attaching to a server or mappingnetwork drives, consult your Network Administrator.

Enter the Master File name to be associated with the data source in the Master File field.

4. If the data source is not located locally, type the name of the server on which the file resides,in the Database Server field.

5. Click Add.

6. Repeat steps 3 through 6 for any additional data sources you want to identify.

7. Select a USE action:

Clear/Replace current list of USE databases clears all entries or replaces the current listof USE data source with those in the list box.

Append to the present database list adds data sources to the current USE directory.

Replace only specified files in list changes one or more data source assignments in thecurrent USE directory.

490 WebFOCUS

Procedure View Panel

Page 491: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

8. Click the Check button to validate the generated code.

The Check dialog box opens displaying the component code and either an error message,or text stating that no error exists.

9. Click OK and close the Use canvas.

How to Define a Logical Name With the Allocation WizardProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Allocation after, point to New, and click Allocation.

The Allocation Wizard opens in a new canvas.

3. Click Next and specify the logical name for the allocation.

The name can be from one to eight characters. If you are identifying a data source, the namemust be the same as the name of the Master File.

4. Click Next and select the device for the logical name.

Disk associates the logical name with a file. This is the default option.

Printer associates the logical name with a printer.

Http associates the logical name with a URL, by allocating the Master File to the resultof running the URL.

Terminal indicates that the keyboard and monitor are the input source and outputdestination for the file.

Clear clears the allocation assigned to a file name.

5. Click Next to select additional options.

Note: The options vary depending on which device is selected. The steps below detailhow the Allocation Wizard continues with the selected device.

Tip: At any time, you may click Back to go back and change the device, or any of the devicesettings.

6. When selecting Disk as the device:

a. Select the application folder that contains the physical file.

WebFOCUS App Studio Reference Guide 491

11. Creating Procedures in WebFOCUS App Studio

Page 492: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: The application folders from the Reporting Server are shown by default anddepend on the area from which the Allocation Wizard is invoked. Some examples ofthe Reporting Server application folders are Local Projects, Data Servers, andRepository. You may specify a file in a directory that is not in the Reporting ServerApplication Path by using the Advanced option from the completed Allocation.

b. Click Next and type the new file name.

or

Click the Browse button to display the Open dialog box and select from the list of existingfiles.

Note: The default file type is Data Files (*.dat). You may also select Temporary Files(*.ftm), and All Files (*.*), as the type of file.

c. Click Next to specify additional options for the Disk device.

These addition options are:

Appends records to the end of the file (without this option, the file is overwritten).

Fixed length records indicates that you are assigning a logical name to a file witha fixed record length.

Record Size specifies the record length of the file, when using the Fixed lengthrecords option.

d. Click Next to view the summary of the allocation settings you selected for the Disk device.

7. When selecting Printer as the device:

a. Select the application folder that contains the physical file.

Note: The application folders from the Reporting Server are shown by default anddepend on the area from which the Allocation Wizard is invoked. Some examples ofthe Reporting Server application folders are Local Projects, Data Servers, andRepository. You may specify a file in a directory that is not in the Reporting ServerApplication Path by using the Advanced option from the completed Allocation.

b. Click Next and enter the new file name.

or

492 WebFOCUS

Procedure View Panel

Page 493: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Click the Browse button to display the Open dialog box and select from the list of existingfiles.

Note: The default file type is Data Files (*.dat). You may also select Temporary Files(*.ftm), and All Files (*.*), as the type of file.

c. Click Next to type the name of the printer.

d. Click Next to view the summary of the allocation settings you selected for the Printerdevice.

Note: The following syntax is applied to the FILEDEF statement when using a Printerdevice:

FILEDEF OFFLINE PRINTER BASEAPP/TEMPOFFLINE.FTM (PRINTER \\ibiprint\28C1

8. When selecting Http as the device:

a. Type the full URL path.

b. Click Next to view the summary of the allocation settings you selected for the Http device.

9. When selecting Terminal as the device:

a. Click Next to specify additional options for the Terminal device.

You may choose to send the keyboard input to WebFOCUS as entered (lowercase ormixed-case). The default is mixed-case. Select this option to specify lowercase.

b. Click Next to view the summary of the allocation settings you selected for the Terminaldevice.

10. When selecting Clear as the device:

a. Click Next to view the summary of the allocation settings that you cleared.

11. Click Finish to close the Allocation Wizard and create the FILEDEF command.

The completed file name appears for the Allocation. below.

12. Optionally, click Check to validate the FILEDEF command.

A dialog box opens, displaying the component code and confirmation that no error exists.

13. To edit the selected allocation, double-click, or click Edit, to open the Allocation Wizard again.

14. Click Advanced to open the Advanced Allocation dialog box.

WebFOCUS App Studio Reference Guide 493

11. Creating Procedures in WebFOCUS App Studio

Page 494: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using the Advanced Allocation dialog box, you can enter the FILDEF command without usingthe Allocation Wizard.

15. Click OK to close the completed Allocation Wizard.

The Allocation component is added to the procedure. You can double-click the componentto view the completed Allocation Wizard options again.

How to Create an OLAP HierarchyProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the OLAP Hierarchy after, point to New, and click OLAP Dimensions.

The Open File dialog box opens.

3. Select a Master file to create the OLAP Hierarchy.

4. Click Open.

The Olap Dimensions canvas opens.

5. Drop fields from the left pane into the right pane, under Dimensions, to create your Hierarchy.

You can rename the fields listed directly under the Dimensions node by right-clicking a fieldand selecting Rename. To delete an unwanted field, right-click the field name and selectDelete.

How to Merge Data Sources Using the Match WizardProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Match after, point to New, and click Match.

The Open File dialog box opens.

3. Select a Master file to use first in the MATCH logical expression.

4. Click OK.

The Match Wizard opens in a new canvas. It uses typical wizard behavior in which you clicka series of Next buttons to navigate from one window to the next. You can also use theMatch Preview area to navigate the Match Wizard.

5. From the Available fields list, select the fields you want to use to build the Match request.

494 WebFOCUS

Procedure View Panel

Page 495: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can add a Match Alias (how the field appears in the HOLD file field list) and a PrefixOperator for each field.

Note: You can remove fields from this list by clicking the Delete button. If you add morethan one field, you can also use the Move Up and Move Down buttons to rearrange theorders of the fields.

6. Select either PRINT, SUM, or LIST from the drop-down list.

7. To add a field as BY field, click a field in the Available Fields list and click the Add field buttonin the BY fields list box.

Note: You must have at least one BY field.

8. Click the Where/If tab if you want to create a WHERE expression or IF condition. This limitsthe records that are merged together.

9. Click the Add Where expression or Add IF condition button to open the Expression Builder.Use the Expression Builder to create the Where/If condition.

10. Click Next.

Step 3 of the Match Wizard opens.

11. Click the Browse button to select the data source you want to merge with the original datasource.

The Open dialog box opens.

12. Select a Master File and click Open.

Step 4 of the Match Wizard opens.

13. Add the fields for the second data source, including a Where/If field criteria if you want, asin step 5.

14. Click Next.

Step 5 of the Match Wizard opens.

15. Type a name for the HOLD file and select the type of MATCH phrase.

16. Click Finish.

The Match Wizard - Summary window opens, where you can review the final MATCH request.

WebFOCUS App Studio Reference Guide 495

11. Creating Procedures in WebFOCUS App Studio

Page 496: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using -HTMLFORM SyntaxReference:

-HTMLFORM sends report output to the HTML file you create for a webpage, and displays thatpage in the browser. The output can be saved as an HTML file that can be displayed later.

The syntax is:

-HTMLFORM filename [SAVE AS htmlpage]

or

-HTMLFORM BEGIN...-HTMLFORM END

where:

filename

Is the HTML file that contains placeholders for the report or reports that WebFOCUS createswith the command:

ON TABLE HOLD HTMTABLE AS report

SAVE

Indicates that the HTML page, created when the HTML file filename and the report or reportsgenerated by WebFOCUS are combined, is to be saved.

AS htmlpage

Is the file name for the HTML page that is created when the HTML file filename and the reportor reports generated by WebFOCUS are combined. This file is saved so that it can be displayedlater.

-HTMLFORM BEGIN

Indicates the beginning of an inline HTML form in a procedure.

-HTMLFORM END

Indicates the end of an inline HTML form in a procedure.

Joins

If a report requires data from two or more related data sources, you can temporarily join the filesand report from them as if they were one. Joined files remain physically separate, but are treatedas one data source structure throughout the session or until you clear the Join.

You can also create a new file structure for reporting by joining existing synonyms of relationaltables using the Cluster Joins editor.

496 WebFOCUS

Joins

Page 497: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

What Is a Join?

A Join is a temporary connection between two or more data source files that share at least onecommon field. For example, since the EMPLOYEE data source includes a job code field and theJOBFILE data source also includes a job code field, you can join the two data sources.

The field format and the type must be the same for the common fields, but the field name neednot be the same.

After you join two files, each time a record is retrieved from the first file (host file), it also retrievesthe matching records from the second file (cross-referenced file).

Types of Joins

The following section describes the types of joins you can create using the Join functionality.

Dynamic Joins

Dynamic joins allow you to join two or more related data sources and create a virtual structurefor reporting. The data sources remain physically separate, but App Studio treats them as a singlestructure. Dynamic joins include:

Conditional joins

Single instance joins

Multiple instance Joins

Left outer joins

You can use dynamic joins for the duration of your session or until you clear the Join. Dynamicjoins can read data from the joined data sources using the TABLE and GRAPH facilities.

Conditional Joins

Conditional joins use WHERE-based syntax to specify joins based on conditional criteria, not juston equality between fields. Additionally, the host and cross-referenced join fields do not have tocontain matching formats.

Suppose you have a data source that lists employees by their ID number (the host file) andanother data source that lists training courses and the employees who attended those courses(the cross-referenced file). Using a conditional join, you can join employee ID in the host file toemployee ID in the cross-referenced file to determine which employees took training courses ina given date range (the WHERE condition).

WebFOCUS App Studio Reference Guide 497

11. Creating Procedures in WebFOCUS App Studio

Page 498: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Single Instance and Multiple Instance Joins

The Join functionality allows you to create single instance and multiple instance joins. A singleinstance, or one-to-one join structure matches one value in the host data source to one value inthe cross-referenced data source. Joining an employee ID in an employee data source to anemployee ID in a salary data source is an example of a single instance join.

A multiple instance or one-to-many join structure matches one value in the host data source tomultiple values in the cross-referenced field. Joining employee ID in the employee data sourceof a company to employee ID in a data source that lists all the training classes offered by thatcompany would result in a listing of all courses taken by each employee, or a joining of the oneinstance of each ID in the host file to the multiple instances of that ID in the cross-referencedfile.

When you create a dynamic or conditional join using the Join functionality, you can specify whetherthe join is a single instance or a multiple instance.

Descriptions of Single Instance and Multiple Instance JoinsReference:

ExampleDescriptionType

If you join EMPLOYEE to JOBFILE, eachemployee can have only one job code.

Each host record has atmost, one matching record inthe cross-referenced file.

Single instance (one-to-one)

If you join JOBFILE to EMPLOYEE, onejob code can match many employeerecords.

Each host record can havemany matching records in thecross-referenced file.

Multiple instance(one-to-many)

Joins Based on Virtual Fields

Joins that are based on virtual fields use DEFINE-based syntax to create a virtual field in the hostfile that you can then join to a real cross-referenced field. The DEFINE expression that createsthe virtual host field may contain only fields in the host file and constants. It may not containfields in the cross-referenced file.

You can join a virtual field to more than one real field in more than one cross-referenced file usingseparate Join commands, each referring to the same host file.

498 WebFOCUS

Joins

Page 499: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Left Outer Joins

When a report omits host rows that lack corresponding cross-referenced rows, the join is calledan inner join. When a report displays all matching rows plus all rows from the host file that lackcorresponding cross-referenced rows, the join is called a left outer join.

For details on left outer join syntax, see the Creating Reports With WebFOCUS Language manual.

Note: If the SET ALL=ON or SET ALL=PASS setting is applied, it impacts all joins in theprocedure and they are treated as left outer joins.

Host Records With No Matching Cross-Referenced Records

Sometimes there is no matching record in the cross-referenced file. A host record that has nomatching cross-referenced record is called a short path.

The report that results when a host record lacks a corresponding cross-referenced record dependson the following factors:

The type of Join.

With a multiple instance Join, the value of the ALL parameter controls short path behavior.The default value, OFF, eliminates all host records that lack a matching cross-referencedrecord. Use the Set tool to change the ALL value, if necessary.

With a single instance Join, a missing cross-referenced record never causes App Studio toeliminate a host record from a report. Instead, default values (zero for numeric fields andblank for alphanumeric fields) are supplied for missing cross-referenced fields.

The types of data sources participating in the Join.

Since relational data source engines can join relational data sources efficiently, App Studiopasses this task to them whenever possible.

Join Tab

You can use the Join tab to manipulate data sources when using a join. The Join tab is availableonly when you are creating a Join.

A join is a temporary connection between two or more data source files that share at least onecommon field. For example, a Human Resources department could have an EMPLOYEE datasource that includes a job code field, and a JOBFILE data source that also includes a job codefield. In this scenario, the two data sources could be joined.

WebFOCUS App Studio Reference Guide 499

11. Creating Procedures in WebFOCUS App Studio

Page 500: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

When creating a join, the field format and the type must be the same for the common fields, butthe field name need not be the same.

After you join two files, each time a record is retrieved from the first file (host file), the matchingrecords from the second file (cross-referenced file) are also retrieved. The Join tab is shown inthe following image.

Windows Group

You can choose how to display the data sources currently in the join. The Windows group is shownin the following image.

The commands are:

Cascade

Arranges the windows as overlapping tiles (default).

Horizontal

Arranges the windows as horizontal tiles that do not overlap.

Vertical

Arranges the windows as vertical tiles that do not overlap.

500 WebFOCUS

Join Tab

Page 501: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Join Group

You can save, run, add, remove, and automatically join data sources when creating a Join. TheJoin group is shown in the following image.

The commands are:

New

Creates a new join.

Add

Adds a new file to the join.

Clear

Launches the Join Clear dialog box, where you can specify the available joins to clear.

Define

Inserts a Define field into the Join.

Joins that are based on virtual fields use DEFINE-based syntax to create a virtual field in thehost file that you can then join to a real cross-referenced field. The DEFINE expression thatcreates the virtual host field can contain only fields in the host file, and constants. It cannotcontain fields in the cross-referenced file.

You can join a virtual field to more than one real field in more than one cross-referenced fileusing separate Join commands, with each command referring to the same host file.

For more information, see Define-Based Joins on page 503.

Where/If

Creates a conditional Join.

Conditional joins use WHERE-based syntax to specify joins based on conditional criteria, notjust on equality between fields. Additionally, the host and cross-referenced join fields do nothave to contain matching formats.

WebFOCUS App Studio Reference Guide 501

11. Creating Procedures in WebFOCUS App Studio

Page 502: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Suppose you have a data source that lists employees by their ID number (the host file) andanother data source that lists training courses and the employees who attended those courses(the cross-referenced file). Using a conditional join, you can join employee ID in the host fileto employee ID in the cross-referenced file to determine which employees took training coursesin a given date range (the WHERE condition).

Show/Hide

Shows or hides the .fex source window.

Auto Join

Performs automatic joins within tables.

Creating a Join

You can use the Join canvas to temporarily join two or more data sources and use data fromthem as if they were one data source. Joined files remain physically separate, but are treatedas one data source. The Join component provides a graphical method for creating and manipulatingall types of Joins. To create a Join, you must specify a host file, and then a cross-referenced file.Both host files and cross-referenced files are Master Files.

You are responsible for placing the Join object in the correct position within your procedure (thatis, before a Define, Report, or Chart), and running it. The Join remains active for the entire session,unless you explicitly clear it.

How to Join Data SourcesProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Join after, point to New and click Join.

3. Select a Master File (host file) and click OK.

The Join canvas opens and displays the fields in the Master File.

4. On the Join tab, in the Join group, click Add.

You can also right-click the Join canvas and select Add File.

5. Select a Master File (cross-referenced file) and click OK.

The new Master File is added to the canvas. Common fields in both files are joined by a Joinconnector line.

6. Click Save.

7. Click Run.

502 WebFOCUS

Join Tab

Page 503: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A dialog box opens, displaying the component code, and either an error message or textstating that no error exists.

8. Click OK and close the Join canvas.

You can add another component to the procedure by right-clicking the Join component,pointing to New, and clicking the component. When you are prompted to select a MasterFile, select the same host file you used to create the Join component. This allows you touse the joined data sources.

Define-Based Joins

Joins that are based on virtual fields use Define-based syntax to create a virtual field in the hostfile that you can then join to a real cross-referenced filed. The Define expression that creates thevirtual host field may contain fields that only appear in the host file or constants. It cannot containfields that are cross-referenced.

A virtual field is a temporary field that you describe in a Master File or procedure. The value ofthe virtual field is calculated and treated as part of the data source.

You can join a virtual field to more than one real field in more than one cross-referenced file usingseparate Join commands, each referring to the same host file.

Consider the following factors before making a virtual field the host field in a Join:

If you create the virtual field in a procedure rather than in the Master File, you must makesure the virtual field runs after the Join runs, because a Join clears all existing virtual fields.You can also use the SET KEEPDEFINE=ON expression.

You must delete the existing Join connector line, if there is one, before creating the Join onthe virtual field. You cannot join multiple fields with this option. The virtual field must be theonly Join field.

How to Use a Virtual Field as the Join FieldProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Join after, point to New, and click Join.

3. Select a Master File (host file) and click OK.

The Join canvas opens and displays the fields in the Master File.

4. On the Join tab, in the Join group, click Define.

The Join Define in File dialog box opens.

WebFOCUS App Studio Reference Guide 503

11. Creating Procedures in WebFOCUS App Studio

Page 504: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

5. You must associate the virtual field with a segment of the data source.

a. Type the name of the virtual field you are going to define in the Define Field box.

b. In the With Field drop-down list box, choose the name of any real field from the segmentin which you want to put the virtual field, and click OK.

The virtual field appears in the Fields window of the host file.

6. On the Join tab, in the Join group, click Add.

You can also right-click the Join canvas and select Add File.

7. Select a Master File (cross-referenced file), and click OK.

The new Master File is added to the canvas. Delete any existing Join connector lines.

8. To complete the Join, drag the mouse pointer from the virtual field to a matching field in thecross-referenced file.

You cannot join multiple fields with this option. The virtual field must be the only Join field.

Creating Multi-Field Joins

In some cases, you might want to Join more than one host field to a single cross-referenced field.The procedure, as well as the relationship, differs for Joins between two relational data sources,Joins between two WebFOCUS data sources, and Joins between relational and WebFOCUS datasources.

There are two types of multi-field Joins:

Multi-field Joins in which you Join multiple host fields to multiple cross-referenced fields.

Concatenated Joins in which the field resulting from the concatenation of two host fieldsJoined to a single cross-referenced field.

The following table lists the types of Joins allowed between files:

Supported Multi-Field Join ConstructionsCross-ReferencedHost

You can Join two SQL files with a multi-fieldconstruction. You cannot directly Join two SQL fileswith a concatenated Join. You can, however, use aDefine-based Join to achieve the same result that aconcatenated Join would produce between two SQLfiles.

SQLSQL*

504 WebFOCUS

Join Tab

Page 505: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Supported Multi-Field Join ConstructionsCross-ReferencedHost

You can use only the concatenated Join constructionto Join two WebFOCUS host fields to a singleWebFOCUS cross-referenced field.

WebFOCUSWebFOCUS

You can use only the concatenated Join constructionto Join two SQL host fields to a single WebFOCUScross-referenced field.

WebFOCUSSQL

You can Join a WebFOCUS file and an SQL file withmulti-field Join construction. You cannot Join aWebFOCUS file and an SQL file with a concatenatedJoin. You can, however, use a Define-based Join toachieve the same result that a concatenated Joinwould produce between these files.

SQLWebFOCUS

* SQL represents all relational data sources.

Creating a Concatenated Join

You can use the concatenated Join construction between two WebFOCUS files and between ahost relational file and a cross-referenced WebFOCUS file. This is the only type of multi-field Joinconstruction you can use between these files.

The first two host fields are combined in a concatenated Join. The resulting field is then joinedto the cross-referenced field.

Using Conditional Joins

Using conditional Joins, you can establish Joins based on conditions other than equality betweenfields. In addition, the host and cross-referenced Join fields do not have to contain matchingformats and the cross-referenced field does not have to be indexed.

The conditional Join is supported for WebFOCUS and all relational data adapters. Because eachdata source differs in its ability to handle complex conditional criteria, the optimization of theWHERE syntax differs depending on the specific data sources involved in the Join and thecomplexity of the conditional criteria.

To display a list of joined data sources, select the following query subject in the Query tool, orissue the command from the Command Console:

? JOIN

WebFOCUS App Studio Reference Guide 505

11. Creating Procedures in WebFOCUS App Studio

Page 506: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

This query displays every Join currently in effect and indicates any that are based on conditionalcriteria.

How to Create Conditional JoinsProcedure:

1. Open an existing procedure, or create a new procedure.

2. In the Procedure View panel, right-click the procedure folder or the component that you wantto create the Join after, point to New, and click Join.

3. Select a Master File (host file) and click OK.

The Join canvas opens and displays the fields in the Master File.

4. On the Join tab, in the Join group, click Add.

You can also right-click the Join canvas and select Add File.

If you are developing in the Data Servers area or in the Repository, a WebFOCUS Table Listdialog box opens. If you are developing in the Local Projects area, the Open dialog box opens.

5. Select a Master File (cross-referenced file) and click OK.

The new Master File is added to the canvas. Common fields in both files are joined by a Joinconnector line.

6. Select the Join (the connector line), and on the Join tab, in the Job group, click Where/If.The Where Expression Builder dialog box opens.

7. After you have specified your WHERE criteria, click OK to return to the Join tool.

If you need to change the Join type or Join name, double-click the conditional Join to launchthe Join Properties window.

Customizing a Join

You can customize an existing Join by changing the files or fields involved. If no default Join wascreated, you can use the same technique to specify a connection explicitly.

You can also change the Join name, make the Join a single instance, use a virtual field as theJoin field, and add tag names to the Join files.

How to Remove a File From the JoinProcedure:

1. Click the table of the file you want to remove.

2. Press the Delete key. A confirmation dialog box appears.

If you delete the host file, all cross-referenced files are automatically deleted.

506 WebFOCUS

Join Tab

Page 507: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Delete a JoinProcedure:

1. Right-click the Join connector line.

2. From the shortcut menu, click Delete.

You can also select the Join connector line, and on the Join tab, in the Join group, click Clear,or press the Delete key.

The files remain on the canvas with no connector line between them.

How to Specify Join FieldsProcedure:

To create your own Join (after deleting the existing Join, if necessary):

1. Select a field in the host file panel.

2. Click and hold the selected field.

3. Drag the selected field from the host file panel onto the matching field located in thecross-referenced file panel. The pointer changes and displays the appropriate icon when ajoin is possible.

4. Release the mouse button.

A Join connector line appears.

How to Create Additional JoinsProcedure:

You can leave the Join window open and create another Join by:

Clicking New on the ribbon.

Clicking New Join from the shortcut menu on the Join canvas.

You can define up to 63 concurrent Joins that will have a maximum of 64 segments in the newJoin structure.

How to Make a Join a Single InstanceProcedure:

By default, each Join is a multiple instance.

To make the Join a single instance:

1. Right-click the Join connector line.

2. From the shortcut menu, click Single Instance.

WebFOCUS App Studio Reference Guide 507

11. Creating Procedures in WebFOCUS App Studio

Page 508: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Changing the Join Name

A default name is automatically assigned to each Join.

You can use the Join name to later clear the Join and to prevent another Join from overwriting it.If you remove the Join name completely, any subsequent unnamed Join will overwrite this Join.

How to Change or Remove the Default Join NameProcedure:

1. Right-click the Join connector line and from the shortcut menu, click Join Name. The JoinName dialog box displays the default Join name.

2. Edit or delete the name in the Join Name box and click OK.

You can also provide a description. This is not used in the Join command, but for referencepurposes. A comment (-*) is added to the procedure. For example, -*JOINDESC J0.

Note: The following words cannot be used as a Join name: ALL, AND, AS, IN, JOIN, TAG,TO, WITH.

How to Display Current Join StructuresProcedure:

To display a list of joined data sources, issue the command from the Command Console:

? JOIN

This command displays every Join currently in effect.

Join Define in File Dialog BoxReference:

The Join Define in File dialog box has the following fields and options:

Define Field

Identifies the virtual field that is the host field in the Join.

With Field

Associates the virtual field with a segment in the data source. Select any field from thesegment in which you want to place the virtual field.

508 WebFOCUS

Join Tab

Page 509: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Adding a Tag Name

Tag names provide a way of making identical field names a single instance. They function asaliases for the file names in the Join. Tag names are useful when you join a file to itself becausein such a Join all field names, segment names, and file names are the same in the host andcross-referenced files. Tag names are also useful if a file is used as a target more than once inthe join structure.

A procedure can use the tag name of a file as a qualifier for field names and aliases in the file.

If you create a report using a recursive Join without tag names, the field names in the cross-referenced file are prefixes with the first four characters of the Join name.

How to Add a Tag NameProcedure:

1. Double-click the connector line between the tables. The Join Properties dialog box opens.The Join Properties dialog box also opens if you right-click a selected link, and click Propertieson the shortcut menu. A thick line appears when a Join is selected.

2. Enter names in the Host Tag and Cross Tag name fields and click OK.

Note:

The following words cannot be used as a tag name: ALL, AND, AS, IN, JOIN, TAG, TO,WITH.

Tag names can be up to eight characters in length.

Working With Joins

After a Join exists, you can retrieve it, report from it, view its syntax, and clear it. Clearing a Joinmakes it inactive.

Join Clear Dialog BoxReference:

The Join Clear dialog box has the following fields and options:

Available Joins

Lists all current Joins.

Joins To Clear

Displays the Joins that will be deleted when you click OK.

WebFOCUS App Studio Reference Guide 509

11. Creating Procedures in WebFOCUS App Studio

Page 510: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Double Right Arrow

Moves the selected Joins to the Joins to Clear list.

Double Left Arrow

Moves the selected Joins to the Available Joins list.

Join Properties Dialog BoxReference:

To view or modify the properties of a Join, right-click the Join link and select Properties, or double-click the Join link. The Join Properties window appears, as shown in the following image.

510 WebFOCUS

Join Tab

Page 511: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Join Properties window has the following fields and options:

Host Tag

Enter a tag name for the data source.

Cross Tag

Enter a tag name for the cross-referenced file.

Selected Fields

Displays the field that has been joined from the host file to the cross-referenced file. A singlearrow indicates a unique Join, and a double-arrow indicates a non-unique Join.

Join Name

Displays the name of the Join. To change the default Join name, type a new name in thisfield and click OK.

Note: The Join name must be unique and cannot exceed eight characters.

Description

Enter a description. This is not used in the Join command. It is used for reference purposes.A comment (-*) is added to the procedure.

Join Type

Indicates the type of Join. Choose from the following:

Multiple Instance (Non-Unique). A one-to-many Join structure that matches one value inthe host data source to multiple values in the cross-referenced field. Joining employee ID inan employee data source to employee ID in a data source that lists all the training classesoffered by that company would result in a listing of all courses taken by each employee, ora joining of the one instance of each ID in the host file to the multiple instances of that IDin the cross-referenced file. This is the default selection.

Single Instance (Unique). A one-to-one Join structure that matches one value in the hostdata source to one value in the cross-referenced data source. Joining an employee ID in anemployee data source to an employee ID in a salary data source is an example of a uniqueJoin.

WebFOCUS App Studio Reference Guide 511

11. Creating Procedures in WebFOCUS App Studio

Page 512: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Unspecified. This option is selected in the Join properties when a Join that was created inan earlier release is opened in the Join tool. In earlier versions, the defaults for Join typeand other operators were assumed and not specified in the generated code. Since the Jointool cannot determine the type of Join that was created and if there were other commandsset to control the Join, select the appropriate options (Inner Join, Left Outer Join, MultipleInstances, Single Instances) from the Join tool to upgrade the generated code.

Inner Join. A Join that results when a report omits host rows that lack corresponding cross-referenced rows.

Left Outer Join. Extends the results of an Inner Join and retrieves records from both hostand cross-referenced tables, including all records from the left table (host) and any recordsfrom the right table (cross-referenced) where the condition values match. If there are nomatching values in the cross-referenced table, the Join still retrieves records from the hosttable.

Using Dialogue Manager

Dialogue Manager is the part of the WebFOCUS language that controls the execution of yourapplication components and allows you to control the flow of your application with the use ofcommands and variables. You can dynamically control the execution of procedures, giving youflexibility in application design. Dialogue Manager also enables you to use variables in yourprocedures and supply values for them at run time.

The following are some of the ways you can use Dialogue Manager:

Customizing a procedure with variables. You can dynamically change the execution of aprocedure by including variables, or retrieve information from the system. For details, seeUsing Variables in a Procedure on page 530.

Navigating a procedure. You can conditionally execute requests, repeat execution withprogram loops, or call another procedure. For details, see Navigating a Procedure on page519.

Enhance an HTML webpage. You can increase the functionality of your webpage by includingHTML commands in your procedure. For details, see Creating a Procedure on page 515.

Issuing operating system commands. You can issue an operating system command toset up an environment in which a request must run. For details on issuing operating systemcommands, see Issuing an Operating System Command on page 584.

Controlling passwords. You can directly assign and change passwords. For details, seeControlling User Access to Data on page 518.

512 WebFOCUS

Using Dialogue Manager

Page 513: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Sending a message to the application. You can send a message to an application whilea procedure is processing to explain the purpose of the procedure, display results, or presentuseful information.

You can create Dialogue Manager IFs, GOTOs, Labels, and Repeats. You can also open theDialogue Manager canvas and create any of the other items manually.

Overview of Dialogue Manager CommandsReference:

For descriptions and syntax, see Dialogue Manager Quick Reference on page 584.

DescriptionCommand

Is a comment line and it has no action.-*

Closes the specified -READ or -WRITE file.-CLOSE ddname

Closes all -READ and -WRITE files currently open.-CLOSE *

Presets initial values for variable substitution.-DEFAULT-DEFAULTS

Executes stacked commands and returns to the WebFOCUSprompt.

-EXIT

Establishes an unconditional branch.-GOTO

For use with the web interface to WebFOCUS.-HTMLFORM

Tests and branches control based on test results.-IF

Dynamically incorporates one procedure in another.-INCLUDE

User-supplied name identifying the target for -GOTO or -IF.-label

Sets password directly.-PASS

Reads records from a sequential file.-READ

Reads fields based on a Master File into Dialogue Managervariables.

-READFILE

Executes a loop.-REPEAT

WebFOCUS App Studio Reference Guide 513

11. Creating Procedures in WebFOCUS App Studio

Page 514: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionCommand

Executes all stacked WebFOCUS commands and returns toprocedure for further processing.

-RUN

Assigns a value to a variable.-SET

Types informative message to screen or other output device.-TYPE

Writes a record to a sequential file.-WRITE

Captures the value of a settable parameter in &myvar.-? SET parameter&myvar

Displays the values of currently defined amper variables.-? &[variablename]

Dialogue Manager Variables Overview

You can write procedures containing variables with values that are unknown until run time, allowinga user to customize the procedure by supplying different values each time it executes. Variablesfall into two categories:

Local and global variables. Local and global variable values must be supplied at run time.Local variables retain the values only for one procedure. Global variables retain the valuesacross procedures unless you explicitly clear them. You create a local variable by choosinga name that starts with a single ampersand (&) and you can create a global variable bychoosing a name that starts with a double ampersand (&&).

System and statistical variables. System and statistical variable values are automaticallysupplied by the system when a procedure references them. System and statistical variableshave names that begin with a single ampersand (&). For example, the variable &LINES indicateshow many lines of output were produced, and the variable &DATE indicates the current date.

Dialogue Manager Processing

You can modify your application at run time with user input and environment conditions by usingDialogue Manager stored procedures, which include commands and variables.

In App Studio, stored procedures are referred to as procedures.

1. Processing begins from the command processor when a procedure is invoked for execution.

2. The FOCEXEC Processor reads each line of the procedure. Any variables on the line areassigned the current values.

514 WebFOCUS

Using Dialogue Manager

Page 515: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

3. All Dialogue Manager commands execute as soon as Dialogue Manager reads them.

4. When a command line containing no Dialogue Manager commands is fully expanded with anyvariables resolved (through either a -SET command or prompting), it is placed onto thecommand execution stack (FOCSTACK).

5. Dialogue Manager execution commands (for example, -RUN) and statistical variables flushthe FOCSTACK and route all currently stacked commands to the WebFOCUS CommandProcessor.

By the time your FOCSTACK is ready for execution, the following has happened:

All variables have received values and these values have been integrated into the commandlines containing variables.

Dialogue Manager commands have been used to place WebFOCUS commands into propersequential order for execution.

At this point the WebFOCUS Command Processor no longer sees any Dialogue Managercommands. It only sees WebFOCUS command lines in the stack.

Note: Any WebFOCUS command can be placed in a procedure, including the EXEC command.When an EXEC command is processed in a procedure, the commands from the new procedureare first stacked and then executed.

Creating a Procedure

You can use the WebFOCUS integrated text editor, TED, or invoke your system editor fromWebFOCUS with the IEDIT command to create procedures that contain Dialogue Managerfunctionality. IEDIT is especially useful with variable length files or those whose record lengthsare greater than 80 characters.

TED and IEDIT have two valuable features for creating and editing procedures:

If you issue the TED command, or invoke your system editor using the IEDIT command withoutspecifying a procedure name, the last executed procedure is automatically selected. This isconvenient when developing and testing new procedures.

Test the execution of the procedure by typing RUN on the command line in TED or in a systemeditor accessed with the IEDIT command. RUN automatically saves the procedure and executesit. If there is an error in your procedure, type TED or IEDIT to bring you back to the editor. Itplaces you directly on the line in which the error was detected.

These options complement the FILE and SAVE options that are common to other editors.

WebFOCUS App Studio Reference Guide 515

11. Creating Procedures in WebFOCUS App Studio

Page 516: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

In addition to Dialogue Manager commands and variables that directly affect an application'sflow of control, you can use commands to:

Add comments to a procedure.

Send messages to the display.

Control user access to data.

You can also create a profile procedure that defines startup conditions and can include DialogueManager commands.

Rules for Creating ProceduresReference:

When creating procedures:

Dialogue Manager commands must begin in the first position of the line.

At least one space must be inserted between the Dialogue Manager command and other text.

If a Dialogue Manager command exceeds one line, the following line must begin with a hyphen(-). The continuation line must have a space between the hyphen and the rest of the line.

Procedure names cannot contain special characters.

Including Comments in a Procedure

It is recommended that you use comments in a procedure heading to supply the date, the version,and other relevant information. A hyphen and an asterisk (-*) mark the beginning of a comment.

Comments are visible only when viewing the contents of the procedure through the editor andare strictly for the benefit of the developer.

How to Add a Comment in a ProcedureSyntax:

1. Begin the comment line with the command:

-*

2. Type the comment text after the command, optionally with a space before the text.

You can place a comment at the beginning or end of a procedure or in between commands. Acomment cannot be on the same line as a command.

516 WebFOCUS

Using Dialogue Manager

Page 517: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following entry is valid:

.

.

.-*Version 2 06/10/00-RUN

The following is invalid:

-RUN -*Version 2 06/10/00

Placing a Comment in a ProcedureExample:

The following example places a comment at the beginning of a procedure.

-* Version 1 08/26/02 HRINFO ProcedureTABLE FILE CENTHR . . .

Sending a Message to the User

You can use the -TYPE command to send a message to the display while a procedure is processing.Typically, the message serves the following purposes:

Explains the purpose of the procedure.

Displays the results of a procedure or calculation during testing of a procedure.

Presents other useful information.

Indicates what type of information to supply in response to a prompt.

How to Send a Message to the UserSyntax:

-TYPE sends the message to the display as soon as it is encountered in the processing of aprocedure. The syntax is

-TYPE[+|0|1] text

or

-label TYPE text

WebFOCUS App Studio Reference Guide 517

11. Creating Procedures in WebFOCUS App Studio

Page 518: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

text

Is the message to be sent. The message is sent to the screen, followed by a line feed. Itremains on screen until scrolled off or replaced by a new screen.

If you include quotation marks around the text, they are displayed as part of the message.(This differs from the use of TYPE in MODIFY, where quotation marks are used as delimitersand must enclose informative text.)

-label

Is the target of a -GOTO or -IF.

+|0|1

Are optional entries that pass printer control characters to the output device. They areparticularly useful for character printers. Options + and 1 do not work on IBM 3270-typedisplays.

+ suppresses the line feed following the printing of text.

0 forces a line feed before the message text is displayed.

1 forces a page eject before the message text is printed.

If supplied, these values must follow -TYPE without a space.

Sending a MessageExample:

The following example illustrates the use of -TYPE to inform a user about the content of a report:

-* Version 1 06/26/00 SLRPT Procedure-* Component of Retail Sales Reporting Module-TYPE This report calculates percentage of returns.TABLE FILE SALES . . .END

Controlling User Access to Data

You can issue and control passwords with the -PASS command. This is especially useful forspecifying a password for a particular file or set of files that a given user can read from or writeto. Passwords have detailed sets of functions associated with them through the DBA facility.

The procedure that sets passwords can be encrypted so that it and the passwords that it setscannot be typed and made known.

518 WebFOCUS

Using Dialogue Manager

Page 519: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A variable can also be associated with -PASS so that you can prompt for and assign a passwordvalue. You can also check the value of the password and skip or execute a portion of the proceduredepending on the value.

How to Set a Password in a ProcedureSyntax:

-PASS password

where:

password

Is a password or a variable containing a password.

Since -PASS is a Dialogue Manager command, it executes immediately and is not sent to theFOCSTACK. This means that the user need not issue the password with the SET command.

Navigating a Procedure

You can navigate a procedure in the following ways:

Unconditional branching. Transfers control to a label.

Conditional branching. Transfers control to a label depending on the outcome of a test.

Looping. Performs a function repeatedly in your procedure.

Calling another procedure. Incorporates a whole or partial procedure into your procedure.

Branching Unconditionally

You can perform unconditional branching, which transfers control to a label with the -GOTOcommand.

The first time through a procedure, Dialogue Manager notes the addresses of all the labels sothey can be found immediately if needed again. If Dialogue Manager has not stored the addressof the label in the -GOTO command, it searches forward through the procedure for the targetlabel. If no label is found, it begins searching at the top of the procedure.

Dialogue Manager takes no action on labels that do not have a corresponding -GOTO. If a -GOTOdoes not have a corresponding label, execution halts and an error message is displayed.

WebFOCUS App Studio Reference Guide 519

11. Creating Procedures in WebFOCUS App Studio

Page 520: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Branch UnconditionallySyntax:

-GOTO label . . .-label [TYPE text]

where:

-label

Is a user-defined name of up to 12 characters. Do not use embedded blanks or the nameof any other Dialogue Manager command. Do not use arithmetic or logical operations, wordsthat can be confused with functions, or reserved words, such as CONTINUE.

The label text may precede or follow the -GOTO command in the procedure.

Note: When the label is specified in the -GOTO command, a dash does not precede it.

TYPE text

Sends a message to the display.

Branching UnconditionallyExample:

The following example comments out all the WebFOCUS code using an unconditional branch,instead of the user typing -* in front of every line:

-GOTO DONETABLE FILE SALESPRINT UNIT_SOLD RETURNSBY PROD_CODE,CITYEND -RUN -DONE

Branching Conditionally

Conditional branching performs a test of the values of variables and, based on the test, transferscontrol to a label in the procedure with the -IF... GOTO command. This helps control the executionof requests and builds a dynamic procedure by choosing to execute or not execute parts of aprocedure.

For example, you can check whether an extract file was created from a production data source.If the extract file exists, the program runs a set of reports against the extract. If it does not exist,the program branches around the reports and writes a message to a log file.

520 WebFOCUS

Using Dialogue Manager

Page 521: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: Generally, an -IF test does not require that each test specify a target label. However,in a compound IF test, where a series of tests are nested within each other, a specified targetlabel is required for each test.

How to Branch ConditionallySyntax:

-IF expression [THEN] {GOTO label1|CONTINUE} [ELSE IF...] [ELSE {GOTO label2|CONTINUE}] ;

where:

expression

Is a valid expression. Literals do not need to be enclosed in single quotation marks unlessthey contain embedded blanks or commas.

THEN

Is an optional word that increases readability of the command.

label1

Is a user-defined name of up to 12 characters to which to pass control if the -IF test is true.Do not use embedded blanks or the name of any other Dialogue Manager command. Do notuse arithmetic or logical operations, words that can be confused with functions, or reservedwords, such as CONTINUE.

The label text may precede or follow the -IF criteria in the procedure.

CONTINUE

Continues to the command that follows the semicolon of the -IF command.

Note: CONTINUE cannot be used as a label in a -IF statement.

ELSE IF

Specifies a compound -IF test. The command -IF must end with a semicolon to signal thatall logic has been specified.

ELSE GOTO label2

Passes control to label2 when the -IF test fails.

If a command spans more than one line, continuation lines must begin with a hyphen and oneor more spaces.

WebFOCUS App Studio Reference Guide 521

11. Creating Procedures in WebFOCUS App Studio

Page 522: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Conditional Branching Based on User InputExample:

In the following example, the first report request or the second report request, but not both,executes. Suppose that for the procedure to run a user must supply a value for a variable named&PROC. The user may enter SALES or EMPLOYEE.

1. -IF &PROC EQ 'EMPLOYEE' GOTO EMPLOYEE;2. -SALES TABLE FILE SALES SUM UNIT_SOLD BY PROD_CODE END3. -EXIT -EMPLOYEE TABLE FILE EMPLOYEE PRINT PLANT_NAME BY DEPARTMENT END

The procedure processes as follows:

1. The user enters the value SALES for &PROC. An -IF test is done, and since the value for &PROCis not EMPLOYEE, the test fails and control is passed to the next line, -SALES

If the value for &PROC had been EMPLOYEE, control would pass to -EMPLOYEE.

2. The WebFOCUS code is processed, and stacked to be executed later.

3. -EXIT executes the stacked commands. The output is sent to the display and the procedureis terminated.

The request under the label -EMPLOYEE is not executed.

Looping in a Procedure

You can perform an action repeatedly by looping in your procedure with the -REPEAT command.Looping can be used for many tasks. For example, you can populate an indexed variable usinga loop or use the output of a request in a second request.

A process loop can be executed a designated number of times or until a condition is met. A loopends when any of the following occurs:

It is executed in its entirety.

A -EXIT command is issued.

A -GOTO is issued to a label outside of the loop.

522 WebFOCUS

Using Dialogue Manager

Page 523: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note: If you issue another -GOTO later in the procedure to return to the loop, the loopproceeds from the point at which it left off.

Note that the -SET command provides another method for implementing loops.

Tip: During loop processing, the search for labels that indicate the target of a -REPEAT or a -GOTO command takes longer in a procedure with variable, rather than fixed (80 character),record lengths. To speed execution in this situation, consider replacing loops with EX or-INCLUDE commands.

How to Specify a LoopSyntax:

-REPEAT label n TIMES

or

-REPEAT label WHILE condition;

or

-REPEAT label FOR &variable [FROM fromval] [TO toval] [STEP s]

where:

label

Identifies the code to be repeated (the loop). A label can include another loop if the label forthe second loop has a different name than the first.

n TIMES

Specifies the number of times to execute the loop. The value of n can be a local variable, aglobal variable, or a constant. If it is a variable, it is evaluated only once, so you cannotchange the number of times to execute the loop. The loop can only be ended early using -EXIT.

WHILE condition;

Specifies the condition under which to execute the loop. The condition is any logical expressionthat can be true or false. The loop executes if the condition is true.

Note: The condition must be followed by a semi-colon.

WebFOCUS App Studio Reference Guide 523

11. Creating Procedures in WebFOCUS App Studio

Page 524: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

&variable

Is a variable that is tested at the start of each execution of the loop and incremented by swith each execution. It is compared with the value of fromval and toval, if supplied. The loopis executed only if &variable is greater than or equal to fromval or less than or equal to toval.

fromval

Is a constant that is compared with &variable at the start of the execution of the loop. Thedefault value is 1.

toval

Is a value that is compared with &variable at the start of the execution of the loop. The defaultvalue is 1,000,000.

STEP s

Is a constant used to increment &variable at the end of the execution of the loop. It may bepositive or negative. The default increment is 1.

Note: The parameters FROM, TO, and STEP can appear in any order.

Repeating a LoopExample:

These examples illustrate each syntactical element of -REPEAT.

-REPEAT label n TIMES

For example:

-REPEAT LAB1 2 TIMES-TYPE INSIDE-LAB1 TYPE OUTSIDE

The output is:

INSIDEINSIDEOUTSIDE

-REPEAT label WHILE condition;

For example:

-SET &A = 1;-REPEAT LABEL WHILE &A LE 2;-TYPE &A-SET &A = &A + 1;-LABEL TYPE END: &A

524 WebFOCUS

Using Dialogue Manager

Page 525: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The output is:

12END: 3

-REPEAT label FOR &variable FROM fromval TO toval STEP s

For example:

-REPEAT LABEL FOR &A STEP 2 TO 4-TYPE INSIDE &A-LABEL TYPE OUTSIDE &A

The output is:

INSIDE 1INSIDE 3OUTSIDE 5

Controlling Loops With -SETExample:

The following example illustrates the use of -SET to control a loop:

1. -DEFAULT &N=02. -START3. -SET &N=&N+1;4. EX SLRPT -RUN5. -IF &N GT 5 GOTO NOMORE;6. -GOTO START5. -NOMORE TYPE EXCEEDING REPETITION LIMIT -EXIT

The procedure executes as follows:

1. The -DEFAULT command gives &N the initial value of 0.

2. -START begins the loop. This is also the target of an unconditional -GOTO.

3. The -SET command increments the value of &N by one each time the loop executes.

4. The WebFOCUS command EX SLRPT is stacked. -RUN then executes the stacked command.

5. The -IF command tests the current value of the variable &N. If the value is greater than 5,control passes to the label -NOMORE, which displays a message for the end user and forcesan exit. If the value of &N is 5 or less, control goes to the next Dialogue Manager command.

6. -GOTO passes control to the -START label, and the loop continues.

WebFOCUS App Studio Reference Guide 525

11. Creating Procedures in WebFOCUS App Studio

Page 526: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Incorporating Another Procedure With -INCLUDE

You can insert a whole or partial procedure in another procedure with the -INCLUDE command.A partial procedure might contain heading text, or code that should be included at run time basedon a test in the calling procedure. It executes immediately when encountered.

A calling procedure cannot branch to a label in a called procedure, and vice versa. When aprocedure is included using the -INCLUDE command, the procedure being included has full accessto variables defined in the calling procedure.

The -INCLUDE command can be used for the following:

Controlling the environment. For example, the included procedure may set variables, such asserver name or user name before the calling procedure continues execution.

As a security mechanism. The included procedure can be encrypted and a direct passwordset.

Shortening the code when there are several possible procedures that may be called. Forexample, the command -INCLUDE &NEWLINES could be used to determine the called procedure,reducing the number of GOTO commands.

Continuing sections of code used throughout the application, such as standard headings andfootings. This enables changes made in a single module effect the entire application.

How to Incorporate a FileSyntax:

-INCLUDE filename [filetype]

where:

filename

Is the name of a WebFOCUS procedure.

filetype

Is the DDNAME of the procedure. If none is included, FOCEXEC is assumed.

526 WebFOCUS

Using Dialogue Manager

Page 527: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Incorporating Another Procedure With -INCLUDEExample:

In the following example, Dialogue Manager searches for a procedure named DATERPT as specifiedby the -INCLUDE command.

-IF &OPTION EQ 'S' GOTO PRODSALES ELSE GOTO PRODRETURNS; . . .-PRODRETURNS-INCLUDE DATERPT-RUN . . .

Assume that DATERPT contains the following code, which Dialogue Manager incorporates intothe original procedure. Dialogue Manager substitutes a value for the variable &PRODUCT as soonas the -INCLUDE is encountered. -RUN executes the request.

TABLE FILE SALESPRINT PROD_CODE UNIT_SOLDWHERE PROD_CODE EQ '&PRODUCT';END

Incorporating a Procedure With a HeadingExample:

The following incorporates a heading, which is stored as a procedure:

TABLE FILE SALES-INCLUDE SALEHEADSUM UNIT_SOLD AND RETURNS AND COMPUTE . . .

The file SALEHEAD contains:

HEADING"THE ABC CORPORATION""RETAIL SALES DIVISION""MONTHLY SALES REPORT"

This heading is included in the report request.

WebFOCUS App Studio Reference Guide 527

11. Creating Procedures in WebFOCUS App Studio

Page 528: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Incorporating a Procedure for a Virtual FieldExample:

The following incorporates a virtual field from a procedure:

-INCLUDE DEFRATIO TABLE FILE SALES-INCLUDE SALEHEAD SUM UNIT_SOLD AND RETURNS AND RATIO BY CITY . . .

The file DEFRATIO creates a virtual field:

DEFINE FILE SALESRATIO/D5.2=(RETURNS/UNIT_SOLD);END

This virtual field is dynamically included before the report request executes.

Nesting Procedures With -INCLUDE

Any number of different procedures can be invoked from a single calling procedure.

You can also nest a procedure within itself, or recursively. Recursive -INCLUDE commands cannotexceed four levels. For non-recursive -INCLUDE commands, the level of nesting is limited only bythe available memory.

528 WebFOCUS

Using Dialogue Manager

Page 529: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Files 1 through 4 are incorporated into the original procedure. All of the included files are viewedas part of the original procedure.

A procedure cannot branch to a label in an included file.

Calling Another Procedure With EXEC

You can call a procedure from another procedure with the EXEC command. The called proceduremust be fully executable. It behaves as a completely separate procedure with its own content.It cannot use any local variables (&variables) defined by the calling procedure (unless they areexplicitly passed to the called procedure on the command line). However, the executed (called)procedure can use any global variables (&&variables) that have been defined in the callingprocedure.

When an EXEC command is encountered, it is stacked and executed when the appropriate DialogueManager command is encountered.

How to Call a Procedure With the EXEC CommandSyntax:

EX[EC] procedure

where:

procedure

Is the name of the procedure.

You can include arguments for the procedure.

Note: This syntax is identical to execution syntax for any stored procedure. However, in thiscontext the EXEC command is included within another procedure.

Calling a Procedure With EXECExample:

In the following example, a procedure calls DATERPT:

-IF &OPTION EQ 'S' GOTO PRODSALES ELSE GOTO PRODRETURNS; . . .-PRODRETURNS EX DATERPT . . .-RUN

WebFOCUS App Studio Reference Guide 529

11. Creating Procedures in WebFOCUS App Studio

Page 530: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using Variables in a Procedure

Using interactive variable substitution, you can create procedures that include variables (alsocalled amper variables) and supply values for them at run time. These variables store a string oftext or numbers and can be placed anywhere in a procedure. For example, a variable can referto a field, a command, descriptive text, or a file name.

Note: A Dialogue Manager variable contains only alphanumeric data. If a function or expressionreturns a numeric value to a Dialogue Manager variable, the value is truncated to an integerand converted to alphanumeric format before being stored in the variable, unless you specifythe precision to use.

Variables fall into two categories:

Local and global variables have values supplied at run time. Local variable values remain ineffect for the respective procedure, while global variable values remain in effect for allprocedures executed during an entire session.

Leading double ampersands (&&) denote global variables. All other Dialogue Manager variablesbegin with a single ampersand (&). For this reason, they are known as amper variables.

System, statistical, and special variables have values that the system automatically resolveswhenever you request them.

The maximum number of local, global, system, statistical, special, and index variables availablein a procedure is 1024. Approximately 40 are reserved for use by WebFOCUS.

Variables can be used only in procedures. They are ignored if you use them while creating reportslive at the display.

You can query the values of each type of variable you use.

The values for variables may be supplied in a variety of ways.

Naming Conventions for Local and Global VariablesReference:

Local and global variable names are user-defined, while system and statistical variables havepredefined names. The following rules apply to the naming of local and global variables:

A local variable name is always preceded by an ampersand (&). The variable can be namedor positional.

A positional variable consists of a single ampersand followed by a numeric string (for example,&1). The value of a positional variable is passed to a procedure when it is executed.

A global variable name is always preceded by a double ampersand (&&).

530 WebFOCUS

Using Dialogue Manager

Page 531: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

A variable name can consist of up to 100 characters.

Embedded blanks are not permitted in a variable name.

If a value for a variable might contain an embedded blank, comma, or equal sign, enclosethe variable in single quotation marks when referred to.

A variable name may be any combination of the characters A through Z, 0 through 9, and theunderscore. The first character of the name should be a letter.

You can assign a number instead of a name to a variable to create a positional variable.

The underscore may be included in a variable name, but the following special characters arenot permitted: plus sign, minus sign, asterisk, slash, period, ampersand, and semicolon.

How to Specify a Variable NameSyntax:

&[&]name

where:

&

Denotes a local variable. A single ampersand followed by a numeric string denotes a positionalvariable.

&&

Denotes a global variable.

name

Is the variable name. The name you assign must follow the rules outlined for Dialogue Manager

Local Variables

Local variables are identified by a single ampersand (&) preceding the name of the variable. Theyremain in effect throughout a single procedure.

WebFOCUS App Studio Reference Guide 531

11. Creating Procedures in WebFOCUS App Studio

Page 532: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using Local VariablesExample:

Consider the following procedure, SALESREPORT, in which &CITY, &CODE1, and &CODE2 arelocal variables:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &CITY""PRODUCT CODES FROM &CODE1 TO &CODE2"" "SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY CITYIF CITY EQ &CITYBY PROD_CODEIF PROD_CODE IS-FROM &CODE1 TO &CODE2END

Assume you supply the following values when you call the procedure:

EX SLRPT CITY = STAMFORD, CODE1=B10, CODE2=B20

Dialogue Manager substitutes the values for the variables as follows:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR STAMFORD""PRODUCT CODES FROM B10 TO B20"" "SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY CITYIF CITY EQ STAMFORDBY PROD_CODEIF PROD_CODE IS-FROM B10 TO B20END

After the procedure executes and terminates, the values STAMFORD, B10, and B20 are lost.

Global Variables

Global variables differ from local variables in that once a value is supplied, it remains currentthroughout the WebFOCUS session unless set to another value with -SET or cleared by the LETCLEAR command. Global variables are useful for gathering values at the start of a work sessionfor use by several subsequent procedures. All procedures that use a particular global variablereceive the current value until you exit from WebFOCUS.

532 WebFOCUS

Using Dialogue Manager

Page 533: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Global variables are specified through the use of a double ampersand (&&) preceding the variablename. It is possible to have a local and global variable with the same name. They are distinctand may have different values.

Using Global VariablesExample:

The following example illustrates the use of three global variables: &&CITY, &&CODE1, &&CODE2.The values are substituted in the first procedure, PROC1, and the values are retained and passedto the second procedure, PROC2.

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &&CITY"SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY CITYIF CITY EQ &&CITYBY PROD_CODEIF PROD_CODE IS-FROM &&CODE1 TO &&CODE2ENDEX PROC2

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &&CITY AND PRODUCT &&CODE1"PRINT UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY CITYIF CITY EQ &&CITYIF PROD_CODE EQ &&CODE1END

System Variables

WebFOCUS automatically substitutes values for system variables encountered in a DialogueManager request. For example, you can use the system variable &DATE to automatically incorporatethe system date in your request.

System-supplied variables should not be overridden. To avoid this possibility, user-suppliedvariables should not be given system variables names.

Summary of System VariablesReference:

The following table describes the Dialogue Manager system variables.

WebFOCUS App Studio Reference Guide 533

11. Creating Procedures in WebFOCUS App Studio

Page 534: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionFormat or ValueVariable

Returns the current date.MM/DD/YY&DATE

Returns the current date or date-timevalue, where fmt can be any valid dateor date-time format. Because manydate format options can be appendedto the prefix DATE to form one ofthese variable names, you shouldavoid using DATE as the prefix whencreating a variable name.

Returns the current date or date-time value, where fmt can be anyvalid date or date-time format.&DATEfmt retains trailing blanksin the returned value. &DATXfmtsuppresses trailing blanks in thereturned value.

Note: Using the concatenationsymbol (|) to removepunctuation betweencomponents is not supported.To return a value withoutpunctuation between thecomponents, use &YYMD or&DATEHYYMDN.

For information about date anddate-time formats, see Describingan Individual Field in theDescribing Data With WebFOCUSLanguage manual.

&DATEfmt

&DATXfmt

Returns the current date.DDMMYY&DMY

Returns the current (four-digit year)date.

DDMMCCYY&DMYY

Returns the code page being used byWebFOCUS.

&FOCCODEPAGE

Calculates the OS CPU time.milliseconds&FOCCPU

Indicates the availability of extendeddisplay attributes.

ONOFF

&FOCEXTTRM

534 WebFOCUS

Using Dialogue Manager

Page 535: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionFormat or ValueVariable

Returns the name of the FOCEXECrunning even if it was executed usingan EX command or a -INCLUDEcommand from within anotherFOCEXEC. This variable differs fromthe &FOCFOCEXEC variable because&FOCFOCEXEC returns the name ofthe calling FOCEXEC only.

&FOCFEXNAME

Returns a string indicating whetherlong and qualified field names aresupported. A value of OLD means thatthey are not supported, NEW meansthat they are supported, andNOTRUNC means that they aresupported, but unique truncations offield names cannot be used.

NEWOLDNOTRUNC

&FOCFIELDNAME

Manages reporting operationsinvolving many similarly namedrequests that are executed using EX.&FOCFOCEXEC enables you to easilydetermine which procedure is running.&FOCFOCEXEC can be specified withina request or in a Dialogue Managercommand to display the name of thecurrently running procedure.

&FOCFOCEXEC

Manages reporting operationsinvolving many similarly namedrequests that are included using -INCLUDE. &FOCINCLUDE can bespecified within a request or in aDialogue Manager command todisplay the name of the currentincluded procedure.

&FOCINCLUDE

WebFOCUS App Studio Reference Guide 535

11. Creating Procedures in WebFOCUS App Studio

Page 536: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionFormat or ValueVariable

Holds the three-characterlanguage code. For example, GERfor GERMAN or FRE for FRENCH.This variable is blank when thelanguage is English, either AMEor ENG.

&FICLANGCODE

Identifies the operating environment.CRJEMSOOSTSO

&FOCMODE

Establishes consecutive pagenumbering across multiple reports.When a report is processed, thevariable &FOCNEXTPAGE is set to thenumber following the last pagenumber in the report. This value canthen be used as the first page numberin a subsequent report, making thereport output from multiple requestsmore useful and readable.

&FOCNEXTPAGE

Returns the current print setting.ONLINEOFFLINE

&FOCPRINT

For example, 9306 or 9310.

&FOCPUTLVL is no longer supported.

WebFOCUS PUT level number.&FOCPUTLVL

Returns the character used toseparate the components of qualifiedfield names.

.:!%|\

&FOCQUALCHAR

Identifies the WebFOCUS Releasenumber. For example, 6.5 or 6.8.

release number&FOCREL

536 WebFOCUS

Using Dialogue Manager

Page 537: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionFormat or ValueVariable

Whether solid borders are used in full-screen mode.

ONOFF

&FOCSBORDER

Indicates display height. (This can beany value. The examples shown arecommon settings.)

24273243

&FOCTRMSD

Indicates display width. (This can beany value. The examples shown arecommon settings.)

80132

&FOCTRMSW

Identifies the display type.3270TTYUNKNOWN

&FOCTRMTYP

Returns the connected user ID.Similar to the GETUSER function.

&FOCUSER

Returns a string showing whetherHiperFOCUS is on.

ONOFF

&HIPERFOCUS

Returns the code set by the lastDialogue Manager -READ or -WRITEoperation. (0 = successful; 1=unsuccessful.)

&IORETURN

Returns the current date. The formatmakes this variable useful fornumerical comparisons.

MMDDYY&MDY

Returns the current (four-digit year)date.

MMDDCCYY&MDYY

Returns the return code set uponexecution of an operating systemcommand. Executes all WebFOCUScommands in the FOCSTACK just asthe -RUN command would.

numeric&RETCODE

WebFOCUS App Studio Reference Guide 537

11. Creating Procedures in WebFOCUS App Studio

Page 538: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionFormat or ValueVariable

Contains the value from the SET FILEcommand.

alphanumeric&SETFILE

Returns the current time. When youenter WebFOCUS, this variable isupdated to the current system timeonly when you execute a MODIFY,SCAN, or FSCAN command. To obtainthe exact time during any process,use the HHMMSS function.

HH.MM.SS&TOD

Returns the current date.YYMMDD&YMD

Returns the current (four-digit year)date.

CCYYMMDD&YYMD

Retrieving the Date Using the System Variable &DATEExample:

The following example incorporates the system variable &DATE into a request. The footing usesthe system variable &DATE to insert the current system date at the bottom of the report.

TABLE FILE SALESSUM UNIT_SOLDBY PROD_CODEFOOTING "CALCULATED AS OF &DATE"END

Retrieving the Procedure Name Using the System Variable &FOCFOCEXECExample:

This example illustrates how to use the system variable &FOCFOCEXEC in a request to displaythe name of the currently running procedure:

TABLE FILE EMPLOYEE"REPORT: &FOCFOCEXEC -- EMPLOYEE SALARIES"PRINT CURR_SAL BY EMP_IDEND

538 WebFOCUS

Using Dialogue Manager

Page 539: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If the request is stored as a procedure called SALPRINT, when executed it produces the followingoutput.

REPORT: SALPRINT -- EMPLOYEE SALARIESEMP_ID CURR_SAL------ --------071382660 $11,000.00112847612 $13,200.00117593129 $18,480.00119265415 $9,500.00119329144 $29,700.00123764317 $26,862.00126724188 $21,120.00219984371 $18,480.00326179357 $21,780.00451123478 $16,100.00543729165 $9,000.00818692173 $27,062.00

&FOCFOCEXEC and &FOCINCLUDE can also be used in -TYPE commands. For example, you havea procedure named EMPNAME that contains the following:

-TYPE &|FOCFOCEXEC is: &FOCFOCEXEC

When EMPNAME is executed, the following output is produced:

&FOCFOCEXEC IS: EMPNAME

Displaying a Date Using the System Variable &YYMDExample:

You can display a date variable containing a 4-digit year without separators. The variables are&YYMD, &MDYY, and &DMYY.

The following example shows a report using &YYMD:

TABLE FILE EMPLOYEEHEADING"SALARY REPORT RUN ON DATE &YYMD"" "PRINT DEPARTMENT CURR_SALBY LAST_NAME BY FIRST_NAMEEND

WebFOCUS App Studio Reference Guide 539

11. Creating Procedures in WebFOCUS App Studio

Page 540: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The resulting output for May 19, 1999 is shown in the following image.

Statistical Variables

WebFOCUS posts many statistics concerning overall operations while a procedure executes inthe form of statistical variables. As with system variables, WebFOCUS automatically suppliesvalues for these variables on request.

Summary of Statistical VariablesReference:

The following table describes the Dialogue Manager statistical variables.

DescriptionVariable

Indicates the number of transactions accepted. This variable applies only toMODIFY requests.

&ACCEPTS

Indicates the number of input/output operations performed.&BASEIO

Indicates the number of segments updated. This variable applies only toMODIFY requests.

&CHNGD

540 WebFOCUS

Using Dialogue Manager

Page 541: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionVariable

Indicates the number of segments deleted. This variable applies only toMODIFY requests.

&DELTD

Indicates the number of transactions rejected as a result of duplicate valuesin the data source. This variable applies only to MODIFY requests.

&DUPLS

Indicates the percentage of disorganization for a WebFOCUS file. You canuse the ? FILE command to display or test this variable, even if the value isless than 30% (the level at which ? FILE displays the amount ofdisorganization).

&FOCDISORG

Indicates the last error number, in the format FOCnnnn, displayed after theexecution of a procedure. If more than one occurred, &FOCERRNUM holdsthe number of the most recent error. If no error occurred, &FOCERRNUM hasa value of 0. It can also be used to control branching from a procedure toexecute an error-handling routine.

&FOCERRNUM

Indicates the number of transactions rejected as a result of a format error.This variable applies only to MODIFY requests.

&FORMAT

Indicates the number of segments added to the data source. This variableapplies only to MODIFY requests.

&INPUT

Indicates the number of transactions rejected as a result of an invalidcondition. This variable applies only to MODIFY requests.

&INVALID

Indicates the number of lines printed in last report. This variable applies onlyto report requests.

&LINES

Indicates the number of transactions rejected as a result of not matching avalue in the data source. This variable applies only to MODIFY requests.

&NOMATCH

Indicates the number of records read from a non-WebFOCUS file.&READS

Indicates the number of records retrieved in last report. This variable appliesonly to report requests.

&RECORDS

WebFOCUS App Studio Reference Guide 541

11. Creating Procedures in WebFOCUS App Studio

Page 542: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionVariable

Indicates the number of transactions rejected for reasons other than theones specifically tracked by other statistical variables. This variable appliesonly to MODIFY requests.

&REJECTS

Indicates the number of transactions processed. This variable applies onlyto MODIFY requests.

&TRANS

Controlling Execution of a Request With the Statistical Variable &LINESExample:

In the following example, the system calculates the value of the statistical variable &LINES. If&LINES is 0, control passes to the TABLE FILE EMPLOYEE request identified by the label -RPT2.If the value is not 0, control passes to the label -REPTDONE, and processing is terminated.

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &CITY"SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY CITYIF CITY EQ &CITYBY PROD_CODEIF PROD_CODE IS-FROM &CODE1 TO &CODE2END-RUN -IF &LINES EQ 0 GOTO RPT2 ELSE GOTO REPTDONE;-RPT2TABLE FILE EMPLOYEE . . .END-RUN -REPTDONE-EXIT

Special Variables

WebFOCUS provides special variables that apply to the cursor, function keys, windows, and otherfeatures.

Summary of Special VariablesReference:

The following table describes the special variables.

542 WebFOCUS

Using Dialogue Manager

Page 543: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

DescriptionVariable

Controls the display of commands for debugging purposes.&ECHO

Controls whether the entire procedure, or only the Dialogue Managercommands are executed.

&STACK

Querying the Values of Variables and Parameters

Two Dialogue Manager commands enable you to:

Display the values of all types of local, global, and system variables.

Store the value of a parameter in a variable. The stored value can then be queried with the? SET command.

In addition, you can issue two QUERY (?) commands from the WebFOCUS prompt to display thevalues of:

Global variables. Since global variable values remain current throughout the WebFOCUSsession, it is helpful to be able to display the values on demand. The syntax is:

? &&

Statistics stored in variables. You can query the current value of all statistical variables(except &FOCDISORG and &FOCERRNUM). The syntax is:

? STAT

How to Display the Value of a VariableSyntax:

You can query all Dialogue Manager variables (local, global, system, and statistical) from a storedprocedure. The syntax is

-? &[&variablename]

where:

&

Issued alone, displays variables of all types.

variablename

Is a complete amper variable or a partial string of up to 12 characters. Only amper variablesstarting with the specified string are displayed.

WebFOCUS App Studio Reference Guide 543

11. Creating Procedures in WebFOCUS App Studio

Page 544: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The command displays the following message, followed by a list of currently defined ampervariables and the values:

CURRENTLY DEFINED & VARIABLES:

Since local variables do not exist outside a procedure, no similar query is available from theWebFOCUS command line.

How to Store Parameter Value SettingsSyntax:

You can store the current value of a SET parameter in a variable and use the value in a procedure.The syntax is

-? SET parameter &[&]variablename

where:

parameter

Is any valid WebFOCUS setting that may be queried with the ? SET or ? SET ALL command.

variablename

Is the name of the variable where the value is to be stored.

Storing a Parameter Value SettingExample:

If you enter the following, the value stored in &ABC becomes the value of ASNAMES.

-? SET ASNAMES &ABC-TYPE &ABC

If you omit &ABC from the command, then a variable called &ASNAMES is created that containsthe value of ASNAMES.

Supplying and Verifying Values for Variables

When you design a Dialogue Manager procedure with variables, you must decide how the variablesin the procedure acquire values at run time. You can use or combine the following techniques.

You can supply variable values directly in procedures, without prompting users for input, usingthe following methods:

-DEFAULT[S] or -DEFAULTH. Supplies default variable values.

-SET. Computes a variable value in an expression or to assign a literal value.

-READ. Supplies variable values from an external file.

EXEC. Supplies values on the command line when running a procedure.

544 WebFOCUS

Using Dialogue Manager

Page 545: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Verifying user input: For values supplied by users, you can also verify input by comparing itagainst:

Format specifications.

A pre-defined list of acceptable values.

Rules for Supplying Variable ValuesReference:

The following rules apply to values for variables:

If a value contains an embedded comma, equal sign, or blank, you must enclose the variablename in single quotation marks when you use it in an expression. For example, if the valuefor &LOCATION is BOS, MA, you must refer to the variable as '&LOCATION' in any expression.

Once a value is supplied for a local variable, it is used throughout the procedure, unless it ischanged by -READ or -SET.

Once a value is supplied for a global variable, it is used throughout the WebFOCUS sessionin all procedures, unless it is changed by -READ or -SET, or cleared by LET CLEAR.

Dialogue Manager automatically prompts the display if a value has not been supplied for avariable.

The lengths of values stored in Dialogue Manager (amper) variables vary by context:

When used with the commands -READ, -TYPE, and WRITE, the maximum length of a variableis approximately 32,000 characters (32K).

When used with other Dialogue Manager commands or the EX command, a variable valuecannot exceed 4,096 character (4K).

In all contexts, Dialogue Manager variable names are limited to 100 characters.

Supplying Variable Values in a ProcedureExample:

This example illustrates the use of the -DEFAULT and -SET commands to supply values forvariables. The end user supplies the value B10 for &CODE1, B20 for &CODE2, and SMITH for&REGIONMGR, as prompted by Dialogue Manager.

WebFOCUS App Studio Reference Guide 545

11. Creating Procedures in WebFOCUS App Studio

Page 546: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The numbers to the left of the example apply to the notes that follow:

1. -DEFAULT &VERB=SUM2. -SET &CITY=IF &CODE1 GT 'B09' THEN 'STAMFORD' ELSE 'UNIONDALE';3. -TYPE REGIONAL MANAGER FOR &CITY SET PAGE=OFF5. TABLE FILE SALES HEADING CENTER "MONTHLY REPORT FOR &CITY" "PRODUCT CODES FROM &CODE1 TO &CODE2" " " &VERB UNIT_SOLD AND RETURNS AND COMPUTE RATIO/D5.1 = 100 * (RETURNS/UNIT_SOLD); BY PROD_CODE IF PROD_CODE IS-FROM &CODE1 TO &CODE2 FOOTING CENTER4. "REGION MANAGER: &REGIONMGR" "CALCULATED AS OF &DATE" END6. -RUN

The procedure executes as follows:

1. The -DEFAULT command sets the value of &VERB to SUM.

2. The -SET command supplies the value for &CITY depending on the value the end user enteredin the form for &CODE1. Because the end user entered B10 as the value for &CODE1, &CITYbecomes STAMFORD.

3. When the user runs the report, WebFOCUS writes a message that incorporates the value for&CITY:

REGIONAL MANAGER FOR STAMFORD

4. The user supplied the value for &REGIONMGR in response to an implicit prompt. WebFOCUSsupplies the current data at run time.

546 WebFOCUS

Using Dialogue Manager

Page 547: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

5. The WebFOCUS stack contains the following lines:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR STAMFORD""PRODUCT CODES FROM B10 TO B20"" "SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.1 = 100 * (RETURNS/UNIT_SOLD);BY PROD_CODEIF PROD_CODE IS-FROM B10 TO B20FOOTING CENTER"REGION MANAGER: SMITH""CALCULATED AS OF 06/11/03"END

6. The -RUN command causes execution of all commands in the stack. The output from thereport request is as follows:

MONTHLY REPORT FOR STAMFORD PRODUCT CODES FROM B10 TO B20

PROD_CODE UNIT_SOLD RETURNS RATIO--------- --------- ------- -----B10 103 13 12.6B12 69 4 5.8B17 49 4 8.2B20 40 1 2.5

REGION MANAGER: SMITH CALCULATED AS OF 06/11/03

Supplying a Default Variable Value

-DEFAULT commands set default values for local or global variables. This technique ensures thata value is passed to a variable so that the user is not prompted for the value.

You can issue multiple -DEFAULT commands for a variable. If the variable is global, these -DEFAULTcommands can be issued in separate FOCEXECs. At any point before another method is used toestablish a value for the variable, the most recently issued -DEFAULT command will be in effect.

However, as soon as a value for the variable is established using any other method (for example,by issuing a -SET command, retrieving a value input by the user, or reading a value from a file),subsequent -DEFAULT commands issued for that variable are ignored.

Note that -DEFAULTS and -DEFAULTH are synonyms for -DEFAULT.

How to Supply a Default ValueSyntax:

-DEFAULT[S|H] &[&]name=value [...] [;]

WebFOCUS App Studio Reference Guide 547

11. Creating Procedures in WebFOCUS App Studio

Page 548: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

name

Is the name of the variable.

value

Is the default value assigned to the variable.

;

Is an optional punctuation character.

Note: -DEFAULTS and -DEFAULTH are synonyms for -DEFAULT.

Supplying a Default ValueExample:

In the following example, -DEFAULT sets the default value for &PLANT to Boston (BOS):

-DEFAULT &PLANT=BOSTABLE FILE CENTHR . . .

Supplying Variable Values in an Expression

You can assign a value to a variable by computing the value in an expression or assigning a literalvalue to a variable with the -SET command. You can also use the IN FILE phrase to test whethera character value exists in a file and populate a variable with the result. The value of the variableis set to 1 if the test value exists in the file and 0 (zero) if it does not.

You can use this technique to supply dates to Dialogue Manager as variable values. A datesupplied to Dialogue Manager in a variable cannot be more than 20 characters long, includingspaces. Dialogue Manager variables only accept full-format dates (that is, MDY or MDYY, in anyorder).

If you are working with cross-century dates that do not include a four-digit year, you can use theSET parameters DEFCENT and YRTHRESH variables to identify the century.

If you want to set a variable value to a number, the only supported characters you can use arenumeric digits, a leading minus sign, and a period to represent following decimal places. Theseare the only valid characters that Dialogue Manager supports in a number, regardless of EDIToptions or the value of CDN.

548 WebFOCUS

Using Dialogue Manager

Page 549: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Assign a Value in an ExpressionSyntax:

-SET &[&]name= {expression|value};

-SET &[&]var3= &var1 IN FILE filename1 [OR &var2 IN FILE filename2 ...];

where:

name

Is the name of the variable.

expression

Is a valid expression. Expressions can occupy several lines, so you must end the commandwith a semicolon.

value

Is a literal value, or arithmetic or logical expression assigned to the variable. If the literalvalue contains commas or embedded blanks, you must enclose the value in single quotationmarks.

&[&]var3

Is a variable that is populated with the value 1 if the result of the expression on the rightside of the equal sign is true, or with the value 0 if the result is false.

&var1

Is the variable that contains the value to be searched for in filename1.

&var2

Is the variable that contains the value to be searched for in filename2.

Usage Notes for IN FILEReference:

The result of the IN FILE phrase is an alphanumeric value (1 or 0) that can be used in a logicalexpression connected with AND and OR operators within same –SET command. This valuecannot be used as an argument in an alphanumeric operation, such as concatenation withinthe same -SET command.

In order for IN FILE to return the value 1, the values in the file and the search string mustmatch exactly, starting with the leftmost byte in the file.

The file can be in any order and have duplicate values. The search stops when either the firstmatch is found or the end of the file is reached. If the file is allocated but does not exist, thevalue 0 is returned. If the file is not allocated, a FOC351 message displays.

WebFOCUS App Studio Reference Guide 549

11. Creating Procedures in WebFOCUS App Studio

Page 550: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The length of the variable used in the IN FILE phrase determines the number of bytes fromthe beginning of each record in the file used for comparison. Only an exact match on thatnumber of bytes will return a 1. Trailing blanks in the variable will require the same numberof trailing blanks in the file in order to match. For example, the following will match only thevalue 'ABC ' (ABC with three trailing blanks):

-SET &VAR1 = 'ABC ';-SET &VAR2 = &VAR1 IN FILE FILE1;

How to Specify Precision for Dialogue Manager CalculationsSyntax:

The DMPRECISION setting enables Dialogue Manager -SET commands to calculate accuratenumeric variable values without using the FTOA function.

Without this setting, results of numeric calculations are returned as integer numbers, althoughthe calculations themselves employ double-precision arithmetic. To return a number with decimalprecision without this setting, you have to enter the calculation as input into subroutine FTOA,where you can specify the number of decimal places returned.

The SET DMPRECISION command gives users the option of either accepting the default truncationof the decimal portion of output from arithmetic calculations, or specifying up to nine decimalplaces for rounding.

SET DMPRECISION = {OFF|n}

where:

OFF

Specifies truncation without rounding after the decimal point. OFF is the default value.

n

Is a positive number from 0-9, indicating the point of rounding. Note that n=0 results in arounded integer value.

When using SET DMPRECISION, you must include -RUN after the SET DMPRECISION commandto ensure that it is set prior to any numeric -SET commands.

As the actual conversion to double precision follows the rules for the operating system, thevalues may vary from platform to platform.

Setting Precision for Dialogue Manager CalculationsExample:

The following table below shows the result of dividing 20 by 3 with varying DMPRECISION (DMP)settings:

550 WebFOCUS

Using Dialogue Manager

Page 551: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ResultSET DMPRECISION =

6OFF

70

6.71

6.672

6.6666666679

Setting a Variable Value in an ExpressionExample:

In the following example, -SET assigns the value 14Z or 14B to the variable &STORECODE, asdetermined by the logical IF expression. The value of &CODE is supplied by the user.

-SET &STORECODE = IF &CODE GT C2 THEN '14Z' ELSE '14B'; TABLE FILE SALES SUM UNIT_SOLD AND RETURNS BY PROD_CODE IF PROD_CODE GE &CODE BY STORE_CODE IF STORE_CODE IS &STORECODE END

Setting a Literal ValueExample:

The use of single quotation marks around a literal is optional unless the literal contains embeddedblanks, commas, or equal signs. In these cases, you must include them as illustrated below:

-SET &NAME='JOHN DOE';

Setting the Difference Between Two DatesExample:

This example supplies dates to Dialogue Manager as variables. The variable &DELAY is set tothe difference in days between &LATER and &NOW.

-SET &NOW = 'JUN 30 2002';-SET &LATER = '2002 25 AUG';-SET &DELAY = &LATER - &NOW;-TYPE &DELAY

WebFOCUS App Studio Reference Guide 551

11. Creating Procedures in WebFOCUS App Studio

Page 552: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Testing Whether a Variable Value Is in a FileExample:

The following FOCEXEC creates an alphanumeric HOLD file called COUNTRY1 with the names ofcountries from the CAR file. It then sets the variable &C equal to FRANCE. The IN FILE phrasereturns the value 1 to &IN1 if FRANCE is in the HOLD file and 0 if it is not:

TABLE FILE CAR PRINT COUNTRY ON TABLE HOLD AS COUNTRY1 FORMAT ALPHA END -RUN -SET &C = 'FRANCE'; -SET &IN1 = &C IN FILE COUNTRY1; -TYPE THE VALUE IS &IN1

The output shows that FRANCE is in the file COUNTRY1:

THE VALUE IS 1

Initializing a Variable to a Long StringExample:

To set the value of a variable with -SET, you need to specify a character string on the right sideof the SET command. Since the character string cannot span multiple lines, if necessary, youcan concatenate shorter strings or variables to compose the long string.

The following procedure creates a variable named &LONG that contains a long string:

-SET &LONG = 'THIS IS A LONG AMPER VARIABLE. NOTE THAT IN ORDER '- |'TO SET ITS VALUE USING -SET, YOU MUST CONCATENATE SHORTER STRINGS, '- |'EACH OF WHICH MUST FIT ON ONE LINE.';-TYPE &LONGEND

The output is:

THIS IS A LONG AMPER VARIABLE.NOTE THAT IN ORDER TO SET ITS VALUE USING -SET, YOU MUST CONCATENATE SHORTER STRINGS, EACH OF WHICH MUST FIT ON ONE

LINE.

Reading Variable Values From and Writing Variable Values to an External File

You can read variable values from an external file, or write variable values to an external file withthe -READ and -WRITE commands.

You can supply variable values with the -READ command. For example, an external file maycontain the start and end dates of a reporting period. Dialogue manager can read these valuesfrom an external file and use them in a variable in a WHERE command that limits the rangeof data selected in a report request.

552 WebFOCUS

Using Dialogue Manager

Page 553: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

You can save variable values in an external file with the -WRITE command. For example, arequest can store the summed total of sales for the day in an external file so that it can becompared to the total sales of the following day.

The external file can be a fixed-format file (in which the data is in fixed columns) or a free-formatfile (in which the data is comma delimited).

You can also read a file using the -READFILE command. The -READFILE command reads a file byfirst reading its Master File and creating Dialogue Manager amper variables based on the ACTUALformats for each field in the Master File. It then reads the file and, if necessary, converts thefields from numeric values to alphanumeric strings before returning them to the created variables.Display options in the USAGE formats are not propagated to the variables. The names of theamper variables are the field names prefixed with an ampersand (&).

How to Retrieve a Variable Value From an External FileSyntax:

-READ ddname[,] [NOCLOSE] &name[.format.][,] ...

where:

ddname

Is the logical name of the file as defined to WebFOCUS using ALLOCATE or DYNAM ALLOCATE.

A space after the ddname denotes a fixed format file while a comma denotes a comma-delimited file.

NOCLOSE

Indicates that the file should be kept open even if a -RUN is encountered. The file is closedupon completion of the procedure or when a -CLOSE or subsequent -WRITE command isencountered.

name

Is the variable name. You may specify more than one variable. Using commas to separatevariables is optional.

If the list of variables is longer than one line, end the first line with a comma and begin thenext line with a dash followed by a blank (- ) for comma-delimited files or a dash followed bya comma followed by a blank (-, ) for fixed format files. For example:

Comma-delimited files

-READ EXTFILE, &CITY,&CODE1,- &CODE2

WebFOCUS App Studio Reference Guide 553

11. Creating Procedures in WebFOCUS App Studio

Page 554: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Fixed format files

-READ EXTFILE &CITY.A8. &CODE1.A3.,-, &CODE2.A3

format

Is the format of the variable. It may be Alphanumeric (A) or Numeric (I). Note that format mustbe delimited by periods. The format is ignored for comma-delimited files.

Note: -SET provides an alternate method for defining the length of a variable using thecorresponding number of characters enclosed in single quotation marks ('). For example,the following command defines the length of &CITY as 8:

-SET &CITY=' ';

Reading a Value From an External FileExample:

Assume that EXTFILE is a fixed-format file containing the following data:

STAMFORDB10B20

To detect the end of a file, the following code tests the system variable &IORETURN. When norecords remain to be read, a value equal to zero is not found.

-READ EXTFILE &CITY.A8. &CODE1.A3. &CODE2.A3.-IF &IORETURN NE 0 GOTO RESUME; TABLE FILE SALES SUM UNIT_SOLD BY CITY IF CITY IS &CITY BY PROD_CODE IF PROD_CODE IS-FROM &CODE1 TO &CODE2 END-RESUME . . .

How to Write a Variable Value to an External FileSyntax:

-WRITE ddname [NOCLOSE] text

where:

ddname

Is the logical name of the file as defined to WebFOCUS using ALLOCATE or DYNAM ALLOCATE.

554 WebFOCUS

Using Dialogue Manager

Page 555: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

NOCLOSE

Indicates that the file should be kept open even if a -RUN is encountered. The file is closedupon completion of the procedure or when a -CLOSE or subsequent -READ command isencountered.

text

Is any combination of variables and text. To write more than one line, end the first line witha comma (,) and begin the next line with a hyphen followed by a space (-).

-WRITE opens the file to receiving the text and closes it upon exit from the procedure. When thefile is reopened for writing, the new material overwrites the old. To reopen to add new recordsinstead of overwriting existing ones, use the attribute DISP MOD when you define the file to theoperating system.

Writing to a FileExample:

The following example reopens the file PASS to add new text:

DYNAM ALLOC DD PASS DA USER1.PASS.DATA MOD-WRITE PASS &DIV &RED &TEST RESULT IS,- &RECORDS AT END OF RUN

How to Read Master File Fields Into Dialogue Manager VariablesSyntax:

-READFILE [app/]mastername

where:

app

Is the application directory in which the file resides.

mastername

Is the name of the Master File to be read.

Usage Notes for -READFILEReference:

A -RUN command does not close the file. You must issue a -CLOSE command to close thefile. You must be careful not to delete, change, or re-allocate the file before closing it.

If multiple fields have the same field name, only one variable is created, and it contains thevalue of the last field in the Master File.

WebFOCUS App Studio Reference Guide 555

11. Creating Procedures in WebFOCUS App Studio

Page 556: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

-READFILE does not work if the Master File contains DBA restrictions. The following messageis generated:

(FOC339) DIALOGUE MANAGER -READ FAILED: CHECK FILEDEF OR ALLOCATION FOR: -READFILE filename

-READFILE is not supported with text fields. The following message is generated:

(FOC702) THE OPTION SPECIFIED IS NOT AVAILABLE WITH TEXT FIELDS: fieldname

Reading Fields From a Data Source Into Dialogue Manager Variables Using-READFILE

Example:

The following request creates a binary HOLD file, then uses -READFILE to read the first recordfrom the HOLD file and type the values that were retrieved into Dialogue Manager variables. Notethat the names of the variables are the field names prefixed with an ampersand:

TABLE FILE EMPLOYEE PRINT LAST_NAME FIRST_NAME DEPARTMENT CURR_SALBY EMP_ID ON TABLE HOLD AS READF1 FORMAT BINARY END -RUN -READFILE READF1 -TYPE LAST_NAME IS &LAST_NAME -TYPE FIRST_NAME IS &FIRST_NAME -TYPE DEPARTMENT IS &DEPARTMENT -TYPE CURR_SAL IS &CURR_SAL -TYPE EMP_ID IS &EMP_ID

The output is:

> NUMBER OF RECORDS IN TABLE= 12 LINES= 12

HOLDING BINARY FILE... LAST_NAME IS STEVENS FIRST_NAME IS ALFRED DEPARTMENT IS PRODUCTION CURR_SAL IS 11000.00 EMP_ID IS 071382660

How to Close an External FileSyntax:

The -CLOSE command closes an external file opened with the -READ or -WRITE command. TheNOCLOSE option keeps a file open even when -RUN is encountered.

-CLOSE {ddname|*}

556 WebFOCUS

Using Dialogue Manager

Page 557: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

ddname

Is the ddname of the open file described to WebFOCUS using an allocation.

*

Closes all -READ and -WRITE files that are currently open.

Supplying Variable Values on the Command Line

When a user knows the values required by a procedure, some or all of the values can be typedon the command line using the EXEC command following the name of the procedure. This savestime since WebFOCUS now has values to pass to each local or global variable so the user is notprompted to supply them.

How to Supply a Variable Value on the Command LineSyntax:

EX[EC] procedure [[&&][variable=]value, ...]

where:

procedure

Is the name of the procedure that contains the name and value values.

variable

Is the name of the variable for which you are supplying a value. Omit for a positional variable.

For a local variable, do not include the ampersand in the variable name.

For a global amper variable, you must supply the double ampersand in the variable name:

EX SLRPT &&GLOBAL=value, CITY = STAMFORD, CODE1=B10, CODE2=B20

value

Is the value you are giving to the variable.

Name and value pairs must be separated by commas.

When the list of values to be supplied exceeds the width of the display, insert a comma asthe last character on the line and enter the balance of the list on the following lines, asshown:

EX SLRPT AREA=S, CITY = STAMFORD, VERB=COUNT, FIELDS = UNIT_SOLD, CODE1=B10, CODE2=B20

WebFOCUS App Studio Reference Guide 557

11. Creating Procedures in WebFOCUS App Studio

Page 558: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Rules for Using Named and Positional Variables With EXECReference:

You can mix named and positional variables freely in the EXEC command. Positional variablesare unnamed values passed to a procedure when it is invoked.

Follow these rules:

Names must be associated with values for named variables.

It is not necessary to enter the name=value pairs in the order encountered in the procedure.

Values for positional variables must be supplied in the order that those variables are numberedwithin the procedure.

If the variable is positional (it is a numbered variable), you do not need to specify the variablename in the EXEC command. WebFOCUS matches the EXEC values to the positional variablesas they are encountered in the procedure.

Supplying Values on the Command LineExample:

Consider the following procedure named SLRPT:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &CITY"SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY PROD_CODEIF PROD_CODE IS-FROM &CODE1 TO &CODE2BY CITYIF CITY EQ &CITYEND

You can supply values for the variables as parameters using the EX command as follows:

EX SLRPT CITY=STAMFORD, CODE1=B10, CODE2=B20

558 WebFOCUS

Using Dialogue Manager

Page 559: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Using Positional VariablesExample:

Consider the following example:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &1"SUM UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY PROD_CODEIF PROD_CODE IS-FROM &2 TO &3BY CITYIF CITY EQ &1END

The EX command that calls the procedure is as follows:

EX SLRPT STAMFORD, B10, B20

This command substitutes STAMFORD for the first positional variable, B10 for the second, andB20 for the third.

Mixing Named and Positional VariablesExample:

The report request SLRPT includes named and positional variables:

TABLE FILE SALESHEADING CENTER"MONTHLY REPORT FOR &CITY"&VERB UNIT_SOLD AND RETURNS AND COMPUTERATIO/D5.2 = 100 * (RETURNS/UNIT_SOLD);BY PROD_CODEIF PROD_CODE IS-FROM &1 TO &2BY CITYIF CITY EQ &CITYEND

The following EX command executes SLRPT and populates the named and positional variables:

EX SLRPT CITY=STAMFORD, B10, B20, VERB=COUNT

&CITY is a named variable whose value is STAMFORD.

&1 is a positional variable whose value is B10.

&2 is a positional variable whose value is B20.

&VERB is a named variable whose value is COUNT.

WebFOCUS App Studio Reference Guide 559

11. Creating Procedures in WebFOCUS App Studio

Page 560: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Verifying User-Supplied Values Against a Set of Format Specifications

You can specify variables with format conditions against which entered values can be compared.If the entered values do not have the specified format, WebFOCUS prints error messages andprompts the user again for the values.

Format Specifications for VariablesReference:

Alphanumeric formats are described by the letter A followed by the number of characters. Thenumber of characters can be from 1 to 3968.

Numeric formats are described by the letter I, followed by the number of digits to be entered.The number of digits can be from 1 to 10 (value must be less than 231-1), and the value suppliedfor the number can contain a decimal point.

The description of the format must be enclosed by periods.

If you test field names against input variable values, specify formats of the input variables. If youdo not, and the supplied value exceeds the format specification from the Master File, the procedureis ended and error messages are displayed. To continue, the procedure must be executed again.However, if you do include the format, and the supplied value exceeds the format, DialogueManager rejects the value and the user is prompted again.

Note: WebFOCUS internally stores all Dialogue Manager variables as alphanumeric codes.To perform arithmetic operations, Dialogue Manager converts the variable value to double-precision floating point decimal and then converts the result back to alphanumeric codes,dropping the decimal places. For this reason, do not perform tests that look for the decimalplaces in the numeric codes.

Using a Format Specification to Verify User InputExample:

Consider the following format specification:

&STORECODE.A3.

No special message is sent to the screen detailing the specified format. However, if in the aboveexample the user enters more than three alphanumeric characters, the value is rejected, theerror message FOC291 is displayed and the user is prompted again.

Manipulating and Testing Variables

You can use a variety of techniques to manipulate and test Dialogue Manager variables.

You can screen a value by adding a suffix to the variable value:

560 WebFOCUS

Using Dialogue Manager

Page 561: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The .LENGTH suffix tests the length of a value.

The .TYPE suffix tests the type of a value.

The .EXIST suffix tests the presence of a value.

The .EVAL suffix replaces a variable with its value.

You can use the -SET command alone or in conjunction with other commands and functionsto manipulate the values for variables in order to:

Concatenate variables and/or literals.

Create an index for variables.

Perform calculations on a variable.

Change variable values.

Extract and insert characters.

Remove trailing blanks.

Call other functions.

You can determine the command structure of a procedure based on the value of a variable.

Testing Variables for Length, Type, and Existence

To ensure that a supplied value is valid and being used properly in a procedure, you can test itfor presence, type, and length. For example, you would not want to perform a numericalcomputation on a variable for which alphanumeric data has been supplied.

How to Screen a Variable Value for Length and TYPESyntax:

-IF &name{.LENGTH|.TYPE} rest_of_expression GOTO label...;

where:

&name

Is a user-supplied variable.

.LENGTH

Tests for the length of a value. If a value is not present, a zero (0) is passed to the expression.Otherwise, the number of characters in the value is passed.

WebFOCUS App Studio Reference Guide 561

11. Creating Procedures in WebFOCUS App Studio

Page 562: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

.TYPE

Tests for the type of a value. The letter N (numeric) is passed to the expression if the valuecan be interpreted as a number up to 231-1 and stored in four bytes as a floating point format.In Dialogue Manager, the result of an arithmetic operation with numeric fields is truncatedto an integer after the whole result of an expression is calculated. If the value could not beinterpreted as numeric, the letter A (alphanumeric) is passed to the expression. If the valueis not defined, the letter U is passed to the expression.

rest_of_expression

Is the remainder of an expression that uses &name with the specified suffix.

GOTO label

Specifies a label to branch to.

Testing for Variable LengthExample:

If the length of &OPTION is more than one character, control passes to the label -FORMAT, whichinforms the client application that only a single character is allowed.

-IF &OPTION.LENGTH GT 1 GOTO FORMAT ELSE-GOTO PRODSALES; . . .-PRODSALES TABLE FILE SALES . . . END-EXIT-FORMAT-TYPE ONLY A SINGLE CHARACTER IS ALLOWED.

Storing the Length of a VariableExample:

The following example sets the variable &WORDLEN to the length of the string contained in thevariable &WORD.

&WORD.ENTER WORD.-SET &WORDLEN = &WORD.LENGTH;

You can use this technique when you want to use one variable to populate another.

562 WebFOCUS

Using Dialogue Manager

Page 563: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Testing for Variable TypeExample:

If &OPTION is not alphanumeric, control passes to the label -NOALPHA, which informs the clientapplication that only alphanumeric characters are allowed.

-IF &OPTION.TYPE NE A GOTO NOALPHA ELSE- GOTO PRODSALES; . . .-PRODSALES TABLE FILE SALES . . . END-EXIT-NOALPHA-TYPE ENTER A LETTER ONLY.

How to Test for the Presence of a Variable ValueSyntax:

-IF &name.EXIST GOTO label...;

where:

&name

Is a user-supplied variable.

.EXIST

Tests for the presence of a value. If a value is not present, a zero (0) is passed to theexpression. Otherwise, a non-zero value is passed.

GOTO label

Specifies a label to branch to.

WebFOCUS App Studio Reference Guide 563

11. Creating Procedures in WebFOCUS App Studio

Page 564: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Testing for the Presence of a VariableExample:

If no value is supplied, &OPTION.EXIST is equal to zero and control is passed to the label-CANTRUN. The procedure sends a message to the client application and then exits. If a valueis supplied, control passes to the label -PRODSALES.

-IF &OPTION.EXIST GOTO PRODSALES ELSE GOTO CANTRUN; . . .-PRODSALES TABLE FILE SALES . . .

END-EXIT-CANTRUN-TYPE TOTAL REPORT CAN'T BE RUN WITHOUT AN OPTION.-EXIT

Replacing a Variable Immediately

The .EVAL operator enables you to replace a variable with its value immediately, making it possibleto change a procedure dynamically. The .EVAL operator is useful in modifying code at run time.

How to Replace a Variable ImmediatelySyntax:

[&]&variable.EVAL

where:

variable

Is a local or global variable.

When the command procedure is executed, the expression is replaced with the value of thespecified variable before any other action is performed. The command that contains this valueis then re-evaluated.

Without the .EVAL operator, a variable cannot be used in place of some commands.

564 WebFOCUS

Using Dialogue Manager

Page 565: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Replacing a Variable ImmediatelyExample:

The following example illustrates how to use the .EVAL operator in a record selection expression.The numbers to the left apply to the notes that follow the procedure:

1. -SET &R='IF SALARY GT 100000';2. -IF &Y EQ 'YES' THEN GOTO START;3. -SET &R = '-*'; -START4. TABLE FILE CENTHR SUM SALARY BY PLANT5. &R.EVAL END

The procedure executes as follows:

1. The procedure sets the value of &R to 'IF SALARY GT 100000'.

2. If &Y is YES, the procedure branches to the START label, bypassing the second -SET command.

3. If &Y is NO, the procedure continues to the second -SET command, which sets &R to '-*',which is a comment.

The report request is stacked.

4. The procedure evaluates the value of &R. If the end user wanted a record selection test, thevalue of &R is 'IF SALARY GT 100000' and this line is stacked.

5. If the end user does not want a record selection test, the value of &R is '-*' and this line isignored.

Using .EVAL to Interpret a VariableExample:

Without .EVAL, Dialogue Manager interprets a variable only once. Therefore, in the followingexample,

-SET &A='-TYPE';&A HELLO

Dialogue Manager does not recognize that &A is the -TYPE command so it does not display theword HELLO and generates the error message:

UNKNOWN WebFOCUS COMMAND -TYPE

Appending the .EVAL operator to the &A variable enables Dialogue Manager to interpret thevariable correctly. The code

-SET &A='-TYPE';&A.EVAL HELLO

WebFOCUS App Studio Reference Guide 565

11. Creating Procedures in WebFOCUS App Studio

Page 566: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

produces the following output:

HELLO>>

Concatenating Variables

You can append a variable to a character string or combine two or more variables and/or literals.See the Creating Reports With WebFOCUS Language With WebFOCUS Language manual for completeinformation on concatenation.

Note: When using variables, separate each variable from the concatenation symbol (||) witha space.

How to Concatenate VariablesSyntax:

-SET &name3 = &name1 || &name2;

where:

&name3

Is the name of the concatenated variable.

&name1 || &name2

Are the variables, separated by a space and the concatenation symbol.

Note: The example shown uses strong concatenation, indicated by the || symbol. Strongconcatenation moves any trailing blanks from &name1 to the end of the result. Conversely,weak concatenation, indicated by the symbol |, preserves any trailing blanks in &name1.

Creating an Indexed Variable

You can append the value of one variable to the value of another variable, creating an indexedvariable. This feature applies to both local and global variables.

If the indexed value is numeric, the effect is similar to that of an array in traditional computerprogramming languages. For example, if the value of index &K varies from 1 to 10, the variable&AMOUNT.&K refers to one of ten variables, from &AMOUNT1 to &AMOUNT10.

A numeric index can be used as a counter; it can be set, incremented, and tested in a procedure.

How to Create an Indexed VariableSyntax:

-SET &name.&index[.&index...] = expression;

566 WebFOCUS

Using Dialogue Manager

Page 567: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

&name

Is a variable.

.&index

Is a numeric or alphanumeric variable whose value is appended to &name. The period isrequired.

When more than one index is used, all index values are concatenated and the string appendsto the name of the variable.

For example, &V.&I.&J.&K is equivalent to &V1120 when &I=1, &J=12, and &K=0.

expression

Is a valid expression. For information on the kinds of expressions you can write, see theCreating Reports With WebFOCUS Language manual.

Using an Indexed Variable in a LoopExample:

An indexed variable can be used in a loop. The following example creates the equivalent of a DOloop used in traditional programming languages:

-SET &N = 0;-LOOP-SET &N = &N+1;-IF &N GT 12 GOTO OUT;-SET &MONTH.&N=&N;-TYPE &MONTH.&N -GOTO LOOP-OUT

In this example, &MONTH is the indexed variable and &N is the index. The value of the index issupplied through the command -SET. The first -SET initializes the index to 0, and the second -SETincrements the index each time the procedure goes through the loop.

If the value of an index is not defined prior to reference, a blank value is assumed. As a result,the name and value of the indexed variable do not change.

Indexed variables are included in the system limit of 1024, which includes variables reserved byWebFOCUS.

WebFOCUS App Studio Reference Guide 567

11. Creating Procedures in WebFOCUS App Studio

Page 568: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating a Standard Quote-Delimited String

Character strings must be enclosed in single quotation marks to be handled by most databaseengines. In addition, embedded single quotation marks are indicated by two contiguous singlequotation marks. WebFOCUS and iWay require quotes around variables containing delimiters,which include spaces and commas.

The QUOTEDSTRING suffix on a Dialogue Manager variable applies the following two conversionsto the contents of the variable:

Any single quotation mark embedded within a string is converted to two single quotationmarks.

Single quotation marks are added around the string.

Dialogue Manager commands differ in their ability to handle character strings that are not enclosedin single quotation marks and contain embedded blanks. An explicit or implied -PROMPT commandcan read such a string. The entire input string is then enclosed in single quotation marks whenoperated on by .QUOTEDSTRING.

Note: When using the -SET command to reference a character string, ensure the characterstring is enclosed in single quotes to prevent errors.

How to Create a Standard Quote-Delimited Character StringSyntax:

&var.QUOTEDSTRING

where:

&var

Is a Dialogue Manager variable.

568 WebFOCUS

Using Dialogue Manager

Page 569: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Creating a Standard Quote-Delimited Character StringExample:

The following example shows the results of the QUOTEDSTRING suffix on input strings.

-SET &A = ABC;-SET &B = 'ABC';-SET &C = O'BRIEN;-SET &D = 'O'BRIEN';-SET &E = 'O''BRIEN';-SET &F = O''BRIEN;-SET &G = OBRIEN';-TYPE ORIGINAL = &A QUOTED = &A.QUOTEDSTRING-TYPE ORIGINAL = &B QUOTED = &B.QUOTEDSTRING-TYPE ORIGINAL = &C QUOTED = &C.QUOTEDSTRING-TYPE ORIGINAL = &D QUOTED = &D.QUOTEDSTRING-TYPE ORIGINAL = &E QUOTED = &E.QUOTEDSTRING-TYPE ORIGINAL = &F QUOTED = &F.QUOTEDSTRING-TYPE ORIGINAL = &G QUOTED = &G.QUOTEDSTRING

The output is:

ORIGINAL = ABC QUOTED = 'ABC'ORIGINAL = ABC QUOTED = 'ABC'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O''BRIEN QUOTED = 'O''''BRIEN'ORIGINAL = OBRIEN' QUOTED = 'OBRIEN'''

ORIGINAL = ABC QUOTED = 'ABC'ORIGINAL = ABC QUOTED = 'ABC'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O'BRIEN QUOTED = 'O''BRIEN'ORIGINAL = O''BRIEN QUOTED = 'O''''BRIEN'ORIGINAL = OBRIEN' QUOTED = 'OBRIEN'''

Note: The -SET command will remove single quotes around a string. Notice in the exampleabove that the result of -SET &B = 'ABC' was changed to ORIGINAL = ABC (as shown in theoutput), prior to the QUOTEDSTRING conversion.

Usage Notes for Quote-Delimited Character StringsReference:

An unmatched single quotation mark at the beginning of a character string is treated as invalidinput and generates the following message:

(FOC257) MISSING QUOTE MARKS: value;

WebFOCUS App Studio Reference Guide 569

11. Creating Procedures in WebFOCUS App Studio

Page 570: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Performing a Calculation on a Variable

You can use -SET to define a value for a substituted variable based on the results of a logical orarithmetic expression or a combination.

How to Perform a Calculation on a VariableSyntax:

-SET &name = expression;

where:

&name

Is a user-supplied variable that has its value assigned with the expression.

expression

Is an expression following the rules outlined in the Creating Reports With WebFOCUS Languagemanual, but with limitations as defined in this topic. The semicolon after the expression isrequired to terminate the -SET command.

Extracting Characters From a Variable Value With the EDIT Function

You can use the mask option of the EDIT function with amper variables. You can insert charactersinto an alphanumeric value, or extract certain characters from the value.

Removing Trailing Blanks From Variables With the TRUNCATE Function

The Dialogue Manager TRUNCATE function removes trailing blanks from Dialogue Manager ampervariables and adjusts the length accordingly.

The Dialogue Manager TRUNCATE function has only one argument, the string or variable to betruncated. If you attempt to use the Dialogue Manager TRUNCATE function with more than oneargument, the following error message is generated:

(FOC03665) Error loading external function 'TRUNCATE'

This function can only be used in Dialogue Manager commands that support function calls, suchas -SET and -IF commands. It cannot be used in -TYPE commands or in arguments passed tostored procedures.

Note: A user-written function of the same name can exist without conflict.

How to Remove Trailing Blanks From VariablesSyntax:

-SET &var2 = TRUNCATE(&var1);

570 WebFOCUS

Using Dialogue Manager

Page 571: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

&var2

Is the Dialogue Manager variable to which the truncated string is returned. The length of thisvariable is the length of the original string or variable minus the trailing blanks. If the originalstring consisted of only blanks, a single blank, with a length of one is returned.

&var1

Is a Dialogue Manager variable or a literal string enclosed in single quotation marks. Systemvariables and statistical variables are allowed, as well as user-created local and globalvariables.

Removing Trailing BlanksExample:

The following example shows the result of truncating trailing blanks:

-SET &LONG = 'ABC ' ;-SET &RESULT = TRUNCATE(&LONG);-SET &LL = &LONG.LENGTH;-SET &RL = &RESULT.LENGTH;-TYPE LONG = &LONG LENGTH = &LL-TYPE RESULT = &RESULT LENGTH = &RL

The output is:

LONG = ABC LENGTH = 06RESULT = ABC LENGTH = 03

The following example shows the result of truncating a string that consists of all blanks:

-SET &LONG = ' ' ;-SET &RESULT = TRUNCATE(&LONG);-SET &LL = &LONG.LENGTH;-SET &RL = &RESULT.LENGTH;-TYPE LONG = &LONG LENGTH = &LL-TYPE RESULT = &RESULT LENGTH = &RL

The output is:

LONG = LENGTH = 06RESULT = LENGTH = 01

The following example uses the TRUNCATE function as an argument for EDIT:

-SET &LONG = 'ABC ' ;-SET &RESULT = EDIT(TRUNCATE(&LONG)|'Z','9999');-SET &LL = &LONG.LENGTH;-SET &RL = &RESULT.LENGTH;-TYPE LONG = &LONG LENGTH = &LL-TYPE RESULT = &RESULT LENGTH = &RL

WebFOCUS App Studio Reference Guide 571

11. Creating Procedures in WebFOCUS App Studio

Page 572: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The output is:

LONG = ABC LENGTH = 06RESULT = ABCZ LENGTH = 04

Calling a Function

Any function name encountered in a Dialogue Manager expression that is not recognized as asystem standard name or WebFOCUS function is assumed to be a function. These functions areexternally programmed by users and stored in a library that is available at the time referenced.One or more arguments are passed to the user program, which performs an operation or calculationand returns a single value or character string.

Dialogue Manager variables can receive the values from functions through the -SET command.

Note:

If the function returns a value that is not alphanumeric, Dialogue Manager is not able todisplay or interpret the value correctly.

You must convert all numeric arguments to double precision before they are passed to thefunction. (You can use the ATODBL function to convert them.) However, if any portion ofthe double precision number can be interpreted as an EBCDIC comma, Dialogue Managerincorrectly interprets this argument as two arguments.

A user-written function may employ an argument for both input and output purposes. It isthe responsibility of the user program to move the correct number of characters into theoutput variables.

How to Set a Variable Value Based on the Result From a FunctionSyntax:

-SET &name = routine(argument,...,'format');

where:

name

Is the name of the variable in which the result is stored.

routine

Is the name of the function.

argument

Represents the arguments that must be passed to the function. Numeric arguments areconverted to double-precision (D) format.

572 WebFOCUS

Using Dialogue Manager

Page 573: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

format

Is the predefined format of the result. This is used to convert numeric results back to characterrepresentation. It must be enclosed in single quotation marks.

Using Variables to Alter Commands

A variable can refer to a WebFOCUS command or to a particular field. Therefore, the commandstructure of a procedure can be determined by the value of the variable.

Using a Variable to Control What the TABLE Command PrintsExample:

In this example, the variable &FIELD determines the field to print in the TABLE request.

In the file named SALES, the variable &FIELD can display the values RETURNS, DAMAGED, orUNIT_SOLD.

TABLE FILE SALES . . .PRINT &FIELDBY PROD_CODE . . .

Using Numeric Amper Variables in Functions

WebFOCUS stores all amper variables as strings in alphanumeric format whether they containalphanumeric or numeric data or a mixture of the two. There are only two data types available toamper variables: alphanumeric and numeric.

Determining Amper Variable Data Type

Data typing for amper variables is determined by the data content only. As a result, using quotationmarks around a numeric value in a -SET command has no effect on the data type of the ampervariable.

For example, the following request stores numeric data in variables &A, &B, and &C:

-SET &A=12345;-SET &B='12345';-SET &C=123.45-TYPE &A &B &C-TYPE &A.TYPE &B.TYPE &C.TYPE

WebFOCUS App Studio Reference Guide 573

11. Creating Procedures in WebFOCUS App Studio

Page 574: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The output shows that &A, &B, and &C all have the numeric data type:

12345 12345 123.45N N N

Manipulating Amper Variables

When an amper variable is displayed, substituted, concatenated, or appended, there is notransformation of the value contained in the amper variable.

Substitution

-SET &C=123.45IF RETAIL_COST EQ &C

becomes

IF RETAIL_COST EQ 123.45

Also, consider the following:

-SET &D= &C;-TYPE &D &D.TYPE

The output shows that &D has the same value as &C and is also numeric:

123.45 N

Concatenation

The amper variable &F is created by concatenating &A and &C:

-SET &F = &A | &C;-TYPE &F &F.TYPE

The output shows that the value of &F is the value of &A followed by the value of &C, and thatthe type is numeric:

12345123.45 N

The following example creates the amper variable &E by embedding an ampersand in the string.The ampersand is not recognized as the start of a variable name and is treated as an alphanumericsymbol in a string:

-SET &E = 1234&C;-TYPE &E &E.TYPE

The output shows that the variable is of type alphanumeric, not numeric. It is not the concatenationof the string '1234' with the variable &C:

1234&C A

574 WebFOCUS

Using Dialogue Manager

Page 575: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

This same behavior can be produced with concatenation:

-SET &G = AT&|T;-TYPE &G &G.TYPE

The output is:

AT&T A

Using an Amper Variable in an Expression

When an amper variable is used in an expression, conversion may be required in order to processthe expression. The amper variable used in the expression is generally seen as a literal, and itsvalue is substituted in before the expression is processed. Under these circumstances, dataconversion necessary to process the expression is performed. Numerics contained in ampervariables are seen as integers. If the expression can be evaluated as integer, it will be.

In the following example, &C is set to 123.55. Then an expression creates &D by adding 100 to&C :

-SET &C=123.55;-SET &D=&C + 100;-TYPE &D &D.TYPE

The output shows that &D is numeric and its value is 123.55+100 truncated to the integer 223because integer arithmetic is used:

223 N

The following expression requires conversion to double precision, as the numeric literal (100.49)in the expression is not an integer:

-SET &C=123.55;-SET &D=&C + 100.49;-TYPE &D &D.TYPE

The output shows that while the arithmetic was done by converting the value of &C to doubleprecision, the result is truncated before being returned to &D:

224 N

If you want the result to retain the decimal places, you can set the DMPRECISION parameter tothe number of decimal places you want returned to the resulting amper variable.

For example:

SET DMPRECISION=2-RUN-SET &C=123.55;-SET &D=&C + 100.49;

WebFOCUS App Studio Reference Guide 575

11. Creating Procedures in WebFOCUS App Studio

Page 576: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Now the result retains the decimal places:

224.04 N

Using Amper Variables as Subroutine Parameters

How you treat numeric amper variables when passing them to a subroutine depends on the datatype of the subroutine parameter.

Using a Numeric Amper Variable as a Numeric Subroutine Parameter

When using a numeric amper variable as a numeric parameter in a subroutine call, the ampervariable is treated as a field. Since as a field, it has no specified type in either the Master Fileor the FOCEXEC, it takes the default data type of double precision.

Note that when the result is returned to an output variable, its type is determined by its content.If it has only numbers and a decimal point, it is numeric. If it contains other symbols, it isalphanumeric.

For example, the FTOA subroutine converts a double or single precision number (D or F) to analphanumeric string with the format specified within the parentheses of the second parameter:

FTOA (number_to_convert, '(format)', 'alpha_output_format' )

The following example sets &C to 123.55 and passes it to the FTOA subroutine to be convertedto an alphanumeric string with a dollar sign:

-SET &C=123.55;-SET &G=FTOA(&C,'(D7.2M)','A11'); -TYPE &G &G.TYPE

The output shows that the string $123.55 has been returned to &G. Since it has a symbol otherthan numeric digits and a decimal point, its type is alphanumeric:

$123.55 A

In the following example, the format returned does not specify a dollar sign:

-SET &A=12345; -SET &G=FTOA(&A/100,'(D7.2)','A11');-TYPE &G &G.TYPE

Since the returned string contains only numeric digits and a decimal point, its type is numeric:

123.45 N

576 WebFOCUS

Using Dialogue Manager

Page 577: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note that if the number had another digit, it would be returned with a comma, and its type wouldbe alphanumeric:

-SET &A=123456; -SET &G=FTOA(&A/100,'(D7.2)','A11');-TYPE &G &G.TYPE

The output is:

1,234.56 A

Using a Numeric Amper Variable as an Alphanumeric Subroutine Parameter

When using a numeric amper variable as an alphanumeric parameter in a subroutine call, youmust convert the numeric value to an alphanumeric string before using it in order to avoid failuredue to a format error. You can do this using one of the subroutines designed to convert numericsto alphanumeric, or you can concatenate an alphanumeric character to the numeric value in orderto assign it an alphanumeric data type.

For example, the following converts &C to a string and returns the string to the variable &G. Itthen passes &G to the RJUST subroutine, which right justifies the value and returns it to thevariable &H:

-SET &C=123.55; -SET &G=FTOA(&C,'(D7.2M)','A11');-SET &H = RJUST(11,&G,'A11'); -TYPE &G &G.TYPE -TYPE &H &H.TYPE

The output is:

$123.55 A $123.55 A

Debugging a Procedure

You can test and debug your procedure with the following.

The &ECHO variable controls the display of command lines as they execute so you can testand debug procedure.

The &STACK variable enables you to test the logic of Dialogue Manager commands. Settingthis variable to OFF lets you run the procedure while preventing the execution of stacked(non-Dialogue Manager) commands. This gives you the ability to view the sequence ofcommands and see how the variable values are resolved.

WebFOCUS App Studio Reference Guide 577

11. Creating Procedures in WebFOCUS App Studio

Page 578: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The &RETCODE variable returns a code after a procedure is executed. If the procedure resultsin normal output or no records are retrieved, the value of &RETCODE is 1. If an error occurswhile parsing the procedure, the value of &RETCODE is 8.

&RETCODE can be used to test the result of an operating system command. This retrievesthe return code from the operating system.

The &IORETURN variable tests the result of Dialogue Manager -READ and -WRITE commands.After a -READ or -WRITE operation, a non-zero return code indicates an error, such as end-of-filebeing reached.

&IORETURN can be used to test the result of the following:

A -READ command. If &IORETURN equals zero, a value was successfully read from theexternal file.

A -WRITE command. If &IORETURN equals zero, a value was successfully written to theexternal file.

How to Display Command Lines as They ExecuteSyntax:

{-DEFAULT|-SET|EX} &ECHO = {ON|ALL|OFF|NONE}

where:

ON

Displays WebFOCUS commands that are expanded and stacked for execution.

ALL

Displays Dialogue Manager commands and WebFOCUS commands that are expanded andstacked for execution.

OFF

Suppresses the display of both stacked commands and Dialogue Manager commands. Thisvalue is the default.

NONE

Prevents procedure code from being displayed (echoed). Once the value of &ECHO has beenset to NONE, it cannot be changed during the session or connection.

By default, any procedure that does not explicitly set the &ECHO variable executes with the valueOFF. You can change this default value for &ECHO with the SET DEFECHO command.

578 WebFOCUS

Using Dialogue Manager

Page 579: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Establish a Default Value for the &ECHO VariableSyntax:

SET DEFECHO = {OFF|ON|ALL|NONE}

where:

OFF

Establishes OFF as the default value for &ECHO. OFF is the default value.

ON

Establishes ON as the default value for &ECHO. Displays WebFOCUS commands that areexpanded and stacked for execution.

ALL

Establishes ALL as the default value for &ECHO. ALL displays Dialogue Manager commandsand WebFOCUS commands that are expanded and stacked for execution.

NONE

Prevents procedure code from being displayed (echoed). Once the value of DEFECHO or&ECHO has been set to NONE, it cannot be changed during the session or connection.

Usage Notes for SET DEFECHO = NONEReference:

If you issue the SET DEFECHO=NONE command in a FOCEXEC, the setting does not affect&ECHO in that routine. It takes effect as the value of &ECHO in the next executed (EX)procedure after which it may not be changed.

If you attempt to reset &ECHO within the duration of its NONE value, the value you attemptedto set will display if you issue a -TYPE command, but the value will not actually change.

Preventing Procedure Code From Being DisplayedExample:

The following procedure queries the value of the DEFECHO parameter and issues a TABLE requestagainst the EMPLOYEE data source:

? SET DEFECHO -RUN -TYPE ECHO = &ECHO TABLE FILE EMPLOYEE PRINT CURR_SAL CURR_JOBCODEBY LAST_NAME BY FIRST_NAME END -RUN

The query command output shows that DEFECHO is OFF (the default value):

DEFECHO OFF

WebFOCUS App Studio Reference Guide 579

11. Creating Procedures in WebFOCUS App Studio

Page 580: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The -TYPE command shows that the value of &ECHO is OFF (the default):

ECHO = OFF

Because &ECHO is OFF the TABLE commands do not display as the procedure executes:

NUMBER OF RECORDS IN TABLE= 12 LINES= 12

PAUSE.. PLEASE ISSUE CARRIAGE RETURN WHEN READY PAGE 1

LAST_NAME FIRST_NAME CURR_SAL CURR_JOBCODE--------- ---------- -------- ------------BANNING JOHN $29,700.00 A17 BLACKWOOD ROSEMARIE $21,780.00 B04 CROSS BARBARA $27,062.00 A17 GREENSPAN MARY $9,000.00 A07 IRVING JOAN $26,862.00 A15 JONES DIANE $18,480.00 B03 MCCOY JOHN $18,480.00 B02 MCKNIGHT ROGER $16,100.00 B02 ROMANS ANTHONY $21,120.00 B04 SMITH MARY $13,200.00 B14 RICHARD $9,500.00 A01 STEVENS ALFRED $11,000.00 A07

END OF REPORT

Now, set DEFECHO=ON and re-run the procedure.

The query command output shows that DEFECHO is ON:

DEFECHO ON

The -TYPE command shows that the value of &ECHO has been changed to ON:

ECHO = ON

Because &ECHO is ON, the TABLE commands display as the procedure executes:

TABLE FILE EMPLOYEE PRINT CURR_SAL CURR_JOBCODE BY LAST_NAME BY FIRST_NAME END

580 WebFOCUS

Using Dialogue Manager

Page 581: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The output displays next:

NUMBER OF RECORDS IN TABLE= 12 LINES= 12

PAUSE.. PLEASE ISSUE CARRIAGE RETURN WHEN READY PAGE 1

LAST_NAME FIRST_NAME CURR_SAL CURR_JOBCODE--------- ---------- -------- ------------BANNING JOHN $29,700.00 A17 BLACKWOOD ROSEMARIE $21,780.00 B04 CROSS BARBARA $27,062.00 A17 GREENSPAN MARY $9,000.00 A07 IRVING JOAN $26,862.00 A15 JONES DIANE $18,480.00 B03 MCCOY JOHN $18,480.00 B02 MCKNIGHT ROGER $16,100.00 B02 ROMANS ANTHONY $21,120.00 B04 SMITH MARY $13,200.00 B14 RICHARD $9,500.00 A01 STEVENS ALFRED $11,000.00 A07

END OF REPORT

Now, issue the SET DEFECHO = NONE command and rerun the procedure:

SET DEFECHO = NONE

The query command output shows that the value of DEFECHO has been changed to NONE:

DEFECHO NONE

The -TYPE command shows that the value of &ECHO is NONE:

ECHO = NONE

WebFOCUS App Studio Reference Guide 581

11. Creating Procedures in WebFOCUS App Studio

Page 582: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Because DEFECHO has the value NONE, the TABLE commands do not display as the procedureexecutes. The output is:

NUMBER OF RECORDS IN TABLE= 12 LINES= 12

PAUSE.. PLEASE ISSUE CARRIAGE RETURN WHEN READY PAGE 1

LAST_NAME FIRST_NAME CURR_SAL CURR_JOBCODE--------- ---------- -------- ------------BANNING JOHN $29,700.00 A17 BLACKWOOD ROSEMARIE $21,780.00 B04 CROSS BARBARA $27,062.00 A17 GREENSPAN MARY $9,000.00 A07 IRVING JOAN $26,862.00 A15 JONES DIANE $18,480.00 B03 MCCOY JOHN $18,480.00 B02 MCKNIGHT ROGER $16,100.00 B02 ROMANS ANTHONY $21,120.00 B04 SMITH MARY $13,200.00 B14 RICHARD $9,500.00 A01 STEVENS ALFRED $11,000.00 A07

END OF REPORT

Once the value of DEFECHO has been set to NONE, it cannot be changed. The following SETcommand attempts to change the value to ON, but the query command output shows that it isstill NONE:

SET DEFECHO=ON ? SET DEFECHO DEFECHO NONE

How to Test Dialogue Manager Command LogicSyntax:

{-DEFAULT|-SET|EX procname} &STACK = {ON|OFF}

where:

procname

Is the procedure to execute.

582 WebFOCUS

Using Dialogue Manager

Page 583: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ON

Executes stacked commands normally. This value is the default.

OFF

Prevents the execution of stacked commands. In addition, system variables (for example,&RECORDS or &LINES) are not set. Dialogue Manager commands are executed so you cantest the logic of the procedure.

Note: &STACK is usually used with &ECHO = ALL for debugging purposes. The display displaysboth the Dialogue Manager commands, as well as the WebFOCUS commands with the suppliedvalues. You can view the logic of the procedure.

Using the &RETCODE Variable to Test the Result of a CommandExample:

If you are using Simultaneous Usage (SU), you must know if the WebFOCUS Database Server isavailable before beginning a particular procedure. The following procedure tests whether SINK1is available before launching PROC1.

? SU SINK1-RUN-IF &RETCODE EQ 16 GOTO BAD;-INCLUDE PROC1-BAD-EXIT

Testing the Status of a QueryReference:

The system variable &RETCODE returns a code after a query is executed. If the query results ina normal display, the value of &RETCODE is 0. If a display error occurs, or no display results (ascan happen when the query finds no data), the value of &RETCODE is 8. (If the error occurs ona ? SU, the value of &RETCODE is 16.)

The value of &RETCODE is set following the execution of any of these queries:

ERRORNODISPLAYNORMALCommand

80? HOLD

1680? SU*

80? JOIN

WebFOCUS App Studio Reference Guide 583

11. Creating Procedures in WebFOCUS App Studio

Page 584: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ERRORNODISPLAYNORMALCommand

80? COMBINE

80? DEFINE

80? USE

80? LOAD

*The &RETCODE value of ? SU means: 0 indicates that the WebFOCUS Database Server (formerlycalled the sink machine) is up with one or more users, 8 indicates that the WebFOCUS DatabaseServer is up with no users, and 16 indicates that there is an error in communicating to theWebFOCUS Database Server.

You can test the status of any of these queries by checking the &RETCODE variable and providingbranching instructions in your procedure.

Issuing an Operating System Command

You can issue an operating system command to set up an environment in which a request mustrun. For example, a program may allocate files, rename files, copy files, or perform other operationsbefore executing a request.

How to Execute an Operating System CommandSyntax:

op_system command

where:

op_system

Specifies the operating system.

command

Is an operating system command.

Dialogue Manager Quick Reference

This topic provides an alphabetical list of all Dialogue Manager commands, including a descriptionof functions and syntax.

It also provides a grouped list of Dialogue Manager defaults and limits.

584 WebFOCUS

Using Dialogue Manager

Page 585: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Note that this information is also presented throughout the chapter in the context of the task towhich it applies.

-* Command

The command -* signals the beginning of a comment line.

Any number of comment lines can follow one another, but each must begin with -*. A commentline may be placed at the beginning or end of a procedure, or in between commands. However,it cannot be on the same line as a command.

Use comment lines liberally to document a procedure so that its purpose and history are clearto others.

The syntax is

-* text

where:

text

Is a comment. A space is not required between -* and text.

? Command

The command -? displays the current value of a local variable.

The syntax is

-? &[variablename]

where:

variablename

Is a variable name of up to 12 characters. If this parameter is not specified, the currentvalues of all local, global, and defined system and statistical variables are displayed.

-CLOSE Command

-CLOSE closes an external file opened with the -READ or -WRITE NOCLOSE option. The NOCLOSEoption keeps a file open until the -READ or -WRITE operation is complete.

WebFOCUS App Studio Reference Guide 585

11. Creating Procedures in WebFOCUS App Studio

Page 586: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The syntax is

-CLOSE {ddname|*}

where:

ddname

Is the ddname of the open file described to WebFOCUS using an allocation.

*

Closes all -READ and -WRITE files that are currently open.

-DEFAULT[S|H] Command

DEFAULT commands set default values for local or global variables. -DEFAULT guarantees thatthe variables are always given a value and helps ensure that it executes correctly.

You can issue multiple -DEFAULT commands for a variable. If the variable is global, these -DEFAULTcommands can be issued in separate FOCEXECs. At any point before another method is used toestablish a value for the variable, the most recently issued -DEFAULT command will be in effect.

However, as soon as a value for the variable is established using any other method, subsequent-DEFAULT commands issued for that variable are ignored.

You can override -DEFAULT values by supplying values for the variables on the command line, orby supplying a value with -SET subsequent to -DEFAULT.

Default values are provided in other WebFOCUS modules to anticipate user needs and reducethe need for keystrokes in situations where most users desire a predefined outcome.

The syntax is

-DEFAULT[S|H] &[&]name=value [...]

where:

&name

Is the name of the variable.

value

Is the default value assigned to the variable.

-EXIT Command

-EXIT forces a procedure to end. All stacked commands are executed and the procedure exits. Ifthe procedure was called by another one, the calling procedure continues processing.

586 WebFOCUS

Using Dialogue Manager

Page 587: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Use -EXIT for terminating a procedure after processing a final branch that completes the desiredtask. The last line of a procedure is an implicit -EXIT.

The syntax is

-EXIT

-GOTO Command

-GOTO transfers control to a specified label.

If Dialogue Manager finds the label, processing continues with the line following it. If DialogueManager does not find the label, processing ends and an error message is displayed.

The syntax is

-GOTO label

. . .-label [TYPE text]

where:

label

The label in the -label command Is a user-defined name of up to 12 characters that specifiesthe target of the -GOTO action.

Do not use embedded blanks or the name of any other Dialogue Manager command except-EXIT. Do not use words that can be confused with functions, arithmetic and logical operations,and so on.

TYPE text

Optionally sends a message to the client application.

-IF Command

-IF routes execution of a procedure based on the evaluation of the specified expression.

An -IF without an explicitly specified ELSE whose expression is false continues processing withthe line immediately following it.

The syntax is

-IF expression [THEN] GOTO label1[- ELSE GOTO label2][- ELSE IF...];

WebFOCUS App Studio Reference Guide 587

11. Creating Procedures in WebFOCUS App Studio

Page 588: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

label

Is a user-defined name of up to 12 characters that specifies the target of the GOTO action.

Do not use embedded blanks or the name of any other Dialogue Manager command except-EXIT. Do not use words that can be confused with functions, arithmetic or logical operations,and so on.

expression

Is a valid expression. Literals need not be enclosed in single quotation marks unless theycontain embedded blanks or commas.

THEN

Is an optional keyword that increases readability of the command.

ELSE GOTO

Passes control to label2 when the -IF test fails.

ELSE IF

Specifies a compound -IF test.

The semicolon is required at the end of the command, and continuation lines must beginwith a hyphen.

-INCLUDE Command

-INCLUDE specifies another procedure to be incorporated and executed at run time, as if it werepart of the calling procedure. The specified procedure may comprise either a fully developed orpartial procedure. Note that a partial procedure does not execute if called outside of the procedurecontaining -INCLUDE.

When using -INCLUDE, you may not branch to a label outside of the specified procedure.

A procedure may contain more than one -INCLUDE. Any number of -INCLUDEs may be nested,but recursive -INCLUDEs are limited to four levels.

You may use any valid command in a -INCLUDE.

EXEC may also be used to execute a procedure inside another procedure.

The syntax is

-INCLUDE filename [filetype]

588 WebFOCUS

Using Dialogue Manager

Page 589: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

filename

Is the procedure to be incorporated in the calling procedure.

filetype

Is the procedure's DDNAME. If none is included, FOCEXEC is assumed.

-label Command

The label specified in the -label command Is the target of a -GOTO command or -IF criteria.

The syntax is

-label [TYPE message]

where:

label

Is a user-supplied name of up to 12 characters that identifies the target for a branch.

Do not use embedded blanks or the name of any other Dialogue Manager command except-EXIT. Do not use words that can be confused with functions, arithmetic or logical operations,and so on.

TYPE message

Sends a message to the client application.

-PASS Command

-PASS directly issues and controls passwords. This feature is especially useful for specifying aparticular file or set of files that a given user can read or write. Passwords have detailed sets offunctions associated with them through DBA module.

The procedure that sets passwords should be encrypted so that it and the passwords that it setscannot be typed and made known.

A variable can be associated with -PASS so that you can prompt for and assign a password value.

The PASS command provides the same function at the command level, as does the PASSparameter of the SET command.

The syntax is

-PASS password

WebFOCUS App Studio Reference Guide 589

11. Creating Procedures in WebFOCUS App Studio

Page 590: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

password

Is a literal WebFOCUS password or a variable containing a password.

-READ Command

Reads data from an external (non-WebFOCUS) file. -READ can access data in either fixed or freeform.

The syntax is

-READ ddname[,] [NOCLOSE] &name[.format.][,] ...

where:

ddname

Is the logical name of the file as defined to WebFOCUS using ALLOCATE or DYNAM ALLOCATE.A space after the ddname denotes a fixed format file while a comma denotes a comma-delimited file.

NOCLOSE

Indicates that the ddname should be kept open even after a -RUN is executed. The ddnameis closed upon completion of the procedure or when a -CLOSE or subsequent -WRITE commandis encountered.

name

Is the variable name. You may specify more than one variable. Using a comma to separatevariables is optional.

If the list of variables is longer than one line, end the first line with a comma and begin thenext line with a dash followed by a blank (-) for comma-delimited files or a dash followed bya comma followed by a blank (-,) for fixed format files. For example:

Comma-delimited files

-READ EXTFILE, &CITY,&CODE1,- &CODE2

Fixed format files

-READ EXTFILE &CITY.A8. &CODE1.A3.,-, &CODE2.A3

format

Is the format of the variable. It may be Alphanumeric (A) or Integer (I). Note that format mustbe delimited by periods. The format is ignored for comma-delimited files.

590 WebFOCUS

Using Dialogue Manager

Page 591: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

-READFILE Command

-READFILE reads a Master File, then reads values from a file into variables based on the fieldslisted in the Master File.

-READFILE [app/]mastername

where:

app

Is the application directory in which the file resides.

mastername

Is the name of the Master File to be read.

-REMOTE Command

-REMOTE passes execution of the commands within a -REMOTE BEGIN and -REMOTE END commandto a server.

The syntax is

-REMOTE BEGINcommands-REMOTE END

-REPEAT Command

-REPEAT allows looping in a procedure.

A loop ends when any of the following occurs:

It is executed in its entirety.

-EXIT is issued.

A -GOTO is issued to a label outside of the loop. If a -GOTO is later issued to return to theloop, the loop proceeds from the point it left off.

The syntax is

-REPEAT label n TIMES-REPEAT label WHILE condition; -REPEAT label FOR &variable [FROM fromval] [TO toval] [STEP s]

WebFOCUS App Studio Reference Guide 591

11. Creating Procedures in WebFOCUS App Studio

Page 592: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

where:

label

Identifies the code to be repeated (the loop). A label can include another loop if the label forthe second loop has a different name from the first.

n TIMES

Specifies the number of times to execute the loop. The value of n can be a local variable, aglobal variable, or a constant. If it is a variable, it is evaluated only once, so you cannotchange the number of times to execute the loop. The loop can only be ended early using -EXIT.

WHILE condition;

Specifies the condition under which to execute the loop. The condition is any logical expressionthat can be true or false. The loop is run if the condition is true.

Note: The condition must be followed by a semi-colon.

&variable

Is a variable that is tested at the start of each execution of the loop and incremented by swith each execution. It is compared with the value of fromval and toval, if supplied. The loopis executed only if &variable is greater than or equal to fromval or less than or equal to toval.

fromval

Is a constant that is compared with &variable at the start of the execution of the loop. Thedefault value is 1.

toval

Is a value that is compared with &variable at the start of the execution of the loop. The defaultvalue is 1,000,000.

STEP s

Is a constant used to increment &variable at the end of the execution of the loop. It may bepositive or negative. The default increment is 1.

Note: The parameters FROM, TO, and STEP can appear in any order.

-RUN Command

-RUN causes immediate execution of all stacked WebFOCUS commands.

592 WebFOCUS

Using Dialogue Manager

Page 593: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Following execution, processing of the procedure continues with the line that follows -RUN.

-RUN is commonly used to do the following:

Generate results from a request that can then be used in testing and branching.

Close an external file opened with -READ or -WRITE. When a file is closed, the line pointer isplaced at the beginning of the file for a -READ. The line pointer for -WRITE is positioneddepending on the allocation and definition of the file.

The syntax is

-RUN

-SET Command

-SET assigns a literal value, or a value that is computed in an arithmetic or logical expression,to a variable.

Single quotation marks around a literal value are optional unless it contains an embedded blank,comma, or equal sign, in which case you must include them.

The syntax is

-SET &[&]name= {expression|value};

where:

&name

Is the name of the variable.

expression

Is a valid expression. Expressions can occupy several lines, so you should end the commandwith a semicolon.

value

Is a literal value, or arithmetic or logical expression assigned to the variable. If the literalvalue contains commas or embedded blanks, you must enclose the value in single quotationmarks.

-TYPE Command

Transmits informative messages to the user at the display. Any number of -TYPE lines may followone another but each must begin with -TYPE.

Substitutable variables may be embedded in text. The values currently assigned to each variableis displayed in the assigned position in the text.

WebFOCUS App Studio Reference Guide 593

11. Creating Procedures in WebFOCUS App Studio

Page 594: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

-TYPE1 and TYPE+ are not supported by IBM 3270-type displays.

TYPE is used in a variety of ways in WebFOCUS to send informative messages to the screen. ATYPE command may appear on the same line as a label in Dialogue Manager. In MODIFY, TYPEis used to print messages at the start and end of processes, at selected positions in MATCH orNOMATCH, NEXT or NONEXT, and to send a message after an INVALID data condition.

The syntax is

-TYPE[+] text-TYPE[0] text-TYPE[1] text

where:

-TYPE1

Sends the text after issuing a page eject.

-TYPE0

Sends the text after skipping a line.

-TYPE+

Sends the text but does not add a line feed.

text

Is a character string that fits on a line.

-WRITE Command

-WRITE writes data to a sequential file.

If the command continues over several lines, put a comma at the end of the line and a hyphenat the beginning of each subsequent line.

Unless you specify the NOCLOSE option, an opened file is closed upon termination of the procedurewith -RUN or -EXIT.

In TABLE, WRITE is a synonym for SUM; functionally it is quite different from -WRITE.

The syntax is

-WRITE ddname [NOCLOSE] text

where:

ddname

Is the logical name of the file as defined to WebFOCUS using ALLOCATE or DYNAM ALLOCATE.

594 WebFOCUS

Using Dialogue Manager

Page 595: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

NOCLOSE

Indicates that the file should be kept open even if a -RUN is encountered. The file is closedupon completion of the procedure or when a -CLOSE or subsequent -READ command isencountered.

text

Is any combination of variables and text. To write more than one line, end the first line witha comma (,) and begin the next line with a hyphen followed by a space (-).

Dialogue Manager Defaults and Limits

This topic provides you with an easier way of locating default values, operating system andWebFOCUS limits, summary tables, general rules, and tips for ease-of-use.

General rules to follow when you are creating procedures:

If a Dialogue Manager command exceeds one line, the following line must begin with a hyphen(-).

The hyphen (-) must be placed at the first position of the command line.

The command is usually attached to the hyphen (-), but you may leave space between thehyphen and the Dialogue Manager command.

At least one space must be inserted between the Dialogue Manager command and other text.

General rules for supplying values for variables:

The lengths of values stored in Dialogue Manager (amper) variables vary by context:

When used with the commands -READ, -TYPE, and WRITE, the maximum length of a variableis approximately 32,000 characters (32K).

When used with other Dialogue Manager commands or the EX command, a variable valuecannot exceed 4,096 character (4K).

If a value contains an embedded comma (,) or embedded equal sign (=) the value must beenclosed between single quotation marks. For example:

EX SLRPT AREA=S, LOCATION='NY, NY'

Once a value is supplied for a local variable, it is used for that variable throughout theprocedure, unless it is changed through a -SET or -READ.

Once a value is supplied for a global variable, it is used for that global variable throughoutthe WebFOCUS session in all procedures, unless it is changed through a -SET or -READ.

WebFOCUS App Studio Reference Guide 595

11. Creating Procedures in WebFOCUS App Studio

Page 596: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Dialogue Manager automatically sends a prompt to the display if a value has not been suppliedfor a variable.

Operating system default values, limits, and format specifications.

The default value for the operating system return code value is 8.

Literals must be surrounded by single quotation marks if they contain embedded blanks orcommas. To produce a literal that starts or ends with a single quotation mark, place twosingle quotation marks where you want one to appear.

Alphanumeric formats are described by the letter A followed by the number of characters. Thenumber of characters can be from 1 to 3968.

Integer formats are described by the letter I followed by the number of digits to be entered.The number can be from one to 10 digits in length, value must be less than 231-1.

A label is a user-defined name of up to 12 characters. You cannot use blanks and should notuse the name of any other Dialogue Manager command except QUIT and EXIT. The label mayprecede or follow GOTO in the procedure.

A date supplied to Dialogue Manager cannot exceed 20 characters, including spaces.

The level of nested -INCLUDE files is limited only by available memory. However, recursive-INCLUDE commands are limited to four levels.

Use Qualified Path Command

The Use Qualified Path Command is available when you create a report, Define, Join, OlapDimension, or Match.

If you chose a Data Server node to develop your report, Define, or Match, you can select the UseQualified Path check box to only display data sources in the selected application folder. Whenthe Use Qualified Path check box is unselected, all data sources in the application path aredisplayed.

When creating a Define, Join, Olap Dimension, Match, or when adding a report component to aprocedure, selecting the Use Qualified Path check box will display an application folder selectionarea and a data source selection area. When the Use Qualified Path check box is unselected,only a data source selection area is displayed.

Procedure components that use a mix of qualified and non-qualified paths for the same datasource will not work together. For example, the components that use the qualified path of a datasource will work together and the components that use the non-qualified path of the same datasource will work together.

596 WebFOCUS

Use Qualified Path Command

Page 597: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

If you want all components to work together, then all components need to either use the qualifiedpath of a data source, or all components need to use the non-qualified path of a data source.

Note: The Use Qualified Path check box is unavailable when developing in the Content node.

WebFOCUS App Studio Reference Guide 597

11. Creating Procedures in WebFOCUS App Studio

Page 598: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

598 WebFOCUS

Use Qualified Path Command

Page 599: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Troubleshooting App StudioAAppendix

The following topics explain how to troubleshoot App Studio.

In this appendix:

Troubleshooting Tips

Troubleshooting Tools

Troubleshooting Tips

Review the following tips when troubleshooting App Studio.

Tomcat Configuration Options

Since Tomcat runs as a service, Tomcat Java settings and other parameters are written into theregistry. They can be configured through the Apache Tomcat Properties window. You can launchthis from the Start menu by selecting Programs, Information Builders, Tomcat, and TomcatConfiguration Utility.

If you need to adjust the Java release, click the Java tab to change where Tomcat looks for Javacomponents. Be aware that Tomcat 7.0 requires Java 1.6.

Note: Tomcat 7.0 requires a Java 1.6 JDK. If during the Tomcat installation, Tomcat 7.0 useda Java 1.5 JRE as its JAVA_HOME, then JSP page compilations will fail and you receive errors,such as Unable to find a javac compiler. To fix this, update the paths to point to the jvm.dllfile of the JRE inside a Java 1.6 JDK and add the JDK/lib/tools.jar file to the TomcatCLASSPATH.

Java Memory Issues

If the App Studio installation configured Tomcat for you, the Tomcat Java VM memory settingsare automatically increased. This is done because default application server Java VM memoryoptions may not be sufficient for some WebFOCUS features. If you need to troubleshoot furtheror if you manually install Tomcat or another application server, you may need to manually increasethe Java VM memory options.

WebFOCUS App Studio Reference Guide 599

Page 600: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The most common Java VM options you need to set involve the size of the Java heap and stack,which determine memory availability for Java programs and the Java VM. Errors can occur if notenough memory is available, and the heap size impacts performance, since it determines howoften garbage collection occurs.

The following are the most common Java VM options related to memory settings. Replace the### with the size you wish to set:

-Xmx###M

Sets the maximum Java heap size. It is common to make this 1/4 of the system RAM.

-Xms###M

Sets the initial Java heap size. It is common to make this 1/8 of the system RAM.

-Xss###M

Sets the Java thread stack size. You do not need to set this unless you are fine tuning yourenvironment.

The size is normally set in megabytes, for example:

-Xms256M-Xmx512M

Optimum sizes vary depending on your total memory, the needs of your application, how manyother processes require memory, the type of Java VM, and other considerations. A good startingplace is to set the minimum to 1/8 of the total RAM and set the maximum to 1/4 of total RAM.

Where to set these and other Java VM options depend on your application server.

For Tomcat on Windows, you can set these options using the Apache Tomcat Propertieswindow.

1. From the Start menu, select Programs, Information Builders, Tomcat, and TomcatConfiguration Utility.

2. Click the Java tab.

3. In the Initial memory pool (-Xms) field, specify the initial Java heap size in megabytes. Forexample:

256

4. In the Maximum memory pool (-Xmx) field, specify the maximum Java heap size inmegabytes. For example:

512

5. Click OK.

600 WebFOCUS

Troubleshooting Tips

Page 601: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

6. Restart Tomcat.

For other application servers, refer to your application server documentation.

Starting App Studio

If you close App Studio and then cannot restart it, you may need to manually stop the underlyingfocshell.exe process. To do this:

1. Press Ctrl + Alt + Delete and choose Task Manager.

2. Click the Processes tab.

3. Find and select a focshell.exe Image Name if it appears.

Note: You can click the Image Name column to sort by name.

4. Click End Process.

You should be able to restart App Studio if no focshell.exe processes appear.

Troubleshooting Tools

Tools to troubleshoot App Studio are available in the WebFOCUS Administration Console, AppStudio program folder, and Reporting Server Console.

Accessing the Verification Tools in the WebFOCUS Administration Console

To run the verification tools installed with the WebFOCUS Administration Console, access theconsole.

How to Access the WebFOCUS Administration ConsoleProcedure:

1. Ensure that Apache Tomcat and/or IIS are started.

2. From the Windows Start menu, select All Programs, Information Builders, WebFOCUS 80 AppStudio, WebFOCUS App Studio Utilities, and then click WebFOCUS Administration Console.

If you are using Apache Tomcat standalone, you can also go to:

http://localhost:8080/ibi_apps/console/webfocusconsole.jsp

For IIS with Tomcat, you can go to:

http://localhost/ibi_apps/console/webfocusconsole.jsp

WebFOCUS App Studio Reference Guide 601

A. Troubleshooting App Studio

Page 602: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS Sign In page opens, as shown in the following image.

If the WebFOCUS Sign In page does not appear, ensure that your web server is started. Ifthe web server is started and this page does not appear, you may need to manually configurethe web server.

3. Sign in using an administrator user ID. The initial default user name and password is admin.

602 WebFOCUS

Troubleshooting Tools

Page 603: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The WebFOCUS Administration Console opens, as shown in the following image.

Using this console, you can edit various configuration settings. Information about the varioussettings in this console can be found by clicking Help. The WebFOCUS Administration Consolecontains a verification tool to further test the configuration.

4. On the left of the WebFOCUS Administration Console, expand Diagnostics.

Several tests are available from the Diagnostics node.

WebFOCUS App Studio Reference Guide 603

A. Troubleshooting App Studio

Page 604: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

How to Test the WebFOCUS ClientProcedure:

Expand Verification and then click WebFOCUS Client.

A page similar to the following image appears on the right with a list of tests. The list variesdepending on your license and configuration. For a Tomcat standalone configuration, the web/appserver tests may not appear.

If a test fails, a Possibilities link appears providing information on what the problem might beand possible solutions. The verification tools are only supported with Internet Explorer, and youmay receive errors if you use other browsers.

How to Test the WebFOCUS Reporting ServerProcedure:

Expand Verification and then click WebFOCUS Reporting Server to test the connection betweenthe WebFOCUS Client and the WebFOCUS Reporting Server.

604 WebFOCUS

Troubleshooting Tools

Page 605: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Client Path field is displayed with the path to the WFServlet.cfg file. You are also allowed toselect a node in the Remote Services area.

The Client Path specifies how the connection is made. The default servlet URL appears.

You can test the following areas:

Automatic Test. Checks connections and checks to see if you can list applications underthe approot directory, if you can create and delete an application, and if you can run storedprocedures and ad hoc reports. When you are finished, click Back to return to the previousscreen.

Test AdHoc Procedure. Opens a window containing a default ad hoc procedure. You will beprompted for credentials if the server is secure. Click Run to execute the procedure, or youcan edit the procedure first. You can also change the application path (using APP PATH, notEDAPATH). The procedure can consist of WebFOCUS or SQL commands. When you are finished,click Back to return to the previous screen.

Test Existing Procedure. Allows you to type an existing procedure name and any necessaryparameters. The procedure must be stored on the WebFOCUS Reporting Server. You can alsochange the application path. Click Run to execute the procedure. When you are finished, clickBack to return to the previous screen.

Open Server Console. Opens the Reporting Server Console.

WebFOCUS App Studio Reference Guide 605

A. Troubleshooting App Studio

Page 606: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS Client Traces

The Diagnostics menu in the WebFOCUS Administration Console lets you view and deleteWebFOCUS Client trace files. Trace files track requests processed by the WebFOCUS Client.Since tracing can slow performance, you should only turn on traces when troubleshooting.

How to View WebFOCUS Client TracesProcedure:

In the left pane of the WebFOCUS Administration Console, expand Diagnostics, and then expandTraces. You can view the trace files by selecting the type of trace from the list. For example, toview traces generated by the WebFOCUS Servlet, in the left pane of the WebFOCUS AdministrationConsole under Diagnostics and Traces, select WFServlet.

606 WebFOCUS

Troubleshooting Tools

Page 607: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The following image shows the WebFOCUS client traces screen.

A page lists any generated traces. The first column lists the generated trace file. The secondcolumn shows a timestamp for when the request ran. You can view a trace file by clicking it.

For more information about the available trace options, click Help in the top-right corner of theWebFOCUS Administration Console.

App Studio Trace Utility

The App Studio trace utility (Communication Layer Trace) generates trace files for tasks performedby the App Studio development environment communication layer. It captures information fortasks performed by App Studio when a request is submitted or retrieved by the product.

You can use this utility to help troubleshoot issues, such as communication failures, connectionproblems, and transfer of files.

To generate traces for issues you might encounter at startup, you should start the trace utilityprior to launching App Studio.

To generate traces for a failure to connect to a Data Server or to determine why applications arenot listed, you should start and enable the trace at the point prior to performing the task thatfails.

How to Use the Communication Layer TraceProcedure:

1. Launch the Communication Layer Trace from the Windows Start menu by selecting AllPrograms, Information Builders, WebFOCUS 80 App Studio, WebFOCUS App Studio Utilities,and Communication Layer Trace.

WebFOCUS App Studio Reference Guide 607

A. Troubleshooting App Studio

Page 608: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

The Communication Layer Trace tool opens, as shown in the following image.

2. Click the On radio button to enable tracing.

3. The Trace File field indicates the location and name of the trace file. The default trace fileis created in the following location for Windows 7:

drive:\Users\user_id\AppData\Roaming\Information Builders\wfscom.xml

where:

user_id

Is your Windows user ID.

Note: The Application Data directory may not be visible by default. To see this directory,open Windows Explorer, click Tools, choose Folder Options, and select the View tab. Thenselect Show hidden files and folders and click OK.

4. In the Trace Levels area, keep the default All levels to capture all required information orspecify a specify level.

608 WebFOCUS

Troubleshooting Tools

Page 609: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS Reporting Server Traces

You can turn WebFOCUS Reporting Server traces on when you start the server or dynamicallyafter the server has started.

To start the server with traces, you should start it before App Studio by selecting Programsfrom the Start menu, then Information Builders, WebFOCUS 80 App Studio, WebFOCUS 80Server for App Studio, Diagnostic Functions, and Start Security OFF with Traces.

To turn traces on dynamically, access the Server Console and select Workspace, Diagnostics,and Traces.

Note: Viewing traces is only available to a server administrator.

You can use the Reporting Server Console to view server traces, as well as turn them dynamicallyon or off for a running server.

If tracing is set to off and it was never turned on, the page shows that no traces are availableand enables you to turn traces on. If tracing is on, the page displays the available traces in drop-down boxes. Which traces are available depends on what requests were made against the server.

To turn traces on dynamically, click Enable Traces. Be aware that a dynamic trace is not the sameas turning traces on at server startup. A dynamic trace is usually not sufficient for following aproblem through with Customer Support, but it may suffice for other purposes, such as seeinghow something is parsed.

Note: The default for tracing is to trace all components when tracing is turned on. However,the trace settings file (ibitrace.fex) may have been altered. Therefore, components that youexpect to be traced may not be traced.

How to View a Trace FileProcedure:

1. From the Web Console, select Workspace.

2. In the left panel, expand the Logs and Traces folder.

3. Double-click Traces, or right-click Traces and click View.

A list of traces displays in the right panel.

4. Right-click a specific trace file and then choose from the following options:

View. Displays the trace in the right-hand browser pane.

Open or Save. Enables you to open the trace in a local editor or to save it to a localdisk.

WebFOCUS App Studio Reference Guide 609

A. Troubleshooting App Studio

Page 610: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Delete. Deletes the selected trace.

The file opens, or is deleted, according to the option you choose.

610 WebFOCUS

Troubleshooting Tools

Page 611: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Glossary

active dashboard

An HTML page with one or more active report procedures, and controls to mimic active reportmenu options, to allow global modification of multiple active reports in HTML pages.

active report

A self-contained report that is designated for offline analysis. It contains all of the data andJavaScript within the output file.

Active Report Options tab

A tab on the ribbon that organizes the commands you can use to create or edit an activereport. The Active Report Options tab opens only when you select the active report outputoption.

Application button

A button in the upper-left corner of the interface that opens the Application menu. This buttonuses the App Studio icon.

Application Menu

A menu that contains file-related commands. You can create a new procedure, HTML page,Document, Cascading Style Sheet, JavaScript File or Text Document, open an existingdocument, save the active document, or run your content from the Application menu.

canvas

A work area where you can access App Studio features to develop applications. The size ofyour canvas is determined by the placement and location of the panels. As you developcontent, tabbed canvases will open.

Cascading StyleSheet canvas

A canvas where you can create a new Cascading Style Sheet (CSS) or edit an existing CSS.

chaining

Enables you to populate controls based on the selected value from the prior control in thechain. You can chain static and dynamic controls, link or unlink parts of a chain, and createconditions on links in a chain. Chains are represented by lines connecting control objects onthe Parameters tab. When you click the arrowhead in a link of a chain, the Properties andSettings dialog box opens. You can modify and set properties and conditions of the chain.

WebFOCUS App Studio Reference Guide 611

Page 612: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

chart

A graphical representation of data within a Master File. You can use the Chart canvas tocreate charts, which can be inserted into an HTML page or document.

Chart canvas

A canvas where you can create different types of charts. You can select from a variety ofchart types and output formats, and add custom features to your chart using the featuresthat are available to you in the Chart canvas.

Chart Wizard

A wizard that guides you through the steps that you need to follow to create a chart, SQLchart, or open an existing chart.

component

Objects that you can insert into the HTML page, for example, a report, graph, or image.Components can interact with controls to do different things.

Components tab

A tab on the ribbon that organizes the commands you can use to add components to anHTML page. These components include reports, charts, buttons, forms, and other objects.

Configured Environments tree

A windows-explorer type resource tree in the Environments Tree and Environments Detailpanels which contain a list of your configured environments, available files, and options todevelop content. See Environments Tree panel, Environments Detail panel, Data Serversnode, Local Projects node, and Web Applications node.

controls

Supplies a list of possible values, except in the instance of a text box, where the user suppliesthe value. A control enables you to prompt users for a parameter value. You can also addan input control and bind it to a parameter, using the Parameters tab.

Controls tab

A tab on the ribbon that organizes the commands you can use to insert and edit controls inan HTML page or a Guided Report page. The Controls tab opens only when you are creatingor editing an HTML page or Guided Report page.

Data Servers node

A node in the Configured Environments tree that lists each Reporting Server that theWebFOCUS Client can access. This node expands to display the files you can use to developWebFOCUS applications successfully.

612 WebFOCUS

Glossary

Page 613: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Data Source Definition Wizard

A wizard that guides you through the steps that you need to follow to create a Master File,edit an existing Master File, or open a recently used Master File.

Data tab

A tab on the ribbon that organizes the commands you can use to manipulate mathematicaldata in a report, and create defines and computes. The Data tab opens only when you arecreating or editing a report.

Define canvas

A canvas where you can create a new virtual field, as a component in a procedure, or editan existing virtual field.

Dialogue Manager

A part of the WebFOCUS language that controls the execution of your application componentsand allows you to control the flow of your application with the use of commands and variables.

document

A series of pages that can contains reports, images, charts, and other information.

Document canvas

A canvas where you can design reports, and coordinate and distribute layouts made up ofmultiple reports and charts in a document.

environment

A virtual folder where you can organize, develop, maintain, and deploy WebFOCUS applications.

Environments Detail panel

An optional panel that contains panel customization commands, the Environments Detailtoolbar, the Configured Environments tree, and the Details pane.

Environments Tree panel

A panel that contains panel customization commands, the Environments Tree toolbar, andthe Configured Environments tree. The Environments Tree panel opens with App Studio bydefault.

Environments Tree toolbar

A toolbar in the Environments Tree panel that contains the buttons and menus you need tonavigate, filter, and sort the content in the Configured Environments tree.

WebFOCUS App Studio Reference Guide 613

Glossary

Page 614: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

ESRI Configuration Utility canvas

A canvas where you can edit configuration options associated with ESRI, the ArcGIS Server,and the GIS Adapter.

field

A set of data pertaining to a specific topic. For example, the SEATS field, within the CARMaster File, contains data for the number of seats in each car.

Field tab

A tab on the ribbon that organizes the commands you can use to change field type, filterspecific fields, sort data in fields, and style the titles and data of a field. The Field tab opensonly when you select a field on the Report canvas.

File/Folder Properties panel

A panel that displays the properties of a project folder or the files within a project. TheFile/Folder Properties panel is always open, but it is auto hidden by default.

Format tab

A tab on the ribbon that organizes the commands you can use to change the output type ofthe report, control the navigational settings of a report, and access the special features ofa report. The Format tab opens only when you are creating or editing a report.

Guided Report

A highly parameterized report that allows you to select fields and options that participate ina report at run time. Fields and options that have been added to the Guided Report aredisplayed in controls and are available for selection. Selecting fields from controls and runningthe report will display the data that correlates to the field values.

Home tab

A tab on the ribbon that organizes the commands you can use to access the features andfunctions necessary to build an application, create new components, open existingcomponents, run existing components, and edit components. The Home tab is always availableand is static.

HTML canvas

The HTML canvas enables you to graphically create an HTML page that incorporates forms,reports, graphs, and web objects.

HTML page

A webpage that can incorporate forms, reports, charts, and web objects.

614 WebFOCUS

Glossary

Page 615: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

HTML/Document wizard

A wizard that guides you through the steps that you need to follow to create an HTML Page,Guided Report Page, Document, and Active Dashboard, or open a recent procedure.

Insert tab

A tab on the ribbon that organizes the commands you can use to insert components andcontrols in a document or active dashboard. The Insert tab opens only when you are creatingor editing a document.

JavaScript canvas

A canvas where you can create JavaScript code. The JavaScript canvas uses the MicrosoftIntelliSense® feature to assist in the creation of code segments.

join

A temporary connection between two or more data source files that share at least one commonfield. Once files are joined, each time a record is retrieved from the first file (host file), it alsoretrieves the matching records from the second file (cross-referenced file).

Join canvas

The Join canvas allows you to temporarily join two or more data sources and use data fromthem as if they were one data source. Joined files remain physically separate but are treatedas one data source.

Join tab

You can use the Join tab to manipulate data sources when using a join. The Join tab isavailable only when you are creating a Join. See join.

Layout tab

You can control the page properties of a report using the functionality available on the LayoutTab. You can change the margin size, page layout, type of material the report will be printedon, what unit of measurement the report uses, page numbering, cell padding, and whetherto autofit columns. The Layout tab is located at the top of the App Studio interface. It isavailable only when you are creating a report.

Local Projects node

A node in the Configured Environments tree that helps you organize, develop, maintain, anddeploy WebFOCUS applications as a project.

maps

A component that you can insert into an HTML page. You can use either ESRI JavaScript,Bing, or Google maps.

WebFOCUS App Studio Reference Guide 615

Glossary

Page 616: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Master File

A Master File describes the data source from which you are reporting. The Master File is amap of the data source and all of the fields. By looking at the Master File, you can determinewhat fields are in the data source, what they are named, and how they are formatted. Youcan also determine how the fields in the data source relate to each other.

Matrix tab

You can create, calculate, and present financially oriented data, such as balance sheets,consolidations, profit and loss statements, budgets, and certain government mandatedfinancial reports. The Matrix tab is located at the top of the App Studio interface and is onlyaccessible when a FOR field selected on the report canvas and the Matrix tab is selectedfrom the bottom of the Object Inspector.

Metadata

A set of data that describes and gives information about other data.

Metadata canvas

A canvas where you can create and edit synonyms, and perform tasks, such as creating,viewing, and modifying synonyms.

Metadata tab

A tab on the ribbon that organizes the commands you can use to edit or create synonyms.You can undo or redo actions, manipulate selections of data, find and edit text, switch todifferent view tabs, insert notes, run different reports, and switch between different viewmodes. The Metadata tab opens only when you are creating or editing a synonym.

Modeling tab

A tab on the ribbon that organizes the commands you can use to access WebFOCUS RStat,a statistical modeling workbench that is embedded in App Studio. You can perform commonstatistical and data mining tasks, and develop models that can be deployed as scoringapplications on every platform. The Modeling tab opens only when you are creating or editinga report and have RStat installed.

OLAP Dimensions canvas

A canvas where you can create temporary OLAP hierarchy and dimensions.

parameter values

A variable value.

616 WebFOCUS

Glossary

Page 617: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Positioning tab

A tab on the ribbon that organizes the commands you can use to multi-select objects andposition them relative to one another. The Positioning tab opens only when you creating orediting a HTML page, Guided Report page, document, or active dashboard.

procedure

A .fex file that defines how data is retrieved and displayed. Procedures request data fromthe data source using a Master File to understand how the data is organized. When you runa procedure, it executes a series of commands that process your data and transform it intoa readable output.

Procedure View panel

The Procedure View panel contains the panel customization commands, Procedure Viewtoolbar, and the Procedure View tree. This panel displays all components in a procedure.You can add new components to a procedure, such as Report, Define, Define Function, Chart,Set, Join, Use, Allocation, OLAP Dimensions, or Match.

Properties panel

The Properties panel shows the attributes of the object or objects selected on the canvas.

Quick Access Toolbar

A small, customizable toolbar that displays the commands you use most often. By default,New, Open, Save, Quick Print, Undo, Redo, Cut, Copy, Paste, and Run are on the QuickAccess Toolbar.

report

A component that you can insert onto the page layout. A visual representation of data withina Master File.

Report canvas

A canvas where you can create and style reports.

Report tab

A tab on the ribbon that organizes the commands you can use to modify report properties,change the style of rows and columns on your report, or create filters. The Report tab opensonly when you are creating or editing a report.

Report Wizard

A wizard that guides you through the steps that you need to follow to create a new reportprocedure, SQL report procedure, or open an existing report.

WebFOCUS App Studio Reference Guide 617

Glossary

Page 618: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Repository node

A node in the Configured Environments tree where you can store data and information, andallows you to use App Studio to administer and develop against a Managed Reportingenvironment. The Repository node lets you manage resources and applications on remoteservers, as well as on your local machine if you have performed a full installation of AppStudio.

ribbon

A rectangular command bar located at the top of the application window that organizes theApp Studio commands and controls as a series of tabs. These tabs can be static or contextual.You can also access the WebFOCUS Administration menu, Style menu, and the Help menu.

Set canvas

A canvas where you can issue a SET command. You can use the SET command to changeparameters that govern App Studio and your environment.

Settings panel

The Settings panel modifies the settings of components, controls, and parameters. Whenyou select an object, or when an object is added to the canvas, the settings for that objectare displayed in the Settings panel. The Settings panel is available when you are using theHTML canvas or the Document canvas.

synonym

Defines a unique logical name (also known as an alias) for each web services operation.Synonyms are useful because they insulate client applications from changes to the locationand identity of a request. You can move or rename a request without modifying the clientapplications that use it. You need to make only one change, redefining the request synonymon the server. They provide support for the extended metadata features of the server, suchas virtual fields and security mechanisms. Creating a synonym generates a Master File andan Access File.

Tasks & Animations panel

The Tasks & Animations panel allows you to submit requests for parsing, execute tasks whenspecific criteria are met, and add jQuery animations to your HTML page.

Text Editor canvas

A canvas where you can edit component code.

618 WebFOCUS

Glossary

Page 619: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Text Editor tab

A tab on the ribbon that organizes the commands you can use to create, view, and edit thesource code for procedures, procedure components, and other types of files required by yourprojects.

Thumbnails panel

The Thumbnails panel contains a preview of what is currently on the canvas. The Thumbnailspanel is available when you are using the HTML or Document canvas.

Use canvas

A canvas where you can specify the name and location of a FOCUS data source. This ishelpful if the default naming convention is not used, the data source cannot be found on thestandard search path, or an explicit extra option is desired.

Utilities tab

A tab on the ribbon that organizes the commands you can use to change the font, chaining,active report, template, and page properties of an HTML page, Guided Report page, document,or active dashboard. The Utilities tab contains different groups depending on what you arecreating. The Utilities tab opens only when you are creating or editing a HTML page, GuidedReport page, document, or active dashboard.

View tab

A tab on the ribbon that organizes the commands you can use to change the way that youview your data or fields. The View tab opens only when you are creating or editing a report.

Web Applications node

A node in the Configured Environments tree that allows you to open files with the Text Editor,or the mode you used to create them.

WebFOCUS environments

Complete instances of WebFOCUS that you can access to develop WebFOCUS applications.A WebFOCUS environment consists of a web server, a WebFOCUS Client, and ReportingServers.

WebFOCUS RStat

A statistical modeling workbench embedded in App Studio. It allows you to perform commonstatistical and data mining tasks, and develop models that can be deployed as scoringapplications on every platform.

WebFOCUS App Studio Reference Guide 619

Glossary

Page 620: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

620 WebFOCUS

Glossary

Page 621: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Index-? command 585

-? SET SETCOMMAND &myvar 514

-* command 513, 516, 585

-CLOSE command 513, 556, 557, 585

-CLOSE ddname command 513

-DEFAULT command 513, 544, 548, 586

-EXIT command 513, 586

-GOTO command 513, 519, 520, 587

-HTMLFORM command 496, 513

-IF ... GOTO command 520, 521, 522

-IF command 513, 519, 520, 521, 587

-IF tests 561

-INCLUDE command 513, 526, 527, 528, 588nesting procedures 528

-label command 513, 589

-PASS command 513, 518, 519, 589

-READ command 513, 544, 552, 553, 554, 590

-READFILE command 513, 591

-REMOTE command 591

-REPEAT command 513, 522, 523, 524, 591

-RUN command 514, 592

-SET command 514, 522, 525, 544, 548, 549, 551,

570, 572, 593

-SET IN FILE phrase 548

-TYPE command 514, 517, 518, 593

-WINDOW command 530

-WRITE command 514, 552, 554, 555, 594

.EVAL operator 565

.EVAL suffix 561

.EXIST suffix 561

.LENGTH suffix 561

.TYPE suffix 561

//TODO 327, 330

&ACCEPTS variable 540

&BASEIO variable 540

&CHNGD variable 540

&COORDINATES parameter 275

&DATE variable 534, 538

&DELTD variable 541

&DMY variable 534

&DMYY variable 534, 539

&DUPLS variable 541

&ECHO variable 543, 577, 578

&FOCCODEPAGE variable 534

&FOCCPU variable 534

&FOCDISORG variable 541

&FOCERRNUM variable 541

&FOCEXTTRM variable 534

&FOCFIELDNAME variable 535

&FOCFOCEXEC variable 535, 538

&FOCINCLUDE variable 535

&FOCLANGCODE variable 536

&FOCMODE variable 536

&FOCNEXTPAGE variable 536

&FOCPRINT variable 536

&FOCPUTLVL variable 536

&FOCQUALCHAR variable 536

&FOCREL variable 536

&FOCSBORDER variable 537

WebFOCUS App Studio Reference Guide 621

Page 622: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

&FOCTRMSD variable 537

&FOCTRMSW variable 537

&FOCTRMTYP variable 537

&FOCUSER variable 537

&FORMAT variable 541

&HIPERFOCUS variable 537

&INPUT variable 541

&INVALID variable 541

&IORETURN variable 537, 577

&LINES variable 541

&MDY variable 537

&MDYY variable 537, 539

&myvar 514

&NOMATCH variable 541

&READS variable 541

&RECORDS variable 541

&REJECTS variable 542

&RETCODE variable 537, 577, 583

&SETFILE variable 538

&STACK variable 543, 577, 582

&TOD variable 538

&TRANS variable 542

&YMD variable 538

&YYMD variable 538, 539

A

access to data 518

Accordion Reportscreating 193

active dashboards 246, 411, 413, 414, 415, 416adding pages 416creating 413

active dashboards (continued)inserting components 414inserting controls 415

active report options tab 226, 227, 228, 229, 230, 231, 232, 233, 235

active cache group 226, 227Application Container group 235Calculations group 228Freeze Columns group 230Legend Options group 229Menu Options group 233Pagination group 231Row Selection group 232Viewing Restrictions group 227Visualize group 232Window Display group 230

active reports 225, 226, 231, 232, 233, 235APDF 235applying data visualization 232columns 225FLEX 235page navigation bar 231set width and height 235setting colors 233setting rows 232

active reports group 310

adding headers and footers to overflow pages 424

adding new overflow pages 423

additional tabs 255

Aerial view 446

amper variables 514, 530, 560, 568, 570quote-delimited 568

amper variables in functions 573

Apache TomcatJava configuration 599troubleshooting 599

App Studioarchitecture 36customizing 102development modes 41directory structure 40launching 44preloaded IDs 37

622 WebFOCUS

Index

Page 623: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

App Studio (continued)processing 41trace utility 607troubleshooting 599

App Studio canvas 77

App Studio Options dialog box 57, 58, 60, 70

application button 48

Application button 47

application menu 48

application root directory 40

APPROOT directory 40, 42

Authoring Mode 60

auto chain controls 377

auto hide 142

automatic verification 604

Autosize Children 349

B

Basic Sampling Concepts 243Margin of Error 243

BI Portal 100

Bing Maps 258, 264, 266, 267, 273, 275, 278, 279, 280, 281, 282, 284, 285, 286, 287

bullseye charts 284center point 264chaining with controls 286clearing and removing shape selectors 285creating polygons 282customizing 267, 273inserting 266integrating WebFOCUS 275JavaScript code 287manual selection 278, 280markers 278output 281shape selection 279, 280

bookmarks 97, 421, 473using 421

branching 513, 519, 520, 521, 522conditional 520, 521, 522unconditional 520

branching procedures 519unconditional 519

BY phrase 193

C

calculating data 196

calculating trends 196

Calculation group 195

canvas 77

canvasescustomizing 85, 142

cascading style sheets (CSS) 169

cell padding 202

chain controls 378, 380reversing the order 380

chained variable valuesretrieving 337

chainingapplying conditions 380breaking chains 380Chaining group 310, 429controls 379new conditions 383removing links 380tree controls 305

Chaining group 310, 429

Chart canvas 90, 433

chart procedures 433

Chart Wizard 90, 433, 434creating charts 434launching 433

chartsadding to HTML pages 248, 249components of a procedure 488components of procedures 488

closing panels 142

WebFOCUS App Studio Reference Guide 623

Index

Page 624: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

column management 452

combining expressions 158, 159

commandschanging with variables 573Dialogue Manager 513, 584nesting 528operating system 584stacked 514testing results 577, 583

comments 513, 516, 517including in procedures 513, 517

Communication Layer Trace 607

componentsinserting 414

Components tab 248, 250, 254, 257Containers group 254Generic Elements group 250Objects group 257Reports group 248

Compute fieldscreating 195

concatenate data sources 162

concatenating variables 566

conditional branching 520, 521, 522, 561-IF ... GOTO command 520, 521, 522IF ...GOTO command 561screening values 561

conditional joins 497, 505creating 505

conditionsactions 383cache processing 386creating 383multiselect operator 384new 383parameter compare operators 386resolving parameters 385

Configured Environments tree 104, 106, 108, 109, 111, 113, 115

Data Servers node 108Local Projects node 109opening files 115Repository node 111

Configured Environments tree (continued)Web Applications node 113

controlschaining 378, 379inserting in Guided Report pages 291inserting in HTML pages 291settings 354

Controls group 292, 415

Controls tab 291, 292Controls group 292

creating expressions 155

creating joins 502

creating new projects 128

creating procedures 483, 515, 516, 517rules 516with comments 516, 517

CSS (cascading style sheets) 169

custom procedures 333

customizing keyboard shortcuts 75

customizing the Quick Access Toolbar 72, 73, 77

D

data access 518-PASS command 518restricting 518

Data Servers 108

data source 442

data sourcesjoining 502joins 489, 501

Data tab 194, 195, 196, 198Calculation group 194, 195Forecast group 196Guided Reports group 198

data visualization 222

Data Visualization dialog box 222

dates 539, 551displaying 539

624 WebFOCUS

Index

Page 625: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

dates (continued)setting 551

debugging 599

debugging procedures 577

default report styling 172

default variable values 548, 586-DEFAULT command and 548, 586

default WebFOCUS StyleSheetapplying 172

DEFECHO parameter 579

Deferred Report 100

DEFINE commandjoins 498

Define fieldscreating 195

Derby database 37

Derby Security database 36

developing models 240

diagnostic tools 603, 606, 607, 609App Studio 607WebFOCUS Client 606WebFOCUS Reporting Server 609

Dialog Manager 512

Dialogue Manager 483, 512, 513, 514, 516, 517, 518, 522, 526, 552, 561, 577, 584

calling procedures 526commands 513, 561, 584comments 516debugging procedures 577looping procedures 522messages 517operating system commands 584passwords 518processing 514reading files 552stacked commands 514writing files 552

Dialogue Manager commands 496, 513, 514, 516, 517, 518, 519, 520, 521, 526, 527, 528, 530, 543, 552, 554, 556, 557, 560, 561,

Dialogue Manager commands (continued)570, 582, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594

-? 585-? & 514, 543-? SETCOMMAND &myvar 514-* 513, 516, 585-CLOSE 513, 556, 557, 585-CLOSE ddname 513-DEFAULT 513, 586-EXIT 513, 586-GOTO 513, 519, 587-HTMLFORM 496, 513-IF 513, 519, 587-IF ... GOTO 520, 521-INCLUDE 513, 526, 527, 528, 588-label 513, 589-PASS 513, 518, 519, 589-PROMPT 530-READ 513, 552, 554, 590-READFILE 591-REMOTE 591-REPEAT 513, 591-RUN 514, 592-SET 514, 560, 570, 593-TYPE 514, 517, 593-WINDOW 530-WRITE 514, 552, 594syntax reference 561testing 582

Dialogue Manager IN FILE phrase 548

Dialogue Manager procedures 514, 515, 577creating 515debugging 577processing commands and variables 514

Dialogue Manager processing 514

Dialogue Manager variables 514, 530, 531, 545, 548, 551, 557, 558, 559, 560, 564, 565, 568

evaluating 564, 565manipulating values 560naming 530, 531positional 558, 559quote-delimited 568screening values 560

WebFOCUS App Studio Reference Guide 625

Index

Page 626: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Dialogue Manager variables (continued)supplying dates 551supplying values 545, 548, 557verifying 560

Dimension Builder toolbar 465

direct prompting 544

directories 40

display options 60

DMPRECSION parameter 550rounding 550

Document canvas 91, 348, 432

documents 246, 411, 412, 414, 415, 416, 418, 419, 430

adding pages 416creating 412creating page masters 418creating table of contents pages 419inserting components 414inserting controls 415post-processing 430pre-processing 430saving page masters 419

double-head slider control 297

Drill Down dialog box 178, 224

drill-down procedures 178, 224hyperlinks 224

Drop Down List Properties window 300

drop-down listsmultiple values 300

dynamic joins 497

dynamic values 325, 332, 334, 335, 336, 338populating fields 338retrieving 334, 335, 336sorting 332

E

EDIT function 570

editing existing environments 127

editing source code 469

embedded procedures 300

embedding style sheets 167, 170

environment settings 116

environmentsadding 116Data Server properties 125editing 127Local Machine properties 120logging on 120Project Development properties 126Web Component properties 122

Environments tab 69

Environments Tree panel 103, 104

Environments Tree toolbar 104, 105sorting information 105

ESRI Flex Viewer 291

ESRI Maps 258, 264, 266, 267, 273, 275, 278, 279, 280, 281, 282, 284, 285, 286

bullseye charts 284center point 264chaining with controls 286clearing and removing shape selectors 285creating polygons 282customizing 267, 273inserting 266integrating WebFOCUS 275manual selection 278, 280markers 278output 281shape selection 279, 280

evaluating variables 564, 565

Events 348

everything value option 324

EXEC command 529, 544, 557, 558calling procedures 529

EXIST operator 563

exponential moving average 197

Expression Builder 154, 155, 158, 159

626 WebFOCUS

Index

Page 627: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

expressionscombining 158, 159creating 155

external files 552, 554, 556, 557closing 556, 557reading from 552, 554writing to 552

External Tools tab 57

F

field display options 60

Field tab 210, 211, 212, 213, 217, 218, 219, 220, 224, 225

active reports group 225Break group 213Column Type group 210Filter group 211Format group 219Links group 224Sort group 212Specific group 220Style group 218

field variables 573

fieldschanging views 202, 206creating Compute fields 195creating Define fields 195viewing 202, 206

Fields window 60

File/Folder Properties panel 133

filesclosing 513writing to 554, 555

Files Utility group 311, 429

Filter group 153

Financial Report PainterPreview mode 236

finding text 97, 470

flow of control 513

FML PainterPreview mode 236

FORECASTexponential moving average 197linear regression analysis 197simple moving average 197

Forecast dialog box 197

Forecast group 196

format specifications 560

Format tab 179, 180, 186, 190Features group 190Navigation group 186Output Types group 180

formatting text 252, 253, 418bulleted lists 253, 418nested lists 253numbered lists 253, 418

full screen mode 256

full-screen data entry 530

functions 560, 572calling 572

functions and amper variables 573

functions and subroutinescalling 572EDIT 570TRUNCATE 570

G

General tab 57, 58

GETUSER function 537

global variables 514, 530, 531, 532, 533, 543naming 530, 531querying 543

Google Maps 258, 259, 260, 264, 266, 267, 273, 275, 278, 279, 280, 281, 282, 284, 285, 286, 287

API license key 259bullseye charts 284center point 264chaining with controls 286

WebFOCUS App Studio Reference Guide 627

Index

Page 628: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Google Maps (continued)clearing and removing shape selectors 285creating polygons 282customizing 267, 273inserting 266integrating WebFOCUS 275JavaScript code 287manual selection 278, 280marker visibility 280markers 278output 281polygon shape selectors 286refreshing 281shape selection 279, 280showing and hiding markers 280updating a WebFOCUS report 275WebFOCUS features and functionality 278WebFOCUS procedures 260

Grouping Tab 216

Guided Report pages 198, 199, 246, 247, 291, 311, 411

adding buttons 311adding controls 311adding text 311controls 291creating 247inserting controls 291

Guided Reports 199parameters 199

H

handles 142

headings and footings 339

Help 103

Help Configuration tab 70

Home tab 89, 92, 93, 94Consoles group 89Content group 89Modeling group 92Utilities group 89, 93View group 89, 93Window group 89, 94

HTML canvas 91, 258, 259, 266, 286, 297, 300, 301, 348, 376, 377, 378, 379, 432

adding tree controls 300, 301auto chain controls 377automatic chaining 377chaining controls 376, 378, 379chaining maps 286controls 376double-head slider control 297embedded procedures 300inserting maps 266integrating maps 258maps 259, 266Parameters tab 376

HTML pages 246, 248, 249, 291, 300, 301, 304, 311, 357, 362, 366, 411

adding buttons 311adding charts 248, 249adding components 248adding controls 311adding reports 248, 249adding text 311adding tree controls 300, 301, 304animating jQuery animations 366components 248controls 291creating 246creating jQuery animations 366embedded procedure 300existing procedures 301inserting controls 291jQuery animations 357, 362

HTML/Document wizard 91, 246, 247, 411, 412, 413

create active dashboards 91create Documents 91create Guided Report Pages 91create HTML Pages 91creating 246, 411creating active dashboards 413creating documents 412creating Guided Report pages 247creating HTML pages 246

628 WebFOCUS

Index

Page 629: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

I

IbComposer_enableHtmlElement 397

IbComposer_execute 396

IbComposer_getCurrentSelection 287, 290, 390, 391,

392, 393, 394

IbComposer_isSelected 396

IbComposer_ResetDownChainControls 398

IbComposer_selectTab 399

IbComposer_setCurrentSelection 395

IbComposer_showHtmlElement 397

ignore value option 323

implied prompting 530

IN FILE in Dialogue Manager 548

Include component 526

indexed variables 566, 567creating 567

Insert menuinserting maps 266

Insert tab 413, 414, 415, 416Components group 414Controls group 415Pages group 416

interactive data entry 530

interface componentsApplication button 47canvas 77Quick Access Toolbar 71

J

Javamemory issues 599

JavaScript code 389

Join Editor dialog box 461

join maps 461

Join tab 499, 500, 501Join group 501Windows group 500

joins 496, 497, 498, 499, 502, 503, 504, 505, 506, 509

conditional 497, 505creating 499, 502customizing 506DEFINE command and 498Define-based syntax 503multi-field 504multiple instance 498single instance 498tag name 509virtual fields 503

jQuery animations 357, 362, 366animating 366creating 366

K

keyboard shortcuts 75customizing 75

L

latitude and longitude coordinates 260

launching the Report Wizard 147

Layout tab 200, 201Page Setup group 200Report group 201

limiting number of records read 60

limiting number of records retrieved 60

linear regression analysis 197

Links group 178

Local Projects 128

local variables 514, 530, 531, 532naming 530, 531

looped procedures 522, 523, 524, 525-REPEAT command 522, 523, 524-SET command 522, 525

WebFOCUS App Studio Reference Guide 629

Index

Page 630: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

looping 513, 522, 523, 524

M

Mailing Label Options dialog box 193

Managed Reporting 111

mapsBing 258bullseye charts 284center point 264chaining with controls 286clearing and removing shape selectors 285configuring WebFOCUS 259creating polygons 282custom functionality 278customizing 267, 273ESRI 258ESRI Flex Viewer 291Google 258inserting 266integrating WebFOCUS 275JavaScript code 287latitude and longitude coordinates 260manual selection 278, 280marker fields 262markers 278output 281properties 270refreshing 281shape selection 279, 280tooltip fields 262using 258

mask option of EDIT function 570

mask text property 299

Match Wizard 482

Matrix tab 235, 237Insert group 237

merging data sources 482

messages 514, 517displaying 514, 517

metadataadapter 89

metadata (continued)password 89rebuild 89

Metadata canvas 442, 465

Metadata tab 444, 445, 446, 448, 450, 465Clipboard group 445Editing group 446Insert group 448Reports group 448Tools group 450Undo/Redo group 445View group 446

Miscellaneous group 312

Modeling group 92

Modeling tab 240

multi-field joins 504

multiple instance join structures 498

multiple tab controls 255

N

natural date literals 551

navigating procedures 519, 520, 522, 526, 529branching 519, 520calling another procedure 529incorporating another procedure 526looping 522

nesting procedures 528

New dialog box 48, 51

new environments 116, 120

nodesinserting 448

normal embedded styling 170

numeric amper variables in functions 573

O

onafterload 401

630 WebFOCUS

Index

Page 631: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

onbeforeload 401

Open dialog box 53

operating system commands 584

output formatting 60

Output Viewer Settings tab 70

outputs 181setting 181

P

page layoutadding overflow pages 423flow margins 423inserting dashboards 425

page masterscreating 418saving 419using in another document 419

Pages group 416

panels 141, 142, 143auto hide 142customizing 141, 142docking 142, 143floating 142hide 142pinning 142unpinning 142

parameter values 313, 316, 319, 321, 323, 324, 325, 326, 329, 331, 332, 333, 338, 339, 344, 543, 544

adding filters 331creating 313custom procedures 333default 344duplicate values 333dynamic 325, 329, 331, 333, 344everything value option 324from a procedure 324ignore value option 323importing 325list options 338Parameters (Dynamic Values) tab 326

parameter values (continued)populating fields 338querying settings 543, 544sending display values 339sorting 332static 316, 319, 321

parameters 199, 315, 544generating 199querying value settings 544

Parameters (Dynamic Values) tab 326

Parameters tab 314, 317, 333, 379chaining controls 379Check for duplicate values 333Settings panel 317

passwords 513, 518setting 513, 518

positional variables 558, 559

positioning components 349

Positioning group 306, 426

positioning objects 306, 426

Positioning tab 306, 308, 309, 426, 427, 428Positioning group 306, 426Relationships group 308, 427Text Alignment group 309, 428

preferences 57

Preview mode in Financial Report Painter 236

Procedure View panel 477

proceduresbranching 519, 520calling 526, 527, 528, 529comments in 516, 517creating 483, 515debugging 577editing source code 469including 513, 526including comments 517looping 522navigating 519, 520nesting 528, 529prompting 530reports 484rules for creating 516

WebFOCUS App Studio Reference Guide 631

Index

Page 632: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

procedures (continued)running 514scheduling 112screening values in 561security 518, 519variables and 530, 561

processing Dialogue Manager procedures 514

project-based development 42

projects 128

prompting for variable values 530

Properties and settings dialog boxbound parameters 318, 328dynamic values 326unbound parameters 318

Properties panel 348, 349Autosize Children 349

Properties toolbar 348

Q

querying procedure status 577, 583

Quick Access Toolbar 71, 72, 77adding commands 72, 77customizing 77

quote-delimited 568

quote-delimited string 568

QUOTEDSTRING 568

R

read limits 60

records 60, 158, 159, 513, 514, 552accessing 513reading from a file 552selecting 158, 159writing 514writing to a file 552

Relationships group 308, 427

remote development 44

replacing text 97, 470

Report canvas 90, 147, 148, 210, 217fields 210, 217

report display options 60

Report group 161

Report Painterformatting options 215

Report tab 153, 161, 164, 178Filter group 153Links group 178Report group 161Style group 164Traffic Lights group 164

Report Wizard 90, 147, 148, 149, 435creating reports 147, 148creating SQL reports 149, 435

ReportCaster 100

reporting server 36

Reporting Server Console 100

Reporting tab 57, 60

reportsadding borders 174adding to HTML pages 248, 249creating 147, 148data visualization 222embedding style sheets 170filters 211financial 235, 237formatting 215including StyleSheets 168joining files 496joins 496layouts 200manipulating mathematical data 194mathematical data 194modifying 153output 180procedures 484setting width options 177sorting 212, 215updating Google Map location 275

632 WebFOCUS

Index

Page 633: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

requests 358, 369executing 358

retrieval limits 60

ribbon 86organization 86

rounding using DMPRECSION 550

RStat 92, 240, 241developing models 240

rules for supplying values 545

S

sampling functionality 242

Save As dialog box 55

Save StyleSheet 172

scheduling 112

scheduling procedures 112

screening values with -IF tests 561, 562, 563, 564

Security Center 100

Security Center dialog box 39

Server Consoletroubleshooting 609

server diagnostic trace files 609

SET parametersDEFECHO 579

setting output types 181

setting preferences 57

Settings panel 354, 381conditions 381

side-by-side development 86

simple moving average 197

single instance join structures 498

Sort tab of Field Properties dialog box 215

sortingreports 215

Sorting Tab 215

source codeediting 469

special variables 542, 543&ECHO 543&STACK 543

SQL reports 149, 151, 435, 437creating 149, 435importing 151, 437

stacked commands 513, 514, 522executing 513, 514

Startup Options 58

static parameters 317, 325importing 325

static values 316, 319, 321adding 319importing 321Report canvas 321

statistical variables 514, 530, 540, 542, 543querying 543

strings 568

Style Composer 372, 373, 374, 375, 376background properties 373edge styles 375font styles 372interface effects 376layout styles 374list styles 375position mode 374text styles 374

Style File Selector 173

Style group 164

style menu 102

style sheetsembedding 167

StyleSheet File Selector 167

subroutinescalling 572

supplying default variable values 548

supplying variable values 544

synonym 442adapter 442creating 442

WebFOCUS App Studio Reference Guide 633

Index

Page 634: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

synonym (continued)editing 442

Synonym Editor 442

synonymscreating 444editing 444modeling view 458

system defaults 595

system variables 514, 530, 533, 534, 535, 536, 537, 538, 539, 577

&DATE 538&DMY 534&DMYY 534&FOCBORDERS 537&FOCCODEPAGE 534&FOCCPU 534&FOCEXTTRM 534&FOCFIELDNAME 535&FOCFOCEXEC 538&FOCINCLUDE 535&FOCLANGCODE 536&FOCMODE 536&FOCNEXTPAGE 536&FOCPRINT 536&FOCPUTLVL 536&FOCQUALCHAR 536&FOCSUER 537&FOCTRMSD 537&FOCTRMSW 537&FOCTRMTYP 537&HIPERFOCUS 537&MDYY 537&RETCODE 537&SETFILE 538&TOD 538&YYMD 538, 539

T

tab controlsfull screen mode 256multiple 255

table of contentsadding 187

table of contents (continued)disabling 187

table of contents pagescreating 419objects 420

Tasks & Animations panel 357, 358, 362Animations section 362Tasks section 358

TED (text editor) 515

Template group 311

Text Alignment group 309, 428

text boxesmasked text 299

text editor 469

Text Editor 113

Text Editor tab 97, 99, 469, 470, 473, 474Bookmarks group 97, 473Case/Comment group 99, 473Find group 97, 470Options group 99, 474

TomcatJava configuration 599troubleshooting 599

tracing 601, 606, 607, 609App Studio 607servlet 606WebFOCUS Client 606WebFOCUS Reporting Server 609

Traffic Lights group 164

trailing blanks 570, 571deleting 571

tree controlsmulti source 303

troubleshootingApp Studio 599servers 609tools 601

TRUNCATE function 570, 571

634 WebFOCUS

Index

Page 635: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

U

unbound parameters 315, 317adding 315

unconditional branching 513, 519, 520-GOTO command 519, 520

usage notes stylesheet 173

user defined functionscreating 485, 487

user passwords 38

Utilities group 93

utilities in App StudioCommunication Layer Trace 607

Utilities tab 309, 310, 311, 312, 313, 429, 431, 475

active reports group 310Chaining group 310, 429Files Utility group 311, 429Miscellaneous group 312Template group 311View group 313, 431, 475

V

values 530, 543, 545, 551, 553, 557, 558, 560, 561, 562, 563, 564, 570, 595

default 595defining 570querying 543screening 561, 562, 563, 564supplying 530, 545, 551, 553, 557, 558, 560

variable name length 545

variable types 514, 530, 531, 532, 533, 540, 542, 558

amper 530global 514, 530, 532local 514, 530, 531, 532positional 558special 542statistical 514, 530, 540system 514, 530, 533

variable values 544, 545, 548, 549, 551, 553, 557, 558, 560, 586, 593

-DEFAULT command and 548, 586dates 551length 545supplying 544, 545, 548, 549, 551, 553, 557, 558, 560, 593supplying default 548verifying 544

-? &\ 514, 543

variables 513, 514, 530, 543, 545, 551, 553, 557, 558, 560, 565, 566, 568, 570, 573

appending values 566assigning values to 514changing commands 573computing 570concatenating 566evaluating 565procedures and 530querying 543quote-delimited 568setting 513substitution 530supplying values 545, 551, 553, 557, 558, 560

verification 604, 605automatic 604WebFOCUS Reporting Server 605

verification tool 603

View group 93, 313, 431, 475

View tab 202, 206

viewing items based on type 105, 131

virtual fields 484, 498defining 484joins 498

W

WebFOCUS 33, 35, 36, 41, 259architecture 35components 35configuration 36configuring for maps 259network connections 35

WebFOCUS App Studio Reference Guide 635

Index

Page 636: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

WebFOCUS (continued)processing 41

WebFOCUS Administration 100

WebFOCUS Administration Console 259, 601, 603accessing 601verification tool 603

WebFOCUS client 36, 124properties 124

WebFOCUS Clienttesting 604tracing 606

WebFOCUS Client Path parameter 123

WebFOCUS environmentproperties 120

WebFOCUS environments 115

WebFOCUS Environments 106

WebFOCUS reporting server 36

WebFOCUS Reporting Server 605, 609connection 605testing 605tracing 609

WebFOCUS RStat 92, 240, 241developing models 240

Window group 94

windows 58, 69startup options 58, 69

636 WebFOCUS

Index

Page 637: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Customer ConnectionsWhere users partner with Information Builders to provide feedback and create qualitydocumentation.

Partner With Us

Information Builders Technical Content Management team is comprised of many talentedindividuals who work together to design and deliver quality technical documentation products.Your feedback supports our ongoing efforts!

You can also join a usability study to get an early look at new documentation products andservices. Your participation helps us create documentation products that meet your needs.

To send us feedback or make a customer connection, contact Michele Brady, Service Director,Technical Content Management at [email protected].

Request Permission to Use Copyright Material

To request permission to repurpose copyrighted material, please contact Frances Gambino, VicePresident, Technical Content Management at [email protected].

Visit the Information Builders Technical Content Library

To visit the Technical Content Library, go to http://documentation.informationbuilders.com/.

Page 638: WebFOCUS App Studio Reference Guide · Appication Studio Version 8 Release 1.0 WebFOCUS App Studio Reference Guide Release 8.1 Version 03 February 3, 2015

Information Builders, Inc.Two Penn PlazaNew York, NY 10121-2898

Application Studio

Version 8 Release 1.0

WebFOCUS App Studio Reference Guide Release 8.1 Version 03

DN4501500.0215