Optimizing object definitions with @Select and @Where functions



Similar documents
How To Create A Hyperlink In Publisher On Pc Or Macbookpress.Com (Windows) On Pc/Apple) On A Pc Or Apple Powerbook (Windows 7) On Macbook Pressbook (Apple) Or Macintosh (Windows 8

How to Create Database in Microsoft Excel 2003

Adding Digital Signature and Encryption in Outlook

This is a training module for Maximo Asset Management V7.1. It demonstrates how to use the E-Audit function.

Maximizing the Use of Slide Masters to Make Global Changes in PowerPoint

Promap V4 ActiveX MSI File

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

Junk Settings. Options

Introduction to the use of the environment of Microsoft Visual Studio 2008

How to FTP (How to upload files on a web-server)

How to Backup and FTP your SQL database using E2.

Configuring Your Firewall for Client Access in Professional Edition

FaxCore Ev5 -To-Fax Setup Guide

Creating an Archive in Outlook

Installation Manual (MSI Version)

Using SQL Server 2008 Automated Backup

What is a Mail Merge?

Moving a Romexis Database to an Existing SQL Instance

Create a New Database in Access 2010

Moving the Web Security Log Database

Basic SQL Server operations

2 SQL in iseries Navigator

SQL Server 2005 Advanced settings

How to Use PIPS Access to/from SQL Database Utility Program. By PIPSUS Support Team Dr. Chouikha

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

PPC S SMART PRACTICE AIDS

EASTSIDE HIGH SCHOOL Student Information

Remedy ITSM Service Request Management Quick Start Guide

Industrial Security Facilities Database (ISFD) Troubleshooting Tips

for Invoice Processing Installation Guide

Create a PivotTable or PivotChart report

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

TestTrack Test Case Management Quick Start Guide

Moving Rockwell Software Activation Keys to the VersaView 200R Industrial Computer

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Secrets of Event Viewer for Active Directory Security Auditing Lepide Software

CONVERTING FROM NETKEEPER ISAM v6.32 to NETKEEPER SQL

ODBC Driver Version 4 Manual

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

MICROSOFT OUTLOOK 2011 READ, SEARCH AND PRINT S

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

Division of School Facilities OUTLOOK WEB ACCESS

Information to configure your Windows 7 office computer is described below.

Database Concepts (3 rd Edition) APPENDIX D Getting Started with Microsoft Access 2007

Basics Managing Your Inbox

Guide for usage of digital signatures in Microsoft Office Documents

Installing LearningBay Enterprise Part 2

There are several ways of creating a PDF file using PDFCreator.

System Center Service Manager

Personal Geodatabase 101

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

Distributing SMS v2.0

How to Copy A SQL Database SQL Server Express (Making a History Company)

Outlook Web App. in Office 365. The Outlook Window. Signing In. (Outlook Exchange Faculty & Staff) Getting Started

Using Lei Shing Hong Securities Limited (LSHS) Online Trading Services

You must have at least Editor access to your own mail database to run archiving.

Chapter 4 Accessing Data

EPiSERVER Content Management System

GETTING STARTED WITH SQL SERVER

Author: Ryan J Adams. Overview. Policy Based Management. Terminology

Census. di Monitoring Installation User s Guide

Publisher 2010 Create an Event Flyer

Preparing Documents in the STARS Database

NiceLabel Solution Architect User Guide

HareDB HBase Client Web Version USER MANUAL HAREDB TEAM

Installing a printer in Windows 95.

How to Back Up and Restore an ACT! Database Answer ID 19211

Newsletter Sign Up Form to Database Tutorial

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Moving a CIMPLICITY SQL Database using Detach/Attach Proficy HMI/SCADA CIMPLICITY

STIDistrict SQL 2000 Database Management Plans

FlashAir. Firmware Update Tool Ver User s Manual. (For updating a Mac system via the Internet)

Introduction. Tech Note 884 Setting Up Historian Servers for Tier-2 Summary Replication

Advanced Outlook Tutorials

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

Working with SQL Profiler

MICROSOFT OUTLOOK 2011 SYNC ACCOUNTS AND BACKUP

Introduction. Notes. Important Considerations. Application Versions. Assumptions. 8/22/13 Setting Up Historian Servers for Tier-2 Summary Replication

Word 2010: Mail Merge to with Attachments

Document Management Quick Reference Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Organizing and Managing

Counters & Polls. Dynamic Content 1

Crystal Converter User Guide

Using AppMetrics to Handle Hung Components and Applications

Protecting SQL Server Databases Software Pursuits, Inc.

DocumentsCorePack Client

Outlook Web Access. PRECEDED by v\

Auto-Archiving your s in Outlook

Archiving - Outlook 2003

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

Transcription:

Designer 4.0 and 5.0 Optimizing object definitions with @Select and @Where functions You can use @Functions in Designer to allow you to use more flexible methods to specify SQL in object definitions. The @Functions available in Designer are each described in the Designer s guide, but this article aims to give you more detailed information on the specific use of the @Select and @Where functions. You can use these two functions to save coding time and to help you create more accurate code. Future articles will be published with examples to describe in more detail the use of the other @Functions. What are @Functions? @Functions are special functions available in the Functions pane of the Edit Select Statement and Edit Where Clause dialog boxes for an object. @Functions provide more flexible methods for specifying SQL. For example, you can use @Functions to create interactive objects, optimize object Select statements and Where clauses, and use data from summary tables in the database. This article describes two of the @Functions available in Designer; @Function @Select @Where Description Allows you to reuse the Select statement of another object. Allows you to reuse the Where clause of another object. What are the advantages of using the @Select and @Where functions? Using the @Select and @Where functions creates a dynamic link between an original object (parent object) and a referencing object (child object). When the Select statement or Where clause of the original object is modified, the Select statement or Where clause of the referencing object is automatically updated.

The @Select and @Where functions allow you to use existing code, which has the following advantages: You have to maintain only one instance of the SQL code. Ensures consistency of the code. Using the @Select function The @Select function allows you to re-use the Select statement of another object. You insert the @Select function in the Select statement of an object. You then specify the path of another object in the universe as a parameter of the @Select function as follows: Class_Name\Object_Name. This statement then acts as a pointer to the Select statement of the referenced object. Syntax Thesyntaxofthisfunctionisthefollowing: @Select(Classname\Objectname) Classname is the name of the class that contains the object that you want to reference. Objectname is the name of the object whose Select statement you want to reference in the current object. Example An object called Car Model has the following code in the Select box of its Definition page: MODEL.MODEL_NAME & & MODEL.MODEL_TRIM & & MODEL.MODEL_ENGINE This same code is used in another object called Model for Rental. You can optimize the code usage by referencing the Car Model code in the Select box for the Model for Rental object as follows: @Select(Car\Model) To use the @Select function You can use the @Select function as follows: 1. Double click an object. The Edit Properties dialog box for the object appears. 2. Click the >> button next to the Select box. The Edit Select Statement dialog box appears. 3. Click in the Select box at the place where you want to add the @Select function. 4. In the Functions pane, expand the @Functions node and double click the @Select function. The @Select function with empty parameters appears in the Select box.

5. In the Classes and Objects pane, expand the class folder that contains the object that you want to reference. 6. Double click the object that you want to reference. The parameters for the @Select function are filled with the selected Classname/ Objectname values. For example, the Edit Select dialog box for an object Model for Rental appears below. In the classes and Objects pane, the Car Class has been expanded and the Model object has been double clicked so that the function @Select(Car\Model) appears in the Select box.l 7. Click OK in each of the dialog boxes and save the universe. The Select statement for the child object (Model for Rental) is now automatically updated with any modifications made to the Select statement of the parent object (Model). Using the @Where function The @Where function allows you to re-use the Where clause of another object. You insert the @Where function in the Where clause box of an object. You then specify the path of another object in the universe as a parameter of the @Where function, in the form Class_Name\Object_Name. This then acts as a pointer to the Where statement of the referenced object. Syntax Thesyntaxofthisfunctionisthefollowing: @Where(Classname\Objectname) Classname\Objectname is the name of a class, and the name of the object whose Where clause you want to reference in the current object.

Example An object called Resort Service Lines has the following code in the Where box of its Definition page: Resort.resort = @Prompt('Enter a resort name','a','resort\resort','mono',) This same code is used in another object called Resort. You can optimize the code usage by referencing the Resort object code in the Where box for the Resort Service Lines object as follows: @Where(Resort\Resort) The object Resort Service Lines references the Where clause in the object Resort. To use the @Where function You can use the @Where function as follows: 1. Double click an object. The Edit Properties dialog box for the object appears. 2. Click the >> button next to the Where box. The Edit Where Clause dialog box appears. 3. Click in the Where box at the place where you want to add the @Where function. 4. In the Functions pane, expand the @Functions node and double click the @Where function. The @Where function with empty parameters appears in the Where box. 5. In the Classes and Objects pane, expand the class folder that contains the object that you want to reference. 6. Double click the object that you want to reference. The parameters for the @Where function are filled with the selected Classname/ Objectname values.

For example, the Edit Where Clause dialog box for an object called Resort Service Lines appears below. In the classes and Objects pane, the Resort Class has been expanded, and the Resort object has been double clicked so that the function @Where(Resort/Resort) appears in the Where box.l 7. Click OK in each of the dialog boxes and save the universe. The Where clause for the child object (Resort Service Lines) is now automatically updated with any modifications made to the Where clause of the parent object (Resort).