861 PeopleCode API Reference
861 PeopleCode API Reference
July 2024
PeopleTools 8.61: PeopleCode API Reference
Copyright © 1988, 2024, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on use and
disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement
or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute,
exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or
decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you
find any errors, please report them to us in writing.
If this is software, software documentation, data (as defined in the Federal Acquisition Regulation), or related
documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government,
then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software,
any programs embedded, installed, or activated on delivered hardware, and modifications of such programs) and
Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users
are "commercial computer software," "commercial computer software documentation," or "limited rights data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such,
the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works,
and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs
embedded, installed, or activated on delivered hardware, and modifications of such programs), ii) Oracle computer
documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained
in the applicable contract. The terms governing the U.S. Government's use of Oracle cloud services are defined by
the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is
not developed or intended for use in any inherently dangerous applications, including applications that may create a
risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible
to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation
and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous
applications.
Oracle®, Java, MySQL, and NetSuite are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used
under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD
logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The
Open Group.
This software or hardware and documentation may provide access to or information about content, products, and
services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all
warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an
applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any
loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as
set forth in an applicable agreement between you and Oracle.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program
website at https://docs.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Field9............................................................................................................................................ 145
HomeUrl....................................................................................................................................... 145
isActive......................................................................................................................................... 145
IsTemplate.....................................................................................................................................145
Label............................................................................................................................................. 146
ListId............................................................................................................................................. 146
PackageRoot..................................................................................................................................146
ParentTemplate..............................................................................................................................147
pgltAppClass.................................................................................................................................147
pgltPackageRoot........................................................................................................................... 147
pgltProgressBarVisible..................................................................................................................148
pgltQualifyPath............................................................................................................................. 148
QualifyPath................................................................................................................................... 148
Status.............................................................................................................................................149
ActionItem Class.................................................................................................................................149
ActionItem Class Methods..................................................................................................................150
delete............................................................................................................................................. 150
getAssignments............................................................................................................................. 150
new................................................................................................................................................ 151
nextAction.....................................................................................................................................152
open...............................................................................................................................................152
prevAction.....................................................................................................................................153
save............................................................................................................................................... 153
saveAssignments...........................................................................................................................154
ActionItem Class Properties............................................................................................................... 155
AppClassID...................................................................................................................................155
AssignedToOprid.......................................................................................................................... 155
AssignType....................................................................................................................................155
CurrentStep................................................................................................................................... 156
DescrLong.....................................................................................................................................156
DueDate........................................................................................................................................ 156
DueTm.......................................................................................................................................... 156
EndDttm........................................................................................................................................ 157
Field1............................................................................................................................................ 157
Field10.......................................................................................................................................... 157
Field2............................................................................................................................................ 157
Field3............................................................................................................................................ 158
Field4............................................................................................................................................ 158
Field5............................................................................................................................................ 158
Field6............................................................................................................................................ 158
Field7............................................................................................................................................ 159
Field8............................................................................................................................................ 159
Field9............................................................................................................................................ 159
ItemId............................................................................................................................................ 159
Label............................................................................................................................................. 160
ListId............................................................................................................................................. 160
PackageRoot..................................................................................................................................160
ParentId......................................................................................................................................... 161
PercCompl.....................................................................................................................................161
Priority.......................................................................................................................................... 161
QualifyPath................................................................................................................................... 161
Remarks........................................................................................................................................ 162
Required........................................................................................................................................ 162
Sequence....................................................................................................................................... 162
ServiceId....................................................................................................................................... 163
StartDt........................................................................................................................................... 163
StartTm......................................................................................................................................... 163
Status.............................................................................................................................................163
Summary....................................................................................................................................... 164
Type...............................................................................................................................................164
ActionItemAssignments Class............................................................................................................ 165
ActionItemAssignments Class Methods............................................................................................. 165
IsEqual.......................................................................................................................................... 165
ActionItemAssignments Class Properties...........................................................................................166
AssignType....................................................................................................................................166
AssignValue.................................................................................................................................. 166
Member Class......................................................................................................................................166
Member Class Methods...................................................................................................................... 167
IsEqual.......................................................................................................................................... 167
Member......................................................................................................................................... 167
Member Class Properties.................................................................................................................... 168
Name............................................................................................................................................. 168
PrivilegeSetID...............................................................................................................................168
Type...............................................................................................................................................169
ContextData Class...............................................................................................................................169
ContextData Class Methods................................................................................................................169
ContextData.................................................................................................................................. 170
IsEqual.......................................................................................................................................... 170
ContextData Class Properties............................................................................................................. 171
ctxKey........................................................................................................................................... 171
ctxVisible...................................................................................................................................... 171
fieldname.......................................................................................................................................171
keyLabel........................................................................................................................................172
keyValue........................................................................................................................................172
recname......................................................................................................................................... 172
Chapter 2: AESection Class....................................................................................................................173
Understanding the AESection Class...................................................................................................173
How an AESection is Accessed......................................................................................................... 174
AESection Example............................................................................................................................ 175
Data Type of an AESection Object.................................................................................................... 176
Scope of an AESection Object........................................................................................................... 176
AESection Class Built-in Function.....................................................................................................177
AESection Class Methods.................................................................................................................. 177
AddStep.........................................................................................................................................177
Close............................................................................................................................................. 178
Open.............................................................................................................................................. 178
Save...............................................................................................................................................180
SetSQL.......................................................................................................................................... 180
SetTemplate...................................................................................................................................181
AESection Class Property...................................................................................................................182
IsOpen........................................................................................................................................... 182
Chapter 3: Analytic Calculation Engine Classes..................................................................................183
SetDimSort....................................................................................................................................214
SetSlice..........................................................................................................................................215
ShowHierarchy..............................................................................................................................216
UnsetDimFilter..............................................................................................................................217
UnsetDimSort............................................................................................................................... 218
CubeCollection Class Property........................................................................................................... 218
Messages....................................................................................................................................... 218
Chapter 4: Analytic Calculation Engine Metadata Classes................................................................ 221
Understanding the PeopleSoft Analytic Calculation Engine Metadata Classes................................. 221
Using the Analytic Calculation Engine Metadata Classes................................................................. 221
Inserting and Deleting Objects.....................................................................................................222
Building a Rule as an Object.......................................................................................................222
Error Handling.................................................................................................................................... 223
Data Types of the Analytic Calculation Engine Metadata Objects.................................................... 223
Scope of Analytic Calculation Engine Metadata Objects.................................................................. 223
How to Import the Analytic Calculation Engine Metadata Classes................................................... 223
How to Create an Analytic Calculation Engine Metadata Class Object............................................ 224
Analytic Calculation Engine Metadata Classes Constructor.............................................................. 225
AnalyticModelDefn...................................................................................................................... 225
AnalyticModelDefn Class................................................................................................................... 226
AnalyticModelDefn Class Methods....................................................................................................226
AddCube....................................................................................................................................... 226
AddCubeCollection.......................................................................................................................227
AddDimension.............................................................................................................................. 227
AddExplicitDimensionSet............................................................................................................ 228
AddOrganizer................................................................................................................................229
AddUserFunction.......................................................................................................................... 229
CopyCube..................................................................................................................................... 230
CopyCubeCollection.....................................................................................................................231
CopyDimension............................................................................................................................ 231
CopyExplicitDimensionSet...........................................................................................................232
CopyTo..........................................................................................................................................233
CopyUserFunction........................................................................................................................ 233
Create............................................................................................................................................ 234
Delete............................................................................................................................................ 235
DeleteCube....................................................................................................................................235
DeleteCubeCollection................................................................................................................... 236
DeleteDimension...........................................................................................................................237
DeleteExplicitDimensionSet.........................................................................................................238
DeleteOrganizer............................................................................................................................ 238
DeleteUserFunction...................................................................................................................... 239
Get.................................................................................................................................................240
GetCube........................................................................................................................................ 240
GetCubeCollection........................................................................................................................241
GetCubeCollectionNames.............................................................................................................242
GetCubeNames............................................................................................................................. 242
GetDimension............................................................................................................................... 243
GetDimensionNames.................................................................................................................... 244
GetExplicitDimensionSet..............................................................................................................244
GetExplicitDimensionSetNames.................................................................................................. 245
GetOrganizer................................................................................................................................. 245
GetOrganizerNames......................................................................................................................246
GetUserFunction........................................................................................................................... 247
GetUserFunctionNames................................................................................................................ 247
Rename..........................................................................................................................................248
RenameCube................................................................................................................................. 249
RenameCubeCollection................................................................................................................ 249
RenameDimension........................................................................................................................ 250
RenameExplicitDimensionSet...................................................................................................... 251
RenameOrganizer..........................................................................................................................252
RenameUserFunction....................................................................................................................252
Save...............................................................................................................................................253
Validate..........................................................................................................................................254
AnalyticModelDefn Properties........................................................................................................... 254
CircularFormulaWarn................................................................................................................... 255
Description.................................................................................................................................... 255
IsValid........................................................................................................................................... 255
LongDescription............................................................................................................................255
MaxDelta.......................................................................................................................................255
MaxIterations................................................................................................................................ 256
Messages....................................................................................................................................... 256
Name............................................................................................................................................. 256
ResolveCircularDeps.................................................................................................................... 257
DimensionDefn Class..........................................................................................................................257
DimensionDefn Class Properties........................................................................................................ 257
AggregateSequence.......................................................................................................................257
AggregationUserFunction.............................................................................................................257
Comments..................................................................................................................................... 258
Name............................................................................................................................................. 258
TotalMemberName....................................................................................................................... 258
ExplicitDimensionSet Class................................................................................................................258
ExplicitDimensionSet Methods...........................................................................................................259
AttachDimension.......................................................................................................................... 259
DetachDimension..........................................................................................................................259
GetDimensionNames.................................................................................................................... 260
ExplicitDimensionSet Properties........................................................................................................ 260
Name............................................................................................................................................. 260
SequenceNumber.......................................................................................................................... 261
CubeDefn Class...................................................................................................................................261
CubeDefn Class Methods................................................................................................................... 261
AttachDimension.......................................................................................................................... 261
DetachDimension..........................................................................................................................262
GetCauses......................................................................................................................................262
GetCircularDeps............................................................................................................................263
GetDimensionAggregate...............................................................................................................264
GetEffects......................................................................................................................................265
GetDimensionNames.................................................................................................................... 265
GetRule......................................................................................................................................... 266
SetDimensionAggregate............................................................................................................... 266
SetRule.......................................................................................................................................... 267
UsesDimension............................................................................................................................. 268
CubeDefn Class Properties................................................................................................................. 268
CalcAggregates............................................................................................................................. 268
Comments..................................................................................................................................... 268
DimensionCount........................................................................................................................... 269
FormatType................................................................................................................................... 269
IsVirtual.........................................................................................................................................269
Name............................................................................................................................................. 269
ValueDimensionName.................................................................................................................. 270
CubeCollectionDefn Class.................................................................................................................. 270
CubeCollectionDefn Class Methods...................................................................................................270
AttachCube....................................................................................................................................270
DetachCube...................................................................................................................................271
GetAggregateMapping..................................................................................................................272
GetCubeNames............................................................................................................................. 272
GetDimensionNames.................................................................................................................... 273
GetDimSort................................................................................................................................... 273
GetFieldMapping.......................................................................................................................... 274
GetFilter........................................................................................................................................ 275
GetPersistAggregate......................................................................................................................276
SetAggregateMapping.................................................................................................................. 277
SetDimSort....................................................................................................................................277
SetFieldMapping...........................................................................................................................279
SetFilter.........................................................................................................................................279
SetPersistAggregate...................................................................................................................... 280
UsesCube...................................................................................................................................... 281
UsesDimension............................................................................................................................. 282
CubeCollectionDefn Class Properties.................................................................................................282
AggregateRecName...................................................................................................................... 282
Comments..................................................................................................................................... 282
CubeCount.................................................................................................................................... 283
DimensionCount........................................................................................................................... 283
Name............................................................................................................................................. 283
RecordName..................................................................................................................................283
UserFunctionDefn Class..................................................................................................................... 283
UserFunctionDefn Class Methods...................................................................................................... 284
GetRule......................................................................................................................................... 284
SetRule.......................................................................................................................................... 284
UserFunctionDefn Class Properties....................................................................................................285
Comments..................................................................................................................................... 285
Name............................................................................................................................................. 285
OrganizerDefn Class........................................................................................................................... 285
OrganizerDefn Class Methods............................................................................................................ 285
AttachPart......................................................................................................................................286
DetachPart.....................................................................................................................................286
GetPartNames............................................................................................................................... 287
UsesPart........................................................................................................................................ 288
OrganizerDefn Class Properties..........................................................................................................289
Comments..................................................................................................................................... 289
Name............................................................................................................................................. 289
RuleDefn Class....................................................................................................................................289
RuleDefn Class Methods.................................................................................................................... 289
AddRuleExpression...................................................................................................................... 289
GenerateRule.................................................................................................................................290
RuleDefn Class Property.................................................................................................................... 291
RuleString..................................................................................................................................... 291
RuleExpressions Classes..................................................................................................................... 291
Using the Constants Class............................................................................................................292
Assignment Class................................................................................................................................ 292
Assignment Class Method.................................................................................................................. 292
GenerateRule.................................................................................................................................292
Assignment Class Properties.............................................................................................................. 293
Expression.....................................................................................................................................293
Variable......................................................................................................................................... 293
Comparison Class................................................................................................................................293
Comparison Class Method..................................................................................................................294
GenerateRule.................................................................................................................................294
Comparison Class Properties.............................................................................................................. 295
Operand1.......................................................................................................................................295
Operand2.......................................................................................................................................295
Type...............................................................................................................................................295
Constant Class.....................................................................................................................................296
Constant Class Method....................................................................................................................... 297
GenerateRule.................................................................................................................................297
Constant Class Properties................................................................................................................... 297
Type...............................................................................................................................................298
Value............................................................................................................................................. 298
Constants Class................................................................................................................................... 298
Cube Class...........................................................................................................................................298
Cube Class Methods........................................................................................................................... 299
AddIndex.......................................................................................................................................299
GenerateRule.................................................................................................................................299
GetIndexes.................................................................................................................................... 300
Cube Class Property........................................................................................................................... 300
Name............................................................................................................................................. 300
ExpressionBlock Class........................................................................................................................300
ExpressionBlock Methods.................................................................................................................. 301
AddRuleExpression...................................................................................................................... 301
GetRuleExpressions...................................................................................................................... 301
FunctionCall Class.............................................................................................................................. 302
FunctionCall Class Methods............................................................................................................... 306
AddArgument................................................................................................................................306
GenerateRule.................................................................................................................................306
GetArguments............................................................................................................................... 307
FunctionCall Class Properties.............................................................................................................307
Name............................................................................................................................................. 307
Type...............................................................................................................................................308
MemberReference Class..................................................................................................................... 308
MemberReference Class Method........................................................................................................308
GenerateRule.................................................................................................................................308
MemberReference Class Properties.................................................................................................... 309
Dimension..................................................................................................................................... 309
Member......................................................................................................................................... 309
Operation Class................................................................................................................................... 309
DeleteModel..................................................................................................................................333
DeleteRecord.................................................................................................................................334
Get.................................................................................................................................................335
GetModel...................................................................................................................................... 335
GetModelNames........................................................................................................................... 336
GetRecord..................................................................................................................................... 336
GetRecordNames.......................................................................................................................... 337
Rename..........................................................................................................................................337
Save...............................................................................................................................................338
AnalyticTypeDefn Class Properties.................................................................................................... 338
AppClassPath................................................................................................................................ 338
Comments..................................................................................................................................... 339
Description.................................................................................................................................... 339
Name............................................................................................................................................. 339
OwnerID....................................................................................................................................... 339
AnalyticTypeModelDefn Class Properties..........................................................................................339
Name............................................................................................................................................. 339
Type...............................................................................................................................................340
AnalyticTypeRecordDefn Class Methods...........................................................................................340
GetSelectedField........................................................................................................................... 340
SetSelectedField............................................................................................................................341
UnsetSelectedField........................................................................................................................341
AnalyticTypeRecordDefn Class Properties........................................................................................ 342
Callback........................................................................................................................................ 342
Description.................................................................................................................................... 342
Name............................................................................................................................................. 342
Readable........................................................................................................................................342
ReadOnce...................................................................................................................................... 343
ScenarioManaged..........................................................................................................................343
SyncOrder..................................................................................................................................... 343
Writeable....................................................................................................................................... 343
AnalyticType Classes Example...........................................................................................................343
Chapter 7: Application Classes.............................................................................................................. 345
Understanding Application Classes.................................................................................................... 345
When Would You Use Application Classes?...............................................................................345
Application Classes General Structure............................................................................................... 346
Class Name................................................................................................................................... 346
Class Extension.............................................................................................................................347
Declaration of Public External Interface......................................................................................348
Access Control and the Declaration of Protected Properties and Methods................................. 349
Declaration of Private Instance Variables and Methods.............................................................. 351
Definition of Methods.................................................................................................................. 352
Declaration of Abstract Methods and Properties......................................................................... 355
Interfaces.......................................................................................................................................356
Constructors.................................................................................................................................. 356
External Function Declarations.................................................................................................... 359
Naming Standards............................................................................................................................... 360
Naming Packages......................................................................................................................... 360
Naming Classes............................................................................................................................ 360
Naming Methods.......................................................................................................................... 360
Naming Properties........................................................................................................................ 360
Import Declarations.............................................................................................................................361
Self-Reference..................................................................................................................................... 362
Using %This with Constructors................................................................................................... 363
Properties and Constants.....................................................................................................................364
Differentiating Between Properties and Methods........................................................................ 364
Overriding Properties................................................................................................................... 365
Using Get and Set with Properties...............................................................................................366
Using Read-Only Properties.........................................................................................................366
Using Methods and Properties for Collections............................................................................ 367
Declaring Constants......................................................................................................................367
Using Variables in Application Classes..............................................................................................367
Placement of Variable Declarations............................................................................................. 367
Declaring Private Instance Variables........................................................................................... 368
Global Variables........................................................................................................................... 368
Overriding Variables and Properties............................................................................................ 368
Superclass Reference.......................................................................................................................... 368
Downcasting........................................................................................................................................ 369
Exception Handling.............................................................................................................................370
Commenting and Documenting Application Classes......................................................................... 371
Understanding Comments and Documentation............................................................................371
Method Header Comments...........................................................................................................372
Class Header Comments.............................................................................................................. 372
Designing Base Classes...................................................................................................................... 373
Base Classes................................................................................................................................. 373
Abstract Base Classes...................................................................................................................373
Generic Base Classes................................................................................................................... 374
Utility Classes...............................................................................................................................374
Declaration of Application Classes.................................................................................................... 374
Declaring Application Classes..................................................................................................... 374
Importing Class Names................................................................................................................ 374
Referencing Superclasses............................................................................................................. 375
Declaring Private Methods...........................................................................................................375
Scope of an Application Class........................................................................................................... 375
Application Classes Built-in Functions and Language Constructs.....................................................375
class...............................................................................................................................................375
get..................................................................................................................................................377
import............................................................................................................................................ 378
interface.........................................................................................................................................379
method...........................................................................................................................................380
property......................................................................................................................................... 381
set.................................................................................................................................................. 381
Chapter 8: Application Data Set Classes.............................................................................................. 383
Understanding the Application Data Set Classes............................................................................... 383
Importing Application Data Set Classes............................................................................................ 384
AdsValidationBase Class.................................................................................................................... 384
AdsValidationBase Class Methods..................................................................................................... 385
AdsValidationBase........................................................................................................................ 385
DoADSValidations........................................................................................................................386
OnPreCopyCompare..................................................................................................................... 387
OnPreUpdate.................................................................................................................................388
OnPostCopy.................................................................................................................................. 389
ReportErrorModified.................................................................................................................... 392
Chapter 9: Application Services Framework Classes..........................................................................399
ServiceAPI Class.................................................................................................................................399
ServiceAPI Methods........................................................................................................................... 399
getInputParameter......................................................................................................................... 399
getInputRow..................................................................................................................................400
getLocationURL............................................................................................................................401
getOutputContentData.................................................................................................................. 401
getOutputParameter...................................................................................................................... 402
getOutputRow............................................................................................................................... 403
getRequestHeaderValue................................................................................................................ 403
getTemplateParameter...................................................................................................................404
InsertOutputRow...........................................................................................................................405
setInputParameter..........................................................................................................................405
setLocationTemplateParameter..................................................................................................... 406
setOutputParameter.......................................................................................................................407
setOverrideURL............................................................................................................................ 409
setResponseHeader....................................................................................................................... 409
ServiceAPI Properties......................................................................................................................... 410
HttpMethod................................................................................................................................... 410
HttpResponseCode........................................................................................................................410
InputRows..................................................................................................................................... 410
IsChatbot....................................................................................................................................... 411
OutputRows.................................................................................................................................. 411
OverrideResultStateDesc.............................................................................................................. 411
ResponseException....................................................................................................................... 411
ResponseFailed............................................................................................................................. 412
ResultState.................................................................................................................................... 412
RootResource................................................................................................................................ 412
ServiceID...................................................................................................................................... 412
URIIndex.......................................................................................................................................413
UserException...............................................................................................................................413
Chapter 10: API Repository................................................................................................................... 415
Understanding the PeopleSoft API Repository.................................................................................. 415
The PeopleSoft API Repository...................................................................................................415
Example of Accessing the Repository Using PeopleCode.......................................................... 415
Example of Accessing the Repository by Using Visual Basic.................................................... 418
Repository Properties.......................................................................................................................... 420
Bindings........................................................................................................................................ 420
Namespaces...................................................................................................................................420
Bindings Collection Properties........................................................................................................... 420
Count.............................................................................................................................................420
Bindings Collection Methods............................................................................................................. 420
Item............................................................................................................................................... 421
Bindings Properties............................................................................................................................. 421
Name............................................................................................................................................. 421
Bindings Methods............................................................................................................................... 421
Generate........................................................................................................................................ 422
Namespaces Collection Properties......................................................................................................422
Count.............................................................................................................................................422
Namespaces Collection Methods........................................................................................................422
Item............................................................................................................................................... 422
ItemByName................................................................................................................................. 423
Namespaces Properties........................................................................................................................423
Classes...........................................................................................................................................424
Name............................................................................................................................................. 424
Namespaces Methods..........................................................................................................................424
CreateObject..................................................................................................................................424
ClassInfo Collection Properties.......................................................................................................... 424
Count.............................................................................................................................................425
ClassInfo Collection Methods............................................................................................................ 425
Item............................................................................................................................................... 425
ItemByName................................................................................................................................. 426
ClassInfo Properties............................................................................................................................ 426
Documentation.............................................................................................................................. 426
Methods.........................................................................................................................................427
Name............................................................................................................................................. 427
Properties...................................................................................................................................... 427
MethodInfo Collection Properties.......................................................................................................427
Count.............................................................................................................................................427
MethodInfo Collection Methods.........................................................................................................428
Item............................................................................................................................................... 428
ItemByName................................................................................................................................. 428
MethodInfo Properties........................................................................................................................ 429
Arguments.....................................................................................................................................429
Documentation.............................................................................................................................. 429
Name............................................................................................................................................. 430
Type...............................................................................................................................................430
PropertyInfo Collection Properties..................................................................................................... 430
Count.............................................................................................................................................430
PropertyInfo Collection Methods....................................................................................................... 431
Item............................................................................................................................................... 431
ItemByName................................................................................................................................. 431
PropertyInfo Properties....................................................................................................................... 432
Documentation.............................................................................................................................. 432
Name............................................................................................................................................. 432
Type...............................................................................................................................................432
Usage.............................................................................................................................................433
Chapter 11: Array Class......................................................................................................................... 435
Understanding Arrays......................................................................................................................... 435
Creating Arrays................................................................................................................................... 435
Populating an Array............................................................................................................................ 436
Removing Items From an Array.........................................................................................................437
Creating Empty Arrays....................................................................................................................... 438
Creating and Populating Multi-Dimensional Arrays..........................................................................438
Using Flattening and Promotion.........................................................................................................440
Declaring Array Objects..................................................................................................................... 441
Understanding the Scope of an Array Object.................................................................................... 441
Array Class Built-in Functions........................................................................................................... 441
Array Class Methods.......................................................................................................................... 441
Clone............................................................................................................................................. 442
Find............................................................................................................................................... 442
Get.................................................................................................................................................443
Join................................................................................................................................................ 444
Next...............................................................................................................................................446
Pop................................................................................................................................................ 447
Push...............................................................................................................................................449
Replace..........................................................................................................................................450
Reverse..........................................................................................................................................452
Set................................................................................................................................................. 452
Shift...............................................................................................................................................453
Sort................................................................................................................................................ 454
Subarray........................................................................................................................................ 456
Substitute.......................................................................................................................................457
Unshift...........................................................................................................................................458
Array Class Properties........................................................................................................................ 459
Dimension..................................................................................................................................... 459
Len................................................................................................................................................ 459
Chapter 12: BannerTile Class................................................................................................................ 461
BannerTile Class................................................................................................................................. 461
BannerTile Class Methods.................................................................................................................. 461
ApplyVisuals.................................................................................................................................461
BannerTile.....................................................................................................................................462
ClearContextString........................................................................................................................462
DeleteContext................................................................................................................................463
DeleteContextAndUpdate............................................................................................................. 464
DeleteKey......................................................................................................................................464
GetBannerLabel............................................................................................................................ 465
GetContextString.......................................................................................................................... 466
GetGroupletURL...........................................................................................................................466
GetKeyValue................................................................................................................................. 467
IsKeyExist.....................................................................................................................................468
OverrideDefaultProperties............................................................................................................ 468
SetDefaultContext.........................................................................................................................469
SetKeyValue..................................................................................................................................470
UpdateContext.............................................................................................................................. 471
BannerTile Class Properties................................................................................................................471
AnnounceText............................................................................................................................... 471
HomepageId.................................................................................................................................. 472
HomepageName............................................................................................................................472
IsExpanded....................................................................................................................................473
IsPersistContext............................................................................................................................ 473
KeyVals......................................................................................................................................... 474
NodeName.................................................................................................................................... 474
PortalName....................................................................................................................................474
Chapter 13: BI Publisher Classes.......................................................................................................... 475
Understanding BI Publisher and the BI Publisher Classes................................................................ 475
BI Publisher Terms............................................................................................................................. 476
BI Publisher Flow Diagram................................................................................................................476
Error Handling.................................................................................................................................... 477
Data Type and Scope of BI Publisher Objects...................................................................................477
Instantiating BI Publisher Objects......................................................................................................478
Search Operator Values.......................................................................................................................478
ImageFileLowerLeftX.................................................................................................................. 521
ImageFileLowerLeftY.................................................................................................................. 521
ImageFileUpperRightX.................................................................................................................522
ImageFileUpperRightY.................................................................................................................522
PageIndex......................................................................................................................................522
Text................................................................................................................................................522
TextAngle......................................................................................................................................522
TextFontName...............................................................................................................................523
TextFontSize................................................................................................................................. 523
TextStartPosX............................................................................................................................... 523
TextStartPosY............................................................................................................................... 523
Understanding the DigitalCertStore Class..........................................................................................523
DigitalCertStore Class Methods......................................................................................................... 524
DigitalCertStore............................................................................................................................ 524
ExtractCertificateByAuthorizedRole............................................................................................ 524
ExtractCertificateByAuthorizedUser............................................................................................ 525
ExtractCertificateByDigitalID...................................................................................................... 527
getDigitalCertFileNameByDigitalID............................................................................................ 528
getDigitalIdBySigner.................................................................................................................... 529
getEncPassword............................................................................................................................ 530
getListOfAuthorizedRoleNames...................................................................................................531
getListOfAuthorizedUsers............................................................................................................ 531
getListOfDigitalId.........................................................................................................................532
getListOfSigner.............................................................................................................................533
getSignerByDigitalId.................................................................................................................... 533
isDigitalCertValid..........................................................................................................................534
DigitalCertStore Class Properties....................................................................................................... 535
ErrorMessageDetail...................................................................................................................... 535
ErrorMessageSet........................................................................................................................... 535
Understanding the IPDFSignature Interface Class............................................................................. 535
IPDFSignature Class Methods............................................................................................................537
getErrorString................................................................................................................................537
getSignatureId............................................................................................................................... 538
IPDFSignature Class Properties..........................................................................................................540
KeyFieldNames.............................................................................................................................540
KeyFieldValues............................................................................................................................. 541
OperatorId..................................................................................................................................... 541
ProcessInstance............................................................................................................................. 541
ReportId........................................................................................................................................ 541
secStore......................................................................................................................................... 542
UseSameSignatureForBursting.....................................................................................................542
Understanding the BIP_EMAIL_DATA Interface Class....................................................................543
BIP_EMAIL_DATA Class Methods...................................................................................................544
BIP_EMAIL_DATA..................................................................................................................... 544
getEmailAddressArray..................................................................................................................545
getErrorString................................................................................................................................547
BIP_EMAIL_DATA Class Properties................................................................................................ 547
BurstFieldName............................................................................................................................ 548
BurstFieldValue.............................................................................................................................548
ReportName.................................................................................................................................. 548
BI Publisher Classes Example............................................................................................................548
GetAttributeName.........................................................................................................................607
GetAttributeValue......................................................................................................................... 608
GetNode........................................................................................................................................ 609
ParseXMLString........................................................................................................................... 610
Incoming Business Interlink Properties..............................................................................................611
AttributeCount.............................................................................................................................. 611
ChildNodeCount........................................................................................................................... 612
NodeName.................................................................................................................................... 613
NodeType...................................................................................................................................... 613
NodeValue.....................................................................................................................................614
Business Interlink Class Property.......................................................................................................615
StopAtError...................................................................................................................................615
Configuration Parameters....................................................................................................................615
Interlink Plug-in Configuration Parameters................................................................................. 615
URL Configuration Parameter..................................................................................................... 616
BIDocValidate Configuration Parameter......................................................................................616
Chapter 15: Charting Classes.................................................................................................................617
Understanding the Charting Classes...................................................................................................617
Chart Classes................................................................................................................................ 617
Gantt Class....................................................................................................................................618
Gauge Classes...............................................................................................................................618
OrgChart Class............................................................................................................................. 619
RatingBoxChart Class.................................................................................................................. 620
Spark Chart Class......................................................................................................................... 620
Creating PeopleSoft Charts.................................................................................................................621
Creating a Chart on a Page..........................................................................................................621
Creating a Chart Using an iScript................................................................................................623
Special Considerations for Charts...................................................................................................... 624
Component Processor Considerations..........................................................................................624
Translation Considerations........................................................................................................... 624
Text Considerations for the Chart Class...................................................................................... 624
Text Considerations for the Gantt Class...................................................................................... 627
Considerations for Using Mobile Devices...................................................................................627
Fluid Mode Considerations for Charts and Gauges.....................................................................628
Sizing a Chart or Gauge in Classic Mode................................................................................... 632
Styling PeopleSoft Charts............................................................................................................ 632
Accessibility Settings for Charts..................................................................................................635
Color Contrast Mode for Charts.................................................................................................. 637
Using the Chart Class......................................................................................................................... 638
Understanding Chart Class Terms................................................................................................638
Creating Charts Using the Chart Class........................................................................................ 639
Chart Class Chart Types...............................................................................................................640
Chart Class Design Guidelines.................................................................................................... 640
Creating and Using Data Series with Charts............................................................................... 657
Creating a Chart with Two Y-Axes............................................................................................. 659
Selecting and Highlighting Data Points.......................................................................................663
Using the ReferenceArea Class....................................................................................................663
Using the ReferenceLine Class.................................................................................................... 665
Using the Series Class..................................................................................................................667
Using the ToolTipLabel Class......................................................................................................669
Scope and Data Type of a Chart Object...................................................................................... 671
Error Handling..............................................................................................................................671
Using the Gauge Classes.................................................................................................................... 671
Understanding Gauge Terms........................................................................................................ 671
Gauge Types................................................................................................................................. 672
Creating Gauges Using the Gauge Classes..................................................................................672
Design Guidelines.........................................................................................................................673
Gauge Interactivity....................................................................................................................... 674
Using the Threshold Class........................................................................................................... 676
Using the Rating Gauge Classes..................................................................................................678
Scope and Data Type of Gauge Objects...................................................................................... 679
Error Handling..............................................................................................................................680
Properties of the Gauge Classes.................................................................................................. 680
Using the Spark Chart Classes........................................................................................................... 681
Creating Spark Charts.................................................................................................................. 683
Using the Gantt Class......................................................................................................................... 685
Understanding Gantt Chart Terms............................................................................................... 685
Using Gantt Charts in the PeopleSoft Pure Internet Architecture............................................... 686
Creating Gantt Charts Using the Gantt Class.............................................................................. 688
Specifying Time Line Axis Formats............................................................................................689
Working with Start and End Dates.............................................................................................. 691
Using Gantt Glyphs......................................................................................................................691
Scope and Data Type of a Gantt Object...................................................................................... 692
Error Handling..............................................................................................................................692
Using the OrgChart Class................................................................................................................... 693
Understanding Organization Chart Terms....................................................................................693
Using Organization Charts in the PeopleSoft Pure Internet Architecture....................................695
Creating Organization Charts Using the OrgChart Class............................................................ 698
Overview of Creating an Organization Chart.............................................................................. 698
Creating an Organization Chart................................................................................................... 699
Displaying Breadcrumbs (Optional)............................................................................................ 700
Defining Descriptors.....................................................................................................................701
Implementing Menus and Drop-Down Lists (Optional)..............................................................704
Configuring Related Action Menus............................................................................................. 706
Configuring the Node Record for Drop-Downs.......................................................................... 707
Configuring Drop-Downs.............................................................................................................707
Populating the Drop-Down Rowset............................................................................................. 708
Setting Drop-Down Styles........................................................................................................... 710
Designing Organization Chart Nodes.......................................................................................... 710
Implementing Node Views (Optional)......................................................................................... 716
Implementing Zoom Schemas (Optional).................................................................................... 718
Specifying Scroll Types............................................................................................................... 721
Configuring Connector Lines and Node Borders........................................................................ 723
Organization Chart Actions and Events.......................................................................................724
Organization Chart Subrecord Definitions...................................................................................725
Minimum Methods and Properties...............................................................................................737
Scope and Data Type of an OrgChart Object.............................................................................. 738
Using the RatingBoxChart Class........................................................................................................739
Understanding Rating Box Chart Terms......................................................................................739
Using Rating Box Charts in PeopleSoft Applications................................................................. 740
Creating Rating Box Charts Using the RatingBoxChart Class....................................................741
Rating Box Chart Subrecord Definition...................................................................................... 742
AnimationDuration....................................................................................................................... 795
AnimationType..............................................................................................................................796
AspectRatio...................................................................................................................................796
AspectRatioPortrait.......................................................................................................................796
ChartURL......................................................................................................................................797
DataSelectionMode.......................................................................................................................797
DataStartRow................................................................................................................................ 798
DataWidth..................................................................................................................................... 798
FooterAlignment........................................................................................................................... 799
FooterStyle.................................................................................................................................... 799
FootNote....................................................................................................................................... 800
FunnelOrientation......................................................................................................................... 800
FunnelPercentMeasure..................................................................................................................800
HasLegend.................................................................................................................................... 801
HasXAxis...................................................................................................................................... 801
HasYAxis...................................................................................................................................... 802
Height............................................................................................................................................802
HideShowBehavior....................................................................................................................... 803
ImageMap..................................................................................................................................... 803
IsChartDrillable.............................................................................................................................803
IsColorContrastMode....................................................................................................................804
IsDrillable......................................................................................................................................804
IsLineChartLineSmoothing...........................................................................................................805
IsPlainImage..................................................................................................................................805
IsSplitDualY................................................................................................................................. 806
IsTrueXY.......................................................................................................................................806
IsXAxisInteger.............................................................................................................................. 806
IsYAxisInteger.............................................................................................................................. 806
IsY2AxisInteger............................................................................................................................ 807
LegendPosition..............................................................................................................................807
LineChartDataGlyphSize.............................................................................................................. 807
MainTitle.......................................................................................................................................808
MinHeight..................................................................................................................................... 808
OLType..........................................................................................................................................808
PieCenterLabelStyle......................................................................................................................809
PieChartCenterLabel.....................................................................................................................809
ShowCrossHair............................................................................................................................. 809
SubTitle......................................................................................................................................... 810
SubTitleAlignment........................................................................................................................810
SubTitleStyle.................................................................................................................................810
TitleAlignment.............................................................................................................................. 810
TitleStyle....................................................................................................................................... 811
Type...............................................................................................................................................811
Width.............................................................................................................................................813
XAxisCrossPoint...........................................................................................................................814
XAxisLabelOrient.........................................................................................................................814
XAxisMax.....................................................................................................................................814
XAxisMin..................................................................................................................................... 814
XAxisPrecision............................................................................................................................. 814
XAxisTitle.....................................................................................................................................815
XAxisTitleOrient...........................................................................................................................815
Y2AxisMax...................................................................................................................................815
Y2AxisMin................................................................................................................................... 815
Y2AxisPrecision........................................................................................................................... 815
Y2AxisTitle...................................................................................................................................816
Y2AxisTitleOrient.........................................................................................................................816
YAxisCrossPoint........................................................................................................................... 816
YAxisLabelOrient......................................................................................................................... 816
YAxisMax..................................................................................................................................... 817
YAxisMin...................................................................................................................................... 817
YAxisPrecision..............................................................................................................................817
YAxisTicks....................................................................................................................................817
YAxisTitle..................................................................................................................................... 818
YAxisTitleOrient........................................................................................................................... 818
ChartClientState Class Methods......................................................................................................... 818
ChartClientState............................................................................................................................ 818
ChartClientState Class Properties....................................................................................................... 819
aSelections.................................................................................................................................... 819
nChartRow.................................................................................................................................... 821
nType.............................................................................................................................................821
ReferenceArea Class Properties..........................................................................................................822
Association....................................................................................................................................822
Description.................................................................................................................................... 822
IsDisplayedTextInLegend............................................................................................................. 823
LineType....................................................................................................................................... 823
ReferenceAreaColor......................................................................................................................823
ReferenceAreaLocation................................................................................................................ 825
ReferenceAreaValues.................................................................................................................... 825
ReferenceAreaValueSet................................................................................................................ 825
ShortText.......................................................................................................................................826
ReferenceLine Class Properties.......................................................................................................... 826
Association....................................................................................................................................826
Description.................................................................................................................................... 826
IsDisplayedTextInLegend............................................................................................................. 827
LineType....................................................................................................................................... 827
ReferenceLineColor...................................................................................................................... 828
ReferenceLineLocation.................................................................................................................829
ReferenceLineValue...................................................................................................................... 829
ReferenceLineValueSet.................................................................................................................830
ShortText.......................................................................................................................................830
Series Class Properties........................................................................................................................830
Name............................................................................................................................................. 830
Type...............................................................................................................................................831
ToolTipLabel Class Properties............................................................................................................831
ToolTipLabelType.........................................................................................................................831
ToolTipLabelValue........................................................................................................................832
DialGauge Class Methods.................................................................................................................. 832
Refresh.......................................................................................................................................... 832
SetThreshold................................................................................................................................. 833
DialGauge Class Properties................................................................................................................ 833
AdditionalStyleSuffix................................................................................................................... 833
AnimationDuration....................................................................................................................... 833
AnimationType..............................................................................................................................833
BottomLabel..................................................................................................................................833
BottomLabelPosition.................................................................................................................... 833
GaugeDecimalDigit...................................................................................................................... 834
GaugeMaximum............................................................................................................................834
GaugeMinimum............................................................................................................................ 834
GaugeURL.................................................................................................................................... 834
Height............................................................................................................................................834
IsDrillable......................................................................................................................................834
LegendPosition..............................................................................................................................834
MajorTickIncrement..................................................................................................................... 835
MetricLabelPosition......................................................................................................................835
MetricLabelType........................................................................................................................... 835
MinorTickIncrement..................................................................................................................... 835
TickLabelPosition......................................................................................................................... 835
TopLabel....................................................................................................................................... 835
TopLabelPosition.......................................................................................................................... 835
Type...............................................................................................................................................836
Width.............................................................................................................................................836
LEDGauge Class Methods..................................................................................................................836
Refresh.......................................................................................................................................... 836
SetThreshold................................................................................................................................. 836
LEDGauge Class Properties............................................................................................................... 836
AdditionalStyleSuffix................................................................................................................... 836
AnimationDuration....................................................................................................................... 837
AnimationType..............................................................................................................................837
AspectRatio...................................................................................................................................837
BottomLabel..................................................................................................................................837
BottomLabelPosition.................................................................................................................... 838
GaugeDecimalDigit...................................................................................................................... 838
GaugeURL.................................................................................................................................... 838
Height............................................................................................................................................838
IsDrillable......................................................................................................................................838
LegendPosition..............................................................................................................................839
MetricLabelPosition......................................................................................................................839
MetricLabelType........................................................................................................................... 839
TopLabel....................................................................................................................................... 839
TopLabelPosition.......................................................................................................................... 839
Type...............................................................................................................................................840
Width.............................................................................................................................................841
RatingGaugeChart Class Methods......................................................................................................841
SetRatingGaugeThresholds...........................................................................................................841
RatingGaugeChart Class Properties....................................................................................................842
AspectRatio...................................................................................................................................842
ChangedState................................................................................................................................ 842
HoverState.....................................................................................................................................843
Max............................................................................................................................................... 843
Min................................................................................................................................................ 843
ReadOnly...................................................................................................................................... 844
SelectedState................................................................................................................................. 844
Step............................................................................................................................................... 844
Title............................................................................................................................................... 844
UnselectedState.............................................................................................................................845
Width.............................................................................................................................................845
RatingGaugeState Class Properties.....................................................................................................845
BorderColor.................................................................................................................................. 845
Color............................................................................................................................................. 847
Shape.............................................................................................................................................848
GaugeThreshold Class Properties....................................................................................................... 848
BorderColor.................................................................................................................................. 849
Color............................................................................................................................................. 850
Description.................................................................................................................................... 851
MaxValue...................................................................................................................................... 851
StatusMeterGauge Class Methods...................................................................................................... 851
Refresh.......................................................................................................................................... 852
SetThreshold................................................................................................................................. 852
StatusMeterGauge Class Properties.................................................................................................... 852
AdditionalStyleSuffix................................................................................................................... 852
AnimationDuration....................................................................................................................... 852
AnimationType..............................................................................................................................852
AspectRatio...................................................................................................................................852
BottomLabel..................................................................................................................................853
BottomLabelPosition.................................................................................................................... 853
GaugeDecimalDigit...................................................................................................................... 853
GaugeMaximum............................................................................................................................853
GaugeMinimum............................................................................................................................ 854
GaugeURL.................................................................................................................................... 854
Height............................................................................................................................................854
IsDrillable......................................................................................................................................854
LegendPosition..............................................................................................................................855
MajorTickIncrement..................................................................................................................... 855
MetricLabelPosition......................................................................................................................855
MetricLabelType........................................................................................................................... 855
MinorTickIncrement..................................................................................................................... 855
TopLabel....................................................................................................................................... 856
TopLabelPosition.......................................................................................................................... 856
Type...............................................................................................................................................856
Width.............................................................................................................................................859
Threshold Class Properties................................................................................................................. 859
Colors............................................................................................................................................ 859
Descriptions.................................................................................................................................. 861
Id................................................................................................................................................... 861
Values............................................................................................................................................ 861
SparkChart Class Methods..................................................................................................................862
SetSparkChartItems...................................................................................................................... 862
SparkChart Class Properties............................................................................................................... 863
AnimationDuration....................................................................................................................... 863
AnimationType..............................................................................................................................863
AspectRatio...................................................................................................................................863
barGapRatio.................................................................................................................................. 864
Color............................................................................................................................................. 865
IsDrillable......................................................................................................................................866
LineStyle....................................................................................................................................... 866
LineType....................................................................................................................................... 867
LineWidth..................................................................................................................................... 868
SparkChartURL............................................................................................................................ 868
Title............................................................................................................................................... 868
Type...............................................................................................................................................869
Width.............................................................................................................................................869
SparkChartItem Class Properties........................................................................................................ 870
BorderColor.................................................................................................................................. 870
Color............................................................................................................................................. 871
FloatValue..................................................................................................................................... 872
MarkerDisplayed...........................................................................................................................873
MarkerShape................................................................................................................................. 873
Value............................................................................................................................................. 874
Gantt Class Methods...........................................................................................................................874
Refresh.......................................................................................................................................... 874
Reset..............................................................................................................................................875
SetActualEndDate.........................................................................................................................876
SetActualStartDate........................................................................................................................876
SetActualTaskBarColor................................................................................................................ 877
SetChartArea.................................................................................................................................878
SetDayFormat............................................................................................................................... 878
SetHourFormat..............................................................................................................................879
SetMinuteFormat.......................................................................................................................... 880
SetMonthFormat........................................................................................................................... 880
SetPlannedEndDate.......................................................................................................................881
SetPlannedStartDate......................................................................................................................882
SetPlannedTaskBarColor.............................................................................................................. 882
SetSecondFormat.......................................................................................................................... 883
SetTableXScrollbar....................................................................................................................... 883
SetTaskAppData............................................................................................................................883
SetTaskAppDataTitles...................................................................................................................884
SetTaskBarURL............................................................................................................................ 885
SetTaskData.................................................................................................................................. 886
SetTaskDependencyChildID......................................................................................................... 886
SetTaskDependencyData.............................................................................................................. 887
SetTaskDependencyParentID........................................................................................................888
SetTaskDependencyType.............................................................................................................. 888
SetTaskDependencyURL.............................................................................................................. 890
SetTaskDrill.................................................................................................................................. 890
SetTaskExpanded.......................................................................................................................... 891
SetTaskID......................................................................................................................................891
SetTaskLabel................................................................................................................................. 892
SetTaskLevel................................................................................................................................. 893
SetTaskMilestone.......................................................................................................................... 894
SetTaskName................................................................................................................................ 895
SetTaskProgress............................................................................................................................ 895
SetTaskProgressBarColor............................................................................................................. 896
SetWBSNumbering.......................................................................................................................897
SetYearFormat...............................................................................................................................897
Gantt Class Properties.........................................................................................................................898
AdditionalStyleSuffix................................................................................................................... 898
AxisEndDateTime.........................................................................................................................898
AxisStartDateTime........................................................................................................................899
DataStartRow................................................................................................................................ 899
DataWidth..................................................................................................................................... 899
GridLines...................................................................................................................................... 899
GridLineType................................................................................................................................ 900
Height............................................................................................................................................900
ImageMap..................................................................................................................................... 900
InteractiveEnd............................................................................................................................... 901
InteractiveMove............................................................................................................................ 901
InteractiveProgress........................................................................................................................901
InteractiveStart.............................................................................................................................. 901
IsDrillable......................................................................................................................................902
IsPlainImage..................................................................................................................................902
PixelsPerRow................................................................................................................................ 902
RevertToPre850............................................................................................................................ 903
ShowTaskLabels........................................................................................................................... 903
Style.............................................................................................................................................. 903
StyleSheet......................................................................................................................................903
TaskDependencyLineType............................................................................................................903
TaskMilestoneGlyph..................................................................................................................... 904
TaskTitle........................................................................................................................................904
Width.............................................................................................................................................905
OrgChart Class Methods.....................................................................................................................905
SetCrumbData...............................................................................................................................905
SetCrumbRecord...........................................................................................................................905
SetDropdownData.........................................................................................................................906
SetDropdownRecord.....................................................................................................................907
SetIMData..................................................................................................................................... 907
SetIMRecord................................................................................................................................. 907
SetLegend......................................................................................................................................907
SetLegendImg............................................................................................................................... 908
SetNodeData................................................................................................................................. 909
SetNodeDisplayDataRecord......................................................................................................... 909
SetNodeDisplayData.....................................................................................................................910
SetNodeRecord............................................................................................................................. 910
SetNodeViewEntries..................................................................................................................... 911
SetNodeViewText......................................................................................................................... 912
SetPopUpNodeData...................................................................................................................... 912
SetPopUpNodeRecord.................................................................................................................. 913
SetSchemaLevels.......................................................................................................................... 914
OrgChart Class Properties...................................................................................................................914
CenterFocusNode..........................................................................................................................915
ChartCurrentSchemaLevel............................................................................................................915
ChartScrollType............................................................................................................................ 916
Collapsed_Msg............................................................................................................................. 916
CollapsedImage.............................................................................................................................916
CollapseMainIconSpace................................................................................................................917
CrumbDescrStyle.......................................................................................................................... 917
CrumbMaxDisplayLength............................................................................................................ 917
CrumbSeparatorImage.................................................................................................................. 918
DefaultImage.................................................................................................................................918
Direction........................................................................................................................................918
DropDownBoxStyle......................................................................................................................919
Expanded_Msg............................................................................................................................. 919
ExpandedImage.............................................................................................................................919
FocusNodeStyle............................................................................................................................ 920
HasLegend.................................................................................................................................... 920
Height............................................................................................................................................920
ImageHeight..................................................................................................................................920
ImageLocation.............................................................................................................................. 921
ImageMouseoverMagnificationFactor..........................................................................................921
IMPresence....................................................................................................................................921
IMRefreshInterval.........................................................................................................................922
InitialView.....................................................................................................................................922
LegendPosition..............................................................................................................................922
LegendStyle.................................................................................................................................. 922
LegendTopSpace........................................................................................................................... 923
MainTitle.......................................................................................................................................923
MainTitleStyle...............................................................................................................................923
MaxDropdownDisplayItem.......................................................................................................... 923
MaxPopupDisplayNode................................................................................................................ 924
NodeDescr1Style.......................................................................................................................... 924
NodeDescr2Style.......................................................................................................................... 924
NodeDescr3Style.......................................................................................................................... 925
NodeDescr4Style.......................................................................................................................... 925
NodeDescr5Style.......................................................................................................................... 925
NodeDescr6Style.......................................................................................................................... 926
NodeDescr7Style.......................................................................................................................... 926
NodeMaxDisplayDescLength.......................................................................................................926
NodeProportion.............................................................................................................................927
OptimizeHorizontalSpace............................................................................................................. 927
OptimizeVerticalSpace..................................................................................................................928
PopupHeaderStyle.........................................................................................................................928
PopupNodeDescr1Style................................................................................................................ 928
PopupNodeDescr2Style................................................................................................................ 929
PopupNodeDescr3Style................................................................................................................ 929
PopupNodeDescr4Style................................................................................................................ 929
PopupNodeDescr5Style................................................................................................................ 930
PopupNodeDescr6Style................................................................................................................ 930
PopupNodeDescr7Style................................................................................................................ 930
PopupNodeDescr8Style................................................................................................................ 931
Style.............................................................................................................................................. 931
SuppressPeopleCodeOnNode....................................................................................................... 931
SuppressPeopleCodeOnImage...................................................................................................... 931
UnlinkCrumbDescrStyle...............................................................................................................932
VerticalSpace.................................................................................................................................932
Width.............................................................................................................................................932
SchemaLevel Class Properties............................................................................................................932
ID.................................................................................................................................................. 933
ImageHeight..................................................................................................................................933
SetSeriesEmptyText...................................................................................................................... 952
SetSeriesLabels............................................................................................................................. 953
Timeline Class Properties................................................................................................................... 953
AspectRatio...................................................................................................................................953
End................................................................................................................................................ 954
Height............................................................................................................................................954
MajorAxisScale.............................................................................................................................954
MinorAxisScale............................................................................................................................ 955
MinorAxisZoomOrder.................................................................................................................. 955
Orientation.................................................................................................................................... 956
Start............................................................................................................................................... 956
TimelineEmptyText.......................................................................................................................956
TimelineLabel............................................................................................................................... 957
Width.............................................................................................................................................957
Charting Examples.............................................................................................................................. 957
Creating a Chart Using the Chart Class.......................................................................................957
Creating a Gantt Chart................................................................................................................. 978
Creating an Organization Chart................................................................................................... 982
Creating a Rating Box Chart....................................................................................................... 986
Creating a Chart Using an iScript................................................................................................988
Creating a Timeline Chart............................................................................................................990
Desupported Chart Class Methods..................................................................................................... 992
Refresh.......................................................................................................................................... 992
SetDataAnnotations...................................................................................................................... 993
SetDataGlyphScale....................................................................................................................... 994
SetOLDataAnnotations................................................................................................................. 994
SetOLDataGlyphScale.................................................................................................................. 995
Desupported Chart Class Properties................................................................................................... 995
GridLines...................................................................................................................................... 995
GridLineType................................................................................................................................ 995
HighlightSelectedDataPoint..........................................................................................................995
LegendStyle.................................................................................................................................. 996
LineType....................................................................................................................................... 996
MainTitleOrient.............................................................................................................................996
MainTitleStyle...............................................................................................................................996
OLLineType.................................................................................................................................. 996
RevertToPre850............................................................................................................................ 996
RotationAngle............................................................................................................................... 997
SetChartURL.................................................................................................................................997
Style.............................................................................................................................................. 997
StyleSheet......................................................................................................................................997
XAxisCross................................................................................................................................... 997
XAxisScaleResolution.................................................................................................................. 998
XAxisStyle.................................................................................................................................... 998
XAxisTitleStyle.............................................................................................................................998
XRotationAngle............................................................................................................................ 998
YAxisScaleResolution...................................................................................................................998
YAxisStyle.................................................................................................................................... 998
YAxisTitleStyle............................................................................................................................. 998
YRotationAngle............................................................................................................................ 999
ZRotationAngle.............................................................................................................................999
Close........................................................................................................................................... 1067
CopyDefn.................................................................................................................................... 1067
DeleteDefn.................................................................................................................................. 1068
ExistsByName.............................................................................................................................1068
GetSampleXMLString................................................................................................................ 1069
Open............................................................................................................................................ 1069
ResetQueriesPrompt....................................................................................................................1070
Run.............................................................................................................................................. 1070
RunToWindow............................................................................................................................ 1072
RunToXMLFormattedString.......................................................................................................1072
Save.............................................................................................................................................1073
SaveRunControlParms................................................................................................................ 1073
SetRunControlData..................................................................................................................... 1074
Validate........................................................................................................................................1075
ValidateIfFieldsMapped.............................................................................................................. 1075
ValidateRunControlParms...........................................................................................................1076
CONQRSMGR Class Properties...................................................................................................... 1076
Const........................................................................................................................................... 1076
Description.................................................................................................................................. 1077
Details......................................................................................................................................... 1077
ErrString......................................................................................................................................1077
ExecutionLog.............................................................................................................................. 1077
IgnoreRelFldOutput.................................................................................................................... 1077
IsChanged................................................................................................................................... 1078
IsDebugMode..............................................................................................................................1078
IsInit............................................................................................................................................ 1078
IsPublic....................................................................................................................................... 1079
LastUpdatedBy............................................................................................................................1079
LastUpdateDTTM.......................................................................................................................1079
MaxRowsPerQuery.....................................................................................................................1079
Name........................................................................................................................................... 1079
ObjectRowset.............................................................................................................................. 1079
OprID.......................................................................................................................................... 1080
OutProcessFileName...................................................................................................................1080
PropertyArray............................................................................................................................. 1080
QueriesPromptsArray..................................................................................................................1082
QueryArray................................................................................................................................. 1082
RegisteredBy...............................................................................................................................1082
RegisteredDTTM........................................................................................................................ 1083
RunCntlId....................................................................................................................................1083
RunControlParArray................................................................................................................... 1083
RunMode.....................................................................................................................................1083
SchedInfo.................................................................................................................................... 1085
SchedRequestType...................................................................................................................... 1086
SecProfile.................................................................................................................................... 1086
ShowFormattedXML.................................................................................................................. 1086
Status...........................................................................................................................................1087
XMLDataFileName.................................................................................................................... 1087
XMLDataFullName.................................................................................................................... 1087
CONQRSPROPERTY Class.............................................................................................................1087
CONQRSPROPERTY Class Properties........................................................................................... 1088
PROPDEFAULT......................................................................................................................... 1088
PROPNAME...............................................................................................................................1088
PROPVALUE..............................................................................................................................1088
PROPVALUEARRAY................................................................................................................ 1088
PROPVALUEARRAYDESC......................................................................................................1089
CONQRS_CONST Class..................................................................................................................1089
CONQRS_CONST Class Properties................................................................................................ 1089
InitExisting..................................................................................................................................1089
InitNew....................................................................................................................................... 1089
MsgSet........................................................................................................................................ 1090
RunCntlId_Auto..........................................................................................................................1090
RunMode_Prev........................................................................................................................... 1090
RunMode_Prev_DefRowNumber...............................................................................................1091
RunMode_Sample.......................................................................................................................1091
RunMode_Sched_File.................................................................................................................1091
RunMode_Sched_Web................................................................................................................1092
RunMode_Window..................................................................................................................... 1092
RunMode_XMLFormattedString................................................................................................1092
SchedRequest_CQR....................................................................................................................1093
SchedRequest_XMLP.................................................................................................................1093
Stat_Active..................................................................................................................................1093
Stat_InActive.............................................................................................................................. 1093
Stat_InProgress........................................................................................................................... 1094
QUERYITEMPROMPT Class..........................................................................................................1094
QUERYITEMPROMPT Class Properties........................................................................................ 1094
QueryName................................................................................................................................. 1094
QueryPromptRecord................................................................................................................... 1094
SCHED_INFO Class.........................................................................................................................1095
SCHED_INFO Class Properties....................................................................................................... 1095
AE_ID......................................................................................................................................... 1095
DIRLOCATION..........................................................................................................................1095
OPRID.........................................................................................................................................1096
OUTDESTTYPE........................................................................................................................ 1096
PRCSFILENAME.......................................................................................................................1096
PROCESS_INSTANCE..............................................................................................................1096
RUN_CNTL_ID......................................................................................................................... 1097
SEC_PROFILE Class........................................................................................................................1097
SEC_PROFILE Class Constructor................................................................................................... 1097
SEC_PROFILE........................................................................................................................... 1097
SEC_PROFILE Class Properties...................................................................................................... 1097
CanCreatePublic..........................................................................................................................1098
CanModify.................................................................................................................................. 1098
CanRunQuery............................................................................................................................. 1098
UTILITY Class................................................................................................................................. 1098
UTILITY Class Constructor............................................................................................................. 1098
UTILITY.....................................................................................................................................1098
UTILITY Class Methods.................................................................................................................. 1099
CheckQryForTreePrompt............................................................................................................1099
CheckQrySecurity.......................................................................................................................1099
GetQueryScopeByName.............................................................................................................1100
ValidateObjectID.........................................................................................................................1101
DocumentKey Class..........................................................................................................................1128
DocumentKey Class Methods...........................................................................................................1128
SetDocumentKey........................................................................................................................ 1128
DocumentKey Class Properties........................................................................................................ 1129
DocumentName.......................................................................................................................... 1129
GetDocumentName.....................................................................................................................1130
GetVersion...................................................................................................................................1130
PackageName..............................................................................................................................1130
Version........................................................................................................................................ 1130
Primitive Class.................................................................................................................................. 1131
Primitive Class Methods...................................................................................................................1131
GetEnumName............................................................................................................................1131
GetParent.....................................................................................................................................1131
GetPath........................................................................................................................................1132
Primitive Class Properties.................................................................................................................1132
ElementType............................................................................................................................... 1133
EnumCount................................................................................................................................. 1133
IsChanged................................................................................................................................... 1133
IsInitialized..................................................................................................................................1133
IsRequired................................................................................................................................... 1134
MaxDefinedDecimalLength........................................................................................................1134
MaxDefinedLength..................................................................................................................... 1134
Name........................................................................................................................................... 1134
OrigValue.................................................................................................................................... 1134
PrimitiveSubType........................................................................................................................1135
PrimitiveType..............................................................................................................................1136
SequenceNumber........................................................................................................................ 1137
Value........................................................................................................................................... 1137
Compound Class............................................................................................................................... 1137
Compound Class Methods................................................................................................................ 1137
Clear............................................................................................................................................ 1137
GetParent.....................................................................................................................................1138
GetPath........................................................................................................................................1139
GetPropertyByIndex................................................................................................................... 1139
GetPropertyByName...................................................................................................................1140
GetUniqueKey............................................................................................................................ 1140
Compound Class Properties..............................................................................................................1141
ElementType............................................................................................................................... 1141
IsChanged................................................................................................................................... 1141
IsInitialized..................................................................................................................................1141
IsRequired................................................................................................................................... 1141
Name........................................................................................................................................... 1142
PropertyCount............................................................................................................................. 1142
SequenceNumber........................................................................................................................ 1142
Collection Class................................................................................................................................ 1142
Collection Class Methods................................................................................................................. 1142
AppendItem.................................................................................................................................1142
CreateItem...................................................................................................................................1143
DeleteItem...................................................................................................................................1144
GetItem........................................................................................................................................1144
GetParent.....................................................................................................................................1145
GetPath........................................................................................................................................1145
InsertItem.................................................................................................................................... 1146
Collection Class Properties............................................................................................................... 1147
CollectionElementType...............................................................................................................1147
Count...........................................................................................................................................1147
DefinedMaxOccurs..................................................................................................................... 1147
DefinedMinOccurs......................................................................................................................1148
ElementType............................................................................................................................... 1148
IsChanged................................................................................................................................... 1148
IsInitialized..................................................................................................................................1148
IsRequired................................................................................................................................... 1148
Name........................................................................................................................................... 1148
SequenceNumber........................................................................................................................ 1149
Chapter 21: Drop Zone Configuration Classes.................................................................................. 1151
Understanding the Drop Zone Configuration Classes......................................................................1151
DZComponentConfig Class........................................................................................................1151
DZContent Class.........................................................................................................................1151
DZConfig Class.......................................................................................................................... 1152
DZPage Class............................................................................................................................. 1152
DZComponentConfig Methods.........................................................................................................1152
AddConfig...................................................................................................................................1152
DZComponentConfig..................................................................................................................1153
GetConfigurationsForComponent...............................................................................................1154
GetConfigurationsForPage..........................................................................................................1155
GetConfigurationsForPagefield.................................................................................................. 1156
GetConfigurationsForSubpage....................................................................................................1157
RemoveAllConfigForComponent...............................................................................................1158
DZComponentConfig Properties.......................................................................................................1158
arrDZInfo.................................................................................................................................... 1158
DZConfig Methods........................................................................................................................... 1159
GetSubpageName........................................................................................................................1159
RemoveDZConfiguration............................................................................................................1160
Save.............................................................................................................................................1160
SetSubpageName........................................................................................................................ 1161
DZConfig Properties......................................................................................................................... 1161
IsERCConfigured........................................................................................................................1162
PageFldDescr.............................................................................................................................. 1162
PageFldId.................................................................................................................................... 1163
PageFldName.............................................................................................................................. 1163
PageName................................................................................................................................... 1164
TabOrder..................................................................................................................................... 1164
DZContent Methods..........................................................................................................................1164
DZContent...................................................................................................................................1164
GetConfiguration........................................................................................................................ 1165
DZPage Methods...............................................................................................................................1166
DZPage....................................................................................................................................... 1166
GetConfigurationFromPageField................................................................................................1166
GetConfigurationFromPageName.............................................................................................. 1167
Chapter 22: Exception Class.................................................................................................................1169
Understanding Exception Class........................................................................................................ 1169
How Exceptions Are Thrown........................................................................................................... 1169
Description.................................................................................................................................. 1197
FeedAttributes.............................................................................................................................1197
FeedAuthorizationOprID............................................................................................................ 1197
FeedAuthorizationOprPWD........................................................................................................1197
FeedAuthorizationType...............................................................................................................1197
FeedCacheTime...........................................................................................................................1198
FeedCacheType........................................................................................................................... 1198
FeedContentUrl...........................................................................................................................1198
FeedFactory.................................................................................................................................1198
FeedFormat................................................................................................................................. 1199
FeedSecurities............................................................................................................................. 1199
FeedSecurityType........................................................................................................................1199
FeedTemplate.............................................................................................................................. 1199
FeedUrl....................................................................................................................................... 1200
HasAdminParams........................................................................................................................1200
HasUserParams........................................................................................................................... 1200
IBOperationName....................................................................................................................... 1200
ID................................................................................................................................................ 1200
LastPubDTTM............................................................................................................................ 1201
LastUpdDTTM............................................................................................................................1201
LastUpdOprID............................................................................................................................ 1201
NameSpaceID............................................................................................................................. 1201
ObjectType.................................................................................................................................. 1201
OperatingMode........................................................................................................................... 1202
OwnerID..................................................................................................................................... 1202
PublishedInSites..........................................................................................................................1202
Title............................................................................................................................................. 1203
Utility.......................................................................................................................................... 1203
FeedFactory Class............................................................................................................................. 1203
FeedFactory Class Constructor......................................................................................................... 1204
FeedFactory.................................................................................................................................1204
FeedFactory Class Methods..............................................................................................................1204
convertFeedLinksToHoverMenu................................................................................................ 1204
convertFeedLinksToOPML........................................................................................................ 1205
createFeed................................................................................................................................... 1206
deleteFeed................................................................................................................................... 1206
genFeedUrl..................................................................................................................................1207
genUniqueFeedId........................................................................................................................ 1208
getAllPagedFeedLinks................................................................................................................ 1208
getCategory................................................................................................................................. 1210
getDataSource............................................................................................................................. 1210
getFeed........................................................................................................................................ 1211
getFeedDoc................................................................................................................................. 1213
getFeedLink................................................................................................................................ 1213
getFeedLinks...............................................................................................................................1214
getFeedTemplates........................................................................................................................1215
getRelatedFeedsHoverMenu.......................................................................................................1215
getRelativePageLinkForFeed......................................................................................................1216
FeedFactory Class Properties............................................................................................................1218
DataSources................................................................................................................................ 1218
Feeds........................................................................................................................................... 1218
Utility.......................................................................................................................................... 1218
DataSource Class.............................................................................................................................. 1219
DataSource Class Constructor.......................................................................................................... 1219
DataSource.................................................................................................................................. 1219
DataSource Class Methods............................................................................................................... 1220
addParameter...............................................................................................................................1220
equals.......................................................................................................................................... 1221
getAttributeById......................................................................................................................... 1221
getContentUrl..............................................................................................................................1222
getDataSecurity...........................................................................................................................1223
getParameterById........................................................................................................................1223
getParameterDetail......................................................................................................................1224
getSettingById............................................................................................................................ 1225
getSettingDetail...........................................................................................................................1225
isCurrentUserAdmin................................................................................................................... 1226
isCurrentUserAuthorized............................................................................................................ 1226
onDelete...................................................................................................................................... 1227
onSave.........................................................................................................................................1227
resetParameters........................................................................................................................... 1228
DataSource Class Properties............................................................................................................. 1228
AdminPersonalizationPage......................................................................................................... 1229
AllowCustomParameters............................................................................................................ 1229
AllowRealTimeFeedSecurity...................................................................................................... 1229
DataSourceType.......................................................................................................................... 1229
DefaultFeedAttributes.................................................................................................................1229
DefaultIBOperationName........................................................................................................... 1230
Description.................................................................................................................................. 1230
HasParameters.............................................................................................................................1230
HasSettings................................................................................................................................. 1230
IBOperations............................................................................................................................... 1230
ID................................................................................................................................................ 1230
LongDescription..........................................................................................................................1231
ObjectType.................................................................................................................................. 1231
Parameters...................................................................................................................................1231
ParametersCompleted................................................................................................................. 1231
Parent.......................................................................................................................................... 1231
PortalSpecificPersonalization..................................................................................................... 1232
Settings........................................................................................................................................1232
SettingsCompleted...................................................................................................................... 1232
UserPersonalizationPage.............................................................................................................1232
Utility.......................................................................................................................................... 1232
DataSourceParameter Class.............................................................................................................. 1233
DataSourceParameter Class Constructor.......................................................................................... 1233
DataSourceParameter..................................................................................................................1233
DataSourceParameter Class Methods............................................................................................... 1233
addUserValue.............................................................................................................................. 1233
clone............................................................................................................................................ 1234
equals.......................................................................................................................................... 1234
resetUserValues...........................................................................................................................1235
setRangeFromFieldTranslates.....................................................................................................1235
validateValue...............................................................................................................................1236
ObjectType.................................................................................................................................. 1250
Parent.......................................................................................................................................... 1250
PromptTable................................................................................................................................ 1250
Range.......................................................................................................................................... 1250
RefreshOnChange....................................................................................................................... 1250
RelatedFieldValue....................................................................................................................... 1251
Required...................................................................................................................................... 1251
ShowRelatedField....................................................................................................................... 1251
Utility.......................................................................................................................................... 1251
Value........................................................................................................................................... 1252
Visible......................................................................................................................................... 1252
Utility Class.......................................................................................................................................1252
Utility Class Constructor.................................................................................................................. 1252
Utility.......................................................................................................................................... 1252
Utility Class Methods....................................................................................................................... 1253
dateStringToUserPref..................................................................................................................1253
datetimeToString......................................................................................................................... 1253
dateToString................................................................................................................................ 1254
decodeXML................................................................................................................................ 1254
encodeXML................................................................................................................................ 1255
evaluateSysVar............................................................................................................................ 1256
genNameSpaceID........................................................................................................................1257
getExceptionText........................................................................................................................ 1257
getFeedDoc................................................................................................................................. 1258
getFeedMimeType...................................................................................................................... 1259
getFieldTranslates....................................................................................................................... 1260
getNodeValue.............................................................................................................................. 1260
getUserDateFormat..................................................................................................................... 1261
getUserDatetimeFormat.............................................................................................................. 1261
getUserInfo................................................................................................................................. 1262
httpStringToDatetime..................................................................................................................1262
join.............................................................................................................................................. 1263
join2D......................................................................................................................................... 1263
setMessageHeadersAndMimeType.............................................................................................1264
setNodeValue.............................................................................................................................. 1265
showException............................................................................................................................ 1266
showInvalidValueException........................................................................................................1266
split..............................................................................................................................................1267
split2D.........................................................................................................................................1268
stringToDate................................................................................................................................1269
stringToDatetime.........................................................................................................................1269
validateSysVar.............................................................................................................................1269
viewStringAsAttachment............................................................................................................ 1270
Utility Class Properties..................................................................................................................... 1271
ATTACHMENT_URL................................................................................................................1271
AUTHTYPE_PERM...................................................................................................................1271
AUTHTYPE_ROLE................................................................................................................... 1271
DSPARAMETER_INCREMENTAL......................................................................................... 1272
DSPARAMETER_MAXROW................................................................................................... 1272
DSPARAMETER_SF_MAXMINUTES.................................................................................... 1272
DSPARAMETER_SF_PAGING................................................................................................ 1273
EDITTYPE_NOTABLEEDIT.................................................................................................... 1273
EDITTYPE_PROMPTTABLE................................................................................................... 1273
EDITTYPE_TRANSLATETABLE............................................................................................ 1273
EDITTYPE_YESNO.................................................................................................................. 1273
FEEDATTRIBUTE_AUTHOR.................................................................................................. 1274
FEEDATTRIBUTE_CLOUD..................................................................................................... 1274
FEEDATTRIBUTE_COMPLETE..............................................................................................1274
FEEDATTRIBUTE_CONTRIBUTOR...................................................................................... 1274
FEEDATTRIBUTE_COPYRIGHT............................................................................................ 1274
FEEDATTRIBUTE_EXPIRES...................................................................................................1275
FEEDATTRIBUTE_ICONURL................................................................................................. 1275
FEEDATTRIBUTE_LOGOURL................................................................................................1275
FEEDATTRIBUTE_MANAGINGEDITOR.............................................................................. 1275
FEEDATTRIBUTE_MAXAGE................................................................................................. 1275
FEEDATTRIBUTE_PERSINSTRUCTION...............................................................................1275
FEEDATTRIBUTE_RATING.................................................................................................... 1276
FEEDATTRIBUTE_SKIPDAYS................................................................................................1276
FEEDATTRIBUTE_SKIPHOURS.............................................................................................1276
FEEDATTRIBUTE_TEXTINPUT.............................................................................................1276
FEEDATTRIBUTE_TTL............................................................................................................1276
FEEDATTRIBUTE_WEBMASTER..........................................................................................1277
FEEDATTRIBUTE_XSL........................................................................................................... 1277
FEEDAUTHTYPE_ALL............................................................................................................1277
FEEDAUTHTYPE_ANONYMOUS..........................................................................................1277
FEEDAUTHTYPE_DEFAULT.................................................................................................. 1277
FEEDCACHETYPE_NONE...................................................................................................... 1277
FEEDCACHETYPE_PRIVATE................................................................................................. 1278
FEEDCACHETYPE_PUBLIC...................................................................................................1278
FEEDCACHETYPE_ROLE.......................................................................................................1278
FEEDFORMAT_ATOM10......................................................................................................... 1278
FEEDSECUTYPE_PUBLIC...................................................................................................... 1278
FEEDSECUTYPE_REALTIME.................................................................................................1278
FEEDSECUTYPE_SELECTED................................................................................................ 1279
FEEDTEMPLATE_NO.............................................................................................................. 1279
FEEDTEMPLATE_YES.............................................................................................................1279
FEEDTYPE_DYNAMIC............................................................................................................1279
FEEDTYPE_PREPUBLISHED................................................................................................. 1279
FIELDTYPE_CHARACTER..................................................................................................... 1280
FIELDTYPE_DATE................................................................................................................... 1280
FIELDTYPE_DATETIME......................................................................................................... 1280
FIELDTYPE_LONGCHARACTER.......................................................................................... 1280
FIELDTYPE_NUMBER............................................................................................................ 1280
FIELDTYPE_SIGNEDNUMBER..............................................................................................1280
FIELDTYPE_TIME....................................................................................................................1281
IBSOTYPE_ASYNC.................................................................................................................. 1281
IBSOTYPE_SYNC.....................................................................................................................1281
IBSOTYPE_UNKNOWN.......................................................................................................... 1281
ICONURL_FEED_A.................................................................................................................. 1281
ICONURL_FEED_IA.................................................................................................................1282
INCREMENTALOPTION_NO..................................................................................................1282
INCREMENTALOPTION_YES................................................................................................ 1282
LINKTYPE_FIRST.................................................................................................................... 1282
LINKTYPE_LAST..................................................................................................................... 1283
LINKTYPE_NEXT.................................................................................................................... 1283
LINKTYPE_PREVIOUS............................................................................................................1283
MIMETYPE_ATOM.................................................................................................................. 1283
MIMETYPE_OPML...................................................................................................................1284
MIMETYPE_XML.....................................................................................................................1284
OPERATINGMODE_AUTHORIZATION................................................................................ 1284
OPERATINGMODE_DEFAULT............................................................................................... 1284
OPERATINGMODE_DELETION.............................................................................................1284
OPERATINGMODE_EXECUTION..........................................................................................1285
OPERATINGMODE_EXECUTION_NOENTRY.....................................................................1285
QUERYPARAMETER_CHILDFEEDID...................................................................................1285
QUERYPARAMETER_DATATYPEID..................................................................................... 1285
QUERYPARAMETER_DEFLOCALNODE............................................................................. 1285
QUERYPARAMETER_DSSCOUNT........................................................................................ 1286
QUERYPARAMETER_DSSNAME.......................................................................................... 1286
QUERYPARAMETER_DSSVALUE.........................................................................................1286
QUERYPARAMETER_FEEDFORMAT................................................................................... 1286
QUERYPARAMETER_FEEDID............................................................................................... 1286
QUERYPARAMETER_FEEDLIST...........................................................................................1286
QUERYPARAMETER_FEEDTYPE......................................................................................... 1287
QUERYPARAMETER_IBTRANSID........................................................................................1287
QUERYPARAMETER_IFMODIFIEDSINCE...........................................................................1287
QUERYPARAMETER_IFNONEMATCH.................................................................................1287
QUERYPARAMETER_KEYWORD.........................................................................................1287
QUERYPARAMETER_LANGUAGE....................................................................................... 1287
QUERYPARAMETER_NODENAME...................................................................................... 1288
QUERYPARAMETER_PAGENUM..........................................................................................1288
QUERYPARAMETER_PORTALNAME.................................................................................. 1288
QUERYPARAMETER_PTPPB_SEARCH_MODE..................................................................1288
QUERYPARAMETER_PTPPB_SEARCH_TEXT................................................................... 1288
RequestInfo................................................................................................................................. 1288
SF_MAXMINUTES_ALLMSGS.............................................................................................. 1289
SF_MAXROWOPTION_ALLMSGS........................................................................................ 1289
SF_MAXROWOPTION_LATESTMSG....................................................................................1289
SF_PAGINGOPTION_NOPAGING.......................................................................................... 1290
SF_PAGINGOPTION_SEGMENTED.......................................................................................1290
SYSVAR_INVALID................................................................................................................... 1290
USAGETYPE_ADMINSPECIFIED.......................................................................................... 1291
USAGETYPE_FIXED............................................................................................................... 1291
USAGETYPE_INTERNAL....................................................................................................... 1291
USAGETYPE_NOTUSED.........................................................................................................1291
USAGETYPE_SYSVAR............................................................................................................ 1291
USAGETYPE_USERSPECIFIED............................................................................................. 1291
XMLCHILDELEMENTS_CLOUD...........................................................................................1292
XMLCHILDELEMENTS_PERSON......................................................................................... 1292
XMLCHILDELEMENTS_TEXTINPUT...................................................................................1292
XMLELEMENT_DAY...............................................................................................................1292
XMLELEMENT_DESCRIPTION............................................................................................. 1293
XMLELEMENT_DOMAIN.......................................................................................................1293
XMLELEMENT_EMAIL.......................................................................................................... 1293
XMLELEMENT_HOUR............................................................................................................1293
XMLELEMENT_LINK..............................................................................................................1293
XMLELEMENT_NAME........................................................................................................... 1293
XMLELEMENT_PATH............................................................................................................. 1294
XMLELEMENT_PORT............................................................................................................. 1294
XMLELEMENT_PROTOCOL.................................................................................................. 1294
XMLELEMENT_REGISTERPROCEDURE............................................................................ 1294
XMLELEMENT_TITLE............................................................................................................ 1294
FeedDoc Class...................................................................................................................................1294
FeedDoc Class Constructor.............................................................................................................. 1295
FeedDoc...................................................................................................................................... 1295
FeedDoc Class Methods................................................................................................................... 1295
addCategory................................................................................................................................ 1295
addEntry...................................................................................................................................... 1296
datetimeToString......................................................................................................................... 1297
deleteCategory............................................................................................................................ 1298
deleteEntry.................................................................................................................................. 1298
equals.......................................................................................................................................... 1299
getEntry.......................................................................................................................................1299
resetEntries..................................................................................................................................1300
stringToDatetime.........................................................................................................................1300
FeedDoc Class Properties................................................................................................................. 1301
AllowMoreEntries.......................................................................................................................1301
ApplicationRelease..................................................................................................................... 1301
Categories....................................................................................................................................1301
ContentUrl...................................................................................................................................1302
Copyright.................................................................................................................................... 1302
Description.................................................................................................................................. 1302
Entries......................................................................................................................................... 1303
Expires........................................................................................................................................ 1303
FeedFormat................................................................................................................................. 1303
FeedUrl....................................................................................................................................... 1303
FirstUrl........................................................................................................................................ 1304
Generator.....................................................................................................................................1304
ID................................................................................................................................................ 1304
LastUrl........................................................................................................................................ 1305
Logo............................................................................................................................................ 1305
MaxAge.......................................................................................................................................1305
MaxEntries.................................................................................................................................. 1305
NextUrl....................................................................................................................................... 1306
ObjectType.................................................................................................................................. 1306
PreviousUrl................................................................................................................................. 1306
RootElement................................................................................................................................1307
Title............................................................................................................................................. 1307
Updated....................................................................................................................................... 1307
FeedEntry Class................................................................................................................................ 1307
FeedEntry Class Constructor............................................................................................................ 1308
FeedEntry.................................................................................................................................... 1308
FeedEntry Class Methods................................................................................................................. 1308
addCategory................................................................................................................................ 1308
addContributor............................................................................................................................ 1309
addEnclosure...............................................................................................................................1310
delete........................................................................................................................................... 1310
deleteCategory............................................................................................................................ 1311
deleteContributor........................................................................................................................ 1312
deleteEnclosure........................................................................................................................... 1312
equals.......................................................................................................................................... 1313
FeedEntry Class Properties............................................................................................................... 1313
Author......................................................................................................................................... 1313
Categories....................................................................................................................................1314
Comments................................................................................................................................... 1314
ContentUrl...................................................................................................................................1314
Contributors................................................................................................................................ 1314
Copyright.................................................................................................................................... 1315
Description.................................................................................................................................. 1315
Enclosures................................................................................................................................... 1315
Expires........................................................................................................................................ 1315
FeedDoc...................................................................................................................................... 1316
FullContent................................................................................................................................. 1316
GUID...........................................................................................................................................1316
ID................................................................................................................................................ 1317
MaxAge.......................................................................................................................................1317
ObjectType.................................................................................................................................. 1317
Published.....................................................................................................................................1317
Title............................................................................................................................................. 1318
Updated....................................................................................................................................... 1318
Additional Feed Examples................................................................................................................1318
Implementing a Real-Time Feed Request Handler....................................................................1318
Chapter 24: Field Class......................................................................................................................... 1323
Understanding the Field Class..........................................................................................................1323
Considerations Using User Interface Properties........................................................................ 1323
Shortcut Considerations.................................................................................................................... 1323
Data Type for a Field Object............................................................................................................1324
Scope of a Field Object.................................................................................................................... 1324
Field Class Built-in Functions.......................................................................................................... 1324
Field Class Methods......................................................................................................................... 1324
AddDropDownItem.................................................................................................................... 1324
AddFFClass.................................................................................................................................1326
ClearDropDownList....................................................................................................................1326
CopyDisplayMask.......................................................................................................................1327
GetAuxFlag.................................................................................................................................1328
GetBaseName..............................................................................................................................1329
GetDNDField.............................................................................................................................. 1329
GetDNDRow...............................................................................................................................1330
GetDNDRowset.......................................................................................................................... 1331
GetDNDTargetField....................................................................................................................1331
GetDNDTargetRow.....................................................................................................................1332
GetDNDTargetRowset................................................................................................................ 1333
GetLongLabel............................................................................................................................. 1333
GetRelated...................................................................................................................................1334
GetShortLabel............................................................................................................................. 1335
ReplaceFFClass...........................................................................................................................1336
SearchClear................................................................................................................................. 1337
SetCursorPos...............................................................................................................................1338
SetDefault....................................................................................................................................1339
SetDisplayMask.......................................................................................................................... 1340
SetGroupletActionUrl................................................................................................................. 1342
SetGroupletDisplayIn..................................................................................................................1343
SetGroupletEventMsg.................................................................................................................1344
SetGroupletID............................................................................................................................. 1344
SetGroupletImage....................................................................................................................... 1345
SetGroupletImageUrl.................................................................................................................. 1346
SetGroupletMOptions................................................................................................................. 1347
SetGroupletTargetID................................................................................................................... 1347
SetGroupletTimer........................................................................................................................1348
SetGroupletType......................................................................................................................... 1349
SetGroupletUrl............................................................................................................................ 1351
SetImageUrl................................................................................................................................ 1351
UnSetDisplayMask..................................................................................................................... 1352
Field Class Properties....................................................................................................................... 1353
AriaAttributes..............................................................................................................................1353
AriaWrapperAttributes................................................................................................................1353
DataAreaCollapsed..................................................................................................................... 1354
DecimalPosition.......................................................................................................................... 1354
DisplayFormat.............................................................................................................................1355
DisplayOnly................................................................................................................................ 1356
DisplayZero.................................................................................................................................1356
DisplayZeroChanged.................................................................................................................. 1357
Draggable.................................................................................................................................... 1357
Droppable....................................................................................................................................1358
EditError..................................................................................................................................... 1358
Enabled....................................................................................................................................... 1359
ErrorDisplay................................................................................................................................1359
FieldLength................................................................................................................................. 1359
ForceUpdateOnce........................................................................................................................1360
FormatLength..............................................................................................................................1360
FormattedValue........................................................................................................................... 1360
FreeFormStyleName................................................................................................................... 1361
HoverText....................................................................................................................................1362
HtmlAttributes............................................................................................................................ 1362
HtmlInputType............................................................................................................................ 1363
IsAltKey...................................................................................................................................... 1363
IsAuditFieldAdd......................................................................................................................... 1364
IsAuditFieldChg..........................................................................................................................1364
IsAuditFieldDel...........................................................................................................................1364
IsAutoUpdate.............................................................................................................................. 1364
IsChanged................................................................................................................................... 1364
IsDateRangeEdit......................................................................................................................... 1365
IsDescKey................................................................................................................................... 1365
IsDuplKey................................................................................................................................... 1365
IsEditTable.................................................................................................................................. 1365
IsEditXlat.................................................................................................................................... 1365
IsFromSearchField...................................................................................................................... 1366
IsGroupletAsLink........................................................................................................................1366
IsHyperlink................................................................................................................................. 1366
IsInBuf........................................................................................................................................ 1367
IsKey........................................................................................................................................... 1367
IsListItem.................................................................................................................................... 1367
IsNotUsed................................................................................................................................... 1368
IsRequired................................................................................................................................... 1368
IsRichTextEnabled...................................................................................................................... 1368
IsSearchItem................................................................................................................................1368
IsSystem...................................................................................................................................... 1368
IsThroughSearchField.................................................................................................................1369
IsUseDefaultLabel...................................................................................................................... 1369
IsYesNo....................................................................................................................................... 1369
JavaScriptEvents......................................................................................................................... 1369
Label........................................................................................................................................... 1370
LabelImage..................................................................................................................................1371
LabelStyle................................................................................................................................... 1371
LongTranslateValue.................................................................................................................... 1372
MessageNumber..........................................................................................................................1372
MessageSetNumber.................................................................................................................... 1373
MouseOverMsgNum...................................................................................................................1373
MouseOverMsgSet..................................................................................................................... 1374
Name........................................................................................................................................... 1374
OriginalValue.............................................................................................................................. 1375
ParentRecord...............................................................................................................................1375
PlaceholderText...........................................................................................................................1375
PromptTableName...................................................................................................................... 1376
SearchDefault..............................................................................................................................1376
SearchEdit................................................................................................................................... 1376
SetComponentChanged...............................................................................................................1377
ShortTranslateValue.................................................................................................................... 1378
ShowRequiredFieldCue.............................................................................................................. 1378
SmartZero....................................................................................................................................1379
SqlText........................................................................................................................................ 1379
StoredFormat...............................................................................................................................1380
Style............................................................................................................................................ 1380
Type.............................................................................................................................................1381
Value........................................................................................................................................... 1382
Visible......................................................................................................................................... 1383
Chapter 25: File Class........................................................................................................................... 1385
Understanding File Layout............................................................................................................... 1385
Data Type of a File Object............................................................................................................... 1385
Scope of a File Object......................................................................................................................1385
File Security Considerations............................................................................................................. 1386
File Access Interruption Recovery................................................................................................... 1386
Plain Text Files................................................................................................................................. 1387
Automatic PeopleCode Generation...................................................................................................1388
End Of Line Considerations............................................................................................................. 1389
File Layout Error Processing............................................................................................................1389
Working With Relative Paths........................................................................................................... 1390
SetContextMenuLabel................................................................................................................ 1446
SetFixedPageTitle....................................................................................................................... 1447
SetPageTitle................................................................................................................................ 1448
SetVisibilityActionList................................................................................................................1448
SetVisibilityAddto.......................................................................................................................1449
SetVisibilityContextMenu...........................................................................................................1450
SetVisibilityHelp.........................................................................................................................1450
SetVisibilityHome.......................................................................................................................1451
SetVisibilityMyPreferences........................................................................................................ 1452
SetVisibilityNavbar.....................................................................................................................1453
SetVisibilityNewWindow........................................................................................................... 1454
SetVisibilityNotifications............................................................................................................1454
SetVisibilityNotify...................................................................................................................... 1455
SetVisibilityQAB........................................................................................................................ 1456
SetVisibilitySearch......................................................................................................................1457
SetVisibilitySignout.................................................................................................................... 1458
Banner Class Properties.................................................................................................................... 1458
isGuidedDisplay..........................................................................................................................1459
DynamicScreenReader Class Properties...........................................................................................1459
SuppressCommonActionItem..................................................................................................... 1459
PanelController Class........................................................................................................................1460
Understanding Panel Modes.......................................................................................................1460
PanelController Class Methods.........................................................................................................1460
GetSide1Mode............................................................................................................................ 1460
GetSide1Panel.............................................................................................................................1461
GetSide2Mode............................................................................................................................ 1462
GetSide2Panel.............................................................................................................................1463
Initialize...................................................................................................................................... 1463
IsSide1Collapsible...................................................................................................................... 1464
IsSide1CollisionInterPage...........................................................................................................1465
IsSide1CollisionIntraPage...........................................................................................................1465
IsSide1Enabled............................................................................................................................1466
IsSide1Fixed............................................................................................................................... 1466
IsSide1FullWidth........................................................................................................................ 1467
IsSide1HasCollision....................................................................................................................1468
IsSide1Hidden.............................................................................................................................1468
IsSide1Open................................................................................................................................ 1469
IsSide1Overlay............................................................................................................................1470
IsSide2Collapsible...................................................................................................................... 1470
IsSide2Enabled............................................................................................................................1471
IsSide2Fixed............................................................................................................................... 1471
IsSide2FullWidth........................................................................................................................ 1472
IsSide2Hidden.............................................................................................................................1473
IsSide2Open................................................................................................................................ 1473
IsSide2Overlay............................................................................................................................1474
Refresh........................................................................................................................................ 1475
SetSide1FullWidth...................................................................................................................... 1475
SetSide1Hidden...........................................................................................................................1476
SetSide1ModeCollapsible...........................................................................................................1477
SetSide1ModeFixed.................................................................................................................... 1478
SetSide1ModeOverlay................................................................................................................ 1478
SetSide1OpenState......................................................................................................................1479
SetSide1OverrideMediaQueries..................................................................................................1480
SetSide2FullWidth...................................................................................................................... 1481
SetSide2Hidden...........................................................................................................................1481
SetSide2ModeCollapsible...........................................................................................................1482
SetSide2ModeFixed.................................................................................................................... 1483
SetSide2ModeOverlay................................................................................................................ 1483
SetSide2OpenState......................................................................................................................1484
SetSide2OverrideMediaQueries..................................................................................................1485
UpdatePanel................................................................................................................................ 1486
UseForceOpenModeSide1.......................................................................................................... 1486
UseForceOpenModeSide2.......................................................................................................... 1487
UsePersistentOpenModeSide1....................................................................................................1488
UsePersistentOpenModeSide2....................................................................................................1489
PanelController Class Properties...................................................................................................... 1490
AutoUpdate................................................................................................................................. 1490
InDefaultMode............................................................................................................................ 1491
Utils Class......................................................................................................................................... 1491
Confirmation Message Methods................................................................................................ 1491
Toggle Button Methods.............................................................................................................. 1491
Viewport Methods...................................................................................................................... 1492
Miscellaneous Methods.............................................................................................................. 1492
Utils Class Methods.......................................................................................................................... 1492
AnnounceText............................................................................................................................. 1492
ClearConfirmationMessage........................................................................................................ 1493
CloseConfirmationMessage........................................................................................................ 1493
GetButtonState............................................................................................................................ 1494
GetDefaultViewport.................................................................................................................... 1495
SetButtonState.............................................................................................................................1496
SetConfirmationMessage............................................................................................................ 1496
SetCustomViewport.................................................................................................................... 1497
SetDefaultViewport.....................................................................................................................1498
SetFavIcon.................................................................................................................................. 1498
ToggleButtonState.......................................................................................................................1499
Chapter 27: GlobalEventMapping Class.............................................................................................1501
Understanding the GlobalEventMapping Class................................................................................1501
GlobalEventMapping Class Methods............................................................................................... 1501
CreateGlobalEventMappingConfig............................................................................................ 1501
DeleteGlobalEventMappingConfig............................................................................................ 1502
Chapter 28: Grid Classes...................................................................................................................... 1505
Understanding Grid and GridColumn Classes................................................................................. 1505
Shortcut Considerations.................................................................................................................... 1505
The Grid Class in PeopleCode......................................................................................................... 1506
Data Type for a Grid or Grid Column Object..................................................................................1507
Scope of a Grid or Grid Column Object..........................................................................................1507
Grid Class Built-in Function............................................................................................................ 1507
Grid Class Methods.......................................................................................................................... 1507
EnableColumns........................................................................................................................... 1507
GetColumn.................................................................................................................................. 1508
LabelColumns............................................................................................................................. 1510
SetProperties............................................................................................................................... 1511
SetRowHeader............................................................................................................................ 1512
ShowColumns............................................................................................................................. 1513
Grid Class Properties........................................................................................................................ 1514
FreeFormStyleName................................................................................................................... 1514
gridcolumn.................................................................................................................................. 1514
Label........................................................................................................................................... 1515
Layout......................................................................................................................................... 1515
PersistMenuOption......................................................................................................................1516
RowHighlight..............................................................................................................................1517
Selector........................................................................................................................................1517
SummaryText.............................................................................................................................. 1519
GridColumn Class.............................................................................................................................1520
GridColumn Class Properties........................................................................................................... 1520
Enabled....................................................................................................................................... 1520
IncludeLabelsInGridCells........................................................................................................... 1521
IsUserHidden.............................................................................................................................. 1521
Label........................................................................................................................................... 1522
Name........................................................................................................................................... 1522
RowHeader..................................................................................................................................1523
Visible......................................................................................................................................... 1523
Chapter 29: Internet Script Classes (iScript)..................................................................................... 1525
Understanding Internet Script Classes..............................................................................................1525
URL vs. URI.....................................................................................................................................1526
Web Libraries.................................................................................................................................... 1526
iScript Security..................................................................................................................................1528
When to Use an iScript.................................................................................................................... 1528
Style Sheets and Styles.............................................................................................................. 1529
Other Considerations.................................................................................................................. 1529
Details of an iScript URL.................................................................................................................1530
The Generate Functions.................................................................................................................... 1530
Error Handling.................................................................................................................................. 1532
Scope of the Internet Script Classes.................................................................................................1532
Data Types of the iScript Classes.....................................................................................................1533
Internet Script Classes...................................................................................................................... 1533
Request Class..............................................................................................................................1533
Response..................................................................................................................................... 1534
Cookies....................................................................................................................................... 1534
Internet Script Classes Built-in Functions........................................................................................1534
Request Class Methods.....................................................................................................................1535
FormFactor..................................................................................................................................1535
GetContentBody..........................................................................................................................1536
GetCookieNames........................................................................................................................ 1537
GetCookieValue.......................................................................................................................... 1537
GetDeviceInfo.............................................................................................................................1537
GetHeader................................................................................................................................... 1540
GetHeaderNames........................................................................................................................ 1540
GetHelpURL............................................................................................................................... 1540
GetParameter...............................................................................................................................1541
GetParameterNames....................................................................................................................1541
GetParameterValues.................................................................................................................... 1541
Request Class Properties...................................................................................................................1541
AuthTokenDomain......................................................................................................................1542
AuthType.....................................................................................................................................1542
BrowserDeviceFormFactor.........................................................................................................1542
BrowserDeviceType....................................................................................................................1543
BrowserFluidCapable..................................................................................................................1544
BrowserPlatform......................................................................................................................... 1544
BrowserPlatformClass................................................................................................................ 1544
BrowserType............................................................................................................................... 1545
BrowserTypeClass...................................................................................................................... 1545
BrowserVersion...........................................................................................................................1545
ByPassSignOn.............................................................................................................................1546
ContentURI................................................................................................................................. 1546
ExpireMeta..................................................................................................................................1546
ExtraLarge...................................................................................................................................1547
FullURI....................................................................................................................................... 1547
HTTPMethod.............................................................................................................................. 1547
Large........................................................................................................................................... 1548
LogoutURL................................................................................................................................. 1548
Medium....................................................................................................................................... 1548
PathInfo.......................................................................................................................................1549
Protocol....................................................................................................................................... 1549
QueryString.................................................................................................................................1549
RelativeURL............................................................................................................................... 1550
RemoteAddr................................................................................................................................ 1550
RemoteHost.................................................................................................................................1550
RequestURI.................................................................................................................................1550
RemoteUser.................................................................................................................................1551
Scheme........................................................................................................................................ 1551
ServerName.................................................................................................................................1552
ServerPort................................................................................................................................... 1552
ServletPath.................................................................................................................................. 1552
Small........................................................................................................................................... 1553
Timeout....................................................................................................................................... 1553
Response Class..................................................................................................................................1553
Response Class Methods.................................................................................................................. 1553
Clear............................................................................................................................................ 1553
CreateCookie...............................................................................................................................1554
GetCookie................................................................................................................................... 1554
GetCookieNames........................................................................................................................ 1554
GetHeader................................................................................................................................... 1555
GetHeaderNames........................................................................................................................ 1555
GetImageURL.............................................................................................................................1555
GetJavaScriptURL...................................................................................................................... 1556
GetStyleSheetURL......................................................................................................................1556
RedirectURL............................................................................................................................... 1557
SetContentType...........................................................................................................................1558
SetHeader.................................................................................................................................... 1558
UseSimpleURL........................................................................................................................... 1559
Write............................................................................................................................................1559
WriteLine.................................................................................................................................... 1560
Response Class Properties................................................................................................................ 1560
Charset........................................................................................................................................ 1561
DefaultStyleSheetName.............................................................................................................. 1561
Cookie Class......................................................................................................................................1561
Cookie Class Properties.................................................................................................................... 1561
Domain........................................................................................................................................1561
MaxAge.......................................................................................................................................1562
Name........................................................................................................................................... 1562
Path............................................................................................................................................. 1562
Secure..........................................................................................................................................1562
Value........................................................................................................................................... 1563
Chapter 30: Java Class..........................................................................................................................1565
Understanding Java Class................................................................................................................. 1565
Supported Versions of Java.............................................................................................................. 1565
Java Packages and Classes Delivered with PeopleTools..................................................................1565
System Setup for Java Classes......................................................................................................... 1566
From PeopleCode to Java.................................................................................................................1567
State Management Concerns...................................................................................................... 1567
CreateJavaObject Example.........................................................................................................1568
CreateJavaArray Example.......................................................................................................... 1569
GetJavaClass Example............................................................................................................... 1569
From Java to PeopleCode.................................................................................................................1569
SysVar Java Class.......................................................................................................................1570
SysCon Java Class......................................................................................................................1570
Func Java Class.......................................................................................................................... 1570
Name Java Class........................................................................................................................ 1570
Accessing PeopleCode Objects.................................................................................................. 1571
Using Application Classes From Java to PeopleCode...............................................................1572
PeopleCode and Java Data Types Mapping..................................................................................... 1573
Considerations When Using the PeopleCode Java Functions.......................................................... 1574
Copying Arrays of Data Between PeopleCode and Java................................................................. 1575
Considerations Working with the Java Garbage Collector...............................................................1575
Error Handling and the PeopleCode Java Functions........................................................................1576
The Java Debugging Environment................................................................................................... 1576
Data Type of a Java Object.............................................................................................................. 1577
Scope of a Java Object..................................................................................................................... 1577
PeopleCode Java Built-in Functions.................................................................................................1577
Chapter 31: JSON Classes.................................................................................................................... 1579
Understanding JSON Classes........................................................................................................... 1579
JsonObject Class............................................................................................................................... 1579
JsonObject Class Methods................................................................................................................ 1579
AddJsonArray............................................................................................................................. 1579
AddJsonObject............................................................................................................................ 1580
AddProperty................................................................................................................................ 1581
GetAsString.................................................................................................................................1581
GetBoolean..................................................................................................................................1582
GetBooleanProperty....................................................................................................................1582
GetChildCount............................................................................................................................ 1583
GetDate....................................................................................................................................... 1583
GetDateTime............................................................................................................................... 1584
GetFloat.......................................................................................................................................1585
GetInteger....................................................................................................................................1585
GetJsonArray.............................................................................................................................. 1586
GetJsonNode............................................................................................................................... 1586
GetJsonObject............................................................................................................................. 1587
GetNumber..................................................................................................................................1587
GetPropertyNameAt....................................................................................................................1588
GetString..................................................................................................................................... 1588
GetTime.......................................................................................................................................1589
IsExist......................................................................................................................................... 1590
IsJsonArray................................................................................................................................. 1590
IsJsonObject................................................................................................................................ 1591
IsNullProperty.............................................................................................................................1591
ToString.......................................................................................................................................1592
JsonObject Class Properties..............................................................................................................1592
ChildCount.................................................................................................................................. 1593
JsonValue Class.................................................................................................................................1593
JsonValue Class Methods..................................................................................................................1593
GetBoolean..................................................................................................................................1593
GetDate....................................................................................................................................... 1594
GetDateTime............................................................................................................................... 1594
GetInteger....................................................................................................................................1595
GetNumber..................................................................................................................................1595
GetString..................................................................................................................................... 1596
GetTime.......................................................................................................................................1596
GetValue......................................................................................................................................1597
IsNull...........................................................................................................................................1597
SetBoolean.................................................................................................................................. 1598
SetDate........................................................................................................................................ 1598
SetDateTime................................................................................................................................1599
SetFalse....................................................................................................................................... 1599
SetInteger.................................................................................................................................... 1600
SetNull........................................................................................................................................ 1600
SetNumber.................................................................................................................................. 1601
SetString......................................................................................................................................1601
SetTrue........................................................................................................................................ 1602
ToString.......................................................................................................................................1602
JsonValue Class Properties............................................................................................................... 1603
ValueType....................................................................................................................................1603
JsonArray Class.................................................................................................................................1603
JsonArray Class Methods................................................................................................................. 1603
AddElement................................................................................................................................ 1603
AddJsonArrayElement................................................................................................................ 1604
AddJsonObjectElement............................................................................................................. 1605
AddNullElement......................................................................................................................... 1605
GetAsString.................................................................................................................................1606
GetBoolean..................................................................................................................................1606
GetDate....................................................................................................................................... 1607
GetDateTime............................................................................................................................... 1607
GetFloat.......................................................................................................................................1608
GetInteger....................................................................................................................................1608
GetJsonArray.............................................................................................................................. 1609
GetJsonNode............................................................................................................................... 1610
GetJsonObject............................................................................................................................. 1610
GetNumber..................................................................................................................................1611
GetString..................................................................................................................................... 1611
GetTime.......................................................................................................................................1612
GetType.......................................................................................................................................1612
IsNull...........................................................................................................................................1613
Length......................................................................................................................................... 1613
Pop.............................................................................................................................................. 1614
Remove....................................................................................................................................... 1614
ToString.......................................................................................................................................1615
JsonArray Class Properties............................................................................................................... 1615
Size..............................................................................................................................................1616
JsonNode Class................................................................................................................................. 1616
JsonNode Class Methods.................................................................................................................. 1616
GetBoolean..................................................................................................................................1616
GetFloat.......................................................................................................................................1617
GetInteger....................................................................................................................................1617
GetJsonArray............................................................................................................................. 1618
GetJsonObject............................................................................................................................1618
GetJsonValue...............................................................................................................................1619
GetNodeType.............................................................................................................................. 1619
GetNumber..................................................................................................................................1620
GetParentNode............................................................................................................................ 1620
GetString..................................................................................................................................... 1621
GetValueType..............................................................................................................................1621
IsJsonArray................................................................................................................................. 1622
IsJsonObject................................................................................................................................ 1623
IsJsonValue................................................................................................................................. 1623
IsNull...........................................................................................................................................1624
SetBoolean.................................................................................................................................. 1624
SetDate........................................................................................................................................ 1625
SetDateTime................................................................................................................................1625
SetFalse....................................................................................................................................... 1626
SetFloat....................................................................................................................................... 1626
SetInteger.................................................................................................................................... 1627
SetJsonArray............................................................................................................................... 1627
SetJsonObject..............................................................................................................................1628
SetJsonValue............................................................................................................................... 1628
SetNodeName............................................................................................................................. 1629
SetNull........................................................................................................................................ 1630
SetNumber.................................................................................................................................. 1630
SetString......................................................................................................................................1631
SetTime....................................................................................................................................... 1631
SetTrue........................................................................................................................................ 1632
ToString.......................................................................................................................................1632
JsonNode Class Properties................................................................................................................1633
NodeType.................................................................................................................................... 1633
ValueType....................................................................................................................................1633
JsonBuilder Class.............................................................................................................................. 1633
JsonBuilder Class Methods...............................................................................................................1633
AddElement................................................................................................................................ 1634
AddNullElement......................................................................................................................... 1634
AddNullProperty.........................................................................................................................1635
AddProperty................................................................................................................................ 1635
EndArray.....................................................................................................................................1636
EndObject....................................................................................................................................1636
GetBuildMode.............................................................................................................................1637
GetRootNode.............................................................................................................................. 1638
StartArray....................................................................................................................................1638
StartArrayReturnsTrue................................................................................................................1639
StartObject.................................................................................................................................. 1639
StartObjectReturnsTrue...............................................................................................................1640
ToString.......................................................................................................................................1640
JsonBuilder Class Properties............................................................................................................ 1641
BuildMode.................................................................................................................................. 1641
JsonParser Class................................................................................................................................ 1641
JsonParser Class Methods.................................................................................................................1641
GetRootObject............................................................................................................................ 1641
Parse............................................................................................................................................ 1642
ToString.......................................................................................................................................1642
Chapter 32: Mail Classes...................................................................................................................... 1645
Understanding PeopleSoft MultiChannel Framework Mail Classes................................................ 1645
PeopleSoft MultiChannel Framework Mail Classes.................................................................. 1645
Scope of the Mail Classes..........................................................................................................1645
Data Types of the Mail Classes................................................................................................. 1646
Importing Mail Classes.....................................................................................................................1646
Creating a Mail Object..................................................................................................................... 1647
Using the Mail Classes..................................................................................................................... 1647
Life Cycle of an Outbound Email............................................................................................. 1647
Delivery Status Notification and Return Receipts..................................................................... 1648
Priority........................................................................................................................................ 1648
MCFBodyPart and MCFEmail Considerations..........................................................................1649
Retrieving Email From a Mail Server With the MCFGetMail Class............................................... 1651
Structure of Rowset Used for Email Information......................................................................1651
Error Messages Returned by MCFGetMail Class Methods.......................................................1657
Mail Classes Constructors................................................................................................................ 1659
MCFBodyPart............................................................................................................................. 1659
MCFGetMail...............................................................................................................................1659
MCFOutboundEmail...................................................................................................................1659
MCFMailStore............................................................................................................................ 1659
SMTPSession.............................................................................................................................. 1659
MCFBodyPart Class..........................................................................................................................1659
MCFBodyPart Class Methods.......................................................................................................... 1660
AddHeader.................................................................................................................................. 1660
GetHeader................................................................................................................................... 1661
GetHeaderCount..........................................................................................................................1662
GetHeaderName..........................................................................................................................1662
GetHeaderNames........................................................................................................................ 1663
GetHeaderValues.........................................................................................................................1663
GetUnparsedHeaders.................................................................................................................. 1664
SetAttachmentContent................................................................................................................ 1665
MCFBodyPart Class Properties........................................................................................................ 1666
AttachmentURL.......................................................................................................................... 1666
Charset........................................................................................................................................ 1667
ContentType................................................................................................................................ 1667
Description.................................................................................................................................. 1667
Disposition.................................................................................................................................. 1667
Filename......................................................................................................................................1668
FilePath....................................................................................................................................... 1668
FilePathType............................................................................................................................... 1668
IsAttachment............................................................................................................................... 1669
MultiPart..................................................................................................................................... 1669
Text..............................................................................................................................................1669
MCFEmail Class............................................................................................................................... 1670
MCFEmail Class Properties..............................................................................................................1670
BCC.............................................................................................................................................1670
BounceTo.................................................................................................................................... 1670
CC............................................................................................................................................... 1671
From............................................................................................................................................ 1671
Importance.................................................................................................................................. 1671
Priority........................................................................................................................................ 1672
Recipients....................................................................................................................................1672
RefIDs......................................................................................................................................... 1672
ReplyIDs..................................................................................................................................... 1672
ReplyTo.......................................................................................................................................1673
Sender......................................................................................................................................... 1673
Sensitivity................................................................................................................................... 1673
Subject.........................................................................................................................................1673
Text..............................................................................................................................................1674
MCFGetMail Class Methods............................................................................................................ 1674
CreateQuarantineFolder.............................................................................................................. 1674
GetCount..................................................................................................................................... 1674
GetEmailCount............................................................................................................................1675
ReadAllEmailHeadersWithAttach.............................................................................................. 1676
ReadEmails................................................................................................................................. 1677
ReadEmailsWithAttach...............................................................................................................1678
ReadEmailsWithUID.................................................................................................................. 1679
ReadEmailWithAttach................................................................................................................ 1679
ReadHeaders............................................................................................................................... 1680
RemoveEmail..............................................................................................................................1681
RemoveEmails............................................................................................................................ 1682
SetMCFEmail..............................................................................................................................1683
MCFGetMail Class Properties..........................................................................................................1684
AttachmentRoot.......................................................................................................................... 1684
ContentTypes.............................................................................................................................. 1685
ErrorCount.................................................................................................................................. 1685
IBNode........................................................................................................................................ 1685
MailServer...................................................................................................................................1686
Password..................................................................................................................................... 1686
QuarantineCount......................................................................................................................... 1686
QuarantineFolder........................................................................................................................ 1687
Status...........................................................................................................................................1687
UserID.........................................................................................................................................1688
MCFInboundEmail Class..................................................................................................................1688
MCFInboundEmail Class Methods...................................................................................................1688
DumpToFile................................................................................................................................ 1688
GetAttachments...........................................................................................................................1689
GetFrom...................................................................................................................................... 1690
GetParts.......................................................................................................................................1690
GetSender....................................................................................................................................1691
ReadFromDatabase..................................................................................................................... 1691
SaveToDatabase.......................................................................................................................... 1692
MCFInboundEmail Class Properties................................................................................................ 1692
AttachList....................................................................................................................................1692
AttachSizes..................................................................................................................................1693
DttmReceived..............................................................................................................................1693
DttmSaved...................................................................................................................................1693
DttmSent..................................................................................................................................... 1694
IBNode........................................................................................................................................ 1694
Language.....................................................................................................................................1694
MessageID.................................................................................................................................. 1694
NotifyCC.....................................................................................................................................1695
NotifyTo...................................................................................................................................... 1695
OffsetReceived............................................................................................................................1695
OffsetSent....................................................................................................................................1695
Server.......................................................................................................................................... 1696
Size..............................................................................................................................................1696
Status...........................................................................................................................................1696
UID............................................................................................................................................. 1696
User............................................................................................................................................. 1696
MCFMailStore Class.........................................................................................................................1696
MCFMailStore Import Statements....................................................................................................1697
MCFMailStore Methods................................................................................................................... 1697
AuthorizeEmailAttach................................................................................................................ 1697
DeleteEmail.................................................................................................................................1698
RetrieveEmail..............................................................................................................................1699
StoreEmail...................................................................................................................................1699
MCFMailUtil Class...........................................................................................................................1701
MCFMailUtil Class Methods............................................................................................................1701
DecodeText................................................................................................................................. 1701
DecodeWord................................................................................................................................1702
EncodeText..................................................................................................................................1703
EncodeWord................................................................................................................................1705
GetErrorMsgParam..................................................................................................................... 1706
IsDomainNameValid...................................................................................................................1707
IsEmailServerAvailable...............................................................................................................1708
ParseRichTextHtml..................................................................................................................... 1709
ValidateAddress.......................................................................................................................... 1710
MCFMailUtil Class Properties......................................................................................................... 1711
badaddresses................................................................................................................................1712
ErrorDescription..........................................................................................................................1712
ErrorDetails.................................................................................................................................1712
ErrorMsgParamsCount................................................................................................................1713
imagesLocation........................................................................................................................... 1713
MessageNumber..........................................................................................................................1713
MessageSetNumber.................................................................................................................... 1714
MCFMultiPart Class......................................................................................................................... 1714
MCFMultiPart Class Methods.......................................................................................................... 1714
AddBodyPart...............................................................................................................................1714
GetBodyPart................................................................................................................................1715
GetContentType.......................................................................................................................... 1715
GetCount..................................................................................................................................... 1715
MCFMultiPart Class Property.......................................................................................................... 1716
SubType...................................................................................................................................... 1716
MCFOutboundEmail Class............................................................................................................... 1716
MCFOutboundEmail Class Methods................................................................................................ 1716
AddAttachment........................................................................................................................... 1717
AddHeader.................................................................................................................................. 1718
AddImportedAttachment............................................................................................................ 1719
GetErrorMsgParam..................................................................................................................... 1720
GetHeader................................................................................................................................... 1721
GetHeaderCount..........................................................................................................................1721
GetHeaderName..........................................................................................................................1722
GetHeaderNames........................................................................................................................ 1722
GetHeaderValues.........................................................................................................................1723
Send.............................................................................................................................................1724
SetSMTPParam...........................................................................................................................1725
MCFOutboundEmail Class Properties..............................................................................................1726
BackupSMTPPort....................................................................................................................... 1726
BackupSMTPServer....................................................................................................................1726
BackupSMTPSSLClientCertAlias.............................................................................................. 1726
BackupSMTPSSLPort................................................................................................................ 1726
BackupSMTPUserName.............................................................................................................1727
BackupSMTPUserPassword....................................................................................................... 1727
BackupSMTPUseSSL.................................................................................................................1727
BCC.............................................................................................................................................1727
BounceTo.................................................................................................................................... 1728
CC............................................................................................................................................... 1728
Charset........................................................................................................................................ 1728
ContentLanguage........................................................................................................................ 1728
ContentType................................................................................................................................ 1729
DefaultCharSet............................................................................................................................1729
Description.................................................................................................................................. 1729
Disposition.................................................................................................................................. 1729
ErrorDescription..........................................................................................................................1730
ErrorDetails.................................................................................................................................1730
ErrorMsgParamsCount................................................................................................................1730
Filename......................................................................................................................................1731
FilePath....................................................................................................................................... 1731
FilePathType............................................................................................................................... 1731
From............................................................................................................................................ 1732
Importance.................................................................................................................................. 1732
InvalidAddresses.........................................................................................................................1733
IsAuthenticationReqd..................................................................................................................1733
IsOkToSendPartial...................................................................................................................... 1733
IsReturnReceiptReqd.................................................................................................................. 1734
MessageNumber..........................................................................................................................1734
MessageSetNumber.................................................................................................................... 1734
MultiPart..................................................................................................................................... 1734
Priority........................................................................................................................................ 1735
Recipients....................................................................................................................................1735
RefIDs......................................................................................................................................... 1736
ReplyIDs..................................................................................................................................... 1736
ReplyTo.......................................................................................................................................1736
ResultOfSend.............................................................................................................................. 1736
Sender......................................................................................................................................... 1737
Sensitivity................................................................................................................................... 1737
SMTPPort................................................................................................................................... 1737
SMTPServer................................................................................................................................1738
SMTPSSLClientCertAlias.......................................................................................................... 1738
SMTPSSLPort.............................................................................................................................1738
SMTPUserName......................................................................................................................... 1738
SMTPUserPassword................................................................................................................... 1739
SMTPUseSSL............................................................................................................................. 1739
StatusNotifyOptions....................................................................................................................1739
StatusNotifyReturn......................................................................................................................1740
Subject.........................................................................................................................................1740
Text..............................................................................................................................................1740
TimeToWaitForResult................................................................................................................. 1741
UsedDefaultConfig..................................................................................................................... 1741
UsedPrimaryServer..................................................................................................................... 1741
ValidSentAddresses.....................................................................................................................1741
ValidUnsentAddresses................................................................................................................ 1742
SMTPSession Class.......................................................................................................................... 1742
SMTPSession Class Methods........................................................................................................... 1742
Send.............................................................................................................................................1742
SendAll....................................................................................................................................... 1743
SetSMTPParam...........................................................................................................................1744
SMTPSession Class Properties......................................................................................................... 1745
BackupPort..................................................................................................................................1745
BackupServer.............................................................................................................................. 1745
BackupSSLClientCertAlias........................................................................................................ 1745
BackupSSLPort...........................................................................................................................1746
BackupUserName....................................................................................................................... 1746
BackupUserPassword..................................................................................................................1746
BackupUseSSL........................................................................................................................... 1746
IsAuthenticationReqd..................................................................................................................1747
Port.............................................................................................................................................. 1747
Server.......................................................................................................................................... 1747
SSLClientCertAlias.....................................................................................................................1748
SSLPort....................................................................................................................................... 1748
UsedDefaultConfig..................................................................................................................... 1748
UsedPrimaryServer..................................................................................................................... 1748
UserName....................................................................................................................................1749
UserPassword..............................................................................................................................1749
UseSSL....................................................................................................................................... 1749
Messages..................................................................................................................................... 1787
Name........................................................................................................................................... 1787
ObjectOwnerId............................................................................................................................1787
QuerySecurityRecord..................................................................................................................1788
RelatedLanguageRecord............................................................................................................. 1788
RuntimeDefn...............................................................................................................................1788
SetControlField........................................................................................................................... 1788
SQL............................................................................................................................................. 1788
Type.............................................................................................................................................1789
RecordFieldDefn Class..................................................................................................................... 1789
RecordFieldDefn Class Methods...................................................................................................... 1790
RecordFieldDefn Class Properties....................................................................................................1790
AllowSearchEventsForPromptDialogs....................................................................................... 1790
AlternateSearchKey.................................................................................................................... 1790
DescendingKey........................................................................................................................... 1790
DuplicateOrderKey..................................................................................................................... 1791
Key.............................................................................................................................................. 1791
ListBoxItem................................................................................................................................ 1791
Name........................................................................................................................................... 1792
Number....................................................................................................................................... 1792
RecordFieldLabelID....................................................................................................................1792
Required...................................................................................................................................... 1792
SearchEdit................................................................................................................................... 1792
SearchKey................................................................................................................................... 1793
TableEditPromptTable.................................................................................................................1793
TableEditSetControlField............................................................................................................1794
TableEditType............................................................................................................................. 1794
Type.............................................................................................................................................1794
Message Catalog Component Interface............................................................................................ 1795
Message Catalog Methods................................................................................................................ 1795
AddMessage................................................................................................................................1795
DeleteMessage............................................................................................................................ 1797
Message Catalog Properties..............................................................................................................1797
DESCR (Message Set)............................................................................................................... 1798
DESCRSHORT (Message Set).................................................................................................. 1798
MESSAGE_SET_NBR (Message Set)...................................................................................... 1798
DESCRLONG (Message Catalog Entry)...................................................................................1798
MESSAGE_NBR (Message Catalog Entry).............................................................................. 1798
MESSAGE_SET_NBR (Message Catalog Entry)..................................................................... 1799
MESSAGE_TEXT (Message Catalog Entry)............................................................................ 1799
MSG_SEVERITY (Message Catalog Entry).............................................................................1799
Chapter 34: MCF IM Classes...............................................................................................................1801
MCFIMInfo Class Methods..............................................................................................................1801
AddUser...................................................................................................................................... 1801
CheckAll..................................................................................................................................... 1801
GetAdditionalUserInfo................................................................................................................1801
GetErrorImageName...................................................................................................................1801
GetOffLineImageName.............................................................................................................. 1801
GetOnlineImageName................................................................................................................ 1801
GetUnknownImageName............................................................................................................1801
GetLaunchURL...........................................................................................................................1802
GetStatus..................................................................................................................................... 1802
RemoveUser................................................................................................................................1802
MCFIMSingleButton Class Methods............................................................................................... 1802
generateHTML............................................................................................................................1802
generateJavaScript...................................................................................................................... 1802
insertXMPPServerUserData....................................................................................................... 1802
MCFIMSingleButton.................................................................................................................. 1802
updateXMPPServerUserData......................................................................................................1802
MCFIMSingleButton Class Properties............................................................................................. 1803
hideDelay.................................................................................................................................... 1803
Chapter 35: Message Classes................................................................................................................ 1805
Understanding Message Classes....................................................................................................... 1805
Messages, Service Operations and Handlers............................................................................. 1805
Integration Broker Application Classes..................................................................................... 1806
Data Types of Message Objects....................................................................................................... 1807
Scope of Message Objects................................................................................................................1807
Message Object Population.............................................................................................................. 1807
Considerations When Populating a Rowset From a Message................................................... 1809
Considerations for Publishing and Subscribing to Partial Records........................................... 1810
Considerations When Subscribing to Character Fields..............................................................1810
Message Segments............................................................................................................................ 1810
Content-Based Routing..................................................................................................................... 1813
Error Handling.................................................................................................................................. 1814
Message Classes Reference.............................................................................................................. 1815
Message Class Built-In Functions.................................................................................................... 1815
Message Class Methods....................................................................................................................1816
Clone........................................................................................................................................... 1816
CopyPartRowset..........................................................................................................................1817
CopyRowset................................................................................................................................ 1818
CopyRowsetDelta....................................................................................................................... 1819
CopyRowsetDeltaOriginal.......................................................................................................... 1821
CreateNextSegment.................................................................................................................... 1824
DeleteSegment............................................................................................................................ 1825
ExecuteEdits................................................................................................................................1826
FirstCorrelation........................................................................................................................... 1828
GenXMLPartString.....................................................................................................................1829
GenXMLString........................................................................................................................... 1830
GetContentString........................................................................................................................ 1830
GetDocument.............................................................................................................................. 1831
GetPartAliasName...................................................................................................................... 1832
GetPartName...............................................................................................................................1832
GetPartRowset............................................................................................................................ 1833
GetPartVersion............................................................................................................................ 1834
GetPartXMLDoc.........................................................................................................................1834
GetQueryString........................................................................................................................... 1835
GetRowset...................................................................................................................................1836
GetSegment.................................................................................................................................1837
GetURIDocument....................................................................................................................... 1837
GetURIResource......................................................................................................................... 1838
GetXmlDoc................................................................................................................................. 1839
InBoundPublish...........................................................................................................................1839
LoadXMLPartString................................................................................................................... 1840
LoadXMLString..........................................................................................................................1841
OverrideRESTBaseURL.............................................................................................................1841
OverrideURIResource.................................................................................................................1842
Publish.........................................................................................................................................1843
SegmentRestart........................................................................................................................... 1845
SetContentString......................................................................................................................... 1845
SetEditTable................................................................................................................................ 1846
SetQueryString............................................................................................................................1848
SetRESTCache............................................................................................................................1849
SetStatus......................................................................................................................................1849
SetXmlDoc..................................................................................................................................1851
SyncRequest................................................................................................................................1852
Update......................................................................................................................................... 1853
UpdateSegment........................................................................................................................... 1854
Message Class Properties..................................................................................................................1854
ActionName................................................................................................................................ 1855
AliasName...................................................................................................................................1855
ChannelName..............................................................................................................................1855
Cookies....................................................................................................................................... 1856
CurrentSegment.......................................................................................................................... 1857
DefaultMessageVersion.............................................................................................................. 1857
DoNotPubToNodeName............................................................................................................. 1857
GUID...........................................................................................................................................1858
HTTPMethod.............................................................................................................................. 1858
HTTPResponseCode...................................................................................................................1859
IBException................................................................................................................................ 1859
IBInfo.......................................................................................................................................... 1860
InitializeConversationId..............................................................................................................1860
IsActive....................................................................................................................................... 1860
IsBulkLoadTruncation................................................................................................................ 1861
IsDelta......................................................................................................................................... 1861
IsEditError...................................................................................................................................1862
IsLocal.........................................................................................................................................1863
IsOperationActive....................................................................................................................... 1863
IsParts..........................................................................................................................................1863
IsPartsStructured......................................................................................................................... 1864
IsRequest.....................................................................................................................................1864
IsSourceNodeExternal................................................................................................................ 1864
IsStructure................................................................................................................................... 1864
MessageDetail.............................................................................................................................1865
Name........................................................................................................................................... 1865
NRId............................................................................................................................................1865
OperationName........................................................................................................................... 1865
OperationVersion........................................................................................................................ 1866
ParentTransactionId.................................................................................................................... 1866
PartCount.................................................................................................................................... 1866
PubID.......................................................................................................................................... 1866
PubNodeName............................................................................................................................ 1867
QueueName.................................................................................................................................1867
QueueSeqId.................................................................................................................................1867
ResponseStatus............................................................................................................................1868
SegmentContentTransfer.............................................................................................................1868
SegmentContentType.................................................................................................................. 1869
SegmentCount.............................................................................................................................1869
SegmentsByDatabase..................................................................................................................1869
Size..............................................................................................................................................1870
SubName.....................................................................................................................................1871
SubQueueName.......................................................................................................................... 1871
SubscriptionProcessId.................................................................................................................1871
TransactionId...............................................................................................................................1872
URIResourceIndex......................................................................................................................1873
Version........................................................................................................................................ 1873
IntBroker Class..................................................................................................................................1873
IntBroker Class Methods.................................................................................................................. 1873
Cancel..........................................................................................................................................1874
ConnectorRequest....................................................................................................................... 1875
ConnectorRequestUrl..................................................................................................................1876
DefaultLocalNode.......................................................................................................................1877
DefaultPortalName......................................................................................................................1878
DeleteLayoutCache.....................................................................................................................1879
DeleteOrphanedSegments...........................................................................................................1879
DeleteRESTCache...................................................................................................................... 1880
EscapeControlCodes................................................................................................................... 1881
GenLayoutDoc............................................................................................................................ 1881
GenLayoutHTML....................................................................................................................... 1882
GetArchData............................................................................................................................... 1884
GetArchIBInfoData.....................................................................................................................1884
GetContentURI........................................................................................................................... 1885
GetDocSchema............................................................................................................................1885
GetIBInfoData.............................................................................................................................1886
GetIBTransactionIDforAE..........................................................................................................1887
GetImageURL.............................................................................................................................1888
GetMessage.................................................................................................................................1888
GetMessageErrors.......................................................................................................................1889
GetMsgSchema........................................................................................................................... 1890
GetPortalURI.............................................................................................................................. 1891
GetSyncIBInfoData.....................................................................................................................1891
GetSyncLogData.........................................................................................................................1892
GetURL.......................................................................................................................................1893
InBoundPublish...........................................................................................................................1895
IsOperationActive....................................................................................................................... 1896
MAPLogout................................................................................................................................ 1896
MAPSessionTimeout.................................................................................................................. 1897
MAPTimeout...............................................................................................................................1897
MsgSchemaExists....................................................................................................................... 1898
Publish.........................................................................................................................................1899
Resubmit..................................................................................................................................... 1900
SetMessageError......................................................................................................................... 1901
SetStatus......................................................................................................................................1903
SwitchAsyncEventUserContext..................................................................................................1904
SyncRequest................................................................................................................................1904
Update......................................................................................................................................... 1906
UpdateCSSMetadata................................................................................................................... 1906
UpdateDocument........................................................................................................................ 1907
UpdateJSMetadata...................................................................................................................... 1908
UpdateXmlDoc........................................................................................................................... 1908
IBInfo Class...................................................................................................................................... 1909
IBInfo Class Methods....................................................................................................................... 1909
AddAEAttribute.......................................................................................................................... 1909
AddAttachment........................................................................................................................... 1911
AddAttribute............................................................................................................................... 1912
AddContainerAttribute................................................................................................................1913
ClearAEAttributes.......................................................................................................................1914
ClearAttachments........................................................................................................................1914
ClearAttributes............................................................................................................................ 1915
ClearContainerAttributes............................................................................................................ 1915
DeleteAEAttribute...................................................................................................................... 1916
DeleteAttachment........................................................................................................................1916
DeleteAttribute............................................................................................................................1917
DeleteContainerAttribute............................................................................................................ 1918
GetAEAttributeName..................................................................................................................1918
GetAEAttributeValue.................................................................................................................. 1919
GetAttachmentContentID........................................................................................................... 1920
GetAttachmentProperty.............................................................................................................. 1920
GetAttributeName.......................................................................................................................1922
GetAttributeValue....................................................................................................................... 1923
GetContainerAttributeName....................................................................................................... 1924
GetContainerAttributeValue........................................................................................................1924
GetNumberofAEAttributes......................................................................................................... 1925
GetNumberOfAttributes..............................................................................................................1925
GetNumberOfContainerAttributes..............................................................................................1926
GetTransactionIDforAE..............................................................................................................1927
InsertAEResponseAttributes.......................................................................................................1927
LoadConnectorProp.................................................................................................................... 1928
LoadConnectorPropFromNode...................................................................................................1929
LoadConnectorPropFromRouting...............................................................................................1929
LoadConnectorPropFromTrx......................................................................................................1930
LoadRESTHeaders......................................................................................................................1930
SetAttachmentProperty............................................................................................................... 1931
IBInfo Class Properties.....................................................................................................................1933
AppServerDomain...................................................................................................................... 1933
CompressionOverride................................................................................................................. 1933
ConnectorOverride......................................................................................................................1934
ConversationID........................................................................................................................... 1934
DeliveryMode............................................................................................................................. 1935
DestinationNode..........................................................................................................................1935
ExternalMessageID.....................................................................................................................1935
ExternalOperationName..............................................................................................................1936
ExternalUserName...................................................................................................................... 1936
ExternalUserPassword................................................................................................................ 1936
FinalDestinationNode................................................................................................................. 1936
FuturePublicationDateTime........................................................................................................ 1936
HTTPSessionId........................................................................................................................... 1937
IBConnectorInfo......................................................................................................................... 1937
InReplyToID............................................................................................................................... 1937
MessageChannel......................................................................................................................... 1937
MessageName............................................................................................................................. 1938
MessageQueue............................................................................................................................ 1938
MessageType...............................................................................................................................1938
MessageVersion.......................................................................................................................... 1939
NodeDN...................................................................................................................................... 1939
NonRepudiationID...................................................................................................................... 1939
NumberOfAttachments............................................................................................................... 1939
OperationType.............................................................................................................................1939
OperationVersion........................................................................................................................ 1940
OrigNode.....................................................................................................................................1940
OrigProcess................................................................................................................................. 1940
OrigTimeStamp...........................................................................................................................1940
OrigUser......................................................................................................................................1941
PublicationID.............................................................................................................................. 1941
RequestingNodeName................................................................................................................ 1941
RequestingNodeDescription....................................................................................................... 1941
ResponseAsAttachment.............................................................................................................. 1941
SegmentsUnOrder.......................................................................................................................1941
SourceNode.................................................................................................................................1942
SyncServiceTimeout................................................................................................................... 1942
TransactionID..............................................................................................................................1943
UserName....................................................................................................................................1943
VisitedNodes............................................................................................................................... 1943
WSA_Action...............................................................................................................................1943
WSA_FaultTo............................................................................................................................. 1943
WSA_MessageID........................................................................................................................1944
WSA_ReplyTo............................................................................................................................ 1944
WSA_To......................................................................................................................................1944
IBConnectorInfo Collection..............................................................................................................1944
IBConnectorInfo Collection Methods...............................................................................................1944
AddConnectorProperties.............................................................................................................1945
AddQueryStringArg....................................................................................................................1946
ClearConnectorProperties........................................................................................................... 1946
ClearQueryStringArgs................................................................................................................ 1947
DeleteConnectorProperties......................................................................................................... 1947
DeleteQueryStringArg................................................................................................................ 1948
GetConnectorPropertiesName.................................................................................................... 1948
GetConnectorPropertiesType...................................................................................................... 1949
GetConnectorPropertiesValue.....................................................................................................1950
GetNumberOfConnectorProperties.............................................................................................1950
GetNumberOfQueryStringArgs.................................................................................................. 1950
GetQueryStringArgName........................................................................................................... 1951
GetQueryStringArgValue............................................................................................................1951
IBConnectorInfo Collection Properties............................................................................................ 1952
ConnectorClassName..................................................................................................................1952
ConnectorName.......................................................................................................................... 1952
Cookies....................................................................................................................................... 1952
PathInfo.......................................................................................................................................1953
RemoteFrameworkURL..............................................................................................................1953
Chapter 36: Optimization PeopleCode................................................................................................ 1955
Using Optimization PeopleCode on the Application Server............................................................ 1955
Using Optimization PeopleCode in an Application Engine Program.............................................. 1955
Performing Optimization in PeopleCode..........................................................................................1956
Creating New Analytic Instances...............................................................................................1956
Loading Analytic Instances Into an Analytic Server................................................................. 1957
Running Optimization Transactions...........................................................................................1957
Invoking the Optimization PeopleCode Plug-In........................................................................ 1958
Shutting Down Optimization Engines....................................................................................... 1959
Deleting Existing Analytic Instances......................................................................................... 1959
Programming for Database Updates.......................................................................................... 1960
Using Lights-Out Mode with Optimization..................................................................................... 1960
Understanding Lights-out Mode................................................................................................ 1960
Creating a Request Message...................................................................................................... 1962
Creating a Response Message....................................................................................................1967
Editing the Request PeopleCode................................................................................................1968
Editing the Response PeopleCode............................................................................................. 1971
Optimization Built-in Functions....................................................................................................... 1973
CreateOptEngine.........................................................................................................................1973
CreateOptInterface...................................................................................................................... 1975
DeleteOptProbInst.......................................................................................................................1976
GetOptEngine..............................................................................................................................1977
GetOptProbInstList..................................................................................................................... 1978
InsertOptProbInst........................................................................................................................ 1980
IsValidOptProbInst......................................................................................................................1981
OptEngine Class Methods................................................................................................................ 1982
CheckOptEngineStatus............................................................................................................... 1982
FillRowset................................................................................................................................... 1984
GetDate....................................................................................................................................... 1986
GetDateArray.............................................................................................................................. 1986
GetDateTime............................................................................................................................... 1987
GetDateTimeArray......................................................................................................................1988
GetNumber..................................................................................................................................1989
GetNumberArray........................................................................................................................ 1991
GetString..................................................................................................................................... 1991
GetStringArray............................................................................................................................1992
GetTime.......................................................................................................................................1994
GetTimeArray............................................................................................................................. 1994
GetTraceLevel.............................................................................................................................1995
RunAsynch..................................................................................................................................1997
RunSynch.................................................................................................................................... 1998
SetTraceLevel............................................................................................................................. 2000
ShutDown................................................................................................................................... 2002
OptEngine Class Properties.............................................................................................................. 2003
DetailMsgs.................................................................................................................................. 2003
DetailedStatus............................................................................................................................. 2004
OptBase Application Class............................................................................................................... 2005
OptBase Class Methods.................................................................................................................... 2006
GetParmDate...............................................................................................................................2006
GetParmDateArray......................................................................................................................2007
GetParmDateTime.......................................................................................................................2007
GetParmDateTimeArray............................................................................................................. 2008
GetParmNumber......................................................................................................................... 2009
GetParmNumberArray................................................................................................................ 2009
GetParmInt.................................................................................................................................. 2010
GetParmIntArray.........................................................................................................................2010
GetParmString.............................................................................................................................2011
GetParmStringArray................................................................................................................... 2011
GetParmTime.............................................................................................................................. 2012
GetParmTimeArray.....................................................................................................................2013
Init............................................................................................................................................... 2013
OptDeleteCallback...................................................................................................................... 2014
OptInsertCallback....................................................................................................................... 2014
OptPostUpdateCallback.............................................................................................................. 2015
OptPreUpdateCallback................................................................................................................2016
OptRefreshCallback.................................................................................................................... 2017
SetOutputParmDate.................................................................................................................... 2017
SetOutputParmDateArray........................................................................................................... 2018
SetOutputParmDateTime............................................................................................................ 2018
SetOutputParmDateTimeArray...................................................................................................2019
SetOutputParmNumber...............................................................................................................2020
SetOutputParmNumberArray......................................................................................................2020
SetOutputParmInt........................................................................................................................2021
SetOutputParmIntArray.............................................................................................................. 2021
SetOutputParmString.................................................................................................................. 2022
SetOutputParmStringArray.........................................................................................................2022
SetOutputParmTime....................................................................................................................2023
SetOutputParmTimeArray.......................................................................................................... 2024
OptInterface Class Methods..............................................................................................................2024
ActivateModel.............................................................................................................................2024
ActivateObjective........................................................................................................................2025
DeactivateModel......................................................................................................................... 2026
DumpMsgToLog.........................................................................................................................2027
FindRowNum..............................................................................................................................2028
GetSolution................................................................................................................................. 2029
GetSolutionDetail........................................................................................................................2030
IsModelActive.............................................................................................................................2032
RestoreBounds............................................................................................................................ 2032
SetVariableBounds...................................................................................................................... 2033
SetVariableType.......................................................................................................................... 2035
Solve........................................................................................................................................... 2036
Chapter 37: Page Class......................................................................................................................... 2039
Understanding Page Class................................................................................................................ 2039
Shortcut Considerations.................................................................................................................... 2039
Data Type of a Page Object............................................................................................................. 2039
Scope of a Page Object.................................................................................................................... 2039
Page Class Built-in Function............................................................................................................ 2040
Page Class Properties........................................................................................................................2040
CopyURLLink............................................................................................................................ 2040
CustomizePageLink.................................................................................................................... 2040
DisplayOnly................................................................................................................................ 2041
HelpLink..................................................................................................................................... 2041
Name........................................................................................................................................... 2041
NewWindowLink........................................................................................................................2042
Visible......................................................................................................................................... 2042
Chapter 38: PeopleSoft Search Framework Classes.......................................................................... 2045
Understanding the PeopleSoft Search Framework Classes.............................................................. 2045
Instantiating a SearchQuery Object.................................................................................................. 2045
Importing PeopleSoft Search Framework Classes.....................................................................2046
Performing a Simple Search............................................................................................................. 2046
PeopleSoft Search Framework Classes Reference........................................................................... 2048
PeopleSoft Search Framework Classes Built-in Functions.............................................................. 2049
AddConfiguration Class....................................................................................................................2049
AddConfiguration Class Methods.....................................................................................................2049
AddConfiguration....................................................................................................................... 2049
GetAddPageInstructionsInfo.......................................................................................................2050
GetAddPageTitleInfo.................................................................................................................. 2050
GetAddSearchRecord..................................................................................................................2051
GetConfiguredAppClass............................................................................................................. 2051
GetConfiguredAppClassMethod.................................................................................................2052
GetConfiguredApppackage.........................................................................................................2052
GetConfiguredClassPath.............................................................................................................2053
GetCriteriaFields.........................................................................................................................2053
GetPageLinksList........................................................................................................................2054
AssociatedFacet Class....................................................................................................................... 2054
AssociatedFacet Class Methods........................................................................................................2054
getAssociatedFacetValue............................................................................................................ 2054
DashboardFilters Class......................................................................................................................2055
DashboardFilters Class Methods...................................................................................................... 2055
GetDashboardFilter.....................................................................................................................2055
FacetFilter Class................................................................................................................................2057
FacetFilter Class Methods................................................................................................................ 2057
clearFacetSorting........................................................................................................................ 2057
FacetFilter................................................................................................................................... 2058
getFacetSortings..........................................................................................................................2059
getFacetValuesSortType..............................................................................................................2059
hasCustomFacetSorting.............................................................................................................. 2060
sortFacetValuesAlphabetically....................................................................................................2060
sortFacetValuesByDocumentCount............................................................................................ 2061
sortFacetValuesByType...............................................................................................................2061
sortFacetValuesNumerically....................................................................................................... 2062
FacetFilter Class Properties.............................................................................................................. 2063
AssociationValue.........................................................................................................................2063
FacetLabel...................................................................................................................................2063
FacetName.................................................................................................................................. 2063
Path............................................................................................................................................. 2063
FacetNode Class................................................................................................................................2064
FacetNode Class Methods................................................................................................................ 2064
addChild...................................................................................................................................... 2064
FacetNode................................................................................................................................... 2065
getChildNodes.............................................................................................................................2065
GetRequestedAttributes.............................................................................................................. 2087
GetRequestedFields.................................................................................................................... 2088
SearchCategory........................................................................................................................... 2088
SearchCategory Class Properties...................................................................................................... 2089
DataSourceNames.......................................................................................................................2089
Displayname................................................................................................................................2089
Duplicates....................................................................................................................................2090
IsDeployed.................................................................................................................................. 2090
Name........................................................................................................................................... 2090
ServiceName............................................................................................................................... 2090
SearchConfiguration Class................................................................................................................2091
SearchConfiguration Class Methods.................................................................................................2091
CollapseSearchCriteriaAfterSrch................................................................................................2091
GetConfigSrchId......................................................................................................................... 2091
GetConfiguredImageRecord....................................................................................................... 2092
GetConfiguredImageRecordField...............................................................................................2092
GetConfiguredSearchType..........................................................................................................2093
GetCriteriaFields.........................................................................................................................2093
GetDefaultSrchLookup............................................................................................................... 2095
GetDefaultSrchLookupForSFF...................................................................................................2095
GetESCriteriaFields.................................................................................................................... 2096
GetMaxSrchResults.................................................................................................................... 2096
GetPageLinksList........................................................................................................................2097
GetRecentSearchesCount............................................................................................................2097
GetRecentSearchesNamingFormat............................................................................................. 2097
GetResultFields...........................................................................................................................2098
GetSavedSearchesCount............................................................................................................. 2098
GetSavedSearchesNamingFormat.............................................................................................. 2099
GetSearchCriteriaDisplayPattern................................................................................................ 2099
GetSearchDefinition....................................................................................................................2100
GetSearchPageInstructionsInfo...................................................................................................2100
GetSearchPageTitleInfo.............................................................................................................. 2101
GetSearchRecord........................................................................................................................ 2101
GetSrchLookupType................................................................................................................... 2102
IsAutoSearchEnabled..................................................................................................................2102
IsSearchPrimaryAction............................................................................................................... 2103
SearchConfiguration................................................................................................................... 2103
ShowRelatedActions...................................................................................................................2104
SearchFactory Class.......................................................................................................................... 2104
SearchFactory Class Methods...........................................................................................................2104
CreateQueryService.................................................................................................................... 2104
SearchFactory..............................................................................................................................2105
SearchFactory Class Properties.........................................................................................................2106
DEFAULTSERVICE...................................................................................................................2106
SearchField Class.............................................................................................................................. 2106
SearchField Class Methods...............................................................................................................2106
getAsDate....................................................................................................................................2106
getAsDateTime........................................................................................................................... 2107
getAsInteger................................................................................................................................ 2107
getAsNumber.............................................................................................................................. 2108
SearchField Class Properties.............................................................................................................2108
Name........................................................................................................................................... 2109
Type.............................................................................................................................................2109
Value........................................................................................................................................... 2109
SearchFieldCollection Class............................................................................................................. 2109
SearchFieldCollection Class Methods.............................................................................................. 2110
Count...........................................................................................................................................2110
First............................................................................................................................................. 2110
Item............................................................................................................................................. 2111
ItemByName............................................................................................................................... 2111
Next.............................................................................................................................................2112
SearchFilter Class..............................................................................................................................2112
SearchFilter Class Methods.............................................................................................................. 2113
setDateFilter................................................................................................................................ 2113
setDateTimeFilter........................................................................................................................2113
SearchFilter Class Properties............................................................................................................ 2114
Field............................................................................................................................................ 2114
FilterConnector........................................................................................................................... 2115
Filters.......................................................................................................................................... 2115
Operator...................................................................................................................................... 2115
Value........................................................................................................................................... 2116
SearchFilterGenerator Class..............................................................................................................2116
Related SearchFilterGenerator Methods.................................................................................... 2117
SearchFilterGenerator Class Methods.............................................................................................. 2118
AddQueryFilter........................................................................................................................... 2118
AfterDate.....................................................................................................................................2119
AfterDateTime............................................................................................................................ 2120
AfterDateValue............................................................................................................................2120
AppendFilter............................................................................................................................... 2121
BeforeDate.................................................................................................................................. 2122
BeforeDateTime..........................................................................................................................2122
BeforeDateValue......................................................................................................................... 2123
BoostCompositeFilterScore........................................................................................................ 2124
BoostFilterScore..........................................................................................................................2125
ContainsKeyWords..................................................................................................................... 2126
ContainsPartialWord................................................................................................................... 2127
ContainsPhrase............................................................................................................................2127
ContainsWord..............................................................................................................................2128
DateToDatetime.......................................................................................................................... 2129
EndMatchAll...............................................................................................................................2129
EndMatchAny............................................................................................................................. 2130
EqualsDate.................................................................................................................................. 2130
EqualsDateTime..........................................................................................................................2131
EqualsDateValue......................................................................................................................... 2131
EqualsNumber.............................................................................................................................2132
EqualsString................................................................................................................................ 2133
GetFilter...................................................................................................................................... 2133
GreaterThanEqualsNumber........................................................................................................ 2134
GreaterThanNumber................................................................................................................... 2134
LessThanEqualsNumber............................................................................................................. 2135
LessThanNumber........................................................................................................................ 2136
MatchAll..................................................................................................................................... 2136
MatchAllReturnTrue................................................................................................................... 2137
MatchAny................................................................................................................................... 2138
MatchAnyReturnTrue................................................................................................................. 2138
NotContainsWord........................................................................................................................2139
NotEqualsDate............................................................................................................................ 2140
NotEqualsDateTime....................................................................................................................2140
NotEqualsDateValue................................................................................................................... 2141
NotEqualsNumber.......................................................................................................................2142
NotEqualsString.......................................................................................................................... 2142
OnOrAfterDate............................................................................................................................2143
OnOrAfterDateTime................................................................................................................... 2143
OnOrAfterDateValue.................................................................................................................. 2144
OnOrBeforeDate......................................................................................................................... 2145
OnOrBeforeDateTime.................................................................................................................2145
OnOrBeforeDateValue................................................................................................................ 2146
SearchFilterGenerator................................................................................................................. 2147
setBoostMode............................................................................................................................. 2147
setBoostModeAverage................................................................................................................ 2148
setBoostModeMaximum.............................................................................................................2149
setBoostModeMinimum..............................................................................................................2149
setBoostModeSum...................................................................................................................... 2150
SetQueryFilter.............................................................................................................................2151
StringDateToDatetime................................................................................................................ 2151
SearchFilterGenerator Class Properties............................................................................................ 2152
BoostWithoutFilter......................................................................................................................2152
Search Filter Generator Examples.................................................................................................... 2153
Creating Complex Filters........................................................................................................... 2153
Score Boosting Examples...........................................................................................................2155
SearchQuery Class............................................................................................................................ 2159
SearchQuery Class Methods............................................................................................................. 2160
BrowseFacetNodes......................................................................................................................2160
Execute........................................................................................................................................2161
FormatDateFilter.........................................................................................................................2162
FormatDateTimeFilter.................................................................................................................2163
SearchQuery Class Properties...........................................................................................................2163
Categories....................................................................................................................................2164
ContainsAnyWords..................................................................................................................... 2164
ContainsExactPhrase...................................................................................................................2164
ClusteringSpecs...........................................................................................................................2165
DisableScoreSort.........................................................................................................................2165
DocsRequested............................................................................................................................2165
EnableExtendedFilterOperators.................................................................................................. 2166
FacetFilters..................................................................................................................................2166
FilterConnector........................................................................................................................... 2167
Filters.......................................................................................................................................... 2167
GroupingSpec............................................................................................................................. 2167
IncludeImages............................................................................................................................. 2167
Language.....................................................................................................................................2168
MarkDuplicates...........................................................................................................................2168
MaximumNumberOfFacetValues............................................................................................... 2168
MinimumDocumentsPerFacetValue........................................................................................... 2169
ProgrammaticSearchString......................................................................................................... 2169
QueryText....................................................................................................................................2169
RemoveDuplicates...................................................................................................................... 2170
RequestedFields.......................................................................................................................... 2170
ReturnFacetValueCounts.............................................................................................................2170
SearchWithIn...............................................................................................................................2171
SortFacetValuesBy...................................................................................................................... 2171
SortSpecs.....................................................................................................................................2171
StartIndex.................................................................................................................................... 2172
TopN............................................................................................................................................2172
WithoutWords............................................................................................................................. 2172
SearchQueryCollection Class............................................................................................................2172
SearchQueryCollection Class Methods............................................................................................ 2172
addQuery.....................................................................................................................................2173
Count...........................................................................................................................................2173
ExecuteQuerys............................................................................................................................ 2174
First............................................................................................................................................. 2174
Item............................................................................................................................................. 2175
Next.............................................................................................................................................2175
SearchQueryService Class................................................................................................................ 2176
SearchQueryService Class Methods................................................................................................. 2176
CreateQuery................................................................................................................................ 2176
CreateQueryCollection................................................................................................................2177
ExecuteQuery..............................................................................................................................2177
ExecuteQuerys............................................................................................................................ 2178
SearchResult Class............................................................................................................................ 2178
SearchResult Class Methods.............................................................................................................2179
GetCategoryNames..................................................................................................................... 2179
GetContentLength.......................................................................................................................2179
GetCustomAttributes.................................................................................................................. 2180
GetImageUrl................................................................................................................................2180
GetLanguage............................................................................................................................... 2181
GetLastModified......................................................................................................................... 2182
GetScore......................................................................................................................................2182
GetSignature................................................................................................................................2182
GetSummary............................................................................................................................... 2183
GetTitle....................................................................................................................................... 2183
GetUrlLink.................................................................................................................................. 2184
HasDuplicate...............................................................................................................................2184
IsDuplicate.................................................................................................................................. 2185
SearchResultCollection Class........................................................................................................... 2185
SearchResultCollection Class Methods............................................................................................ 2186
First............................................................................................................................................. 2186
GetDocumentCount.................................................................................................................... 2186
GetDuplicatesMarked................................................................................................................. 2187
GetDuplicatesRemoved.............................................................................................................. 2187
GetEstimatedHitCount................................................................................................................ 2188
GetFacetNodes............................................................................................................................ 2188
GetQueryObject.......................................................................................................................... 2189
GetQueryText..............................................................................................................................2189
GetStartIndex.............................................................................................................................. 2190
Item............................................................................................................................................. 2190
Next.............................................................................................................................................2191
SearchAuthnQueryFilter Class..........................................................................................................2191
SearchAuthnQueryFilter Class Methods.......................................................................................... 2192
evaluateAttrValues...................................................................................................................... 2192
Additional Search Examples.............................................................................................................2193
Searching Using Facets.............................................................................................................. 2193
Chapter 39: Portal Registry Classes.................................................................................................... 2199
Understanding the Portal Registry....................................................................................................2199
Folders.........................................................................................................................................2199
Content References.....................................................................................................................2200
Nodes.......................................................................................................................................... 2200
Security....................................................................................................................................... 2201
Attributes.....................................................................................................................................2201
Additional Portal Objects........................................................................................................... 2201
Using the Portal Registry API..........................................................................................................2202
Using Security...................................................................................................................................2202
Portal Registry Object Properties...............................................................................................2202
Accessing Portal Registry Objects............................................................................................. 2203
Using PermissionValue, RolePermissionValue, Cascading Permissions and
CascadingRolePermissions......................................................................................................... 2203
Working With ValidFrom and ValidTo.............................................................................................2206
Doing Error Handling....................................................................................................................... 2206
Understanding the Life Cycle of a PortalRegistry Object................................................................2207
Using Content References................................................................................................................ 2209
UsageType...................................................................................................................................2209
TemplateType..............................................................................................................................2211
URLType..................................................................................................................................... 2211
Nodes and URL..........................................................................................................................2212
Naming Conventions.........................................................................................................................2214
Deleting Content Considerations...................................................................................................... 2214
Saving Content Considerations.........................................................................................................2214
Data Type of a PortalRegistry Object.............................................................................................. 2215
Scope of a PortalRegistry Object..................................................................................................... 2215
PortalRegistry Reference.................................................................................................................. 2216
Session Class Methods......................................................................................................................2216
FindPortalRegistries....................................................................................................................2216
GetActualRemoteNodes..............................................................................................................2217
GetLocalNode............................................................................................................................. 2218
GetNodes.....................................................................................................................................2218
GetPortalRegistry........................................................................................................................2219
GetRemoteNodes........................................................................................................................ 2219
PortalRegistry Class.......................................................................................................................... 2220
PortalRegistry Class Methods...........................................................................................................2220
Close........................................................................................................................................... 2220
CopyObject................................................................................................................................. 2221
Create.......................................................................................................................................... 2222
CreateContentRefLink................................................................................................................ 2223
CreateRemote..............................................................................................................................2224
Delete.......................................................................................................................................... 2225
DeleteHomepage.........................................................................................................................2226
FindCRefByName.......................................................................................................................2227
FindCRefByURL........................................................................................................................ 2228
FindCRefForURL....................................................................................................................... 2229
FindCRefLinkByName............................................................................................................... 2230
FindFolderByName.....................................................................................................................2231
FindPgltByName.........................................................................................................................2232
GetAbsoluteContentURL............................................................................................................2233
GetDefaultHPTabOID.................................................................................................................2234
GetQualifiedURL........................................................................................................................2234
GrantPermissionForComponent..................................................................................................2234
GrantPermissionForScript...........................................................................................................2236
Open............................................................................................................................................ 2237
PermissionListDelete.................................................................................................................. 2238
PermissionListSaveAs................................................................................................................ 2238
RevokePermissionForComponent.............................................................................................. 2239
RevokePermissionForScript........................................................................................................2240
Save.............................................................................................................................................2241
PortalRegistry Class Properties.........................................................................................................2242
DefaultTemplate..........................................................................................................................2242
Description.................................................................................................................................. 2242
Favorites......................................................................................................................................2242
FolderNavObject.........................................................................................................................2243
Homepage................................................................................................................................... 2243
IsFolderNavigation......................................................................................................................2243
LandingPage................................................................................................................................2243
LandingTabDefinitions............................................................................................................... 2244
Name........................................................................................................................................... 2244
NodeTemplates............................................................................................................................2244
OwnerId...................................................................................................................................... 2244
PageletCategories........................................................................................................................2245
Portals......................................................................................................................................... 2245
RootFolder.................................................................................................................................. 2245
SectionTemplates........................................................................................................................ 2245
TabDefinitions.............................................................................................................................2246
TemplateObject........................................................................................................................... 2246
PortalRegistry Collection.................................................................................................................. 2246
PortalRegistry Collection Methods...................................................................................................2246
First............................................................................................................................................. 2246
Item............................................................................................................................................. 2247
Next.............................................................................................................................................2247
PortalRegistry Collection Property................................................................................................... 2248
Count...........................................................................................................................................2248
Node Class........................................................................................................................................ 2248
Node Class Properties.......................................................................................................................2248
ActiveNode................................................................................................................................. 2248
AppsRelease................................................................................................................................2249
ContentURI................................................................................................................................. 2249
DefaultPortalName......................................................................................................................2249
Description.................................................................................................................................. 2249
IsDefault......................................................................................................................................2249
IsLocal.........................................................................................................................................2250
Name........................................................................................................................................... 2250
NodePassword.............................................................................................................................2250
NodeType.................................................................................................................................... 2250
PortalURI.................................................................................................................................... 2251
ToolsRelease............................................................................................................................... 2251
Node Collection................................................................................................................................ 2251
Node Collection Methods................................................................................................................. 2251
First............................................................................................................................................. 2252
ItemByName............................................................................................................................... 2252
Next.............................................................................................................................................2253
Node Collection Property................................................................................................................. 2253
Count...........................................................................................................................................2253
RemoteNode Collection.................................................................................................................... 2253
RemoteNode Collection Methods.....................................................................................................2254
First............................................................................................................................................. 2254
ItemByName............................................................................................................................... 2254
Next.............................................................................................................................................2255
RemoteNode Collection Property..................................................................................................... 2255
Count...........................................................................................................................................2255
Portal Class........................................................................................................................................2256
Portal Class Method..........................................................................................................................2256
Save.............................................................................................................................................2256
Portal Class Properties...................................................................................................................... 2256
HostNodeName...........................................................................................................................2256
IsLocal.........................................................................................................................................2257
Name........................................................................................................................................... 2257
Portal Collection................................................................................................................................2257
Portal Collection Methods................................................................................................................ 2257
First............................................................................................................................................. 2257
ItemByName............................................................................................................................... 2258
Next.............................................................................................................................................2258
Portal Collection Properties.............................................................................................................. 2259
Count...........................................................................................................................................2259
NodeTemplate Class..........................................................................................................................2259
NodeTemplate Class Properties........................................................................................................ 2259
DefaultTemplate..........................................................................................................................2259
Name........................................................................................................................................... 2260
TemplateObject........................................................................................................................... 2260
NodeTemplate Collection..................................................................................................................2260
NodeTemplate Collection Methods.................................................................................................. 2260
DeleteItem...................................................................................................................................2260
First............................................................................................................................................. 2261
InsertItem.................................................................................................................................... 2261
ItemByName............................................................................................................................... 2262
Next.............................................................................................................................................2262
NodeTemplate Collection Properties................................................................................................ 2263
Count...........................................................................................................................................2263
Folder Class.......................................................................................................................................2263
Folder Class Method.........................................................................................................................2264
Save.............................................................................................................................................2264
Folder Class Properties..................................................................................................................... 2264
AbnContentProvider................................................................................................................... 2264
AbnDataSource........................................................................................................................... 2265
AbnPeopleCode.......................................................................................................................... 2265
Attributes.....................................................................................................................................2265
Author......................................................................................................................................... 2266
AuthorAccess.............................................................................................................................. 2266
Authorized...................................................................................................................................2266
CascadedPermissions.................................................................................................................. 2266
CascadedRolePermissions.......................................................................................................... 2267
ContentRefs.................................................................................................................................2267
CreationDate............................................................................................................................... 2267
DefaultChartNavigation.............................................................................................................. 2268
Description.................................................................................................................................. 2268
Folders.........................................................................................................................................2268
IsMobile...................................................................................................................................... 2268
IsVisible...................................................................................................................................... 2269
Label........................................................................................................................................... 2269
Name........................................................................................................................................... 2269
OwnerId...................................................................................................................................... 2270
ParentName.................................................................................................................................2270
Path............................................................................................................................................. 2270
Permissions................................................................................................................................. 2270
Product........................................................................................................................................ 2271
PublicAccess............................................................................................................................... 2271
RolePermissions..........................................................................................................................2271
SequenceNumber........................................................................................................................ 2272
TreeEffectiveDate....................................................................................................................... 2272
TreeName....................................................................................................................................2272
TreeSetId..................................................................................................................................... 2273
TreeStructureName..................................................................................................................... 2274
TreeUserKeyValue...................................................................................................................... 2275
ValidFrom................................................................................................................................... 2275
ValidTo........................................................................................................................................ 2276
Folder Collection...............................................................................................................................2276
Folder Collection Methods............................................................................................................... 2276
DeleteItem...................................................................................................................................2276
First............................................................................................................................................. 2277
InsertItem.................................................................................................................................... 2277
ItemByName............................................................................................................................... 2278
Next.............................................................................................................................................2279
Folder Collection Property................................................................................................................2279
Count...........................................................................................................................................2280
Content Reference Class................................................................................................................... 2280
Content Reference Class Methods....................................................................................................2280
CreateLink...................................................................................................................................2280
Save.............................................................................................................................................2281
Content Reference Class Properties..................................................................................................2282
AbsoluteContentURL..................................................................................................................2282
AbsolutePortalURL.....................................................................................................................2282
AssignedPagelets........................................................................................................................ 2283
AssignedSections........................................................................................................................ 2283
Attributes.....................................................................................................................................2283
Author......................................................................................................................................... 2283
AuthorAccess.............................................................................................................................. 2284
Authorized...................................................................................................................................2284
CascadedPermissions.................................................................................................................. 2284
CascadedRolePermissions.......................................................................................................... 2285
ContentProvider.......................................................................................................................... 2285
CreationDate............................................................................................................................... 2285
Data............................................................................................................................................. 2286
Description.................................................................................................................................. 2286
DisplayIn.....................................................................................................................................2286
DisplayModalParams.................................................................................................................. 2287
EventName..................................................................................................................................2287
GroupletAltHeight...................................................................................................................... 2288
GroupletAltWidth....................................................................................................................... 2288
GroupletAutoSize........................................................................................................................2288
GroupletContentProvider............................................................................................................ 2289
GroupletContentURL..................................................................................................................2289
GroupletDisableHotspot..............................................................................................................2290
GroupletHeight............................................................................................................................2290
GroupletId................................................................................................................................... 2291
GroupletImageName...................................................................................................................2291
GroupletPageName..................................................................................................................... 2291
GroupletTimer.............................................................................................................................2292
GroupletType.............................................................................................................................. 2292
GroupletURL.............................................................................................................................. 2294
GroupletURLType.......................................................................................................................2294
GroupletWidth.............................................................................................................................2295
HasGrouplet................................................................................................................................ 2295
HtmlText..................................................................................................................................... 2295
IsFluid......................................................................................................................................... 2295
IsMobile...................................................................................................................................... 2296
IsSmallFFOptimized................................................................................................................... 2296
IsVisible...................................................................................................................................... 2296
Label........................................................................................................................................... 2297
Links........................................................................................................................................... 2297
Name........................................................................................................................................... 2297
OwnerId...................................................................................................................................... 2298
ParentName.................................................................................................................................2298
Path............................................................................................................................................. 2298
Permissions................................................................................................................................. 2298
Product........................................................................................................................................ 2299
PublicAccess............................................................................................................................... 2299
QualifiedURL..............................................................................................................................2299
RelativeURL............................................................................................................................... 2299
RolePermissions..........................................................................................................................2300
SequenceNumber........................................................................................................................ 2300
StorageType................................................................................................................................ 2300
Template......................................................................................................................................2302
TemplateObject........................................................................................................................... 2302
TemplateType..............................................................................................................................2302
URL.............................................................................................................................................2303
URLType..................................................................................................................................... 2303
UsageType...................................................................................................................................2304
ValidFrom................................................................................................................................... 2305
ValidTo........................................................................................................................................ 2305
Content Reference Collection........................................................................................................... 2305
Content Reference Collection Methods............................................................................................2306
DeleteItem...................................................................................................................................2306
First............................................................................................................................................. 2307
InsertItem.................................................................................................................................... 2307
ItemByName............................................................................................................................... 2308
Next.............................................................................................................................................2309
Content Reference Collection Property............................................................................................ 2309
Count...........................................................................................................................................2309
AttributeValue Class..........................................................................................................................2310
AttributeValue Class Properties........................................................................................................ 2310
Label........................................................................................................................................... 2310
Name........................................................................................................................................... 2310
Translatable................................................................................................................................. 2311
Value........................................................................................................................................... 2311
Attribute Collection...........................................................................................................................2311
Attribute Collection Methods........................................................................................................... 2312
DeleteItem...................................................................................................................................2312
First............................................................................................................................................. 2313
InsertItem.................................................................................................................................... 2313
ItemByName............................................................................................................................... 2314
Next.............................................................................................................................................2314
Attribute Collection Property............................................................................................................2315
Count...........................................................................................................................................2315
PermissionValue Class...................................................................................................................... 2315
PermissionValue Class Properties.....................................................................................................2316
Cascade....................................................................................................................................... 2316
Name........................................................................................................................................... 2316
PermType.................................................................................................................................... 2316
PermissionValue Collection.............................................................................................................. 2317
PermissionValue Collection Methods............................................................................................... 2317
DeleteItem...................................................................................................................................2317
First............................................................................................................................................. 2318
InsertItem.................................................................................................................................... 2318
ItemByName............................................................................................................................... 2319
Next.............................................................................................................................................2320
PermissionValue Collection Property............................................................................................... 2320
Count...........................................................................................................................................2320
RolePermissionValue Collection.......................................................................................................2320
RolePermissionValue Collection Methods........................................................................................2321
DeleteItem...................................................................................................................................2321
First............................................................................................................................................. 2322
InsertItem.................................................................................................................................... 2322
ItemByName............................................................................................................................... 2323
Next.............................................................................................................................................2323
RolePermissionValue Collection Property........................................................................................2324
Count...........................................................................................................................................2324
ContentReference Links....................................................................................................................2324
ContentReference Links Methods.....................................................................................................2325
Delete.......................................................................................................................................... 2325
Save.............................................................................................................................................2325
ContentReference Links Properties.................................................................................................. 2326
AbsoluteContentURL..................................................................................................................2326
AbsolutePortalURL.....................................................................................................................2326
Attributes.....................................................................................................................................2327
Author......................................................................................................................................... 2327
AuthorAccess.............................................................................................................................. 2327
Authorized...................................................................................................................................2327
CascadedPermissions.................................................................................................................. 2328
CascadedRolePermissions.......................................................................................................... 2328
ContentProvider.......................................................................................................................... 2329
CreationDate............................................................................................................................... 2329
Data............................................................................................................................................. 2329
Description.................................................................................................................................. 2329
IsMobile...................................................................................................................................... 2330
IsVisible...................................................................................................................................... 2330
Label........................................................................................................................................... 2330
Name........................................................................................................................................... 2331
OwnerId...................................................................................................................................... 2331
ParentName.................................................................................................................................2331
Path............................................................................................................................................. 2331
Permissions................................................................................................................................. 2332
Product........................................................................................................................................ 2332
PublicAccess............................................................................................................................... 2332
RelativeURL............................................................................................................................... 2332
RolePermissions..........................................................................................................................2333
SequenceNumber........................................................................................................................ 2333
Template......................................................................................................................................2333
TemplateObject........................................................................................................................... 2334
TemplateType..............................................................................................................................2334
URL.............................................................................................................................................2335
URLType..................................................................................................................................... 2335
UsageType...................................................................................................................................2335
ValidFrom................................................................................................................................... 2336
ValidTo........................................................................................................................................ 2336
Link Collection..................................................................................................................................2336
Link Collection Methods.................................................................................................................. 2336
First............................................................................................................................................. 2336
Next.............................................................................................................................................2337
Link Collection Property.................................................................................................................. 2337
Count...........................................................................................................................................2337
Link Class......................................................................................................................................... 2337
Link Properties.................................................................................................................................. 2338
LinksObjectName....................................................................................................................... 2338
LinksObjectType......................................................................................................................... 2338
LinksPortalName........................................................................................................................ 2338
TabDefinition Class...........................................................................................................................2338
First............................................................................................................................................. 2352
InsertItem.................................................................................................................................... 2353
ItemByName............................................................................................................................... 2354
Next.............................................................................................................................................2355
AssignedPagelet Collection Property............................................................................................... 2355
Count...........................................................................................................................................2355
AssignedSection Class...................................................................................................................... 2355
AssignedSection Class Properties.....................................................................................................2356
AssignedPagelets........................................................................................................................ 2356
Column........................................................................................................................................2356
HideInPersonalize....................................................................................................................... 2356
IsPersonalizable.......................................................................................................................... 2356
IsRenameable.............................................................................................................................. 2357
Label........................................................................................................................................... 2357
LayoutBehavior...........................................................................................................................2357
Name........................................................................................................................................... 2358
Order........................................................................................................................................... 2358
AssignedSections Collection.............................................................................................................2358
AssignedSections Collection Methods............................................................................................. 2358
DeleteItem...................................................................................................................................2358
First............................................................................................................................................. 2359
InsertItem.................................................................................................................................... 2359
ItemByName............................................................................................................................... 2360
Next.............................................................................................................................................2361
AssignedSections Collection Property..............................................................................................2361
Count...........................................................................................................................................2362
AvailableCategory Class................................................................................................................... 2362
AvailableCategory Class Properties..................................................................................................2362
AvailablePagelets........................................................................................................................ 2362
CategoryName............................................................................................................................ 2362
AvailableCategory Collection........................................................................................................... 2363
AvailableCategory Collection Methods............................................................................................ 2363
First............................................................................................................................................. 2363
ItemByName............................................................................................................................... 2363
Next.............................................................................................................................................2364
AvailableCategory Collection Property............................................................................................ 2364
Count...........................................................................................................................................2365
AvailablePagelet Class...................................................................................................................... 2365
AvailablePagelet Class Properties.....................................................................................................2365
CategoryLabel.............................................................................................................................2365
CategoryName............................................................................................................................ 2365
Column........................................................................................................................................2366
LayoutBehavior...........................................................................................................................2366
PageletLabel................................................................................................................................2366
PageletName............................................................................................................................... 2366
Row............................................................................................................................................. 2367
AvailablePagelet Collection.............................................................................................................. 2367
AvailablePagelet Collection Methods............................................................................................... 2367
First............................................................................................................................................. 2367
ItemByName............................................................................................................................... 2368
Next.............................................................................................................................................2368
Description.................................................................................................................................. 2384
EditPageContentProvider............................................................................................................2384
EditPageQueryString.................................................................................................................. 2384
HelpID.........................................................................................................................................2385
IsHideMinimize.......................................................................................................................... 2385
Label........................................................................................................................................... 2385
Name........................................................................................................................................... 2385
OwnerId...................................................................................................................................... 2385
ParentName.................................................................................................................................2386
Permissions................................................................................................................................. 2386
Product........................................................................................................................................ 2386
PublicAccess............................................................................................................................... 2386
QualifiedURL..............................................................................................................................2387
SequenceNumber........................................................................................................................ 2387
URL.............................................................................................................................................2387
URLType..................................................................................................................................... 2388
Pagelet Collection............................................................................................................................. 2388
Pagelet Collection Methods.............................................................................................................. 2388
DeleteItem...................................................................................................................................2388
First............................................................................................................................................. 2389
InsertItem.................................................................................................................................... 2389
ItemByName............................................................................................................................... 2390
Next.............................................................................................................................................2391
Pagelet Collection Property.............................................................................................................. 2391
Count...........................................................................................................................................2392
UserHomepage Class........................................................................................................................ 2392
UserHomepage Class Method...........................................................................................................2392
Save.............................................................................................................................................2392
UserHomepage Class Properties.......................................................................................................2393
Greeting.......................................................................................................................................2393
UserId..........................................................................................................................................2393
UserTab....................................................................................................................................... 2393
UserTab Class....................................................................................................................................2393
UserTab Class Properties.................................................................................................................. 2394
ColumnLayout............................................................................................................................ 2394
Label........................................................................................................................................... 2394
QualifiedURL..............................................................................................................................2394
SelectedPagelets..........................................................................................................................2395
SequenceNumber........................................................................................................................ 2395
TabName..................................................................................................................................... 2395
UserTab Collection............................................................................................................................2395
UserTab Collection Methods............................................................................................................ 2395
DeleteItem...................................................................................................................................2396
First............................................................................................................................................. 2396
InsertItem.................................................................................................................................... 2397
ItemByName............................................................................................................................... 2397
Next.............................................................................................................................................2398
UserTab Collection Property.............................................................................................................2398
Count...........................................................................................................................................2398
SelectedPagelet Class........................................................................................................................2399
SelectedPagelet Class Properties...................................................................................................... 2399
CategoryName............................................................................................................................ 2399
Column........................................................................................................................................2399
IsMinimized................................................................................................................................ 2400
PageletName............................................................................................................................... 2400
Row............................................................................................................................................. 2400
SelectedPagelet Collection................................................................................................................2400
SelectedPagelet Collection Methods.................................................................................................2400
DeleteItem...................................................................................................................................2400
First............................................................................................................................................. 2401
InsertItem.................................................................................................................................... 2402
ItemByName............................................................................................................................... 2402
Next.............................................................................................................................................2403
SelectedPagelet Collection Property.................................................................................................2403
Count...........................................................................................................................................2403
Favorite Class....................................................................................................................................2404
Favorite Class Properties.................................................................................................................. 2404
CRefName...................................................................................................................................2404
IsFolder....................................................................................................................................... 2404
Label........................................................................................................................................... 2404
QualifiedURL..............................................................................................................................2405
SequenceNumber........................................................................................................................ 2405
URL.............................................................................................................................................2405
Favorite Collection............................................................................................................................2405
Favorite Collection Methods............................................................................................................ 2405
DeleteItem...................................................................................................................................2406
First............................................................................................................................................. 2406
InsertFolderItem..........................................................................................................................2407
InsertItem.................................................................................................................................... 2407
ItemByLabel................................................................................................................................2408
Next.............................................................................................................................................2409
Save.............................................................................................................................................2409
Favorite Collection Property.............................................................................................................2409
Count...........................................................................................................................................2410
Portal Registry Classes Example......................................................................................................2410
Changing PortalRegistry Properties........................................................................................... 2410
Adding a ContentProvider..........................................................................................................2411
Adding a Folder..........................................................................................................................2413
Adding a Content Reference...................................................................................................... 2415
Setting Permissions Using the PermissionValue Object............................................................ 2418
Using Attributes..........................................................................................................................2420
Visual Basic Example.................................................................................................................2420
C/C++ Example.......................................................................................................................... 2421
Chapter 40: PostReport Class.............................................................................................................. 2425
PostReport Class Overview.............................................................................................................. 2425
Determining the Distribution List.....................................................................................................2425
Data Type of a PostReport Object....................................................................................................2425
Scope of a PostReport Object.......................................................................................................... 2426
PostReport Class Built-in Function.................................................................................................. 2426
PostReport Class Methods................................................................................................................ 2426
AddDistributionOption............................................................................................................... 2426
Put............................................................................................................................................... 2427
ProcessType................................................................................................................................ 2467
RunControlID............................................................................................................................. 2468
RunDateTime.............................................................................................................................. 2468
RunLocation................................................................................................................................2469
RunRecurrence............................................................................................................................2469
RunStatus.................................................................................................................................... 2470
Status...........................................................................................................................................2471
TimeZone.................................................................................................................................... 2471
ProcessRequest Class Examples....................................................................................................... 2471
Scheduling a Single Process...................................................................................................... 2472
Scheduling a Job Where Job Item Changes Are Not Made...................................................... 2472
Scheduling a Job Where Job Item Changes Are Made............................................................. 2472
PrcsApi Class.................................................................................................................................... 2473
Scope of a PrcsApi Object............................................................................................................... 2473
Data Type of a PrcsApi Object........................................................................................................ 2474
How to Import the PrcsApi Class.................................................................................................... 2474
How to Create a PrcsApi Object...................................................................................................... 2474
PrcsApi Class Constructor................................................................................................................ 2474
PrcsApi........................................................................................................................................2475
PrcsApi Class Methods.....................................................................................................................2475
getAllFileNames......................................................................................................................... 2475
notifyToWindow......................................................................................................................... 2476
Chapter 42: PSSpreadsheet Class........................................................................................................ 2479
Understanding the PSSpreadsheet Class.......................................................................................... 2479
Instantiating the PSSpreadsheet Class....................................................................................... 2479
PSSpreadsheet Class Methods.......................................................................................................... 2479
CreateSheet................................................................................................................................. 2480
DeleteSheet................................................................................................................................. 2480
GetFileContent............................................................................................................................ 2481
InsertColumns............................................................................................................................. 2481
InsertRows.................................................................................................................................. 2482
Open............................................................................................................................................ 2483
RangeApplyStyle........................................................................................................................ 2483
RangeColOutline.........................................................................................................................2484
RangeRowOutline.......................................................................................................................2485
Save.............................................................................................................................................2486
SaveAs........................................................................................................................................ 2486
SetActiveSheetName.................................................................................................................. 2487
SetCellDate................................................................................................................................. 2488
SetCellFormula........................................................................................................................... 2488
SetCellHeaderStyle..................................................................................................................... 2489
SetCellHyperlink.........................................................................................................................2490
SetCellNumber............................................................................................................................2491
SetCellString............................................................................................................................... 2492
SetColumnWidth.........................................................................................................................2493
SetRowSetData........................................................................................................................... 2493
SetSheetActivate......................................................................................................................... 2494
Chapter 43: PTDirectTransferObject Class........................................................................................2497
Understanding the PTDirectTransferObject Class............................................................................2497
PTDirectTransferObject Class Methods........................................................................................... 2497
SetAuth....................................................................................................................................... 2497
SetBody.......................................................................................................................................2498
SetDocId..................................................................................................................................... 2498
SetHeader.................................................................................................................................... 2499
SetIndex...................................................................................................................................... 2500
SetMethod................................................................................................................................... 2500
SetOption.................................................................................................................................... 2501
SetURL....................................................................................................................................... 2502
SyncTransfer............................................................................................................................... 2502
Reset............................................................................................................................................2503
PTDirectTransferObject Class Built-in Functions............................................................................2503
Chapter 44: PTOCIInferenceSupervised Class.................................................................................. 2505
Understanding the PTOCIInferenceSupervised Class...................................................................... 2505
PTOCIInferenceSupervised Class Methods......................................................................................2505
PredictRun...................................................................................................................................2505
Chapter 45: Push Notification Classes................................................................................................ 2507
Understanding the PSEvent Class.................................................................................................... 2507
Instantiating the PSEvent Class................................................................................................. 2507
PSEvent Class Methods.................................................................................................................... 2507
AddRecipient.............................................................................................................................. 2508
AddRecipients.............................................................................................................................2508
GetRecipients.............................................................................................................................. 2509
GetRowSetData...........................................................................................................................2510
GetValueOfKey...........................................................................................................................2511
Publish.........................................................................................................................................2511
RemoveRecipients...................................................................................................................... 2512
SetKeyValuePair......................................................................................................................... 2513
SetRowSetData........................................................................................................................... 2514
Subscribe.....................................................................................................................................2515
Unsubscribe.................................................................................................................................2516
PTNotification Class......................................................................................................................... 2517
PTNotification Class Methods..........................................................................................................2517
AddAction...................................................................................................................................2517
AddAttachment........................................................................................................................... 2517
AddHeader.................................................................................................................................. 2518
AddRecipient.............................................................................................................................. 2518
AddRecipients.............................................................................................................................2519
AddTextAttachment.................................................................................................................... 2519
AddTextMedia............................................................................................................................ 2521
DisableIndividualMail................................................................................................................ 2521
EnableTracking........................................................................................................................... 2522
GenerateKey................................................................................................................................2522
GetFailedPhoneNumbers............................................................................................................ 2523
GetInvalidMailAddresses............................................................................................................2523
GetMailErrorDescription............................................................................................................ 2524
GetMailErrorDetails....................................................................................................................2524
GetNotificationStatus..................................................................................................................2525
GetSentMailAddresses................................................................................................................2526
GetSentToPhoneNumbers........................................................................................................... 2527
GetTextMsgCount.......................................................................................................................2527
GetUnsentMailAddresses............................................................................................................2527
GetUserNotificationStatus.......................................................................................................... 2528
LogTextMessageSID...................................................................................................................2529
NotifyHeadersOnly..................................................................................................................... 2530
NotifyOnDelay............................................................................................................................2530
NotifyOnError.............................................................................................................................2531
NotifyOnSuccess.........................................................................................................................2531
PTNotification.............................................................................................................................2532
Send.............................................................................................................................................2533
SetBounceTo............................................................................................................................... 2533
SetCategory.................................................................................................................................2534
SetMessage..................................................................................................................................2534
SetMsgKey..................................................................................................................................2535
SetOnClickUrl.............................................................................................................................2536
SetPriority................................................................................................................................... 2536
SetReplyTo..................................................................................................................................2537
SetSender.................................................................................................................................... 2537
SetSMTPParam...........................................................................................................................2537
SetSubject....................................................................................................................................2538
SetTimeToWait............................................................................................................................2538
SetURLIdForText........................................................................................................................2539
NotificationManager Class................................................................................................................2539
NotificationManager Class Methods................................................................................................ 2540
AddPersonalizationList...............................................................................................................2540
AddPersonalizationLists............................................................................................................. 2541
ClearPersonalizationList............................................................................................................. 2541
Delete.......................................................................................................................................... 2542
DisableMail.................................................................................................................................2542
DisablePush.................................................................................................................................2543
DisableText................................................................................................................................. 2543
EnableMail.................................................................................................................................. 2544
EnablePersonalization.................................................................................................................2545
EnablePush..................................................................................................................................2545
EnableText.................................................................................................................................. 2546
GetCategory................................................................................................................................ 2546
GetDescription............................................................................................................................ 2547
GetEventName............................................................................................................................ 2547
GetOwnerDescr...........................................................................................................................2548
GetOwnerId.................................................................................................................................2548
IsMailAvailable........................................................................................................................... 2549
IsMailDefault.............................................................................................................................. 2549
IsMandatory................................................................................................................................ 2550
IsNew.......................................................................................................................................... 2550
IsPersonalizationAllowed........................................................................................................... 2551
IsPersonalized............................................................................................................................. 2551
IsPushAvailable...........................................................................................................................2551
IsPushDefault.............................................................................................................................. 2552
IsTextAvailable........................................................................................................................... 2552
IsTextDefault...............................................................................................................................2553
NotificationManager................................................................................................................... 2553
RemoveFromPersonalizationList................................................................................................2554
ResetUserPersonalization............................................................................................................2555
ResetUserPersonalizations.......................................................................................................... 2555
Save.............................................................................................................................................2556
SetDescription.............................................................................................................................2556
SetEventName.............................................................................................................................2557
SetFuncCategory.........................................................................................................................2557
SetMailAvailable.........................................................................................................................2558
SetMandatory.............................................................................................................................. 2558
SetOwnerId................................................................................................................................. 2559
SetPushAvailable........................................................................................................................ 2559
SetTextAvailable......................................................................................................................... 2560
Chapter 46: Query Classes................................................................................................................... 2561
Understanding Query Classes........................................................................................................... 2561
Collections in the Query Classes......................................................................................................2561
Life Cycle of a Query.......................................................................................................................2562
Query API Overview........................................................................................................................ 2563
Query...........................................................................................................................................2564
QuerySelect.................................................................................................................................2564
QueryRecords..............................................................................................................................2565
QueryOutputFields......................................................................................................................2565
QuerySelectedFields................................................................................................................... 2565
QueryCriteria.............................................................................................................................. 2565
QueryDBRecords and QueryDBRecordFields...........................................................................2566
Working With Query Criteria and Expressions................................................................................2566
Setting the Expression Type.......................................................................................................2566
Adding New Expressions........................................................................................................... 2567
Adding an Operator and Expression 2 Dependencies............................................................... 2567
Setting a Drilling URL...............................................................................................................2568
Query Monitor...................................................................................................................................2570
Using Query Metadata...................................................................................................................... 2570
Running a Query...............................................................................................................................2571
Specifying the User’s Language................................................................................................ 2572
Query Security.................................................................................................................................. 2572
Error Handling With Query Classes.................................................................................................2573
Understanding QueryOutputFields and QuerySelectedFields.......................................................... 2574
Understanding Having Criteria......................................................................................................... 2574
Data Type of Query Objects.............................................................................................................2574
Scope of Query Objects....................................................................................................................2575
Query Classes Reference.................................................................................................................. 2575
Session Class Methods in the Query API........................................................................................ 2576
AdvancedSearchQueries............................................................................................................. 2576
AdvancedSearchRecords............................................................................................................ 2579
FindQueryDBRecords.................................................................................................................2581
FindQueries.................................................................................................................................2582
FindQueriesDateRange............................................................................................................... 2583
GetQuery.....................................................................................................................................2584
GetQuerySecurityProfile.............................................................................................................2584
SearchQueryDBRecords............................................................................................................. 2585
SearchPrivateQueries.................................................................................................................. 2586
SearchPublicQueries................................................................................................................... 2588
Query Collection............................................................................................................................... 2590
Query Collection Methods................................................................................................................2590
First............................................................................................................................................. 2591
Item............................................................................................................................................. 2591
ItemByName............................................................................................................................... 2592
Next.............................................................................................................................................2592
Query Collection Property................................................................................................................ 2593
Count...........................................................................................................................................2593
Query Class....................................................................................................................................... 2593
Query Class Methods........................................................................................................................2593
AddPrompt.................................................................................................................................. 2594
AddQuerySelect.......................................................................................................................... 2594
AddTrackingURL....................................................................................................................... 2595
Close........................................................................................................................................... 2596
CopyPrivateQuery.......................................................................................................................2597
Create.......................................................................................................................................... 2598
Delete.......................................................................................................................................... 2599
DeletePrompt.............................................................................................................................. 2600
FindExpression........................................................................................................................... 2601
FormatBinaryResultString.......................................................................................................... 2601
FormatResultString..................................................................................................................... 2602
GetTreePromptCount.................................................................................................................. 2604
Open............................................................................................................................................ 2604
Rename........................................................................................................................................2605
RunToFile....................................................................................................................................2606
RunToRowset..............................................................................................................................2609
RunToString................................................................................................................................ 2611
Save.............................................................................................................................................2614
SetTrackingURL......................................................................................................................... 2614
Query Class Properties......................................................................................................................2615
Approved.....................................................................................................................................2616
ApproveOprId............................................................................................................................. 2616
ApproveUserId............................................................................................................................2616
ApproveDtTm............................................................................................................................. 2617
CreateOprId.................................................................................................................................2617
CreateDtTm.................................................................................................................................2617
CreateUserId............................................................................................................................... 2617
Description.................................................................................................................................. 2617
Disabled...................................................................................................................................... 2618
ExecAppName............................................................................................................................ 2618
ExecLogging............................................................................................................................... 2618
Folder.......................................................................................................................................... 2619
LastSQLErrorCode..................................................................................................................... 2619
LastUpdDttm...............................................................................................................................2619
LastUpdOprId............................................................................................................................. 2619
LongDescription..........................................................................................................................2619
Metadata......................................................................................................................................2620
MetaSQL.....................................................................................................................................2620
MoreRowsAvailable....................................................................................................................2620
Name........................................................................................................................................... 2621
OutputUnicode............................................................................................................................ 2621
PDFFont...................................................................................................................................... 2621
Prompts....................................................................................................................................... 2622
PromptRecord............................................................................................................................. 2622
PublicPrivate............................................................................................................................... 2623
QuerySelect.................................................................................................................................2623
QueryStatistics............................................................................................................................ 2623
RunTimePrompts........................................................................................................................ 2624
SQL............................................................................................................................................. 2624
Type.............................................................................................................................................2624
QuerySelect Collection..................................................................................................................... 2625
QuerySelect Collection Methods...................................................................................................... 2625
AddUnion....................................................................................................................................2625
DeleteQuerySelect...................................................................................................................... 2626
First............................................................................................................................................. 2626
Item............................................................................................................................................. 2627
ItemBySelNum............................................................................................................................2627
Next.............................................................................................................................................2628
QuerySelect Collection Property...................................................................................................... 2628
Count...........................................................................................................................................2629
QuerySelect Class............................................................................................................................. 2629
QuerySelect Methods........................................................................................................................ 2630
AddAllFields...............................................................................................................................2630
AddCriteria..................................................................................................................................2631
AddExpression............................................................................................................................ 2631
AddHavingCriteria......................................................................................................................2632
AddQueryOutputField................................................................................................................ 2633
AddQueryRecord........................................................................................................................ 2633
AddQuerySelectedField.............................................................................................................. 2634
DeleteCriteria.............................................................................................................................. 2635
DeleteExpression........................................................................................................................ 2635
DeleteField.................................................................................................................................. 2636
DeleteHavingCriteria.................................................................................................................. 2637
DeleteRecord...............................................................................................................................2637
QuerySelect Properties......................................................................................................................2638
Criteria........................................................................................................................................ 2638
Distinct........................................................................................................................................ 2638
Expressions................................................................................................................................. 2638
HavingCriteria.............................................................................................................................2639
ParentSelectNum.........................................................................................................................2639
QueryOutputFields......................................................................................................................2639
QueryRecords..............................................................................................................................2639
QuerySelectedFields................................................................................................................... 2640
QuerySelects............................................................................................................................... 2640
SelectNum...................................................................................................................................2640
SelectType...................................................................................................................................2640
QueryRecord Collection....................................................................................................................2641
QueryRecord Collection Methods.................................................................................................... 2641
First............................................................................................................................................. 2641
Item............................................................................................................................................. 2642
ItemByAlias................................................................................................................................ 2642
Next.............................................................................................................................................2643
QueryRecord Collection Property.....................................................................................................2643
Count...........................................................................................................................................2643
QueryRecord Class............................................................................................................................2644
Item............................................................................................................................................. 2661
ItemByName............................................................................................................................... 2662
Next.............................................................................................................................................2663
QueryCriteria Collection Property.................................................................................................... 2663
Count...........................................................................................................................................2663
QueryCriteria Class...........................................................................................................................2663
QueryCriteria Class Methods............................................................................................................2664
AddExpr1Expression.................................................................................................................. 2664
AddExpr1Field............................................................................................................................2664
AddExpr2Expression.................................................................................................................. 2665
AddExpr2Field1..........................................................................................................................2666
AddExpr2Field2..........................................................................................................................2666
AddExpr2List..............................................................................................................................2667
AddExpr2Subquery.....................................................................................................................2668
QueryCriteria Class Properties......................................................................................................... 2668
Expr1Expression......................................................................................................................... 2668
Expr1Field...................................................................................................................................2669
Expr1Type...................................................................................................................................2669
Expr2Constant1...........................................................................................................................2670
Expr2Constant2...........................................................................................................................2670
Expr2Expression1....................................................................................................................... 2670
Expr2Expression2....................................................................................................................... 2671
Expr2Field1.................................................................................................................................2671
Expr2Field2.................................................................................................................................2671
Expr2List.....................................................................................................................................2672
Expr2Subquery........................................................................................................................... 2672
Expr2Type...................................................................................................................................2672
Logical........................................................................................................................................ 2675
LParenLvl....................................................................................................................................2676
Name........................................................................................................................................... 2676
Negation...................................................................................................................................... 2676
Operator...................................................................................................................................... 2677
R1ExprNum................................................................................................................................ 2679
R2ExprNum................................................................................................................................ 2679
R1ExprType................................................................................................................................ 2679
R2ExprType................................................................................................................................ 2680
RParenLvl................................................................................................................................... 2680
QueryExpression Collection............................................................................................................. 2680
QueryExpression Collection Methods.............................................................................................. 2680
First............................................................................................................................................. 2680
Item............................................................................................................................................. 2681
ItemByName............................................................................................................................... 2681
Next.............................................................................................................................................2682
QueryExpression Collection Property.............................................................................................. 2682
Count...........................................................................................................................................2683
QueryExpression Class..................................................................................................................... 2683
QueryExpression Class Properties....................................................................................................2683
Aggregate.................................................................................................................................... 2683
BindFlag......................................................................................................................................2684
Decimal....................................................................................................................................... 2684
ExpNum...................................................................................................................................... 2684
IsXlatExpression......................................................................................................................... 2684
Length......................................................................................................................................... 2685
Name........................................................................................................................................... 2685
OutputField................................................................................................................................. 2685
RightExprFlag.............................................................................................................................2685
SelectedField...............................................................................................................................2686
Text..............................................................................................................................................2686
Type.............................................................................................................................................2686
QueryList Class.................................................................................................................................2687
QueryList Class Methods..................................................................................................................2687
AddListValue.............................................................................................................................. 2687
First............................................................................................................................................. 2688
Item............................................................................................................................................. 2688
Next.............................................................................................................................................2689
QueryList Class Property..................................................................................................................2689
Count...........................................................................................................................................2690
QueryListValue Class........................................................................................................................2690
QueryListValue Class Properties...................................................................................................... 2690
IsPrompt...................................................................................................................................... 2690
Value........................................................................................................................................... 2690
QueryRecordHierarchy Collection....................................................................................................2690
QueryRecordHierarchy Collection Methods.................................................................................... 2691
First............................................................................................................................................. 2691
Item............................................................................................................................................. 2691
ItemByName............................................................................................................................... 2692
Next.............................................................................................................................................2693
QueryRecordHierarchy Collection Property.....................................................................................2693
Count...........................................................................................................................................2693
QueryRecordHierarchy Class............................................................................................................2693
QueryRecordHierarchy Class Properties.......................................................................................... 2694
Description.................................................................................................................................. 2694
Level........................................................................................................................................... 2694
Name........................................................................................................................................... 2694
ParentFlag................................................................................................................................... 2694
Query Metadata Collection............................................................................................................... 2695
Query Metadata Collection Methods................................................................................................2695
First............................................................................................................................................. 2695
Item............................................................................................................................................. 2696
ItemByName............................................................................................................................... 2696
Next.............................................................................................................................................2697
Query Metadata Collection Property................................................................................................ 2697
Count...........................................................................................................................................2697
Query Metadata Class.......................................................................................................................2698
Query Metadata Class Properties..................................................................................................... 2698
Name........................................................................................................................................... 2698
Value........................................................................................................................................... 2699
QueryStatistics Class.........................................................................................................................2699
QueryStatistics Class Properties....................................................................................................... 2699
AvgExecTime..............................................................................................................................2699
AvgFetchTime.............................................................................................................................2699
AvgNumRows.............................................................................................................................2700
ExecCount...................................................................................................................................2700
LastExecDtTm............................................................................................................................ 2700
QuerySecurityProfile Class............................................................................................................... 2700
QuerySecurityProfile Class Properties............................................................................................. 2700
AllowAnyJoin............................................................................................................................. 2700
AllowDistinct.............................................................................................................................. 2701
AllowExpressions....................................................................................................................... 2701
AllowSubqueries.........................................................................................................................2701
AllowUnions............................................................................................................................... 2701
ApprovePrivateQuery................................................................................................................. 2701
ApprovePublicQuery.................................................................................................................. 2702
CanCreatePublic..........................................................................................................................2702
CanCreateWorkFlow...................................................................................................................2702
CanModifyQuery........................................................................................................................ 2702
CanRunQuery............................................................................................................................. 2703
CanRunToExcel.......................................................................................................................... 2703
LimitUnapproved........................................................................................................................ 2703
MaxInTreeCriteria.......................................................................................................................2703
MaxJoins..................................................................................................................................... 2703
MaxRowsToFetch....................................................................................................................... 2704
MaxUnapprovedRows................................................................................................................ 2704
QueryDBRecord Collection.............................................................................................................. 2704
QueryDBRecord Collection Methods...............................................................................................2704
First............................................................................................................................................. 2704
Item............................................................................................................................................. 2705
ItemByName............................................................................................................................... 2705
Next.............................................................................................................................................2706
QueryDBRecord Collection Property............................................................................................... 2706
Count...........................................................................................................................................2707
QueryDBRecord Class...................................................................................................................... 2707
QueryDBRecord Class Methods.......................................................................................................2707
QueryDBRecordFieldByIndex....................................................................................................2707
QueryDBRecordFieldByName................................................................................................... 2708
QueryDBRecord Class Properties.....................................................................................................2708
Description.................................................................................................................................. 2708
Name........................................................................................................................................... 2709
QueryDBRecordFields................................................................................................................2709
RecordHierachy.......................................................................................................................... 2709
QueryDBRecordField Collection......................................................................................................2709
QueryDBRecordField Collection Methods.......................................................................................2709
First............................................................................................................................................. 2710
Item............................................................................................................................................. 2710
ItemByName............................................................................................................................... 2711
Next.............................................................................................................................................2711
Sort.............................................................................................................................................. 2712
QueryDBRecordField Collection Property.......................................................................................2712
Count...........................................................................................................................................2713
QueryDBRecordField Class..............................................................................................................2713
QueryDBRecordField Class Method................................................................................................ 2713
GetImageFormat......................................................................................................................... 2713
QueryDBRecordField Class Properties............................................................................................ 2714
Decimal....................................................................................................................................... 2714
Description.................................................................................................................................. 2714
Flag............................................................................................................................................. 2714
Format......................................................................................................................................... 2716
Length......................................................................................................................................... 2717
LongName...................................................................................................................................2717
LookupTableName......................................................................................................................2717
LookupTableRecord....................................................................................................................2717
Name........................................................................................................................................... 2717
Shortname................................................................................................................................... 2717
Type.............................................................................................................................................2718
QueryPrompt Collection................................................................................................................... 2718
QueryPrompt Collection Methods.................................................................................................... 2719
First............................................................................................................................................. 2719
Item............................................................................................................................................. 2719
ItemByName............................................................................................................................... 2720
Next.............................................................................................................................................2720
QueryPrompt Collection Property.................................................................................................... 2721
Count...........................................................................................................................................2721
QueryPrompt Class........................................................................................................................... 2721
QueryPrompt Properties....................................................................................................................2721
EditType...................................................................................................................................... 2722
FieldDecimal...............................................................................................................................2722
FieldFormat.................................................................................................................................2722
FieldLength................................................................................................................................. 2723
FieldName...................................................................................................................................2723
FieldType.................................................................................................................................... 2724
HeadingText................................................................................................................................ 2724
HeadingType............................................................................................................................... 2724
LangCount...................................................................................................................................2725
Name........................................................................................................................................... 2725
PromptRecordFieldName............................................................................................................2725
PromptTable................................................................................................................................ 2725
UniquePromptName....................................................................................................................2726
UseCount.....................................................................................................................................2726
Query Classes Examples...................................................................................................................2726
Creating a New Query............................................................................................................... 2726
Adding Criteria........................................................................................................................... 2728
Using Outer Joins....................................................................................................................... 2733
Chapter 47: Record Class..................................................................................................................... 2735
Understanding Record Class.............................................................................................................2735
Shortcut Considerations.................................................................................................................... 2735
Record Methods Used to Create SQL Statements........................................................................... 2736
Data Type of a Record Object..........................................................................................................2737
Scope of a Record Object.................................................................................................................2737
Record Class Built-in Functions.......................................................................................................2737
Record Class Methods...................................................................................................................... 2737
CompareFields............................................................................................................................ 2737
CopyChangedFieldsTo................................................................................................................2738
CopyFieldsTo.............................................................................................................................. 2739
Delete.......................................................................................................................................... 2742
ExecuteEdits................................................................................................................................2743
GetField.......................................................................................................................................2745
Insert........................................................................................................................................... 2747
Save.............................................................................................................................................2748
SearchClear................................................................................................................................. 2751
SelectByKey................................................................................................................................2752
SelectByKeyEffDt...................................................................................................................... 2754
SetDefault....................................................................................................................................2756
SetEditTable................................................................................................................................ 2756
Update......................................................................................................................................... 2758
Record Class Properties.................................................................................................................... 2760
FieldCount...................................................................................................................................2760
fieldname.....................................................................................................................................2760
IsChanged................................................................................................................................... 2761
IsDeleted..................................................................................................................................... 2761
IsEditError...................................................................................................................................2762
Name........................................................................................................................................... 2762
ParentRow...................................................................................................................................2763
RelLangRecName....................................................................................................................... 2763
SystemIDFieldName...................................................................................................................2763
TimeStampFieldName................................................................................................................ 2764
Chapter 48: Row Class..........................................................................................................................2765
Understanding Row Class.................................................................................................................2765
Shortcut Considerations.................................................................................................................... 2765
Data Type of a Row Object..............................................................................................................2766
Scope of a Row Object.....................................................................................................................2766
Row Class Built-in Function............................................................................................................ 2766
Row Class Methods.......................................................................................................................... 2766
CopyTo........................................................................................................................................2766
GetNextEffRow.......................................................................................................................... 2767
GetPriorEffRow.......................................................................................................................... 2768
GetRecord................................................................................................................................... 2768
GetRowset...................................................................................................................................2770
scrollname................................................................................................................................... 2771
Row Class Properties........................................................................................................................ 2771
ChildCount.................................................................................................................................. 2772
DeleteEnabled............................................................................................................................. 2772
IsChanged................................................................................................................................... 2773
IsDeleted..................................................................................................................................... 2774
IsEditError...................................................................................................................................2774
IsNew.......................................................................................................................................... 2775
ParentRowset.............................................................................................................................. 2775
recname....................................................................................................................................... 2775
RecordCount............................................................................................................................... 2775
RowNumber................................................................................................................................ 2776
Selected....................................................................................................................................... 2776
Style............................................................................................................................................ 2777
Visible......................................................................................................................................... 2777
Chapter 49: Related Content Framework Classes............................................................................. 2779
Understanding the Related Content Framework Classes................................................................. 2779
RCServiceDefinition Class............................................................................................................... 2780
UrlTarget..................................................................................................................................... 2835
RCMapFields Class...........................................................................................................................2835
RCMapFields Class Methods........................................................................................................... 2836
CopyFrom................................................................................................................................... 2836
Save.............................................................................................................................................2837
RCMapFields Class Properties......................................................................................................... 2838
FieldMenuOpt............................................................................................................................. 2838
MapFieldType............................................................................................................................. 2838
MapNullValue............................................................................................................................. 2839
ParameterName...........................................................................................................................2839
PnlFieldName..............................................................................................................................2840
PnlName......................................................................................................................................2840
RefreshService............................................................................................................................ 2841
RCMenuLayout Class....................................................................................................................... 2841
RCMenuLayout Class Methods........................................................................................................2841
AddFolder................................................................................................................................... 2842
CloneForNew.............................................................................................................................. 2843
CloneForNewFull........................................................................................................................2844
Delete.......................................................................................................................................... 2846
DeleteFolder................................................................................................................................2846
DeleteMenuLink......................................................................................................................... 2847
GetFolder.................................................................................................................................... 2848
GetFolderCount...........................................................................................................................2849
GetFolderFromFolderId.............................................................................................................. 2850
Save.............................................................................................................................................2851
RCMenuLayout Class Properties......................................................................................................2851
IsNew.......................................................................................................................................... 2852
LanguageCD............................................................................................................................... 2852
MenuId........................................................................................................................................ 2852
MenuType................................................................................................................................... 2853
PnlFldName................................................................................................................................ 2853
PnlName......................................................................................................................................2854
PortalName..................................................................................................................................2854
PortalObjName............................................................................................................................2854
RCMenuFolder Class........................................................................................................................ 2855
RCMenuFolder Class Methods.........................................................................................................2855
AppendMenuLink....................................................................................................................... 2855
DeleteMenuLink......................................................................................................................... 2856
GetMenuLink.............................................................................................................................. 2857
GetMenuLinkCount.................................................................................................................... 2858
RCMenuFolder Class Properties.......................................................................................................2859
FolderId.......................................................................................................................................2859
FolderLbl.....................................................................................................................................2859
FolderSeqNum............................................................................................................................ 2860
PrntFolderId................................................................................................................................ 2860
RCMenuLink Class...........................................................................................................................2860
RCMenuLink Class Properties......................................................................................................... 2860
InstanceId.................................................................................................................................... 2861
SeqNum.......................................................................................................................................2861
ServiceId..................................................................................................................................... 2861
Additional PeopleCode Examples.................................................................................................... 2861
SybBindInfo................................................................................................................................ 2950
SybFetchInfo...............................................................................................................................2950
TraceFile..................................................................................................................................... 2951
Chapter 54: SOAPDoc Class................................................................................................................ 2953
Understanding theSOAPDoc Class...................................................................................................2953
SOAP Message Exchange Model.....................................................................................................2953
SOAP Message Document................................................................................................................2954
The SOAPDoc Class.........................................................................................................................2955
SOAPDoc Object Creation............................................................................................................... 2956
SOAP Header Section................................................................................................................ 2956
SOAP Envelope Section.............................................................................................................2956
SOAP Body Section................................................................................................................... 2956
SOAP Method Section............................................................................................................... 2957
SOAPDoc Section Access..........................................................................................................2957
PeopleCode to Create a SOAPDoc............................................................................................2958
SOAPDoc Fault Section.............................................................................................................2958
The ValidateSOAPDoc Method........................................................................................................2958
SOAPDoc Objects and Messages.....................................................................................................2959
Data Type of a SOAPDoc Object.................................................................................................... 2959
Scope of a SOAPDoc Object........................................................................................................... 2959
SOAPDoc Built-In Functions........................................................................................................... 2960
SOAPDoc Class Methods.................................................................................................................2960
AddBody..................................................................................................................................... 2960
AddEnvelope...............................................................................................................................2961
AddFault..................................................................................................................................... 2964
AddHeader.................................................................................................................................. 2965
AddMethod................................................................................................................................. 2967
AddParm..................................................................................................................................... 2968
GetParmName.............................................................................................................................2969
GetParmValue............................................................................................................................. 2969
ValidateSOAPDoc.......................................................................................................................2970
SOAPDoc Class Properties...............................................................................................................2971
BodyNode................................................................................................................................... 2971
EnvelopeNode.............................................................................................................................2972
FaultCode.................................................................................................................................... 2972
FaultCodeS..................................................................................................................................2972
FaultString...................................................................................................................................2973
HeaderNode................................................................................................................................ 2973
MethodName...............................................................................................................................2974
MethodNode............................................................................................................................... 2974
ParmCount.................................................................................................................................. 2975
XmlDoc.......................................................................................................................................2975
SOAPDoc Class Examples............................................................................................................... 2975
Creating a SOAP Document...................................................................................................... 2976
Reading an Existing SOAP Document...................................................................................... 2976
Using SOAP XML Text.............................................................................................................2976
Chapter 55: SQL Class..........................................................................................................................2979
Understanding SQL Class.................................................................................................................2979
Using Record Class SQL..................................................................................................................2980
Creating a SQL Definition................................................................................................................2980
Binding and Executing of SQL Statements......................................................................................2981
IsPublished.................................................................................................................................. 3040
IsResizable.................................................................................................................................. 3040
ModalParameters........................................................................................................................ 3041
Name........................................................................................................................................... 3041
Owner..........................................................................................................................................3041
ParentFolder................................................................................................................................ 3041
Permissions................................................................................................................................. 3042
RefreshFrequency....................................................................................................................... 3042
Roles........................................................................................................................................... 3042
ShowingSequence....................................................................................................................... 3043
TargetCrefName..........................................................................................................................3043
Title............................................................................................................................................. 3043
UseInDashboard..........................................................................................................................3044
UseInHomePage..........................................................................................................................3044
UseInNavBar...............................................................................................................................3044
Width...........................................................................................................................................3045
FreeTextTile Class Methods............................................................................................................. 3045
FreeTextTile................................................................................................................................ 3045
FreeTextTile Class Properties........................................................................................................... 3046
Content........................................................................................................................................ 3047
TileAppFilter Class Methods............................................................................................................ 3047
IsTileVisible................................................................................................................................ 3047
Chapter 57: TransformData Class....................................................................................................... 3049
Understanding the TransformData Class.......................................................................................... 3049
Creating a TransformData Object.....................................................................................................3049
TransformData Class Properties....................................................................................................... 3049
DestMsgName.............................................................................................................................3050
DestMsgVersion.......................................................................................................................... 3050
DestNode.....................................................................................................................................3050
RejectTransform..........................................................................................................................3050
RoutingDefnName...................................................................................................................... 3051
SourceMsgName.........................................................................................................................3051
SourceMsgVersion...................................................................................................................... 3051
SourceNode.................................................................................................................................3051
Status...........................................................................................................................................3051
XmlDoc.......................................................................................................................................3052
Chapter 58: Tree Classes.......................................................................................................................3053
Understanding Tree Classes..............................................................................................................3053
Relationships Between Different Tree Classes.................................................................................3055
Collections in the Tree Classes........................................................................................................ 3056
Error Handling With Trees............................................................................................................... 3056
Leaves and Nodes Insert Verification...............................................................................................3057
Restrictions on Trees When Used as a SmartNavigation Data Source............................................ 3058
Data Types for Tree Objects.............................................................................................................3059
Scope of the Tree Objects................................................................................................................ 3059
Tree Classes Implementation............................................................................................................ 3059
Tree Classes Reference..................................................................................................................... 3062
Session Class Methods......................................................................................................................3062
GetTree........................................................................................................................................3062
GetTreeStructure......................................................................................................................... 3063
Branch Collection..............................................................................................................................3063
FirstChildLeaf............................................................................................................................. 3104
FirstChildNode............................................................................................................................3105
HasChildLeaves.......................................................................................................................... 3105
HasChildNodes........................................................................................................................... 3105
HasChildren................................................................................................................................ 3105
HasNextSib................................................................................................................................. 3105
HasPrevSib..................................................................................................................................3106
IsBranched.................................................................................................................................. 3106
IsChanged................................................................................................................................... 3106
IsCut............................................................................................................................................ 3106
IsDeleted..................................................................................................................................... 3106
IsInserted.....................................................................................................................................3107
IsRoot.......................................................................................................................................... 3107
LastChildLeaf..............................................................................................................................3107
LastChildNode............................................................................................................................ 3107
LevelNumber.............................................................................................................................. 3108
Name........................................................................................................................................... 3108
NextSib....................................................................................................................................... 3108
Parent.......................................................................................................................................... 3109
PrevSib........................................................................................................................................ 3109
State.............................................................................................................................................3109
TreeBranchName........................................................................................................................ 3110
TreeEffDt.................................................................................................................................... 3110
TreeName....................................................................................................................................3110
TreeSetId..................................................................................................................................... 3110
TreeUserKeyValue...................................................................................................................... 3111
Type.............................................................................................................................................3111
Tree Class..........................................................................................................................................3111
Tree Class Methods...........................................................................................................................3112
Audit........................................................................................................................................... 3112
AuditByName............................................................................................................................. 3112
Close........................................................................................................................................... 3114
Copy............................................................................................................................................ 3114
Create.......................................................................................................................................... 3116
Delete.......................................................................................................................................... 3118
Exists...........................................................................................................................................3119
FindLeaf...................................................................................................................................... 3120
FindNode.....................................................................................................................................3121
FindRoot..................................................................................................................................... 3122
InsertRoot....................................................................................................................................3123
LeafExists....................................................................................................................................3123
LockTree..................................................................................................................................... 3124
Open............................................................................................................................................ 3125
OpenAsOfDate............................................................................................................................3127
OpenForExport........................................................................................................................... 3128
OpenWholeTree.......................................................................................................................... 3130
NodeExists.................................................................................................................................. 3131
Rename........................................................................................................................................3131
Save.............................................................................................................................................3133
SaveAs........................................................................................................................................ 3134
SaveAsDraft................................................................................................................................ 3135
SaveDraft.................................................................................................................................... 3136
SetImportMode........................................................................................................................... 3137
TreeLocksNumber.......................................................................................................................3138
UnlockTree..................................................................................................................................3139
UpdateLock.................................................................................................................................3140
Tree Class Properties........................................................................................................................ 3141
AllValues.....................................................................................................................................3141
AuditDetails................................................................................................................................ 3141
Branches......................................................................................................................................3141
BranchImageName......................................................................................................................3142
BranchLevel................................................................................................................................ 3142
BranchName................................................................................................................................3142
Category...................................................................................................................................... 3142
Description.................................................................................................................................. 3143
DuplicateLeaves..........................................................................................................................3143
EffDt............................................................................................................................................3143
HasDetailRanges.........................................................................................................................3144
HasLockedBranches....................................................................................................................3144
IsBranched.................................................................................................................................. 3144
IsChanged................................................................................................................................... 3145
IsOpen......................................................................................................................................... 3145
IsQueryTree.................................................................................................................................3145
IsValid......................................................................................................................................... 3146
IsVersionChanged....................................................................................................................... 3146
IsWholeTree................................................................................................................................3146
KeyBranchName.........................................................................................................................3147
KeyEffDt..................................................................................................................................... 3147
KeyName.................................................................................................................................... 3147
KeySetId..................................................................................................................................... 3147
KeyUserKeyValue.......................................................................................................................3148
LeafCount....................................................................................................................................3148
LeafImageName..........................................................................................................................3148
LeafOnClipboard........................................................................................................................ 3148
LevelCount..................................................................................................................................3148
Levels.......................................................................................................................................... 3149
LevelUse..................................................................................................................................... 3149
LockOwner................................................................................................................................. 3150
LockStatus...................................................................................................................................3150
Name........................................................................................................................................... 3151
NodeColImageName...................................................................................................................3151
NodeCount.................................................................................................................................. 3151
NodeExpImageName.................................................................................................................. 3151
NodeOnClipboard....................................................................................................................... 3152
ParentLevel................................................................................................................................. 3152
ParentName.................................................................................................................................3152
PerformanceMethod....................................................................................................................3152
PerformanceSelector................................................................................................................... 3153
PerformanceSelectorOption........................................................................................................ 3154
SetID........................................................................................................................................... 3154
Status...........................................................................................................................................3155
Structure...................................................................................................................................... 3155
StructureName............................................................................................................................ 3155
TreeImageName..........................................................................................................................3156
UserKeyValue............................................................................................................................. 3156
UseUpdateReservation................................................................................................................3156
Tree Structure Class..........................................................................................................................3156
Tree Structure Class Methods...........................................................................................................3157
Close........................................................................................................................................... 3157
Copy............................................................................................................................................ 3157
Create.......................................................................................................................................... 3158
Delete.......................................................................................................................................... 3158
Open............................................................................................................................................ 3159
Rename........................................................................................................................................3159
Save.............................................................................................................................................3160
Tree Structure Class Properties........................................................................................................ 3160
Description.................................................................................................................................. 3160
DetailComponent........................................................................................................................ 3161
DetailField...................................................................................................................................3161
DetailMenu..................................................................................................................................3161
DetailMenuBar............................................................................................................................3162
DetailMenuItem.......................................................................................................................... 3162
DetailMultiNavigate....................................................................................................................3162
DetailPage................................................................................................................................... 3163
DetailRecord............................................................................................................................... 3163
IndirectionMethod.......................................................................................................................3164
KeyName.................................................................................................................................... 3165
LevelComponent.........................................................................................................................3165
LevelMenu.................................................................................................................................. 3165
LevelMenuBar............................................................................................................................ 3165
LevelMenuItem...........................................................................................................................3166
LevelPage....................................................................................................................................3166
LevelRecord................................................................................................................................ 3166
Name........................................................................................................................................... 3166
NodeComponent......................................................................................................................... 3167
NodeField....................................................................................................................................3167
NodeMenu...................................................................................................................................3168
NodeMenuBar.............................................................................................................................3168
NodeMenuItem........................................................................................................................... 3168
NodeMultiNavigate.....................................................................................................................3168
NodePage.................................................................................................................................... 3169
NodeRecord................................................................................................................................ 3169
NodeUserKeyField......................................................................................................................3169
SummarySetId.............................................................................................................................3170
SummaryLevelNumber...............................................................................................................3170
SummaryTreeName.................................................................................................................... 3170
SummaryUserKeyValue..............................................................................................................3171
Type.............................................................................................................................................3171
Traverse Tree Hierarchy Example.................................................................................................... 3171
Chapter 59: Universal Queue Classes..................................................................................................3173
Understanding Universal Queue Classes..........................................................................................3173
Scope of the Universal Queue Classes.............................................................................................3173
Data Types of the Universal Queue Classes.................................................................................... 3173
Instruction................................................................................................................................... 3231
Language.....................................................................................................................................3231
Market......................................................................................................................................... 3231
Priority........................................................................................................................................ 3232
Responses....................................................................................................................................3232
Subject.........................................................................................................................................3232
TemplateId.................................................................................................................................. 3232
TemplateType..............................................................................................................................3232
Text..............................................................................................................................................3233
Worklist Class................................................................................................................................... 3233
Worklist Class Method......................................................................................................................3233
Reassign...................................................................................................................................... 3233
WorklistEntry Class...........................................................................................................................3234
WorklistEntry Class Methods........................................................................................................... 3234
Create.......................................................................................................................................... 3234
GetResponseStatus......................................................................................................................3235
Reassign...................................................................................................................................... 3236
Save.............................................................................................................................................3237
SaveWithCustomData................................................................................................................. 3238
SelectByKey................................................................................................................................3239
SelectByMessageId.....................................................................................................................3240
Update......................................................................................................................................... 3240
WorklistEntry Class Properties......................................................................................................... 3241
actiondttm....................................................................................................................................3241
busactivity................................................................................................................................... 3241
buseventname..............................................................................................................................3242
busprocname............................................................................................................................... 3242
commentshort..............................................................................................................................3242
do_replicate_flag.........................................................................................................................3242
instanceid.................................................................................................................................... 3242
instselecteddttm...........................................................................................................................3243
inststatus......................................................................................................................................3243
insttimeoutddttm......................................................................................................................... 3243
instworkeddttm............................................................................................................................3244
IsCreatedViaWebService.............................................................................................................3244
oprid............................................................................................................................................ 3244
originatorid..................................................................................................................................3244
prevoprid..................................................................................................................................... 3244
requestmessageid........................................................................................................................ 3244
ResponseStatus............................................................................................................................3245
syncid.......................................................................................................................................... 3245
timedout...................................................................................................................................... 3245
transactionid................................................................................................................................ 3246
url................................................................................................................................................ 3246
wl_priority...................................................................................................................................3246
wldaystoselect............................................................................................................................. 3246
wldaystowork.............................................................................................................................. 3247
worklistname...............................................................................................................................3247
WSWorklistEntry Class.....................................................................................................................3247
WSWorklistEntry Class Methods..................................................................................................... 3247
OnError....................................................................................................................................... 3247
OnNotify..................................................................................................................................... 3248
WSWorklistEntry Class Properties................................................................................................... 3249
InstanceID................................................................................................................................... 3249
TransactionID..............................................................................................................................3249
Notification Classes Examples......................................................................................................... 3249
Creating a WorklistEntry............................................................................................................3249
Updating a WorklistEntry...........................................................................................................3251
Chapter 61: XmlDoc Classes................................................................................................................ 3253
Understanding XmlDoc Classes....................................................................................................... 3253
When to Use an XmlDoc Object..................................................................................................... 3253
XmlDoc Object Creation.................................................................................................................. 3254
Considerations Using a Unique Namespace.............................................................................. 3254
Considerations Using Rowsets...................................................................................................3255
XmlNode Class Considerations........................................................................................................ 3256
Accessing and Traversing an XmlNode Object.........................................................................3256
Error Handling.................................................................................................................................. 3257
SOAPDoc Object Considerations..................................................................................................... 3257
Scope of XmlDoc and XmlNode Objects........................................................................................ 3258
Data Type of an XmlDoc or XmlNode Object................................................................................ 3258
XmlDoc Classes Built-in Functions................................................................................................. 3258
XmlDoc Class Methods.................................................................................................................... 3258
CopyRowset................................................................................................................................ 3259
CopyToPSFTMessage.................................................................................................................3260
CopyToRowset............................................................................................................................3261
CreateDocumentElement............................................................................................................ 3263
CreateDocumentType..................................................................................................................3264
GenFormattedXmlString.............................................................................................................3266
GenXmlFile.................................................................................................................................3266
GenXmlString............................................................................................................................. 3267
GetElementsByTagName............................................................................................................3268
LoadIBContent............................................................................................................................3269
ParseXmlFromURL.................................................................................................................... 3270
ParseXmlString........................................................................................................................... 3272
XmlDoc Properties............................................................................................................................3273
DocumentElement.......................................................................................................................3273
IsNull...........................................................................................................................................3273
XmlNode Class................................................................................................................................. 3273
XmlNode Class Methods.................................................................................................................. 3274
AddAttribute............................................................................................................................... 3274
AddAttributeNS.......................................................................................................................... 3275
AddCDataSection........................................................................................................................3276
AddComment.............................................................................................................................. 3277
AddElement................................................................................................................................ 3278
AddElementNS........................................................................................................................... 3279
AddEntityReference....................................................................................................................3280
AddNode..................................................................................................................................... 3281
AddProcessInstruction................................................................................................................ 3282
AddText.......................................................................................................................................3283
CopyNode................................................................................................................................... 3284
FindNode.....................................................................................................................................3285
FindNodes................................................................................................................................... 3286
GenXmlString............................................................................................................................. 3288
GetAttributeName.......................................................................................................................3288
GetAttributeValue....................................................................................................................... 3289
GetCDataValue............................................................................................................................3289
GetCDataValues.......................................................................................................................... 3290
GetChildNode............................................................................................................................. 3291
GetElement..................................................................................................................................3292
GetElements................................................................................................................................ 3292
GetElementsByTagName............................................................................................................3293
GetElementsByTagNameNS.......................................................................................................3294
InsertCDataSection..................................................................................................................... 3295
InsertComment............................................................................................................................3297
InsertElement.............................................................................................................................. 3298
InsertElementNS......................................................................................................................... 3299
InsertEntityReference..................................................................................................................3300
InsertNode...................................................................................................................................3301
InsertProcessInstruction.............................................................................................................. 3303
InsertText.................................................................................................................................... 3304
RemoveAllChildNode.................................................................................................................3305
RemoveChildNode......................................................................................................................3306
XmlNode Class Properties................................................................................................................3307
AttributesCount...........................................................................................................................3307
ChildNodeCount......................................................................................................................... 3308
Index........................................................................................................................................... 3308
IsNull...........................................................................................................................................3308
LocalName.................................................................................................................................. 3309
NamespaceURI........................................................................................................................... 3309
NextSibling................................................................................................................................. 3309
NodeName.................................................................................................................................. 3309
NodePath.....................................................................................................................................3309
NodeType.................................................................................................................................... 3310
NodeValue...................................................................................................................................3310
ParentNode..................................................................................................................................3311
Prefix...........................................................................................................................................3311
PreviousSibling........................................................................................................................... 3311
Using the XmlDocFactory Class...................................................................................................... 3311
XmlDocFactory Class Methods........................................................................................................3312
GetNextXmlDoc......................................................................................................................... 3312
SetNamespaceString................................................................................................................... 3314
SetStringToParse.........................................................................................................................3315
Chapter 62: Quick Reference for PeopleCode Classes...................................................................... 3317
PeopleCode Syntax Quick Reference...............................................................................................3317
Desupported Items and PeopleCode No Longer Supported.............................................................3321
Desupported Products and Classes............................................................................................ 3322
Desupported Functions, Methods, and Properties......................................................................3323
Chart Items No Longer Supported.............................................................................................3328
Desupported BI Publisher Items................................................................................................ 3328
BI Publisher Items No Longer Supported................................................................................. 3329
Desupported Mobile Application Platform Items...................................................................... 3339
Desupported Messaging PeopleCode Functions, Methods and Properties................................ 3352
Functions No Longer Supported................................................................................................ 3356
To configure the context-sensitive help for your PeopleSoft applications to use the Oracle Help Center,
see Configuring Context-Sensitive Help Using the Hosted Online Help Website.
Your installation documentation includes a chapter with instructions for how to install the online help
for your business environment, and the documentation zip file may contain a README.txt file with
additional installation instructions. See PeopleSoft 9.2 Application Installation for your database platform,
“Installing PeopleSoft Online Help.”
To configure the context-sensitive help for your PeopleSoft applications to use a locally installed online
help website, see Configuring Context-Sensitive Help Using a Locally Installed Online Help Website.
• Application Fundamentals
Most product families provide a set of application fundamentals help topics that discuss essential
information about the setup and design of your system. This information applies to many or all
applications in the PeopleSoft product family. Whether you are implementing a single application, some
combination of applications within the product family, or the entire product family, you should be familiar
with the contents of the appropriate application fundamentals help. They provide the starting points for
fundamental implementation tasks.
In addition, the PeopleTools: Applications User's Guide introduces you to the various elements of the
PeopleSoft Pure Internet Architecture. It also explains how to use the navigational hierarchy, components,
and pages to perform basic functions as you navigate through the system. While your application or
implementation may differ, the topics in this user’s guide provide general information about using
PeopleSoft applications.
Typographical Conventions
The following table describes the typographical conventions that are used in the online help.
. . . (ellipses) Indicate that the preceding item or series can be repeated any
number of times in PeopleCode syntax.
ISO country codes may appear as country identifiers, and ISO currency codes may appear as currency
identifiers in your PeopleSoft documentation. Reference to an ISO country code in your documentation
does not imply that your application includes every ISO country code. The following example is a
country-specific heading: "(FRA) Hiring an Employee."
The PeopleSoft Currency Code table (CURRENCY_CD_TBL) contains sample currency code data. The
Currency Code table is based on ISO Standard 4217, "Codes for the representation of currencies," and
also relies on ISO country codes in the Country table (COUNTRY_TBL). The navigation to the pages
where you maintain currency code and country information depends on which PeopleSoft applications
you are using. To access the pages for maintaining the Currency Code and Country tables, consult the
online help for your applications for more information.
Region Identifiers
Regions are identified by the region name. The following region identifiers may appear in the PeopleSoft
Online Help:
• Asia Pacific
• Europe
• Latin America
• North America
Industry Identifiers
Industries are identified by the industry name or by an abbreviation for that industry. The following
industry identifiers may appear in the PeopleSoft Online Help:
My Oracle Support
Contact Us
Send your suggestions to [email protected].
Please include the applications update image or PeopleTools release that you’re using.
Follow Us
Icon Link
Follow @PeopleSoft_Info on X.
Related Links
“Understanding Activity Guides” (Portal Technology)
“Enhancing Activity Guides” (Portal Technology)
An import statement either names a particular application class or imports all the classes in a package.
Using the asterisks after the package name makes all the application classes directly contained in the
named package available. Application classes contained in subpackages of the named package are not
made available.
• List class
• ActionItem class
• Member class
• ContextData class
List Class
This section provides an overview of the List class and discusses:
The List class is used to manage an activity guide template or an activity guide instance.
Typically, activity guides are defined by the properties and characteristics of activity guide templates.
An activity guide template provides a reusable definition of the important aspects of an activity guide: its
properties, participants, contextual data, list of action items and to whom they are assigned, and so on.
Then, at run time, an activity guide instance can be created from the definitions stored in the template.
The instance will be generated with the contextual data that uniquely differentiates one instance from
another. For example, for a benefits enrollment activity guide, the contextual data would likely include the
employee ID, the country and locale (state, province, and so on) where the employee works, and any other
key data required to initiate the benefits process.
Related Links
“Activity Guide Templates and Instances” (Portal Technology)
“Creating and Maintaining Activity Guide Templates” (Portal Technology)
“Managing Activity Guide Instances” (Portal Technology)
createInstance
Syntax
createInstance(instance_ID, title, &context_data)
Description
Use this method to create an activity guide instance by cloning the current activity guide template
including its action items, participants, and so on.
Parameters
Parameter Description
Parameter Description
title Specifies the title for the activity guide instance as a string.
&context_data Specifies the contextual data for the activity guide instance as
a PTAI_COLLECTION:Collection object.
Returns
A List object.
Example
This is a code example of the CreateInstance method:
method CreateInstFromCtxtData
/+ &oCtxt as PTAI_COLLECTION:Collection +/
/+ Returns String +/
Local PTAI_ACTION_ITEMS:ContextData &ctxData;
Local PTAI_ACTION_ITEMS:List &newList = create PTAI_ACTION_ITEMS:List();
Local PTAI_COLLECTION:Collection &ctxDataColl = create PTAI_COLLECTION:Collectio⇒
n();
Local integer &i, &nbr;
Local string &label, &descr, &InstanceId;
try
For &i = 1 To &oCtxt.Count
&ctxData = (&oCtxt.Item(&i) As PTAI_ACTION_ITEMS:ContextData);
If &ctxData.ctxKey And
&ctxData.keyValue = "" Then
Return "";
End-If;
&ctxDataColl.InsertItem(&ctxData);
End-For;
&newList.open(&Template_Id);
SQLExec(SQL.PTAI_GET_INSTANCES, &newList.ListId, &nbr);
&nbr = &nbr + 1;
&label = &newList.Label | "-" | &nbr;
&InstanceId = &newList.createInstance(&label, &newList.DescrLong, &ctxDataCol⇒
l).ListId;
Return &InstanceId;
catch Exception &e
Return "";
end-try;
end-method;
Related Links
Label
ListId
ContextData Class
getActionItems
Syntax
getActionItems()
Description
Use this method to return an array of all action item IDs for the current activity guide. This method
returns IDs for both summary and detail action items.
Parameters
None.
Returns
An array of string.
Related Links
getRootItems
ActionItem Class
GetContext
Syntax
GetContext()
Description
Use this method to get the contextual data for the current activity guide.
Parameters
None.
Returns
A PTAI_COLLECTION:Collection object.
Related Links
ContextData Class
getMembers
Syntax
getMembers()
Description
Use this method to return a PTAI_COLLECTION:Collection object representing participants for the
current activity guide.
Parameters
None.
Returns
A PTAI_COLLECTION:Collection object.
Related Links
Member Class
GetPgltBtn
Syntax
GetPgltBtn()
Description
Use this method to return a PTAI_COLLECTION:Collection representing the definitions for custom
navigation frame buttons for the current activity guide.
Parameters
None.
Returns
A PTAI_COLLECTION:Collection object.
getRootItems
Syntax
getRootItems()
Description
Use this method to return an array of action item IDs for summary action items for the current activity
guide.
Note: This method does not return IDs for detail action items.
Parameters
None.
Returns
An array of string.
Related Links
getActionItems
ActionItem Class
new
Syntax
new(ID, portal, title)
Description
Use this method to generate a new activity guide.
Parameters
Parameter Description
Returns
None.
Related Links
Label
ListId
open
Syntax
open(ID)
Description
Use this method to retrieve an activity guide definition from the database and sets all the properties.
Parameters
Parameter Description
Returns
None.
Related Links
ListId
save
Syntax
save()
Description
Use this method to save the current activity guide definition to the database. If this is a new activity
guide, then the definition is inserted into the database; otherwise, an existing definition is updated in the
database.
Parameters
None.
Returns
A Boolean value: True if the save is successful, False otherwise.
SaveContext
Syntax
SaveContext(&context_data)
Description
Use this method to save the contextual data for the current activity guide to the database. Any existing
contextual data for this activity guide definition is deleted from the database first.
Parameters
Parameter Description
&context_data Specifies the contextual data for the activity guide as a PTAI_
COLLECTION:Collection object.
Returns
None.
Related Links
ContextData Class
saveMembers
Syntax
saveMembers(&members)
Description
Use this method to save the participants (members) for the current activity guide to the database. Any
existing participants for this activity guide definition are deleted from the database first.
Parameters
Parameter Description
Returns
None.
Related Links
Member Class
SavePgltBtn
Syntax
SavePgltBtn(&pgltBtns)
Description
Use this method to save the definitions for the custom navigation frame buttons for the current activity
guide to the database. Any existing custom button definitions for this activity guide are deleted from the
database first.
Parameters
Parameter Description
&pgltBtns Specifies the custom navigation frame buttons for the activity
guide as a PTAI_COLLECTION:Collection object.
Returns
A PTAI_COLLECTION:Collection object.
AppClassID
Description
Use this property to set or return a string value representing the name of the application class that contains
the method to be invoked at activity guide instance creation.
Note: The full path to the method is constructed from four properties: PackageRoot, QualifyPath,
AppClassID, and AppClassMethod
Related Links
AppClassMethod
PackageRoot
QualifyPath
“Defining Advanced Options” (Portal Technology)
“Initializing an Activity Guide Instance” (Portal Technology)
AppClassMethod
Description
Use this property to set or return a string value representing the name of the method to be invoked at
activity guide instance creation.
Note: The full path to the method is constructed from four properties: PackageRoot, QualifyPath,
AppClassID, and AppClassMethod
Related Links
AppClassID
PackageRoot
QualifyPath
“Defining Advanced Options” (Portal Technology)
“Initializing an Activity Guide Instance” (Portal Technology)
DescrLong
Description
Use this property to set or return the description for the activity guide as a string value.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
Field1
Description
Use this property to set or return a string value representing the label for the first configurable text field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field10
Description
Use this property to set or return a string value representing the label for the fifth configurable yes/no
field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field2
Description
Use this property to set or return a string value representing the label for the second configurable text
field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field3
Description
Use this property to set or return a string value representing the label for the third configurable text field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field4
Description
Use this property to set or return a string value representing the label for the fourth configurable text field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field5
Description
Use this property to set or return a string value representing the label for the fifth configurable text field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field6
Description
Use this property to set or return a string value representing the label for the first configurable yes/no
field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field7
Description
Use this property to set or return a string value representing the label for the second configurable yes/no
field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field8
Description
Use this property to set or return a string value representing the label for the third configurable yes/no
field.
Related Links
“Defining Advanced Options” (Portal Technology)
Field9
Description
Use this property to set or return a string value representing the label for the fourth configurable yes/no
field.
Related Links
“Defining Advanced Options” (Portal Technology)
HomeUrl
Description
Use this property to set or return a string value representing the URL for the WorkCenter page (or starting
page) that incorporates this activity guide. This URL provides access from the Activity Guides - In
Progress homepage pagelet to the WorkCenter page.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
“Accessing Instances from the Activity Guides - In Progress Pagelet” (Portal Technology)
isActive
Description
Use this property to set or return a Boolean value indicating whether the activity guide is active.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
IsTemplate
Description
Use this property to set or return a Boolean value indicating whether the activity guide is a template.
When this property is False, the List object is an activity guide instance.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
Label
Description
Use this property to set or return a string representing the descriptive name (or title) of the activity guide.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
ListId
Description
Use this property to return a string representing the ID for this activity guide.
Related Links
“Defining Activity Guide Template Properties” (Portal Technology)
PackageRoot
Description
Use this property to set or return a string value representing the name of the application package that
contains the method to be invoked at activity guide instance creation.
Note: The full path to the method is constructed from four properties: PackageRoot, QualifyPath,
AppClassID, and AppClassMethod
Related Links
AppClassID
AppClassMethod
QualifyPath
“Defining Advanced Options” (Portal Technology)
“Initializing an Activity Guide Instance” (Portal Technology)
ParentTemplate
Description
Use this property to set or return a string representing the ID of the template used to generate the activity
guide instance. If the List object represents an activity guide template, then this property will be Null.
Related Links
“Creating New Activity Guide Instances Manually” (Portal Technology)
pgltAppClass
Description
Use this property to set or return a string representing the name of the application class that contains the
method (or methods) to be invoked to create custom navigation frame buttons.
Note: The full path to the method is constructed from three properties: pgltPackageRoot, pgltQualifyPath,
and pgltAppClass.
Related Links
GetPgltBtn
SavePgltBtn
pgltPackageRoot
pgltQualifyPath
“Defining Navigation and Pagelet Options” (Portal Technology)
pgltPackageRoot
Description
Use this property to set or return a string representing the name of the application package that contains
the method (or methods) to be invoked to create custom navigation frame buttons.
Note: The full path to the method is constructed from three properties: pgltPackageRoot, pgltQualifyPath,
and pgltAppClass.
Related Links
GetPgltBtn
SavePgltBtn
pgltAppClass
pgltQualifyPath
pgltProgressBarVisible
Description
Use this property to set or return a Boolean value indicating whether the progress bar will be displayed in
the activity guide pagelet on the WorkCenter page.
Related Links
“Defining Navigation and Pagelet Options” (Portal Technology)
pgltQualifyPath
Description
Use this property to set or return a string representing the names of each subpackage in the application
class hierarchy that define the location of the application class. Separate subpackage names by a colon. If
the class is defined in the top-level application package, use a colon only.
Note: The full path to the method is constructed from three properties: pgltPackageRoot, pgltQualifyPath,
and pgltAppClass.
Related Links
GetPgltBtn
SavePgltBtn
pgltAppClass
pgltPackageRoot
“Defining Navigation and Pagelet Options” (Portal Technology)
QualifyPath
Description
Use this property to set or return a string value representing the names of each subpackage in the
application class hierarchy that define the location of the application class. Separate subpackage names by
a colon. If the class is defined in the top-level application package, use a colon only.
Note: The full path to the method is constructed from four properties: PackageRoot, QualifyPath,
AppClassID, and AppClassMethod
Related Links
AppClassID
AppClassMethod
PackageRoot
“Defining Advanced Options” (Portal Technology)
“Initializing an Activity Guide Instance” (Portal Technology)
Status
Description
Use this property to set or return the status of the instance, which determines whether the activity guide is
displayed in the Activity Guides - In Progress pagelet. The valid values are:
Value Description
CA Cancelled
CP Complete
IP In progress
Example
In the following example, the method sets the activity guide status to complete:
method CompleteStatus
/+ &list_id as String +/
&ObjList.Status = "CP";
&return = &ObjList.save();
end-method;
ActionItem Class
This section provides an overview of the ActionItem class and discusses:
Action items are the tasks that are assigned for completion within an activity guide. As an application
developer, you will refer to these as action items. To users, they are presented as tasks or steps.
Action items can be created and maintained within activity guide templates or within activity guide
instances. However, typically you will define action items and their details at the template level only.
Once an activity guide instance is created, updates to the action items themselves occur programmatically
or through actions of the user.
Related Links
“Creating and Maintaining Action Items” (Portal Technology)
delete
Syntax
delete()
Description
Use this method to delete the current action item.
Parameters
None.
Returns
A Boolean value: True if the deletion was successful, False otherwise.
getAssignments
Syntax
getAssignments()
Description
Use the getAssignments method to obtain the action item assignments (user/role) as a collection object.
Note: While you can specify any user ID or role, only a user or role that has also been assigned
Contributor privileges on the template or instance Security page will be allowed to complete the action
item. The system will not validate your selection against the users or roles defined on the Security page.
Parameters
None.
Returns
A PTAI_COLLECTION:Collection object containing user or role assignments data for the action item.
Example
import PTAI_ACTION_ITEMS:ActionItem;
import PTAI_COLLECTION:Collection;
on();
Related Links
saveAssignments
new
Syntax
new(item_ID, title, list_ID)
Description
Use this method to create and initialize a new action item.
Parameters
Parameter Description
title Specifies the title for the new action item as a string.
Parameter Description
list_ID Specifies the activity guide to which the action item belongs as
a string.
Returns
None.
Related Links
ItemId
Label
ListId
nextAction
Syntax
nextAction()
Description
Use this method to return the next detail action item in the activity guide that is assigned and is not
cancelled or on hold.
Parameters
None.
Returns
An ActionItem object.
open
Syntax
open(item_ID)
Description
Use this method to retrieve the specified action item definition from the database and set the properties.
Parameters
Parameter Description
Returns
None.
Related Links
ItemId
prevAction
Syntax
prevAction()
Description
Use this method to return the previous detail action item in the activity guide that is assigned and is not
cancelled or on hold.
Parameters
None.
Returns
An ActionItem object.
save
Syntax
save()
Description
Use this method to save the current action item definition to the database. If this is a new activity guide,
then the definition is inserted into the database; otherwise, an existing definition is updated in the
database.
Parameters
None.
Returns
A Boolean value: True if the save is successful, False otherwise.
saveAssignments
Syntax
saveAssignments(&AssignmentColl)
Description
Use the saveAssignments method to save or update action item assignments. If you are adding new
user assignments to an action item, use the getAssignments method to get the existing assignments as a
collection object, insert new assignments to the returned collection object, and call the saveAssignments
method with the updated collection object as input.
Note: While you can specify any user ID or role, only a user or role that has also been assigned
Contributor privileges on the template or instance Security page will be allowed to complete the action
item. The system will not validate your selection against the users or roles defined on the Security page.
Parameters
Parameter Description
&AssignmentColl Specifies the user or role assignment data for the action item as
a PTAI_COLLECTION:Collection object.
Returns
None.
Example
import PTAI_ACTION_ITEMS:ActionItem;
import PTAI_COLLECTION:Collection;
import PTAI_ACTION_ITEMS:ActionItemAssignments;
import PTAI_COLLECTION:Collectable;
on();
Local PTAI_ACTION_ITEMS:ActionItemAssignments &oAssignment = create PTAI_ACTION_ITE⇒
MS:ActionItemAssignments();
&oAssignment.AssignType = "USER";
&oAssignment.AssignValue = %OperatorId;
&oAssignmentColl.InsertItem(&oAssignment As PTAI_COLLECTION:Collectable);
&item.saveAssignments(&oAssignmentColl);
Related Links
getAssignments
AppClassID
Description
Use this property to set or return a string value representing the name of the application class that contains
the ItemPostProcess method to be invoked for post-processing of this action item.
Note: The full path to the ItemPostProcess method is constructed from three properties: PackageRoot,
QualifyPath, and AppClassID
Related Links
PackageRoot
QualifyPath
“Configuring Related Data” (Portal Technology)
“Performing Pre-Processing for Action Items” (Portal Technology)
AssignedToOprid
Description
The AssignedToOprid property is desupported in PeopleTools 8.58 and will be ignored.
Related Links
“Defining Action Item Details” (Portal Technology)
“Defining Activity Guide Template Security” (Portal Technology)
AssignType
Description
The AssignType property is desupported in PeopleTools 8.58 and will be ignored.
Related Links
“Defining Action Item Details” (Portal Technology)
“Defining Activity Guide Template Security” (Portal Technology)
CurrentStep
Description
Use this property to set or return a Boolean value indicating whether the current step is the active step
currently being worked in the activity guide.
DescrLong
Description
Use this property to set or return the description for the action item as a string value.
Related Links
“Defining Action Item Details” (Portal Technology)
DueDate
Description
Use this property to set or return a Date value representing the date portion of the due date and time.
Related Links
DueTm
“Defining Action Item Details” (Portal Technology)
DueTm
Description
Use this property to set or return a Time value representing the time portion of the due date and time.
Related Links
DueDate
EndDttm
Description
Use the EndDttm property to set the completion of a step or instance in a guided process as a DateTime
value.
Note: You can use the EndDttm property only within the context of reporting the duration of step or
instance for analytics.
Field1
Description
Use this property to set or return a string value representing the application data for the first configurable
text field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field10
Description
Use this property to set or return a string value representing the application data for the fifth configurable
yes/no field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field2
Description
Use this property to set or return a string value representing the application data for the second
configurable text field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field3
Description
Use this property to set or return a string value representing the application data for the third configurable
text field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field4
Description
Use this property to set or return a string value representing the application data for the fourth
configurable text field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field5
Description
Use this property to set or return a string value representing the application data for the fifth configurable
text field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field6
Description
Use this property to set or return a string value representing the application data for the first configurable
yes/no field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field7
Description
Use this property to set or return a string value representing the application data for the second
configurable yes/no field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field8
Description
Use this property to set or return a string value representing the application data for the third configurable
yes/no field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
Field9
Description
Use this property to set or return a string value representing the application data for the fourth
configurable yes/no field to be used in execution of the transaction.
Related Links
“Configuring Related Data” (Portal Technology)
ItemId
Description
Use this property to return a string representing the ID for this action item.
Related Links
“Defining Action Item Details” (Portal Technology)
Label
Description
Use this property to set or return a string representing the descriptive name (or title) of the action item.
Related Links
“Defining Action Item Details” (Portal Technology)
ListId
Description
Use this property to set or return a string value representing the ID for the activity guide containing the
current action item.
Related Links
ListId
PackageRoot
Description
Use this property to set or return a string value representing the name of the application package that
contains the ItemPostProcess method to be invoked for post-processing of this action item.
Note: The full path to the ItemPostProcess method is constructed from three properties: PackageRoot,
QualifyPath, and AppClassID
Related Links
AppClassID
QualifyPath
“Configuring Related Data” (Portal Technology)
“Performing Pre-Processing for Action Items” (Portal Technology)
ParentId
Description
Use this property to set or return the ID of the summary (or parent) action item. If there is no parent action
item, the value returned is ROOT.
PercCompl
Description
Use this property to set or return a Number value indicating the percentage completion for this action
item.
Related Links
“Defining Action Item Details” (Portal Technology)
Priority
Description
Use this property to set or return a string value representing the priority for this action item. The valid
values are:
Value Description
1 Low
2 Medium
3 High
QualifyPath
Description
Use this property to set or return a string value representing the names of each subpackage in the
application class hierarchy that define the location of the application class. Separate subpackage names by
a colon. If the class is defined in the top-level application package, use a colon only.
Note: The full path to the ItemPostProcess method is constructed from three properties: PackageRoot,
QualifyPath, and AppClassID
Related Links
AppClassID
PackageRoot
“Configuring Related Data” (Portal Technology)
“Performing Pre-Processing for Action Items” (Portal Technology)
Remarks
Description
Use this property to set or return the progress remarks for this action item.
Related Links
“Configuring Related Data” (Portal Technology)
Required
Description
Use this property to set or return a Boolean value indicating whether the action item is required.
Related Links
“Defining Action Item Details” (Portal Technology)
Sequence
Description
Use this property to set or return a Number value representing the sequence number for the action item.
Related Links
“Understanding Creation and Maintenance of Action Items” (Portal Technology)
“Defining Action Item Details” (Portal Technology)
ServiceId
Description
Use this property to set or return a string value representing the ID for the related content service that will
be executed when the user clicks this action item in the activity guide pagelet.
Related Links
Type
“Defining Action Item Details” (Portal Technology)
StartDt
Description
Use this property to set or return a Date value representing the date portion of the start date and time.
Related Links
StartTm
“Defining Action Item Details” (Portal Technology)
StartTm
Description
Use this property to set or return a Time value representing the time portion of the start date and time.
Related Links
StartDt
“Defining Action Item Details” (Portal Technology)
Status
Description
Use this property to set or return a string value representing the status of the current action item. Valid
values are:
Value Description
0 Not assigned
1 Assigned
2 In progress
3 On hold
4 Completed
5 Cancelled
Related Links
“Defining Action Item Details” (Portal Technology)
Summary
Description
Use this property to set or return a Boolean value indicating whether the action item is a summary action
item. When this property is False, the action item is a detail action item.
Related Links
“Defining Action Item Details” (Portal Technology)
Type
Description
Use this property to set or return a string value representing the type of the related content service that
will be executed when the user clicks this action item in the activity guide pagelet. The valid values are:
Value Description
C PeopleSoft component
Value Description
N Non-PeopleSoft URL
Q PeopleSoft query
S PeopleSoft script
Related Links
ServiceId
“Defining Action Item Details” (Portal Technology)
ActionItemAssignments Class
This section provides an overview of the ActionItemAssignments class and discusses:
The ActionItemAssignments class is used to manage action item user/role assignments data for action
items in an activity guide template and instance. You can use the ActionItemAssignments class properties
to create action item assignment object and add/update the action item user or role assignment data.
If you are adding new user assignments to an action item, use the getAssignments method to get the
existing assignments as a collection object, insert new assignments to the returned collection object, and
call the saveAssignments method with the updated collection object as input.
IsEqual
Syntax
IsEqual(&object)
Description
Use this method to evaluate the equivalency of an object with the current ActionItemAssignments object.
Equivalency is established based on the value of two properties: &AssignType and &AssignValue.
Parameters
Parameter Description
Returns
A Boolean value: True if the objects are equivalent, False otherwise.
AssignType
Description
Use the AssignType property to set or return the assignment as a String. The value can be either USER or
ROLE.
AssignValue
Description
Use the AssignValue property to set or return the user or role assignment value as a String.
Member Class
This section provides an overview of the Member class and discusses:
Related Links
“Defining Activity Guide Template Security” (Portal Technology)
IsEqual
Syntax
IsEqual(&object)
Description
Use this method to evaluate the equivalency of an object with the current member. Equivalency is
established based on the value of two properties: the object's Name and the Type.
Parameters
Parameter Description
Returns
A Boolean value: True if the objects are equivalent, False otherwise.
Related Links
Name
Type
Member
Syntax
Member(name, type)
Description
Use this constructor method to initialize a Member object with the specified name and type.
Parameters
Parameter Description
Returns
None.
Name
Description
Use this property to return the participant’s name as a string value.
PrivilegeSetID
Description
Use this property to set or return the privilege level assigned to this participant as a string value.
Example
Set or return a value for the PrivilegeSetID property using the Constants class:
&PTAI_CONSTANTS.PRIVSET_ADMIN Administrator
&PTAI_CONSTANTS.PRIVSET_CONTRIBUTOR Contributor
&PTAI_CONSTANTS.PRIVSET_VIEWER Viewer
For example:
import PTAI_ACTION_ITEMS:*;
&member.PrivilegeSetID = &PTAI_CONSTANTS.PRIVSET_ADMIN;
Type
Description
Use this property to return the participant type (user or role) as a string value.
ContextData Class
This section provides an overview of the ContextData class and discusses:
The ContextData class is used to manage contextual data for activity guide templates and instances.
You can define contextual data that will be passed to the activity guide instance when it is created.
Contextual data defined as key fields will be used to uniquely identify each activity guide instance. For
example, if the employee ID were defined as a key contextual field, then each activity guide instance
will be created for a specific employee ID. Contextual data defined as non-key fields is not used to
differentiate an instance, but can be passed to the instance nevertheless. For example, non-key data can be
displayed in the activity guide pagelet by specifying the Context Visible option for the field. In this way,
instead of displaying the employee ID, you could display the employee name in the pagelet.
Related Links
“Defining Advanced Options” (Portal Technology)
ContextData
Syntax
ContextData(rec_name, field_name, label, value, isKey, isVisible)
Description
Use this constructor method to initialize one row of contextual data for an activity guide.
Parameters
Parameter Description
rec_name Specifies the record name that is the source for the contextual
field as a string value.
Returns
None.
IsEqual
Syntax
IsEqual(&object)
Description
Use this method to evaluate the equivalency of an object with the current ContextData object.
Equivalency is established based on the value of five properties: recname, fieldname, keyLabel, keyValue,
and ctxKey.
Parameters
Parameter Description
Returns
A Boolean value: True if the objects are equivalent, False otherwise.
ctxKey
Description
Use this property to set or return a Boolean value indicating whether the contextual field is a key field.
ctxVisible
Description
Use this property to set or return a Boolean value indicating whether to display the contextual data and
labels in the activity guide pagelet on the WorkCenter page.
fieldname
Description
Use this property to set or return the name of the source contextual field as a string value.
keyLabel
Description
Use this property to set or return an optional label for the contextual field as a string value. This label can
be displayed along with the data value in the activity guide pagelet on the WorkCenter page.
keyValue
Description
Use this property to set or return the contextual data value as a string.
recname
Description
Use this property to set or return the record name that is the source for the contextual field as a string
value.
AESection Class
With PeopleTools 8, Application Engine programs should not perform SQL directly on the Application
Engine tables, as they are system tables, and are cached. SQL on the Application Engine tables may not
be accurately reflected when the applications are executed, because of the caching mechanism.
To overcome this problem, developers have two basic operations that let them modify their Application
Engine programs from their online pages:
• Ability to modify SQL definitions, which are referenced within Application Engine SQL using the
PeopleCode SQL class and the meta-SQL function %SQL.
• Ability to dynamically change the execution flow of a given Application Engine section.
Use the AESection class to do the latter. This section object is used to modify the steps and SQL
associated with a given section by using PeopleCode.
Before describing the specifics of the AESection class, the following are some general terms to
understand:
• base section
The base section represents the Application Engine section you are working on. This is the section
that you are changing in PeopleCode. In other words, it’s the target section.
• template section
The template section represents the Application Engine section that is the source, or "model" for the
section you're building. You copy from the template section to the base section.
The template must exist in the database before you can use it.
If the base section you specify doesn’t exist, a new base section is created. This enables you to
dynamically create sections as needed.
You can copy steps (and their attributes) from the template to the base. The only attribute of the step you
can modify is the SQL statement that gets executed.
Warning! When you open or get an AESection object, (that is, the base section) any existing steps in the
section are deleted. You must add a new step to the section before you can modify it.
The main assumption for this class is that your rules are dynamic primarily in the SQL that they execute,
but that the structure of the rules are static, or at least defined well enough that a standard template can be
applied.
Note that you can't update the Application Engine actions that are not SQL-related (that is, PeopleCode,
Call Section, or Log Message). In other words, you can’t change the PeopleCode associated with a
PeopleCode action within a step. You can add a step containing a PeopleCode action to your new section,
but you can't change the PeopleCode dynamically.
Related Links
Understanding SQL Class
“%SQL” (PeopleCode Language Reference)
“Adding Steps” (Application Engine)
If the base section you specify doesn’t exist, a new base section is created. This enables you to
dynamically create sections as needed. In addition, if the target section doesn't exist, all section-level
attributes are copied from the template to the target section. If the target exists, it retains its attribute
settings.
If an effective date is specified (with EffDt), but there is no match using that effective date, the AESection
is opened using the base effective date of ‘1900-01-01’.
The market defined for the current component is used for the section to be open. If no section with this
market exists, the default GBL is used.
If you open an AESection object from within a running Application Engine program, the market value is
set to the value of the current process.
The database platform you’re currently running is used as the database platform for the section to be
opened. If no section with this database platform exists, the default "none" is used.
1. Market
2. Database platform
3. Effective date
When a section is closed and its changes are saved, the market and database platform from the system that
performed the changes is used as the market and database platform for the modified section.
Let’s take an example. Assume that you’re running on DB2 for OS/390 and z/OS, and your current
market is set to ‘MKT’. Assume that you want to open a section called Sect1 in an Application Engine
program called TestAppl, and that your data looks something like this:
If you use:
&SECTION.Open("TestAppl", "Sect1", "1998-12-14");
Then the third section in the previous list is used, because the market takes highest precedence. When the
section is saved, the values for market and platform are updated to the current system values.
Warning! When you open or get an AESection object, (that is, any base section) any existing steps in the
section are deleted. You must add a new step to the section before you can modify it.
The other attributes of the section, however, are retained, with the exceptions noted previously.
AESection Example
Assume that you have a template section called TEMPLATE in the Application Engine program called
MY_APPL. The template looks like this:
Steps Actions
NewStep1 DO When
DO Select
SQL
NewStep2 DO Select
CallSection
Also, assume that you have a base section called DYN_SECT in the Application Engine program called
RULES. When you start, this section looks like this:
Steps Actions
Step1 DO Select
Call Section
DO Unit
Steps Actions
Steps Actions
NewStep2 DO Select
Call Section
Note: The existing steps in the base section have been overwritten by the new step from the template
section.
The AESection Object is designed for use within online pages. Typically, dynamic sections should be
constructed in response to an end-user action.
Note: Do not call an AESection object from an Application Engine PeopleCode Action. If you need to
access another section, use CallSection Actions instead.
Related Links
“Specifying Actions” (Application Engine)
AddStep
Syntax
AddStep(ae_step_name [, NewStepName])
Description
The given step name from the template section is added as the next step into the base section, and named
the existing step name.
Note: When you open or get a section, all the existing steps are deleted. The first time you execute
AddStep, you add the first step. The second time you execute AddStep, you add the second step, and so
on.
All attributes of the step are copied, including all of its actions. The only changeable attribute of a step are
its SQL statements, which can be modified using the SetSQL method. SetSQL is run on the current step,
that is, the step most recently added.
You can also change the name of the step by using the optional parameter NewStepName.
If the step named does not exist in the template, an error occurs. Likewise, if you have not opened or set
the template for the section, you receive an error.
Parameters
Parameter Description
ae_step_name Specify the step name from the template to be added as the
next step in the base section. This parameter takes a string
value.
NewStepName Specify a new name for the step to be added. This parameter is
optional, and takes a string value.
Returns
None.
Example
See AESection Example.
Related Links
SetSQL
Close
Syntax
Close()
Description
Close closes the AESection object. Any unsaved changes to the section are discarded.
Parameters
None.
Returns
None.
Example
See AESection Example.
Related Links
Save
Open
“GetAESection” (PeopleCode Language Reference)
Open
Syntax
Open(ae_applid, ae_section, [effdt])
Description
The Open method associates the AESection object with the given Application Engine section, based on
the ae_applid and ae_section. If the effdt is specified, this is also used to get the section object. In other
words, the Open method sets the base section.
Warning! When you open or get an AESection object, (that is, the base section) any existing steps in the
section are deleted.
Note: If the base section you specify doesn’t exist, a new base section is created. This enables you to
dynamically create sections as needed. In addition, if the target section doesn't exist, all section-level
attributes are copied from the template to the target section. If the target exists, it retains its attribute
settings.
If the AESection is still open when you issue the Open method, the previously opened object is discarded
and none of the changes saved. To prevent accidentally discarding your changes, you can use the IsOpen
property to verify if a section is already open.
The AESection is open based on the Market and database type of your current system.
Parameters
Parameter Description
ae_section Specify the section name of the section you want to access.
This parameter takes a string value.
effdt Specify the effective date of the section you want to access
(optional). This parameter takes a string value.
Returns
An AESection object.
Example
Local AESection &SECTION;
/* do some processing */
&SECTION.Close();
&SECTION.Open("RULES2", "DYN_SECT");
/* do additional processing */
Related Links
IsOpen
“GetAESection” (PeopleCode Language Reference)
Save
Syntax
Save()
Description
The Save method saves the section to the database. The AESection object remains open after you use this
method. To close the object, you must use the Close method.
You must commit all database changes prior to using this method. This is to avoid locking critical Tools
tables and hence freezing all other users. You receive a runtime error message if you try to use this
method when there are pending database updates, and your PeopleCode program terminates. You need
to commit any database updates prior to using this method. Use the CommitWork function to commit
database updates.
Parameters
None.
Returns
None.
Example
See AESection Example.
Related Links
Close
Open
“CommitWork” (PeopleCode Language Reference)
SetSQL
Syntax
SetSQL(action_type_string, string)
Description
The SetSQL method replaces the SQL associated with the given action type in the current step in the
base section with the SQL in string. The current step is the latest step that was added using AddStep. The
action types are:
• DO_WHEN
• DO_WHILE
• DO_SELECT
• SQL
• DO_UNTIL
Note: All action types must be passed in as strings with quotation marks.
If the action specified does not exist in the current step, an error occurs.
Parameters
Parameter Description
action_type Specifies the action type of the current step that should be
changed. This parameter takes a string value.
string Specifies the SQL to be used to replace the SQL in the current
step.
Returns
None.
Example
See AESection Example.
Related Links
AddStep
Understanding SQL Class
SetTemplate
Syntax
SetTemplate(ae_applid, ae_section)
Description
The SetTemplate method sets the template to be used with an AESection object, as identified by
ae_applid and ae_section.
The rules for assigning a template section are similar to the rules for selecting a base section. The
selection of market and database platform are done exactly the same. However, the effective date of the
template is always set based on the effective date of ‘1900-01-01’.
You must set the template before you can use any of the other methods.
Parameters
Parameter Description
Returns
None.
Example
See AESection Example.
Related Links
Open
How an AESection is Accessed
“GetAESection” (PeopleCode Language Reference)
IsOpen
Description
If this property is True, the section object is already open. If you try to open a section object that is
already open, the open section object is closed and all the changes that haven’t been saved are discarded
before the object is re-opened.
Example
If Not(&MYSECTION.IsOpen) Then
&MYSECTION.Open(MYAPPLID, SECTION2);
End-If;
More specifically, developers create analytic models in order to define the rules which are used to
calculate data. Developers also create PeopleSoft Pure Internet Architecture pages with analytic grids in
order to display the data within PeopleSoft applications. End users view, analyze and make changes to
this data. When end users save their changes, PeopleSoft Analytic Calculation Engine recalculates the
data and saves the calculated data to the database.
• Use the Analytic Calculation Engine classes to either retrieve or specify data in an instance of an
analytic model loaded into the system, and also to calculate (or recalculate) cube values.
• Use the Analytic Calculation Engine metadata classes to manipulate an analytic model definition. For
example, you can add cubes to a cube collection or rename an existing user function for a model.
• Use the Analytic Grid classes to manipulate the display of analytic calculation data on a page.
• Use the Analytic Type classes to manipulate an analytic type definition. For example, you can specify
a new analytic model for an analytic type definition.
Important! The Analytic Calculation Engine classes are not supported on IBM z/OS and Linux for IBM
System z platforms.
Related Links
Understanding the Analytic Calculation Engine Classes
AnalyticGrid Class Reference
AnalyticType Classes Example
Understanding the Analytic Calculation Engine Classes
PeopleSoft recommends that you put each of the following methods into its own step when you're
creating an analytic calculation using a Application Engine program:
• AnalyticInstance Delete method (in case of any readable/writable records in the analytic type)
Also, with the Recalculate method, you should use the Commit after step option.
Running Synchronously
Some of the methods and functions associated with these classes have the option of being run
asynchronously. When you run these asynchronously, and not from a Application Engine program, these
methods and functions have additional functionality, that is, if the RenServer is configured, a window
displays the PeopleSoft Analytic Calculation Engine execution status.
Using Trees
PeopleSoft Analytic Calculation Engine uses trees to establish hierarchies of a dimension's parent-child
relationships. PeopleSoft Analytic Calculation Engine uses these hierarchies to:
• Enable end users to navigate through data by performing such actions as expanding and collapsing
nodes.
It is important to understand that PeopleSoft trees and hierarchies differ in the following manner: You
create one tree for each dimension that requires a hierarchy. The analytic model uses that tree to create
one hierarchy for one dimension.
Use the AttachTree method to attach a tree to a dimension, and use the DetachTree method to detach the
tree from the dimension.
• Because the AttachTree method attaches a specific tree to an analytic instance, the system throws an
error if the tree's name, setID or effective date is incorrect.
• If the analytic instance is already loaded into the analytic server, the tree isn't attached until the
analytic model is loaded.
• No aggregate data is displayed to the user after you use the DetachTree method.
• If your application loads the analytic model after the tree has been detached, the analytic model
doesn't create a hierarchy for the dimension.
• If the analytic instance is already loaded into the analytic server, the DetachTree method isn't applied
to the tree until the next time your application loads the analytic instance.
You can only attach a tree to an analytic model before the analytic instance
Related Links
“Understanding the Relationship of PeopleSoft Trees to Analytic Models” (Analytic Calculation Engine)
Error Handling
All the Analytic Calculation Engine classes throw PeopleCode exceptions for any fatal error that occurs
in the execution of the operation. PeopleSoft recommends enclosing your analytic model programs in try-
catch statements. This way, if your program catches the exception, the message set and message number
that are associated with the exception object indicate the error.
The following are the data types for the PeopleSoft Analytic Calculation Engine classes:
• AnalyticInstance
• AnalyticModel
• CubeCollection
These objects can be used anywhere you have PeopleCode, that is, in a Application Engine program, an
application class, record field PeopleCode, and so on.
CheckAsyncStatus
Syntax
CheckAsyncStatus(OperationID)
Description
Use the CheckAsyncStatus method to determine the current state of the asynchronous methods, as well as
the Load method when executed asynchronously.
Parameters
Parameter Description
Returns
This method returns one of the following values:
Value Description
Related Links
CheckStatus
Load
Unload
CheckStatus
Syntax
CheckStatus()
Description
Use the CheckStatus method to determine the current state of the analytic calculation engine.
Parameters
None.
Returns
This method returns one of the following values:
Value Description
%AnalyticInstance_NotLoaded The analytic instance has not been loaded into the application
server.
%AnalyticInstance_Idle The analytic instance is idle, that is, not currently running.
Related Links
Load
Unload
Copy
Syntax
Copy(NewID, ForceDelete&Record)
Description
Use the Copy method to copy all the data and metadata to a new analytic instance from the current
analytic instance.
If the specified NewID exists, or any data for NewID exists, the data is not copied unless ForceDelete has
been specified as true.
If a tree is attached to the existing analytic instance, all tree data is also copied to the new analytic
instance.
In addition, the analytic instance and the tree information are not copied unless the record specified with
the &Record parameter is populated with the existing analytic instance ID.
Parameters
Parameter Description
Returns
None.
Example
&ai.Copy("MYTESTCOPY", True, &MyRecord);
Related Links
Delete
Load
Unload
Delete
Syntax
Delete(ForceUnload, &RecordRef)
Description
Use the Delete method to remove all the metadata related to the given analytic instance.
Every analytic type definition is defined with an application package that contains three methods: Create,
Delete, and Copy. The values in &RecordRef are passed to the Delete method.
This method does not delete the analytic instance if the analytic instance is currently loaded. Specify
ForceUnload as true to unload the analytic instance before deleting it.
Parameters
Parameter Description
Returns
None.
Example
&ai.Delete(TRUE, &Record);
Related Links
Unload
“Understanding Analytic Type Definitions” (Optimization Framework)
GetAnalyticModel
Syntax
GetAnalyticModel(AnalyticModel.ModelName)
Description
Use the GetAnalyticModel method to return a reference to an AnalyticModel object.
Parameters
Parameter Description
AnalyticModel.ModelName Specify the name of the analytic model for which you want to
return a reference. The model definition must already exist in
Application Designer.
Returns
A reference to an AnalyticModel object or Null.
Related Links
AnalyticModel Class Methods
Load
Syntax
Load(Sync, IdleTimeOut, Message.messagename)
Description
Use the Load method to load the AnalyticInstance object executing the method into the analytic server.
When the analytic instance is loaded, if there are fields in the analytic type definition that haven't been
selected but are mapped to a cube or dimension, an error message is logged to the analytic server log and
the analytic instance load fails.
If there is a record in the analytic type definition that has none of its fields mapped to a cube or
dimension, a warning message is logged to the analytic server log.
Parameters
Parameter Description
Parameter Description
Returns
A string. For asynchronous loads, this string is passed to the CheckAsyncStatus method.
Value Description
%AnalyticInstance_NotLoaded The analytic instance has not been loaded into the analytic
server.
%AnalyticInstance_Idle The analytic instance is idle, that is, not currently running.
Related Links
CheckAsyncStatus
Unload
RunAsync
Syntax
RunAsync()
Description
Use the RunAsync method to specify if the analytic instance executing the method should be run in an
asynchronous manner.
This method is used only to define the transaction in the analytic type definition in optimization.
PeopleSoft Analytic Calculation Engine programs uses the Load method for defining synchronous or
asynchronous operation.
Parameters
None.
Returns
None.
Related Links
“Creating Analytic Type Definitions” (Optimization Framework)
RunSync
Syntax
RunSync()
Description
Use the RunSync method to specify if the analytic instance executing the method should be run in a
synchronous manner.
This method is used only to define the transaction in the analytic type definition in optimization.
PeopleSoft Analytic Calculation Engine programs uses the Load method for defining synchronous or
asynchronous operation.
Parameters
None.
Returns
None.
Related Links
“Creating Analytic Type Definitions” (Optimization Framework)
Terminate
Syntax
Terminate()
Description
Use the Terminate method to force the termination of an analytic instance loaded in an analytic server.
This method should only be used from PeopleCode running in a Application Engine program to cause an
analytic instance loaded in an analytic server to be terminated.
Attempting to terminate an analytic instance that is not loaded or is loaded in a Application Engine
process results in a PeopleCode exception.
Although the Terminate method returns instantly, it may take up to a minute before the analytic instance is
actually terminated.
Parameters
None.
Returns
None.
Related Links
Load
Unload
Unload
Syntax
Unload()
Description
Use the Unload method to unload the analytic instance executing the method from the analytic server.
After unloading the analytic instance, the analytic server process is restarted.
Parameters
None.
Returns
None.
Example
&ai.UnLoad();
Related Links
Load
AnalyticType
Description
This property returns the name of the analytic type definition for this AnalyticInstance object as a string.
ID
Description
This property returns the analytic instance ID of this AnalyticInstance object as an integer.
Messages
Description
This property returns a multi-dimensional array of any, containing the messages that occurred.
The first dimension contains the message set number. The second dimension contains the message
number. The third dimension contains the number of parameters in that message. The subsequent
dimensions contain the values for the parameters. The maximum number of possible dimensions is 8.
After you access this property, only new messages are returned, that is, messages are only returned once.
Related Links
RunSync
AddMember
Syntax
AddMember(DimName, MemberName)
Description
Use the AddMember method to add the specified dimension member to the specified dimension.
Parameters
Parameter Description
DimName Specify the dimension to which you want to add the member.
MemberName Specify the name of the member that you want to add to the
specified dimension.
Returns
None.
Related Links
GetMembers
RenameMember
AttachTree
Syntax
AttachTree(DimName, TreeName, setID, UserKeyValue, EffDt, NodeName, OverrideRecord,⇒
DetailStartLvl, TreeDiscardLvl)
Description
Use the AttachTree method to attach a tree to a dimension. Only one tree can be attached to a dimension
at a time. You can only attach a tree before the analytic instance is loaded.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to attach a
tree to.
TreeName Specify the name of the tree that you want to attach to the
dimension.
setID Specify the table indirection key for the tree. This parameter
takes a string value. If the tree structure the tree is based on
has its IndirectionMethod specified as "S", you must specify a
setID.
UserKeyValue Specify the User Key Value for the tree. This parameter takes
a string value. If the tree structure the tree is based on has its
IndirectionMethod specified as "U" or "B", you must specify a
User Key Value.
EffDt Specify an effective date for this tree. This parameter takes a
string value.
NodeName Specify the tree node used as the dimension hierarchy root.
This can be different from the tree root, that is, you can pick a
subtree.
Parameter Description
DetailStartLvl Specify the tree level number (such as 1 for the node hierarchy
root specified by the NodeName parameter) at which detail
nodes start.
If you specify 0, detail nodes are nodes that don't have parents
(a node can be a parent either by having children or by having
child ranges).
TreeDiscardLvl Specify the tree level number (such as 1 for the node hierarchy
root specified by the NodeName parameter) at which to stop
loading the tree. Nodes at this level or at levels greater are
discarded. This parameter is only used if it has a value other
than 0, and if it has a value greater than DetailStartLvl.
Returns
None.
Related Links
DetachTree
GetTree
Understanding Tree Classes
“Understanding the Relationship of PeopleSoft Trees to Analytic Models” (Analytic Calculation Engine)
CalculateCube
Syntax
CalculateCube(CubeName[, Sync])
Description
Use the CalculateCube method to calculate the named cube in synchronous mode.
Parameters
Parameter Description
CubeName Specify the name of the cube that you want to calculate.
Parameter Description
Returns
None.
Related Links
Running Synchronously
Recalculate
DetachTree
Syntax
DetachTree(DimName)
Description
Use the DetachTree method to detach a tree from the specified dimension.
You can only attach a tree when the analytic instance is not loaded. This method fails if you try to detach
a tree while the analytic instance is loaded.
Parameters
Parameter Description
DimName Specify the name of the dimension from which you want to
detach a tree.
Returns
None.
Related Links
AttachTree
GetTree
Understanding Tree Classes
GetCubeCollection
Syntax
GetCubeCollection(CubeCollName)
Description
Use the GetCubeCollection method to return a reference to a CubeCollection object.
Parameters
Parameter Description
CubeCollName Specify the name of the cube collection to which you want a
reference.
Returns
A CubeCollection object if successful.
Related Links
CubeCollection Class
GetCellProperties
Syntax
GetCellProperties(CubeName, &Node)
Description
Use the GetCellProperties method to get information about a cell.
Parameters
Parameter Description
CubeName Specify the name of the cube that contains the cell you want
information about.
Returns
An array of string.
2. User function.
4. Aggregation reason. Values are: “Dimension Level Override”, “Member Level Override”, “Cube
Dimension Level Override”, “None.”
Related Links
Understanding Arrays
GetMembers
Syntax
GetMembers(DimName, DimFilter)
Description
Use the GetMembers method to return the names of the members in the specified dimension. You can
specify a user function to be used as a filter for the dimension using DimFilter.
When filtering hierarchy nodes, if the parent member is filtered, all the child nodes are also filtered.
In order to filter the parent member if all of its children are filtered, the user function should be written
such that for the parent node, apply the condition on all of its children, using the FORCHILDREN built-in
function. If none of the children satisfy the condition, return zero from the user function, which filters the
parent node.
Parameters
Parameter Description
DimName Specify the name of the dimension from which you want to get
the members.
DimFilter Specify a user function that you want to use to filter the
dimension.
Returns
A two-dimensional array of any.
The first dimension contains the member names. The second dimension contains the parent of the
member. The members are sorted in the hierarchy order.
If the dimension does not have a hierarchy, all members are returned as level one.
ALLREGIONS Null
NORTHAMERICA ALLREGIONS
USA NORTHAMERICA
CANADA NORTHAMERICA
MEXICO NORTHAMERICA
EUROPE ALLREGIONS
FRANCE EUROPE
ENGLAND EUROPE
GERMANY EUROPE
ASIA ALLREGIONS
JAPAN ASIA
CHINA ASIA
Related Links
AddMember
RenameMember
GetTree
Syntax
GetTree(DimName)
Description
Use the GetTree method to return an array of string that contains information about the tree that is
attached to the specified dimension.
Parameters
Parameter Description
Returns
An array of string.
1. TreeName
2. setID
3. UserKeyValue
4. EffDt
5. BranchName
7. DetailStartLvl
8. TreeDiscardLvl
Related Links
AttachTree
DetachTree
Understanding Tree Classes
Recalculate
Syntax
Recalculate(Sync)
Description
Use the Recalculate method to recalculates the loaded analytic model. If Sync is true, the transaction is
synchronous, else it is performed asynchronously.
The Recalculate method always writes any changes to readable, readable and writable, as well as writable
records to the database as specified by the analytic type definition.
If you are running in asynchronous mode, this method returns an optional string that contains the
operation ID to be used with the CheckAsyncStatus property.
Parameters
Parameter Description
Returns
A string.
Related Links
CalculateCube
CheckAsyncStatus
AnalyticModelDefn
RenameMember
Syntax
RenameMember(DimName, OrigMemberName, NewMemberName)
Description
Use the RenameMember method to rename a member in the specified dimension.
Parameters
Parameter Description
DimName Specify the dimension that contains the member you want to
rename.
OrigMemberName Specify the name of the member that you want to rename.
Returns
None.
Related Links
AddMember
GetMembers
Messages
Description
This property returns a multi-dimensional array of any containing the messages that occurred during
execution of the Recalculate method.
The first dimension contains the message set number. The second dimension contains the message
number. The third dimension contains the number of parameters in that message. The subsequent
dimensions contain the values for the parameters. The maximum number of possible dimensions is 8.
After you access this property, only new messages are returned, that is, messages are only returned once.
Related Links
Recalculate
CubeCollection Class
Instantiate a CubeCollection object using the AnalyticModel class GetCubeCollection method.
In cube collections, the total member behaves just as the root of the hierarchy. If it's present, it's displayed
first in the list.
Filtering of members in a dimension in the cube collection is similar to filtering members using the
AnalyticModel class GetMembers method. If you filter the parent node, the children of that node are
filtered as well.
See GetCubeCollection.
CollapseNode
Syntax
CollapseNode(DimName, &Node)
Description
Use the CollapseNode method to collapse a node in the dimension specified by DimName.
Parameters
Parameter Description
DimName Specify the name of the dimension that contains the node you
want to collapse.
Returns
None.
Related Links
ExpandNode
DrillIntoNode
Syntax
DrillIntoNode(DimName, &Node)
Description
Use the DrillIntoNode method to display more data for the specified node and dimension. This is very
similar to expanding, except that when you expand a node, the top level (node) is still present. When you
drill into a node, the top level or levels are no longer displayed.
Parameters
Parameter Description
DimName Specify the name of the dimension that contains the node that
you want to drill into.
Returns
None.
Related Links
DrillOutOfNode
DrillOutOfNode
Syntax
DrillOutOfNode(DimName, &Node)
Description
Use the DrillOutOfNode method to collapse the data that you just expanded.
Parameters
Parameter Description
DimName Specify the name of the dimension that contains the node you
want to drill out of.
Returns
None.
Related Links
DrillIntoNode
ExpandNode
Syntax
ExpandNode(DimName, &Nodes, ExpandAll)
Description
Use the ExpandNode method to expand the nodes in the specified dimension.
Parameters
Parameter Description
DimName Specify the name of the dimension contains the node that you
want to expand.
Returns
None.
Example
In the following example, both the Accounts and Dept dimensions have hierarchies.
Account Dept
When you want to expand All Depts under Account 100 , use the following PeopleSoft Analytic
Calculation Engine code:
BAMCoordinate coord;
coord.SetValue( "Account", "100");
coord.SetValue("Dept" , "All Depts")
ExpandNode("Dept", coord, false)
Related Links
CollapseNode
GetData
Syntax
GetData(&DataRowset, StartRow, EndRow[, NetChanges])
Description
Use the GetData method to populate a rowset with data from the cube collection.
DataRowset is the rowset into which is put the data. If you specify an already instantiated rowset, the
given rowset is populated with the data. If you specify a rowset that has not been instantiated, a new
rowset is created, with the record field definition of the desired cube collection.
Parameters
Parameter Description
&DataRowset Specify the rowset into which to put the data. If you specify an
already instantiated rowset, the given rowset is populated with
the data. If you specify a rowset that has not been instantiated,
a new rowset is created, with the record field definition of the
desired cube collection.
NetChanges Specify whether all values within the range are returned, or
whether just values changed since the last time the Recalculate
method was used. This parameter takes a Boolean value: true,
return all values, false, return just the changed values. The
default value is false.
Returns
None.
Related Links
SetData
Messages
Understanding Rowset Class
GetDimFilter
Syntax
GetDimFilter(DimName)
Description
Use the GetDimFilter method to return the name of the current user function (filter) used with the
specified dimension.
Parameters
Parameter Description
DimName Specify the name of the dimension for which you want the
associated user function (filter).
Returns
A string containing the name of the user function. If there is no filter applied to the dimension, this
method returns an empty string.
Related Links
SetDimFilter
GetDimSort
Syntax
GetDimSort(DimName)
Description
Use the GetDimSort to return the current sort settings on the specified dimension.
Parameters
Parameter Description
DimName Specify the name of the dimension for which you'd like the
sort settings.
Returns
An array of any. The array contains the same structure as the signature for the SetDimSort method.
Value Description
Value Description
Related Links
SetDimSort
GetLayout
Syntax
GetLayout(&SlicerArray, &RowAxisArray, &ColumnAxisArray)
Description
Use the GetLayout method to return the current layout for the three axes, (slice, row, and column) on the
specified dimension.
Parameters
Parameter Description
Returns
None.
GetRowCount
Syntax
GetRowCount()
Description
Use the GetRowCount method to return the total number of rows in the cube collection.
The number of rows is a function of the hierarchy, that is, what is shown or not shown, and filtered
values.
Parameters
None.
Returns
An integer.
Related Links
GetDimension
GetSlice
Syntax
GetSlice(&SliceRecord)
Description
Use the GetSlice method to return the current slice values of all the dimensions.
Parameters
Parameter Description
Returns
None.
Related Links
SetSlice
SetData
Syntax
SetData(&DataRowset)
Description
Use the SetData method to populate the data in the cube collection with the data in the specified rowset.
The system extracts only changed values from the rowset, that is, values marked as updated. .
SetData method also writes the changes to the database for any record marked as writable or readable and
writable in the analytic type definition, and mapped to the specified cube collection.
Parameters
Parameter Description
&DataRowset Specify the rowset object that contains the data you want to
use to populate the cube collection.
Returns
None.
Related Links
GetData
IsChanged
Understanding Rowset Class
SetDimensionOrder
Syntax
SetDimensionOrder(&FieldNames)
Description
Use the SetDimensionOrder method to specify the order of dimensions for this cube collection.
Parameters
Parameter Description
Returns
None.
Related Links
SetDimSort
SetDimFilter
Syntax
SetDimFilter(DimName, DimFilter)
Description
Use the SetDimFilter method to set a dimension filter for the specified dimension in the cube collection.
Parameters
Parameter Description
DimName Specify the name of the dimension for which you want to
specify a dimension filter.
DimFilter Specify the name of the dimension filter (user function) that
you want to use the dimension.
Returns
None.
Related Links
“Understanding Dimensions” (Analytic Calculation Engine)
SetDimSort
Syntax
SetDimSort(DimName, IsAscending [, Key1, IsAscending2, Key2, IsAscending3, Key3])
Description
Use the SetDimSort method to specify the sorting order for the cube collection.
Key1, Key2and Key3 are optional parameters. If they are not specified, the sorting works as a name sort,
that is, it sorts by the name of members in the given dimension, either in ascending or descending order.
If keys are specified, the keys values refer to the names of the cubes to be used as they key. The method
orders the members of the dimension based on the value of the cubes for each member. The Boolean
parameter IsAscending defines whether sorting should be in ascending or descending order. Up to three
sort keys may be specified. Key1 is the primary sort key. Key2 is used to sub-sort any members that have
the same key value under Key1, and so on.
The scope of this method is the same as the scope of the AnalyticModel object created in PeopleCode,
that is, if the AnalyticModel object was declared with scope Global, this method would have a global
scope as well, if it was declared as Local, it would have Local, and so on.
Specifying a null string for DimName or for keys one through three removes the current value as a sort
value.
Parameters
Parameter Description
DimName Specify the dimension name that you would like sorted.
Key1 Specify the name of a key field by which the sort should be
ordered. If you do not specify keys, the sort is ordered by the
names of the members in the given dimensions. If you do
specify keys, the sort is order by the keys.
Returns
None.
SetSlice
Syntax
SetSlice(&SliceRecord)
Description
Use the SetSlice method to specify a slice record for this cube collection.
Parameters
Parameter Description
Returns
None.
Related Links
GetSlice
ShowHierarchy
Syntax
ShowHierarchy(DimName, Show, ExpandToLevel)
Description
Use the ShowHierarchy method to either hide or display the cube collection hierarchy.
If there is a tree attached to the dimension, and Show is false, only the detail level members are shown in
the Analytic grid. If Show is true, all members including nodes are shown.
When the hierarchy is hidden, the GetData method returns only leaf values. When the hierarchy is
displayed, GetData returns node values and leaf values.
The ExpandToLevel parameter expands the hierarchy to the level specified. Level indexes start from 0 ,
the root level.
For example, if you specify ExpandToLevel as 1, the grid displays the total (root member) and all the
detail members in a dimension with no tree attached.
In the following example, if you specify ExandToLevel as 2, the hierarchy would be displayed only to the
quarter level, and not to the month level.
ALL_TIME
2003
Q1
Jan
Feb
Mar
Q2
Apr
May
Jun
Q3
. . .
. . .
Q4
2004
Q1
Q2
Q3
Q4
Parameters
Parameter Description
DimName Specify the name of the dimension for which you want to
either display or hide the hierarchy.
Returns
None.
Related Links
CollapseNode
ExpandNode
GetData
UnsetDimFilter
Syntax
UnsetDimFilter(DimName)
Description
Use the UnsetDimFilter method to remove the filter on the specified dimension for the cube collection.
Parameters
Parameter Description
DimName Specify the name of the dimension from which you want to
remove the filter.
Returns
None.
Related Links
SetDimFilter
UnsetDimSort
Syntax
UnsetDimSort(DimName)
Description
Use the UnsetDimSort method to remove the sorting on the specified dimension for a cube collection.
After using this method, the members are returned in the global member order as specified in the analytic
model definition.
Parameters
Parameter Description
DimName Specify the name of the dimension from which you want to
remove sorting.
Returns
None.
Related Links
SetDimSort
Messages
Description
This property returns a multi-dimensional array of any containing the messages that occurred during
execution of the GetData, SetData, and CalculateCube methods.
The first dimension contains the message set number. The second dimension contains the message
number. The third dimension contains the number of parameters in that message. The subsequent
dimensions contain the values for the parameters. The maximum number of possible dimensions is 8.
After you access this property, only new messages are returned, that is, messages are only returned once.
Related Links
GetData
SetData
CalculateCube
More specifically, developers create analytic models in order to define the rules which are used to
calculate data. Developers also create PeopleSoft Pure Internet Architecture pages with analytic grids in
order to display the data within PeopleSoft applications. End users view, analyze and make changes to
this data. When end users save their changes, PeopleSoft Analytic Calculation Engine recalculates the
data and saves the calculated data to the database.
• Use the Analytic Calculation Engine classes to either retrieve or specify data in an instance of an
analytic model loaded into the system, and also to calculate (or recalculate) cube values.
• Use the Analytic Calculation Engine metadata classes to manipulate an analytic model definition. For
example, you can add cubes to a cube collection or rename an existing user function for a model.
• Use the Analytic Grid classes to manipulate the display of analytic calculation data on a page.
• Use the Analytic Type classes to manipulate an analytic type definition. For example, you can specify
a new analytic model for an analytic type definition.
Important! The Analytic Calculation Engine Metadata classes are not supported on IBM z/OS and Linux
for IBM System z platforms.
Related Links
Understanding the Analytic Calculation Engine Classes
AnalyticGrid Class Methods
Using the Analytic Type Classes
You can also create an analytic model definition in PeopleCode, using the Create method, then saving it
to the database using the Save method. After you save the definition, you can access it using Application
Designer.
All of the primary objects (dimensions, cube collections, cubes, and so on) are instantiated from an
analytic model object, so you only need to create an instance of the analytic model. You can also build a
rule as an object instead of as a string.
The following example creates a cube that uses the Analytic Calculation Engine built-in function AT.
Function AT_Cube
/** AT Cube Rule **/
&Expected = "AT(GENERAL2, [GENERAL2:4], LOOKUPVALUES)";
&CubeName = "AT";
uncCall_Type_Builtin, &Constants.FuncCall_Builtin_AT);
tant_Type_Literal, "GENERAL2");
&FunCall.AddArgument(&Constant);
("GENERAL2", "4");
&FunCall.AddArgument(&MemberRefArgument);
;
&FunCall.AddArgument(&CubeArgument);
Error Handling
All the Analytic Calculation Engine Metadata classes throw PeopleCode exceptions for any fatal error
that occurs in the execution of the operation. PeopleSoft recommends enclosing your analytic model
programs in try-catch statements. This way, if your program catches the exception, the message set and
message number that are associated with the exception object indicate the error.
Related Links
Try-Catch Blocks
These objects can be used anywhere you have PeopleCode, that is, in a Application Engine program, an
application class, record field PeopleCode, and so on.
Analytic Calculation Engine Metadata objects can be of scope Local, Component or Global.
An import statement names either all the classes in a package or one particular application class. For
importing the Analytic Calculation Engine metadata classes, PeopleSoft recommends that you import all
the classes in the application package.
• AnalyticModelDefn
• CubeCollectionDefn
• CubeDefn
• DimensionDefn
• ExplicitDimSet
• OrganizerDefn
• RuleDefn
• UserFunctionDefn
Additionally, there is a sub-application package, RuleExpressions, that contains classes used to build a
rule as object instead of as a simple string. This package contains the following classes:
• Assignment
• Comparison
• Constant
• Constants
• Cube
• ExpressionBlock
• FunctionCall
• MemberReference
• Operation
• RuleExpression
• Variable
Using the asterisks after the package name makes all the application classes directly contained in the
named package available.
Related Links
Understanding Application Classes
The following example creates an AnalyticModelDefn object from the QE_ALLFUNCTION analytic
model definition.
import PT_ANALYTICMODELDEFN:*;
Related Links
Analytic Calculation Engine Metadata Classes Constructor
AnalyticModelDefn
Syntax
AnalyticModelDefn(ModelName)
Description
Use the AnalyticModelDefn constructor to create an AnalyticModelDefn object.
Once the AnalyticModelDefn object is created, you can then execute either the Get or Create methods to
‘instantiate’ the model.
Note: The Delete and Rename methods can only be executed before a model is ‘instantiated’.
Parameters
Parameter Description
Returns
An AnalyticModelDefn object.
Example
&Model = create AnalyticModelDefn("QE_ALLFUNCTION");
Related Links
AnalyticModelDefn Class
AnalyticModelDefn Class
Use the AnalyticModelDefn class to view or manipulate an analytic model definition that's already been
created in Application Designer, or to create a new definition.
Related Links
AnalyticModel Class Methods
AddCube
Syntax
AddCube(CubeName)
Description
Use the AddCube method to add a new cube to the analytic model definition. This method fails if the
cube specified by CubeName already exists.
Parameters
Parameter Description
CubeName Specify the name of a new cube that you want to add to the
analytic model.
Returns
A CubeDefn object.
Related Links
CopyCube
DeleteCube
GetCube
GetCubeNames
RenameCube
CubeDefn Class
AddCubeCollection
Syntax
AddCubeCollection(CubeCollectionName)
Description
Use the AddCubeCollection method to add a new cube collection to the analytic model definition. This
method fails if CubeCollectionName already exists.
Parameters
Parameter Description
CubeCollectionName Specify the name of a new cube collection that you want to
add to the analytic model definition.
Returns
A CubeCollectionDefn object.
Related Links
CopyCubeCollection
DeleteCubeCollection
GetCubeCollection
RenameCubeCollection
AddDimension
Syntax
AddDimension(DimName)
Description
Use the AddDimension method to add a new dimension to the analytic model. This method fails if the
specified dimension already exists.
When you add a dimension to a cube, the dimension is also automatically added to any cube collections
that already contain the cube.
Parameters
Parameter Description
DimName Specify the name of the dimension you want to add. This must
be a new dimension.
Returns
A DimensionDef object.
Related Links
CopyDimension
DeleteDimension
GetDimension
DimensionDefn Class
AddExplicitDimensionSet
Syntax
AddExplicitDimensionSet(ExplicitDimSetName)
Description
Use the AddExplicitDimensionSet method to add a new explicit dimension set to the analytic model. This
method fails if the specified explicit dimension set already exists.
Parameters
Parameter Description
ExplicitDimSetName Specify the name of the explicit dimension you want to add.
This must be a new explicit dimension.
Returns
An ExplicitDimensionSet object.
Related Links
GetExplicitDimensionSet
DeleteExplicitDimensionSet
CopyExplicitDimensionSet
GetExplicitDimensionSetNames
RenameExplicitDimensionSet
AddOrganizer
Syntax
AddOrganizer(OrganizerName)
Description
Use the AddOrganizer method to add a new organizer to the analytic model. This method fails if the
organizer specified by OrganizerName already exists.
Parameters
Parameter Description
Returns
An OrganizerDefn object.
Related Links
DeleteOrganizer
GetOrganizer
GetOrganizerNames
RenameOrganizer
OrganizerDefn Class
AddUserFunction
Syntax
AddUserFunction(UserFunctionName)
Description
Use the AddUserFunction method to add a new user function to the analytic model. This method fails if
the user function specified by UserFunction already exists.
Parameters
Parameter Description
UserFunctionName Specify the name of the new user function that you want to
add.
Returns
A UserFunction object.
Related Links
CopyUserFunction
DeleteUserFunction
GetUserFunction
GetUserFunctionNames
RenameUserFunction
UserFunctionDefn Class
CopyCube
Syntax
CopyCube(CubeName, NewCubeName)
Description
Use the CopyCube method to copy the specified cube to the new cube. This method fails if the cube
specified by CubeName already exists.
Parameters
Parameter Description
CubeName Specify the name of the cube that you want to copy.
NewCubeName Specify the name of the new cube that you want to create.
Returns
A CubeDefn object.
Related Links
AddCube
AddCube
GetCube
GetCubeNames
RenameCube
CubeDefn Class
CopyCubeCollection
Syntax
CopyCubeCollection(CubeCollectionName, NewCubeCollectionName)
Description
Use the CopyCubeCollection method to copy the specified cube collection to a new collection. If the new
cube collection specified by NewCubeCollectionName already exists, this method fails.
Parameters
Parameter Description
CubeCollectionName Specify the name of the cube collection that you want to copy.
NewCubeCollectionName Specify the name you want for the new cube collection.
Returns
A CubeCollectionDefn object.
Related Links
AddCubeCollection
DeleteCubeCollection
GetCubeCollection
GetCubeCollectionNames
RenameCubeCollection
CubeCollectionDefn Class
CopyDimension
Syntax
CopyDimension(DimName, NewDimName)
Description
Use the CopyDimension method to copy the dimension specified by DimName to a new dimension. If the
dimension specified by NewDimName already exists, this method fails.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to copy.
NewDimName Specify the name of the new dimension that you want the data
copied to.
Returns
A DimensionDefn object.
Related Links
AddDimension
DeleteDimension
RenameDimension
CopyExplicitDimensionSet
Syntax
CopyExplicitDimensionSet(ExplicitDimSetName, NewExplicitDimSetName)
Description
Use the CopyExplicitDimensionSet method to copy the explicit dimension set specified by
ExplicitDimSetName to a new explicit dimension set. If the explicit dimension set specified by
NewExplicitDimSetName already exists, this method fails.
Parameters
Parameter Description
ExplicitDimSetName Specify the name of the explicit dimension set that you want to
copy.
NewExplicitDimSetName Specify the name of the new explicit dimension set that you
want the data copied to.
Returns
An ExplicitDimensionSet object.
Related Links
RenameExplicitDimensionSet
AddExplicitDimensionSet
DeleteExplicitDimensionSet
GetExplicitDimensionSet
GetExplicitDimensionSetNames
CopyTo
Syntax
CopyTo(NewModelName)
Description
Use the CopyTo method to copy the AnalyticModelDefn object to a new analytic model specified by
NewModelName. If the model set specified by NewModelName already exists, this method fails.
Parameters
Parameter Description
NewModelName Specify the name of a new analytic model definition that you
want to create.
Returns
An AnalyticModelDefn object.
Related Links
Create
Delete
Get
Rename
Save
CopyUserFunction
Syntax
CopyUserFunction(UserFunctionName, NewUserFunctionName)
Description
Use the CopyUserFunction method to copy the user function specified by UserFunctionName to a new
user function. If the user function specified by NewUserFunctionName already exists, this method fails.
Parameters
Parameter Description
UserFunctionName Specify the name of the user function that you want to copy.
NewUserFunctionName Specify the name of the new user function that you want to
add.
Returns
A UserFunctionDefn object.
Related Links
AddUserFunction
DeleteUserFunction
GetUserFunction
GetUserFunctionNames
RenameUserFunction
UserFunctionDefn Class
Create
Syntax
Create()
Description
Use the Create method to create, and instantiate, a new model. If you save the new model after you create
it, you can then access it in Application Designer as an analytic model definition.
Parameters
None.
Returns
None.
Related Links
CopyTo
Delete
Get
Rename
Delete
Syntax
Delete()
Description
Use the Delete method to delete the analytic model executing the method.
You can only use this method on a closed analytic model definition, that is, before you use a Get or Create
method.
Warning! The delete occurs immediately, that is, the analytic model definition is removed from the
database. Only use this method if you're certain you want to delete the definition.
If this model is used by any existing analytic type definition, this method fails.
Parameters
None.
Returns
None.
Related Links
CopyTo
Create
Get
Rename
Save
DeleteCube
Syntax
DeleteCube(CubeName, ForceDelete)
Description
Use the DeleteCube method to delete the cube specified by CubeName.
Parameters
Parameter Description
CubeName Specify the name of the cube you want to delete from the
analytic model.
Returns
None.
Related Links
AddCube
GetCube
GetCubeNames
RenameCube
CubeCollectionDefn Class
DeleteCubeCollection
Syntax
DeleteCubeCollection(CubeCollectionName, ForceDelete)
Description
Use the DeleteCubeCollection method to delete the cube collection specified by CubeCollectionName.
Parameters
Parameter Description
CubeCollectionName Specify the name of the cube collection that you want to delete
from the analytic model.
Returns
None.
Related Links
AddCubeCollection
GetCubeCollection
GetCubeCollectionNames
RenameCubeCollection
CubeCollectionDefn Class
DeleteDimension
Syntax
DeleteDimension(DimensionName, ForceDelete)
Description
Use the DeleteDimension method to delete the dimension specified by DimensionName.
Parameters
Parameter Description
Returns
None.
Related Links
AddDimension
CopyDimension
GetDimension
GetDimensionNames
RenameDimension
DimensionDefn Class
DeleteExplicitDimensionSet
Syntax
DeleteExplicitDimensionSet(ExplicitDimensionSetName, ForceDelete)
Description
Use the DeleteExplicitDimensionSet method to delete the explicit dimension set specified by
ExplicitDimensionSetName.
Parameters
Parameter Description
ExplicitDimensionSetName Specify the name of the explicit dimension set you want to
delete.
Returns
None.
Related Links
AddExplicitDimensionSet
CopyExplicitDimensionSet
GetExplicitDimensionSet
GetExplicitDimensionSetNames
RenameExplicitDimensionSet
DeleteOrganizer
Syntax
DeleteOrganizer(OrganizerName, ForceDelete)
Description
Use the DeleteOrganizer method to delete the organizer specified by OrganizerName.
Parameters
Parameter Description
Returns
None.
Related Links
AddOrganizer
GetOrganizer
GetOrganizerNames
RenameOrganizer
OrganizerDefn Class
DeleteUserFunction
Syntax
DeleteUserFunction(UserFunctionName, ForceDelete)
Description
Use the DeleteUserFunction method to delete the user function specified by UserFunctionName.
Parameters
Parameter Description
UserFunctionName Specify the name of the user function you want to delete.
Returns
None.
Related Links
AddUserFunction
CopyUserFunction
GetUserFunction
GetUserFunctionNames
RenameUserFunction
UserFunctionDefn Class
Get
Syntax
Get()
Description
Use the Get method to instantiate an instance of the analytic model.
Parameters
None.
Returns
None.
Related Links
CopyTo
Create
Delete
Rename
Save
GetCube
Syntax
GetCube(CubeName)
Description
Use the GetCube method to return a reference to the cube specified by CubeName. This method fails if
the cube specified by CubeName doesn't exist.
Parameters
Parameter Description
CubeName Specify the name of the cube that you want a reference to.
Returns
A CubeDefn object.
Related Links
AddCube
CopyCube
DeleteCube
GetCubeNames
RenameCube
CubeCollectionDefn Class
GetCubeCollection
Syntax
GetCubeCollection(CubeCollectionName)
Description
Use the GetCubeCollection method to return a reference to a cube collection. This method fails if the
cube collection specified by CubeCollectionName doesn't exist.
Parameters
Parameter Description
CubeCollection Specify the name of the cube collection you want a reference
to.
Returns
A CubeCollectionDefn object.
Related Links
AddCubeCollection
CopyCubeCollection
DeleteCubeCollection
GetCubeCollection
GetCubeCollectionNames
RenameCubeCollection
CubeCollectionDefn Class
GetCubeCollectionNames
Syntax
GetCubeCollectionNames()
Description
Use the GetCubeCollectionNames method to return an array of strings containing all the names of the
cube collections associated with this analytic model.
Parameters
None.
Returns
An array of string.
Related Links
AddCubeCollection
CopyCubeCollection
DeleteCubeCollection
GetCubeCollection
RenameCubeCollection
CubeCollectionDefn Class
Understanding Arrays
GetCubeNames
Syntax
GetCubeNames()
Description
Use the GetCubeNames method to return an array of strings containing all the names of the cubes
associated with this analytic model.
Parameters
None.
Returns
An array of string.
Related Links
AddCube
CopyCube
DeleteCube
GetCube
RenameCube
CubeCollectionDefn Class
Understanding Arrays
GetDimension
Syntax
GetDimension(DimName)
Description
Use the GetDimension method to return a reference to the dimension specified by DimName. This method
fails if the dimension specified by DimName doesn't exist.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want a reference
to.
Returns
A DimensionDefn object.
Related Links
AddDimension
CopyDimension
DeleteDimension
GetDimensionNames
RenameDimension
DimensionDefn Class
GetDimensionNames
Syntax
GetDimensionNames()
Description
Use the GetDimensionNames method to return an array of string containing the names of all the
dimensions associated with the analytic model.
Parameters
None.
Returns
An array of string.
Related Links
AddDimension
CopyDimension
DeleteDimension
DeleteDimension
GetDimension
RenameDimension
DimensionDefn Class
Understanding Arrays
GetExplicitDimensionSet
Syntax
GetExplicitDimensionSet(ExplicitDimSetName)
Description
Use the GetExplicitDimensionSet method to return a reference to the explicit dimension set specified by
ExplicitDimSetName. This method fails if the explicit dimension set specified by ExplicitDimSetName
doesn't exist.
Parameters
Parameter Description
ExplicitDimSetName Specify the name of the explicit dimension set that you want a
reference to.
Returns
An ExplicitDimensionSet object.
Related Links
AddExplicitDimensionSet
CopyExplicitDimensionSet
DeleteExplicitDimensionSet
GetExplicitDimensionSetNames
GetExplicitDimensionSetNames
Syntax
GetExplicitDimensionSetNames()
Description
Use the GetExplicitDimensionSetNames method to return an array of string containing the names of all
the explicit dimension sets associated with the analytic model.
Parameters
None.
Returns
An array of strings.
Related Links
ExplicitDimensionSet Class
GetOrganizer
Syntax
GetOrganizer(OrganizerName)
Description
Use the GetOrganizer method to return a reference to the organizer specified by OrganizerName. This
method fails if the organizer specified by OrganizerName doesn't exist.
Parameters
Parameter Description
OrganizerName Specify the name of the organizer you want a reference to.
Returns
An OrganizerDefn object.
Related Links
AddOrganizer
DeleteOrganizer
GetOrganizerNames
RenameOrganizer
OrganizerDefn Class
GetOrganizerNames
Syntax
GetOrganizerNames()
Description
Use the GetOrganizerNames method to return an array of string containing the names of all the organizers
associated with the analytic model.
Parameters
None.
Returns
An array of string.
Related Links
AddOrganizer
DeleteOrganizer
GetOrganizer
RenameOrganizer
OrganizerDefn Class
Understanding Arrays
GetUserFunction
Syntax
GetUserFunction(UserFunctionName)
Description
Use the GetUserFunction method to return a reference to the user function specified by
UserFunctionName. This method fails if the user function specified by UserFunctionName doesn't exist.
Parameters
Parameter Description
UserFunctionName Specify the name of a user function that you want a reference
to.
Returns
A UserFunctionDefn object
Related Links
AddUserFunction
CopyUserFunction
DeleteUserFunction
GetUserFunctionNames
RenameUserFunction
UserFunctionDefn Class
GetUserFunctionNames
Syntax
GetUserFunctionNames()
Description
Use the GetUserFunctionNames method to return an array of string containing the names of all the user
functions associated with the analytic model.
Parameters
None.
Returns
An array of string.
Related Links
AddUserFunction
CopyUserFunction
DeleteUserFunction
GetUserFunction
RenameUserFunction
UserFunctionDefn Class
Understanding Arrays
Rename
Syntax
Rename(NewModelName)
Description
Use the Rename method to rename the analytic model.
You can only use this method on a closed analytic model definition, that is, before you use a Get or Create
method.
Parameters
Parameter Description
Returns
None.
Related Links
Create
Get
Save
RenameCube
Syntax
RenameCube(CubeName, NewCubeName, ForceRename)
Description
Use the RenameCube method to rename the cube specified by CubeName to NewCubeName.
Parameters
Parameter Description
Returns
None.
Related Links
AddCube
CopyCube
DeleteCube
GetCube
GetCubeNames
CubeDefn Class
RenameCubeCollection
Syntax
RenameCubeCollection(CubeCollectionName, NewCubeCollectionName, ForceRename
Description
Use the RenameCubeCollection method to rename the cube collection specified by CubeCollectionName
to the new name NewCubeCollectionName
Parameters
Parameter Description
CubeCollectionName Specify the name of the cube collection that you want to
rename.
Returns
None.
Related Links
AddCubeCollection
CopyCubeCollection
DeleteCubeCollection
GetCubeCollection
GetCubeCollectionNames
GetCubeCollectionNames
RenameDimension
Syntax
RenameDimension(DimName, NewDimName, ForceRename)
Description
Use the RenameDimension method to rename the dimension specified by DimName to the new name
NewDimName.
Parameters
Parameter Description
Parameter Description
Returns
None.
Related Links
AddDimension
CopyDimension
DeleteDimension
GetDimension
GetDimensionNames
DimensionDefn Class
RenameExplicitDimensionSet
Syntax
RenameExplicitDimensionSet(ExplicitDimSetName, NewExplicitDimSetName, ForceRename)
Description
Use the RenameExplicitDimensionSet method to rename the explicit dimension set specified by
ExplicitDimSetName to the new name NewExplicitDimSetName.
Parameters
Parameter Description
ExplicitDimSetName Specify the name of the explicit dimension set you want to
rename.
ForceRename The value for this parameter is ignored in the current release.
Returns
None.
Related Links
AddExplicitDimensionSet
CopyExplicitDimensionSet
DeleteExplicitDimensionSet
GetExplicitDimensionSet
RenameExplicitDimensionSet
RenameOrganizer
Syntax
RenameOrganizer(OrganizerName, NewOrganizerName, ForceRename)
Description
Use the RenameOrganizer method to rename the organizer specified by OrganizerName to the new name
NewOrganizerName.
Parameters
Parameter Description
ForceRename The value for this parameter is ignored in the current release.
Returns
None.
Related Links
AddOrganizer
DeleteOrganizer
GetOrganizer
GetOrganizerNames
OrganizerDefn Class
RenameUserFunction
Syntax
RenameUserFunction(UserFunctionName, NewUserFunctionName, ForceRename)
Description
Use the RenameUserFunction method to rename the user function specified by UserFunctionName to the
new name NewUserFunctionName.
Parameters
Parameter Description
UserFunctionName Specify the name of the user function you want to rename.
Returns
None.
Related Links
AddUserFunction
CopyUserFunction
DeleteUserFunction
GetUserFunction
GetUserFunctionNames
UserFunctionDefn Class
Save
Syntax
Save()
Description
Use the Save method to save any changes to the analytic model definition to the database. If the saved
model is valid, the value of the IsValid property is set to true, if it is not valid, it is set to false.
The Messages property is populate with messages from the validation that occurs with the save.
Parameters
None.
Returns
None.
Related Links
Create
Validate
IsValid
Messages
Validate
Syntax
Validate()
Description
Use the Validate method to validate the analytic model definition. This method returns true if the model
successfully validates. If this method returns false, the detailed error messages are available through the
Messages property.
The IsValid property is not set with this method. The Save method sets the IsValid property.
Parameters
None.
Returns
A Boolean value: true if the analytic model definition validates successfully, false otherwise.
Related Links
Create
Save
Messages
IsValid
AnalyticModelDefn Properties
The following section discusses the AnalyticModelDefn class properties. The properties are discussed in
alphabetical order.
CircularFormulaWarn
Description
Use this property to specify whether warnings occur when there are circular dependencies as rules are
added. This property takes a Boolean value: true if warnings should occur, false otherwise. The default
value for this property is false.
Description
Description
Use this property to specify the description of the analytic model. This property takes a string value.
IsValid
Description
This property indicates if the analytic model is valid, that is, if it would successfully load.
Related Links
Validate
Save
“Validating Analytic Models” (Analytic Calculation Engine)
LongDescription
Description
Use this property to specify the long description of the analytic model definition. This property takes a
string value.
MaxDelta
Description
This property specifies the maximum number of value changes for the analytic model
Related Links
“Understanding the Analytic Model Definition Creation Process” (Analytic Calculation Engine)
MaxIterations
Description
Use this property to specify the maximum number of iterations for the analytic model.
Related Links
Understanding the Analytic Calculation Engine Classes
Messages
Description
This property returns a multi-dimensional array of any that contains the messages that occurred during
execution of the Validate or Save methods. This array is only populated after the Validate or Save method
has completed successfully.
The first dimension contains the message set number. The second dimension contains the message
number. The third dimension contains the number of parameters in that message. The subsequent
dimensions contain the values for the parameters. The maximum number of possible dimensions is 8.
Related Links
Validate
Save
Name
Description
This property indicates the name of the analytic model.
Related Links
Rename
ResolveCircularDeps
Description
Use this property to specify if the analytic model should resolve circular dependencies through iteration.
This property takes a Boolean value: true if the dependencies should be resolved, false otherwise. The
default value is false.
DimensionDefn Class
Use the DimensionDefn class to access a dimension that's associated with an analytic model. You
instantiate an object of this class using the following AnalyticModelDefn methods:
• AddDimension
• CopyDimension
• GetDimension
AggregateSequence
Description
This property indicates the sequence number of this dimension used during aggregation of the analytic
model
AggregationUserFunction
Description
Use this property to specify the name of a user function that can be used to override the default
aggregation for this dimension.
Comments
Description
Use this property to specify additional notes about the dimension.
Name
Description
This property indicates the name of the dimension.
Related Links
GetDimensionNames
RenameDimension
TotalMemberName
Description
Use this property to specify a field value that is used at runtime to host the total value for this dimension.
If a total isn't applicable, this property has no value.
ExplicitDimensionSet Class
Use the ExplicitDimensionSet class to access an explicit dimension set associated with an analytic model.
You instantiate an object of this class using one of the following AnalyticModelDefn methods:
• AddExplicitDimensionSet
• CopyExplicitDimensionSet
• GetExplicitDimensionSet
You can also use the GetExplicitDimensionSetNames to return an array containing the names of all the
explicit dimension sets associated with the analytic model.
ExplicitDimensionSet Methods
The following section discusses the ExplicitDimensionSet class methods. The methods are discussed in
alphabetical order.
AttachDimension
Syntax
AttachDimension(DimName)
Description
Use the AttachDimension method to attach a dimension to an explicit dimension set.
Parameters
Parameter Description
Returns
None.
Related Links
DetachDimension
DetachDimension
Syntax
DetachDimension(DimName)
Description
Use the DetachDimension method to detach a dimension from an explicit dimension set.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to detach.
Returns
None.
Related Links
AttachDimension
GetDimensionNames
Syntax
GetDimensionNames()
Description
Use the GetDimensionNames method to return an array of string that contains the names of all the
dimensions associated with the ExplicitDimensionSet.
Parameters
None.
Returns
An array of string.
Related Links
AttachDimension
DetachDimension
ExplicitDimensionSet Properties
The following section discusses the ExplicitDimensionSet class properties. The properties are discussed
in alphabetical order.
Name
Description
The Name property returns the name of the explicit dimension set as a string.
SequenceNumber
Description
This property returns the sequence number of the explicit dimension set.
CubeDefn Class
Use the CubeDefn class to access a cube associated with an analytic model. You instantiate an object of
this class using the following AnalyticModelDefn methods:
• AddCubeDefn
• CopyCubeDefn
• GetCubeDefn
AttachDimension
Syntax
AttachDimension(DimName)
Description
Use the AttachDimension method to attach an existing dimension specified by DimName to the cube.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to add.
Returns
None.
Related Links
DetachDimension
GetDimensionNames
UsesDimension
AddDimension
DimensionDefn Class
DetachDimension
Syntax
DetatchDimension(DimName)
Description
Use the DetachDimension method to detach the dimension specified by DimName from the cube.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to detach
from the cube.
Returns
None.
Related Links
AttachDimension
GetDimensionNames
UsesDimension
AddDimension
DimensionDefn Class
GetCauses
Syntax
GetCauses(CauseType)
Description
Any cube that affects another cube is a cause of that cube. Use the GetCauses method to return a list of all
the other cubes that are the causes for this cube.
Parameters
Parameter Description
Value Description
AnalyticModel_AllCauses Return all cubes that are causes for this cube, both direct and
indirect.
Returns
An array of string.
Related Links
GetEffects
GetCircularDeps
“Understanding Causes and Inputs” (Analytic Calculation Engine)
GetCircularDeps
Syntax
GetCircularDeps(DimName)
Description
Use the GetCircularDeps method to return all cubes that have circular dependencies based on the
dimension specified by DimName.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to find
circular dependencies for.
Returns
An array of string.
Related Links
GetCauses
GetEffects
GetDimensionAggregate
Syntax
GetDimensionAggregate(DimName)
Description
Use the GetDimensionAggregate method to return the name of the user function used for the aggregate
for the dimension specified by DimName.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want the aggregate
user function.
Returns
A string.
Related Links
SetDimensionAggregate
GetUserFunctionNames
UserFunctionDefn Class
GetEffects
Syntax
GetEffects(EffectType)
Description
Any cube that is affected by another cube is an effect of that cube. Use the GetEffects method to return a
list of all the cubes affected by this cube.
Parameters
Parameter Description
Value Description
AnalyticModel_DirectEffects Only return cubes that are a direct effect on this cube.
Returns
An array of string.
Related Links
GetCauses
GetCircularDeps
CubeDefn Class Properties
GetDimensionNames
Syntax
GetDimensionNames()
Description
Use the GetDimensionNames method to return an array of string containing the names of all the
dimensions associated with the cube.
Parameters
None.
Returns
An array of string.
Related Links
AttachDimension
DetachDimension
Understanding Arrays
GetRule
Syntax
GetRule()
Description
Use the GetRule method to get a reference to a RuleDefn object that represents the rule for this cube.
Parameters
None.
Returns
A RuleDefn object.
Related Links
RuleDefn Class
SetRule
SetDimensionAggregate
Syntax
SetDimensionAggregate(DimName, UserFunctionName)
Description
Use the SetDimensionAggregate method to specify the user function to be used for the aggregate for the
dimension DimName.
Parameters
Parameter Description
DimName Specify the name of the dimension for which you want to set
the aggregate.
Returns
None.
Related Links
GetDimensionAggregate
SetRule
Syntax
SetRule(&RuleDefn)
Description
Use the SetRule method to specify a RuleDefn object to be used as the rule for this cube.
Parameters
Parameter Description
Returns
None.
Related Links
GetRule
RuleDefn Class
UsesDimension
Syntax
UsesDimension(DimName)
Description
Use the UsesDimension method to determine if the dimension specified by DimName is used by this
cube.
Parameters
Parameter Description
DimName Specify the name of the dimension that you want to check for.
Returns
A Boolean value: true if the dimension is used, false otherwise.
Related Links
AttachDimension
DetachDimension
GetDimensionNames
CalcAggregates
Description
Use this property to specify if the aggregate is calculated for this cube. This property takes a Boolean
value: true if the aggregate is calculated, false otherwise.
Comments
Description
Use this property to specify additional notes about the cube.
DimensionCount
Description
This property indicates the number of dimensions associated with this cube.
FormatType
Description
Use this property to specify the format of the cube. The values are:
Value Description
IsVirtual
Description
Use this property to specify if the cube is a virtual cube, that is, if it doesn't store data. This property takes
a Boolean value: true if the cube is a virtual cube, false otherwise.
Name
Description
This property specifies the name of the cube.
ValueDimensionName
Description
Use this property to specify the dimension name for cubes that have a format of member.
Related Links
FormatType
AnalyticModelDefn Properties
CubeCollectionDefn Class
Use the CubeCollectionDefn class to access cube collections associated with an analytic model. You
instantiate an object of this class using the following AnalyticModelDefn class methods:
• AddCubeCollection
• CopyCubeCollection
• GetCubeCollection
AttachCube
Syntax
AttachCube(CubeName)
Description
Use the AttachCube method to attach the existing cube specified by CubeName to the cube collection.
You should only specify cube collections comprised of derived/work records as the main record for a
presentation cube collection.
Parameters
Parameter Description
Returns
None.
Related Links
DetachCube
GetCubeNames
CubeDefn Class
DetachCube
Syntax
DetachCube(CubeName)
Description
Use the DetachCube to detach the cube specified by CubeName from the cube collection.
Parameters
Parameter Description
CubeName Specify the name of the cube that you want to detach.
Returns
None.
Related Links
CubeDefn Class
GetCubeNames
CubeDefn Class
GetAggregateMapping
Syntax
GetAggregateMapping(PartName, IsCube)
Description
Use the GetAggregateMapping method to return the aggregate mapping field specified by the part
PartName.
Parameters
Parameter Description
PartName Specify the part name for which you want the aggregate
mapping field name.
IsCube Specify whether the part is a cube or not. This parameter takes
a Boolean value, true if the part is a cube, false otherwise.
Returns
A string.
Related Links
GetFieldMapping
GetPersistAggregate
SetAggregateMapping
SetFieldMapping
SetPersistAggregate
GetCubeNames
Syntax
GetCubeNames()
Description
Use the GetCubeNames method to return an array of strings containing all the names of the cubes
associated with this cube collection.
Parameters
None.
Returns
An array of string.
Related Links
AddCube
CopyCube
DeleteCube
GetCube
RenameCube
CubeDefn Class
Understanding Arrays
GetDimensionNames
Syntax
GetDimensionNames()
Description
Use the GetDimensionNames method to return an array of string containing the names of all the
dimensions associated with the cube collection.
Parameters
None.
Returns
An array of string.
Related Links
AttachDimension
DetachDimension
DimensionDefn Class
GetDimSort
Syntax
GetDimSort(DimensionName)
Description
Use the GetDimSort method return the sorting keys used for the dimension.
The first string is either true or false. If the first string is true it indicates that the dimension is sorted by
the names of the members in the dimension.
The second string then is either true or false, indicating whether the sort is ascending (or descending).
If the first string is false it indicates that the dimension is sorted by keys, which are the specified by the
other strings in the array. The keys are names of cubes. The strings are as follows:
• Ascend1
• CubeName1
• Ascend2
• CubeName2
• Ascend3
• CubeName3
Parameters
Parameter Description
DimensionName Specify the name of the dimension for which you want the
sorting keys.
Returns
An array of any.
Related Links
SetDimSort
GetDimSort
SetDimSort
GetFieldMapping
Syntax
GetFieldMapping(PartName, IsCube)
Description
Use the GetFieldMapping method to return the name of the mapped field name for the part specified by
PartName.
Parameters
Parameter Description
PartName Specify the name of the part for which you want the mapped
field name.
IsCube Specify whether this part is a cube or not. This parameter takes
a Boolean value: true if the part is a cube, false otherwise.
Returns
A string.
Related Links
GetAggregateMapping
SetFieldMapping
SetAggregateMapping
GetFilter
Syntax
GetFilter(DimensionName)
Description
Use the GetFilter method to return the name of the user function used as a filter for the dimension
specified by DimensionName.
Parameters
Parameter Description
DimensionName Specify the name of the dimension for which you want the
filter name.
Returns
A string.
Related Links
SetAggregateMapping
“Filter User Functions” (Analytic Calculation Engine)
GetPersistAggregate
Syntax
GetPersistAggregate(DimensionName)
Description
Use the GetPersistAggregate method to return the value for the persist aggregate for the dimension
specified by DimensionName.
Parameters
Parameter Description
DimensionName Specify the name of the dimension for which you want to find
the persist aggregate value.
Returns
An integer, which is one of the following values:
Value Description
AnalyticModel_AggrType_Root The persist aggregate type is Root, that is, only the root node's
data is saved to the database.
AnalyticModel_AggrType_All The persist aggregate type is All, that is, save all of the
dimension's aggregate data to the database.
AnalyticModel_AggrType_ None The persist aggregate type is None, that is, do not save any of
the dimension's aggregate data to the database.
Related Links
GetAggregateMapping
GetFieldMapping
SetAggregateMapping
SetFieldMapping
SetPersistAggregate
SetAggregateMapping
Syntax
SetAggregateMapping(PartName, IsCube, AggregateFieldName)
Description
Use the SetAggregateMapping method to specify an aggregate field for the part specified by PartName.
You can map a field to only one data cube or dimension within one cube collection.
Parameters
Parameter Description
PartName Specify the name of the part for which you want to add an
aggregate field.
AggregateFieldName Specify the name of the field to be used to hold the aggregate
value.
Returns
A string containing the name of the field that contains the aggregate value.
Related Links
SetPersistAggregate
GetFieldMapping
GetPersistAggregate
SetFieldMapping
SetPersistAggregate
SetDimSort
Syntax
SetDimSort(DimName, IsAscending [, CubeName1, IsAscending2, CubeName2,
IsAscending3, CubeName3])
Description
Use the SetDimSort method to specify the sorting order for the dimension.
If CubeName1 is an empty string, the dimension is sorted by the names of the members of the dimension,
and the other parameters are not used.
If CubeName1 is not an empty string, the dimension is sorted by cubes, as specified by the other
parameters.
The Boolean parameter IsAscending defines whether sorting should be in ascending or descending order.
Up to three sort keys may be specified. CubeName1 is the primary sort key. CubeName2 is used to sub-
sort any members that have the same key value under CubeName1, and so on.
Parameters
Parameter Description
DimensionName Specify the name of the dimension that you would like to
specify a sort order for.
Returns
None.
Related Links
SetPersistAggregate
GetDimSort
SetFieldMapping
Syntax
SetFieldMapping(PartName, FieldName, IsCube)
Description
Use the SetFieldMapping method to specify the name of the main field used for mapping the part
specified by PartName.
You can map a field to only one data cube or dimension within one cube collection.
Parameters
Parameter Description
PartName Specify the name of the part for which you want to assign a
mapping field.
FieldName Specify the name of the field to be used for the field mapping.
IsCube Specify whether or not the part is a cube. This parameter takes
a Boolean value: true if the part is a cube, false otherwise.
Returns
None.
Related Links
GetAggregateMapping
GetFieldMapping
GetPersistAggregate
SetAggregateMapping
SetPersistAggregate
SetFilter
Syntax
SetFilter(DimensionName, UserFunctionName)
Description
Use the SetFilter method to specify the user function to be used as a filter for the dimension specified by
DimensionName.
Parameters
Parameter Description
DimensionName Specify the name of the dimension for which you want to set a
filter.
Returns
None.
Related Links
GetFilter
“Filter User Functions” (Analytic Calculation Engine)
SetPersistAggregate
Syntax
SetPersistAggregate(DimensionName, AggregateType)
Description
Use the SetPersistAggregate to specify the value for the persist aggregate for the dimension specified by
DimensionName.
Parameters
Parameter Description
DimensionName Specify the name of the dimension for which you want to set
the persist aggregate.
Value Description
AnalyticModel_AggrType_Root The persist aggregate type is Root, that is, only the root node's
data is saved to the database.
AnalyticModel_AggrType_All The persist aggregate type is All, that is, save all of the
dimension's aggregate data to the database.
Value Description
AnalyticModel_AggrType_ None The persist aggregate type is None, that is, do not save any of
the dimension's aggregate data to the database.
Returns
None.
Related Links
GetAggregateMapping
GetFieldMapping
GetPersistAggregate
SetAggregateMapping
SetFieldMapping
UsesCube
Syntax
UsesCube(CubeName)
Description
Use the UsesCube method to determine if the cube collection uses the cube specified by CubeName.
Parameters
Parameter Description
CubeName Specify the name of the cube that you want to verify.
Returns
A Boolean value, true if the specified cube is part of the cube collection, false otherwise.
Related Links
AttachCube
DetachCube
GetCubeNames
CubeDefn Class
UsesDimension
Syntax
UsesDimension(DimensionName)
Description
Use the UsesDimension method to determine if the cube collection uses the dimension specified by
DimensionName.
Parameters
Parameter Description
DimensionName Specify the name of the dimension that you want to verify.
Returns
A Boolean value: true if the dimension is part of the cube collection, false otherwise.
Related Links
CubeDefn Class
DimensionDefn Class
AggregateRecName
Description
Use this property to specify the name of the aggregate record associated with this cube collection. This
property takes a string value.
Comments
Description
Use this property to specify additional notes about the cube collection.
CubeCount
Description
This property returns the number of cubes in the cube collection.
DimensionCount
Description
This property returns the number of dimensions associated with this cube collection.
Name
Description
This property returns the name of the cube collection as a string.
RecordName
Description
Use this property to specify the name of the main record associated with the cube collection. This
property takes a string value.
UserFunctionDefn Class
Use the UserFunctionDefn class to access the user functions that are associated with an analytic model.
You instantiate an object of this class using the following AnalyticModelDefn class methods:
• AddUserFunction
• CopyUserFunction
• GetUserFunction
GetRule
Syntax
GetRule()
Description
Use the GetRule method to return a RuleDefn object that represents the rule associated with this user
function.
Parameters
None.
Returns
A RuleDefn object.
Related Links
RuleDefn Class
SetRule
Syntax
SetRule(&Rule)
Description
Use the SetRule method to specify a rule defined by a RuleDefn object to be the rule for this user
function.
Parameters
Parameter Description
Returns
None.
Comments
Description
Use this property to specify additional notes about the user function.
Name
Description
This property specifies the name of the user function.
OrganizerDefn Class
Use the OrganizerDefn class to access the organizers that are associated with an analytic model. You
instantiate an object of this class using the following AnalyticModelDefn class methods:
• AddOrganizer
• CopyOrganizer
• GetOrganizer
AttachPart
Syntax
AttachPart(PartName, PartType)
Description
Use the AttachPart method to attach the part specified by PartName to the organizer. The part must exist
in the analytic model.
Parameters
Parameter Description
PartName Specify the name of the part that you want to attach.
PartType Specify the type of part that you want to attach. Values are:
Value Description
Returns
None.
Related Links
DetachPart
GetPartNames
UsesPart
DetachPart
Syntax
DetachPart(PartName, PartType)
Description
Use the DetachPart method to detach the part specified by PartName from the organizer.
Parameters
Parameter Description
PartName Specify the name of the part that you want to detach.
PartType Specify the type of the part that you want to detach. Valid
values are:
Value Description
Returns
None.
Related Links
AttachPart
GetPartNames
UsesPart
GetPartNames
Syntax
GetPartNames()
Description
Use the GetPartNames method to return a list of the names of the parts used by the organizer. The names
are returned as an array of string.
Parameters
None.
Returns
An array of string.
Related Links
AttachPart
DetachPart
UsesPart
UsesPart
Syntax
UsesPart(PartName, PartType)
Description
Use the UsesPart method to determine if the organizer uses the part specified by PartName.
Parameters
Parameter Description
PartName Specify the name of the part that you want to verify.
PartType Specify the type of the part that you want to verify. Valid
values are:
Value Description
AnalyticModel_Dimension A dimension.
AnalyticModel_Cube A cube.
Returns
A Boolean value: true if the part is associated with the organizer, false otherwise.
Related Links
AttachPart
DetachPart
GetPartNames
Comments
Description
Use this property to specify additional notes about the organizer.
Name
Description
This property specifies the name of the organizer.
RuleDefn Class
Use the RuleDefn class to access a rule that is associated with an analytic model. You instantiate an object
of this class using the GetRule method for both the CubeDefn and UserFunctionDefn classes.
AddRuleExpression
Syntax
AddRuleExpression(&Expr)
Description
Use the AddRuleExpression method to add a rule expression to the rule. Use the classes in the
RuleExpression subpackage to create the expression specified by &Expr.
After you have finished adding rule expressions to the rule, you need to use the GenerateRule method to
generate the rule.
Parameters
Parameter Description
&Expr Specify the rule expression that you want added to the rule
definition.
Returns
None.
Related Links
GenerateRule
RuleExpressions Classes
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to create the rule string for the rule that represents the current rule
expressions that have been added using AddRuleExpression.
Parameters
None.
Returns
None.
Related Links
AddRuleExpression
RuleExpressions Classes
RuleString
Description
This property specifies a string representation of the rule.
After the rule is returned using the GetRule method, this string represents the existing rule cube or user
function.
After AddRuleExpression and GenerateRule are called, this is the string representation of the rule.
RuleExpressions Classes
The RuleExpressions classes represents the different parts of the analytic calculation engine rule grammar.
These objects are created using the Create built-in function and the constructor for that class, then added
to the RuleDefn object with the AddRuleExpression method.
• Assignment
• Comparison
• Constant
• Constants
• Cube
• ExpressionBlock
• FunctionCall
• MemberReference
• Operation
• RuleExpression
• Variable
Note: The RuleExpression object is the object that the other objects are derived from. You should not
create or use this object directly.
For example, the comparison class uses a constant to test whether two operands are equal. Use the
following code to create a comparison testing this:
&Comparison = create Comparison(&Constants.Comparison_Type_Equal);
All of the properties for the constants class are listed with the classes that use them.
Assignment Class
An assignment object represents an assignment statement in an analytic calculation rule.
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Related Links
AddRuleExpression
RuleExpressions Classes
Expression
Description
Use the Expression property to specify the right-hand side of the assignment statement.
Variable
Description
Use the Variable property to specify the left-hand side of the assignment statement.
Comparison Class
A comparison object represents a comparison statement in an analytic calculation rule.
Value Description
Value Description
Specify Operand1 and Operand2 with the Operand1 and Operand2 comparison class properties.
The following code example creates a rule that compares if the first operand is greater than or equal to the
second operand, then adds the rule using the AddArgument method.
&Comparison = create Comparison(&Constants.Comparison_Type_GreaterEq);
&Constant = create Constant(&Constants.Constant_Type_Literal, "1000");
&Comparison.Operand1 = &Constant;
&Constant = create Constant(&Constants.Constant_Type_Literal, "100");
&Comparison.Operand2 = &Constant;
&FunCall.AddArgument(&Comparison);
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Related Links
AddRuleExpression
RuleExpressions Classes
Operand1
Description
Use this property to specify the RuleExpression object that is the first operand to be used in the
comparison.
Operand2
Description
Use this property to specify the RuleExpression object that is the second operand to be used in the
comparison.
Type
Description
This property returns the type of the comparison that was used to instantiate the comparison object.
Value Description
Value Description
Constant Class
A constant object represents a constant statement in an analytic calculation rule.
A constant object exposes all the constants that are passed to the constructors of the various
RuleExpression objects.
Value Description
• Constant_Builtin_ALL
• Constant_Builtin_BASE_E
• Constant_Builtin_DEFAULT
• Constant_Builtin_DETAILS
• Constant_Builtin_DIRECT
• Constant_Builtin_FALSE
• Constant_Builtin_FORWARD
• Constant_Builtin_PI
• Constant_Builtin_REVERSE
• Constant_Builtin_TRUE
The following code creates a PeopleSoft Analytic Calculation Engine built-in function to be used as a
constant:
&Constant = create Constant(&Constants.Constant_Type_Builtin, &Constants.Constan⇒
t_Builtin_REVERSE);
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Type
Description
This property returns the value of the Constant Type that was used to instantiate the constant class object.
Related Links
Constant Class
Value
Description
This property returns the value of the Constant Value that was used to instantiate the constant class object.
Related Links
Constant Class
Constants Class
All of the constants used with the RuleExpression classes, such as FunctionCall, comparison, operation,
and so on, are actually properties of the constants class. You must always instantiate an object of the
constants class to use any constants in your program.
For example, the comparison class uses a constant to test whether two operands are equal. Use the
following code to create a comparison testing this:
&Comparison = create Comparison(&Constants.Comparison_Type_Equal);
All of the properties for the constants class are listed with the classes that use them.
Cube Class
A cube object represents a cube statement in an analytic calculate engine rule.
AddIndex
Syntax
AddIndex(&MemberReference)
Description
Use the AddIndex method to add a MemberReference object to the cube.
Parameters
Parameter Description
Returns
None.
Related Links
MemberReference Class
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
GetIndexes
Syntax
GetIndexes()
Description
Use the GetIndexes method to return an array of MemberReference’s (indexes) for this cube. These
MemberReferences are the MemberReferences that were added with the AddIndex method.
Parameters
None.
Returns
An array of MemberReference objects.
Related Links
MemberReference Class
AddIndex
Name
Description
This property indicates the name of the cube that was used to instantiate the cube object.
ExpressionBlock Class
For some function, you need multi-statement nested expressions. You need to use the ExpressionBlock
class to group these expressions. For example, all the statements inside of a FOR statement should be
included in an expression block.
FOR(&Index, 1, PERIOD,
ExpressionBlock Methods
In the following section we discuss the ExpressionBlock class methods. The methods are described in
alphabetical order.
AddRuleExpression
Syntax
AddRuleExpression(&Expr)
Description
Use the AddRuleExpression method to add an expression to the expression block and the rule. Use the
classes in the RuleExpression subpackage to create the expression specified by &Expr.
Note: As the rule string is generated, the system adds a ";" after each RuleExpression, except the last.
Parameters
Parameter Description
&Expr Specify the rule expression that you want added to the
expression block.
Returns
None.
GetRuleExpressions
Syntax
GetRuleExpressions()
Description
Use the GetRuleExpressions to return an array of rule expression objects that have been added using the
AddRuleExpression method.
Parameters
None.
Returns
An array of RuleExpression objects.
FunctionCall Class
A FunctionCall object represents a function call statement in an analytic calculation engine rule.
ion_Call_Name);
Value Description
FunctionCall_Type_UserFunc Specifies that the function call is a user function. The value
specified for Function_Call_Name must be an already created
user function defined in this analytic model. Specify this value
as a string.
• FunctionCall_Builtin_ABS
• FunctionCall_Builtin_ACOS
• FunctionCall_Builtin_ARGUMENTS
• FunctionCall_Builtin_ASC
• FunctionCall_Builtin_ASIN
• FunctionCall_Builtin_AT
• FunctionCall_Builtin_ATAN
• FunctionCall_Builtin_BREAK
• FunctionCall_Builtin_CASE
• FunctionCall_Builtin_CHANGE
• FunctionCall_Builtin_CHILDCOUNT
• FunctionCall_Builtin_CHR
• FunctionCall_Builtin_CONSOL
• FunctionCall_Builtin_COS
• FunctionCall_Builtin_CUBEID
• FunctionCall_Builtin_CUBSUM
• FunctionCall_Builtin_CUMAVG
• FunctionCall_Builtin_DAVG
• FunctionCall_Builtin_DAY
• FunctionCall_Builtin_DCOUNT
• FunctionCall_Builtin_DDB
• FunctionCall_Builtin_DEC
• FunctionCall_Builtin_DLOOKUP
• FunctionCall_Builtin_DMAX
• FunctionCall_Builtin_DMIN
• FunctionCall_Builtin_DSUM
• FunctionCall_Builtin_E
• FunctionCall_Builtin_FIRST
• FunctionCall_Builtin_FOR
• FunctionCall_Builtin_FORCHILDREN
• FunctionCall_Builtin_FORMEMBERS
• FunctionCall_Builtin_FV
• FunctionCall_Builtin_GROUPAVG
• FunctionCall_Builtin_GROUPBY
• FunctionCall_Builtin_GROUPMAX
• FunctionCall_Builtin_GROUPMIN
• FunctionCall_Builtin_GROUPSUM
• FunctionCall_Builtin_GROW
• FunctionCall_Builtin_IF
• FunctionCall_Builtin_IFNPV
• FunctionCall_Builtin_INC
• FunctionCall_Builtin_INDICATE
• FunctionCall_Builtin_INPUT
• FunctionCall_Builtin_INSUBTREE
• FunctionCall_Builtin_INTERCEPT
• FunctionCall_Builtin_IRR
• FunctionCall_Builtin_ISINPUT
• FunctionCall_Builtin_LEFT
• FunctionCall_Builtin_LEN
• FunctionCall_Builtin_LN
• FunctionCall_Builtin_LOWER
• FunctionCall_Builtin_MATCH
• FunctionCall_Builtin_MAX
• FunctionCall_Builtin_MBR2TEXT
• FunctionCall_Builtin_MEDIAN
• FunctionCall_Builtin_MEMBER
• FunctionCall_Builtin_MID
• FunctionCall_Builtin_MIN
• FunctionCall_Builtin_MOD
• FunctionCall_Builtin_MONTH
• FunctionCall_Builtin_NEXT
• FunctionCall_Builtin_NPER
• FunctionCall_Builtin_NUM2TEXT
• FunctionCall_Builtin_NUMMEMBERS
• FunctionCall_Builtin_NPV
• FunctionCall_Builtin_PARAMETER
• FunctionCall_Builtin_PARENT
• FunctionCall_Builtin_PCT
• FunctionCall_Builtin_PERCENTILE
• FunctionCall_Builtin_PI
• FunctionCall_Builtin_PMT
• FunctionCall_Builtin_PREV
• FunctionCall_Builtin_PREVSELF
• FunctionCall_Builtin_PV
• FunctionCall_Builtin_QUARTILE
• FunctionCall_Builtin_RAND
• FunctionCall_Builtin_RATE
• FunctionCall_Builtin_REPLACE
• FunctionCall_Builtin_RETURN
• FunctionCall_Builtin_RIGHT
• FunctionCall_Builtin_ROUND
• FunctionCall_Builtin_SELF
• FunctionCall_Builtin_SET
• FunctionCall_Builtin_SIN
• FunctionCall_Builtin_SLN
• FunctionCall_Builtin_SLOPE
• FunctionCall_Builtin_SQRT
• FunctionCall_Builtin_STDEV
• FunctionCall_Builtin_SYD
• FunctionCall_Builtin_TAN
• FunctionCall_Builtin_TEXT2MBR
• FunctionCall_Builtin_TEXT2NUM
• FunctionCall_Builtin_THIS
• FunctionCall_Builtin_THISCUBE
• FunctionCall_Builtin_TRUNC
• FunctionCall_Builtin_UPPER
• FunctionCall_Builtin_VAR
• FunctionCall_Builtin_WHILE
• FunctionCall_Builtin_YEAR
The following code creates a function call using a PeopleSoft Analytic Calculation Engine built-in
function:
&FunCall = create FunctionCall(&Constants.FuncCall_Type_Builtin, &Constants.FuncCal⇒
l_Builtin_ABS);
Related Links
“Built-in Function Reference” (Analytic Calculation Engine)
AddArgument
Syntax
AddArgument(&RuleExpression)
Description
Use the AddArgument method to add an argument to this function call.
Parameters
Parameter Description
Returns
None.
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
GetArguments
Syntax
GetArguments()
Description
Use the GetArguments method to return an array of RuleExpression objects associated with this
FunctionCall. These are the RuleExpression objects that were added using the AddArgument method.
Parameters
None.
Returns
An array of RuleExpression objects.
Related Links
AddArgument
Name
Description
This property specifies the name of the function call used to instantiate the FunctionCall object.
Type
Description
This property specifies the type of the function call used to instantiate the FunctionCall object.
MemberReference Class
A MemberReference object represents a member in an analytic calculation engine rule.
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Dimension
Description
This property specifies the name of the dimension used to create the MemberReference object.
Member
Description
This property specifies the name of the member used to create the MemberReference object.
Operation Class
An operation object represents an operation in an analytic calculation engine rule. The operation is
generally some type of mathematical function performed between two operands. Specify the operands for
the operation using the Operand1 and Operand2 operation class properties.
Value Description
Value Description
The following code creates an operations that is a multiplication between two operands.
&operation = create Operation(&Constants.Operation_Type_Mult);
&Constant = create Constant(&Constants.Constant_Type_Literal, "PI");
&operation.Operand1 = &Constant;
&Constant = create Constant(&Constants.Constant_Type_Literal, "SLOPE");
&operation.Operand2 = &Constant;
&FunCall.AddArgument(&operation);
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Operand1
Description
Use this property to specify the RuleExpression object that is the first operand to be used in the operation.
Operand2
Description
Use this property to specify the RuleExpression object that is the second operand to be used in the
operation.
Type
Description
This property returns the type of the operation used to instantiate the operation object.
Value Description
Value Description
Variable Class
A variable object represents a variable in an analytic calculation engine rule.
Value Description
The following code example creates a variable, then adds it to the rule.
&Variable = create Variable(&Constants.Variable_Type_Auto, "StartVal");
&FunCall.AddArgument(&Variable);
GenerateRule
Syntax
GenerateRule()
Description
Use the GenerateRule method to return a string that contains the rule for this object.
Generally you wouldn’t use this method on the individual RuleExpression objects, but instead would use
the GenerateRule method on the RuleDefn object.
Parameters
None.
Returns
A string.
Name
Description
This property specifies the name of the variable that was used to create the variable object, passed in the
constructor.
Type
Description
This property specifies the type of the variable, passed in the constructor. The possible values are:
Value Description
Function CreateGENXModel
&ACEMODELID = QE_ACE_META_WK.QE_ACE_MODELID.Value;
&Model.Create();
/* Model Properties */
&Model.Description = QE_ACE_META_WK.DESCR;
&Model.LongDescription = QE_ACE_META_WK.DESCR200;
&Model.MaxDelta = QE_ACE_META_WK.QE_ACE_MAXDELTA_FL;
&Model.MaxIterations = QE_ACE_META_WK.QE_ACE_MAXITER_FLD;
If (QE_ACE_META_WK.QE_ACE_CIRCWARN_FL.Value = 0) Then
&Circ = True;
Else
&Circ = False;
End-If;
If (QE_ACE_META_WK.QE_ACE_RESOLVE_FLD.Value = 0) Then
&Resolve = True;
Else
&Resolve = False;
End-If;
&Model.ResolveCircularDeps = &Resolve;
&Model.CircularFormulaWarn = &Circ;
&UserFunction = &Model.AddUserFunction("FILTERPRODUCTS");
&Rule = &UserFunction.GetRule();
&Rule.RuleString = "IF( ((UNIT_COST = 0) .AND. (UNITS_SOLD = 0) .AND. (PROD_SALE⇒
S =0 )) , RETURN(0), RETURN(1))";
&UserFunction.SetRule(&Rule);
&Dim = &Model.AddDimension("PRODUCTS");
&Dim.TotalMemberName = "TOTAL";
&Dim = &Model.AddDimension("PROD_CAT");
&Dim = &Model.AddDimension("REGION");
&Cube = &Model.AddCube("SALES");
&Cube.FormatType = &Cube.AnalyticModel_Format_Number;
&Cube.IsVirtual = False;
&Cube.CalcAggregates = False;
&Cube = &Model.AddCube("TGT_COST");
&Cube.FormatType = &Cube.AnalyticModel_Format_Number;
&Cube.IsVirtual = False;
&Cube.CalcAggregates = False;
&Cube.AttachDimension("PRODUCTS");
&Cube = &Model.AddCube("UNITS_SOLD");
&Cube.FormatType = &Cube.AnalyticModel_Format_Number;
&Cube.IsVirtual = False;
&Cube.CalcAggregates = False;
&Cube.AttachDimension("MONTH");
&Cube.AttachDimension("PRODUCTS");
&Cube.AttachDimension("REGION");
&Cube = &Model.AddCube("UNIT_COST");
&Cube.FormatType = &Cube.AnalyticModel_Format_Number;
&Cube.IsVirtual = False;
&Cube.CalcAggregates = False;
&Cube.AttachDimension("MONTH");
&Cube.AttachDimension("PRODUCTS");
&Cube.AttachDimension("REGION");
;
&CubeColl.SetDimSort("PRODUCTS", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("REGION", "QE_BAM_REGION_FLD", False);
&CubeColl.SetPersistAggregate("REGION", &CubeColl.AnalyticModel_AggrType_None);
&CubeColl.SetDimSort("REGION", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("PROD_SALES", "QE_BAM_PRDSALES_FL", True);
&CubeColl.SetFieldMapping("UNITS_SOLD", "QE_BAM_SALES_FLD", True);
&CubeColl.SetFieldMapping("UNIT_COST", "QE_BAM_UNIT_FLD", True);
&CubeColl = &Model.AddCubeCollection("REG_SALES_PROD");
&CubeColl.RecordName = "QE_BAM_CCSMOKE";
&CubeColl.AttachCube("PROD_SALES");
&CubeColl.AttachCube("UNITS_SOLD");
&CubeColl.AttachCube("UNIT_COST");
&CubeColl.SetFieldMapping("MONTH", "QE_BAM_MONTH_FLD", False);
&CubeColl.SetPersistAggregate("MONTH", &CubeColl.AnalyticModel_AggrType_None);
&CubeColl.SetDimSort("MONTH", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("PRODUCTS", "QE_BAM_PRODUCT_FLD", False);
&CubeColl.SetPersistAggregate("PRODUCTS", &CubeColl.AnalyticModel_AggrType_None)⇒
;
&CubeColl.SetFilter("PRODUCTS", "FILTERPRODUCTS");
&CubeColl.SetDimSort("PRODUCTS", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("REGION", "QE_BAM_REGION_FLD", False);
&CubeColl.SetPersistAggregate("REGION", &CubeColl.AnalyticModel_AggrType_None);
&CubeColl.SetDimSort("REGION", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("PROD_SALES", "QE_BAM_PRDSALES_FL", True);
&CubeColl.SetFieldMapping("UNITS_SOLD", "QE_BAM_SALES_FLD", True);
&CubeColl.SetFieldMapping("UNIT_COST", "QE_BAM_UNIT_FLD", True);
&CubeColl = &Model.AddCubeCollection("TGT_COST_PROD");
&CubeColl.RecordName = "QE_BAM_CC_TRGT";
&CubeColl.AttachCube("TGT_COST");
&CubeColl.SetFieldMapping("PRODUCTS", "QE_BAM_PRODUCT_FLD", False);
&CubeColl.SetPersistAggregate("PRODUCTS", &CubeColl.AnalyticModel_AggrType_None)⇒
;
&CubeColl.SetDimSort("PRODUCTS", False, "", False, "", False, "");
&CubeColl.SetFieldMapping("TGT_COST", "QE_BAM_TARGET_FLD", True);
&Model.Save();
/* &Valid = &Model.Validate(); */
saved.";
End-Function;
More specifically, developers create analytic models in order to define the rules which are used to
calculate data. Developers also create PeopleSoft Pure Internet Architecture pages with analytic grids in
order to display the data within PeopleSoft applications. End users view, analyze, and make changes to
this data. When end users save their changes, PeopleSoft Analytic Calculation Engine recalculates the
data and saves the calculated data to the database.
• Use the Analytic Calculation Engine classes to either retrieve or specify data in an instance of an
analytic model loaded into the system, and also to calculate (or recalculate) cube values.
• Use the Analytic Calculation Engine metadata classes to manipulate an analytic model definition. For
example, you can add cubes to a cube collection or rename an existing user function for a model.
• Use the Analytic Grid classes to manipulate the display of analytic calculation data on a page.
• Use the Analytic Type classes to manipulate an analytic type definition. For example, you can specify
a new analytic model for an analytic type definition.
Important! The analytic grid classes are not supported on IBM z/OS and Linux for IBM System z
platforms.
Related Links
Understanding the PeopleSoft Analytic Calculation Engine Metadata Classes
Understanding the Analytic Calculation Engine Classes
Understanding the Analytic Calculation Engine Classes
Note: PeopleSoft builds a page grid one row at a time. Because the AnalyticGrid class applies to a
complete grid, you can’t attach PeopleCode that uses the AnalyticGrid class to events that occur before
the grid is built; the earliest event you can use is the page Activate Event.
If you’re using the analytic grid within a secondary page, the runtime object for the grid isn’t created
until the secondary page is run. The grid object can’t be obtained until then, which means that the earliest
PeopleCode event you can use to activate a grid that’s on a secondary page is the Activate event for the
secondary page.
The attributes you set for displaying an analytic grid remain in effect only while the page is active. When
you switch between pages in a component, you have to reapply those changes every time the page is
displayed.
In addition, the Activate event associated with a page fires every time the page is displayed. Any
PeopleCode associated with that Activate event runs, which may undo the changes you made when the
page was last active. For example, if you hide a grid column in the Activate event, then display it as part
of a user action, when the user tabs to another page in the component, then tabs back, the Activate event
runs again, hiding the grid column again.
If a user at runtime hides a column of a grid, tabs to another page in the component, then tabs back to the
first page, the page is refreshed and the grid column is displayed again.
You can use the rowset class methods and properties on analytic grid data. You can access the data loaded
by the analytic grid by accessing a rowset object after the grid is populated.
Use the analytic grid classes to manipulate the display of an analytic grid—that is, one associated with
PeopleSoft Analytic Calculation Engine data. If you want to manipulate a grid control, use the grid
classes.
Related Links
Grid Class Methods
GetRowset
“CreateRowset” (PeopleCode Language Reference)
“GetRowset” (PeopleCode Language Reference)
“Activate Event” (PeopleCode Developer’s Guide)
Note: You should not be adding and deleting data from the analytic grid when you are not in Freeze
Column Mode; this is an unsupported feature and might cause unexpected behavior.
In addition, no layout information is available, and there is no slicer, row, or column axis.
The following is an example of populating the analytic grid with data from a normal grid in Freeze
Column Mode.
Local Rowset &RSAGRID;
Local Rowset &RSGrid;
/* Get the rowset associated with normal grid whose primary record is */
/* QE_BAM_FACTTBL */
&RSGRID = GetLevel0()(1).GetRowset(Scroll.QE_BAM_FACTTBL);
/* Get the rowset associated with Analytic grid whose primary record is */
/* QE_BAM_CCSMOKE */
&RSAGRID = GetLevel0()(1).GetRowset(Scroll.QE_BAM_CCSMOKE);
/* Copy data from Normal Grid to Analytic Grid in Freeze Column Mode*/
&RSGRID.CopyTo(&RSAGRID, Record.QE_BAM_FACTTBL, Record. QE_BAM_CCSMOKE);
Do not use the following methods with an analytic grid that is in Freeze Column Mode:
Error Handling
All the analytic type classes throw PeopleCode exceptions for any fatal error that occurs in the execution
of the operation. PeopleSoft recommends enclosing your analytic model programs in try-catch statements.
This way, if your program catches the exception, the message set and message number that are associated
with the exception object indicate the error.
Related Links
Try-Catch Blocks
Analytic grid columns are declared using the AnalyticGridColumn data type. For example:
Local AnalyticGridColumn &MYGRIDCOL;
An AnalyticGrid is a control on a page. You generally use these objects only in PeopleCode programs that
are associated with an online process, not in an Application Engine program, a message notification, a
Component Interface, and so on.
GetColumn
Syntax
GetColumn(ColumnName)
Description
Use the GetColumn method to instantiate an AnalyticGridColumn object.
Note: The properties for an AnalyticGridColumn and a GridColumn are the same. Any differences are
indicated in the description for the GridColumn property.
Specify the grid column name in the page field properties for that field, consisting of any combination of
uppercase letters, digits and "#", "$", "@", and "_".
1. Open the page in Application Designer, select the analytic grid and access the Analytic Grid control
properties.
2. On the General tab, type the new grid name in Page Field Name.
Parameters
Parameter Description
ColumnName Specify the name of the column that you want to access.
Returns
An AnalyticGridColumn object.
Note: The properties for an AnalyticGridColumn and a GridColumn are the same. Any differences are
indicated in the description for the GridColumn property.
Related Links
GridColumn Class
GetCubeCollection
Syntax
GetCubeCollection()
Description
Use the GetCubeCollection method to return a reference to the cube collection associated with the
analytic grid.
Note: Do not use this method with an analytic grid that is in Freeze Column Mode.
Parameters
None.
Returns
A CubeCollection object.
Related Links
Understanding the Analytic Calculation Engine Classes
CubeCollection Class
LoadData
Syntax
LoadData()
Description
Use the LoadData method to cause the system to get fresh data for the grid from the analytic calculation
engine. Generally, you would use this method after you perform some operation, such as SetLayout, that
might change the value or layout of the data.
Note: Do not use this method with an analytic grid that is in Freeze Column Mode.
Parameters
None.
Returns
None.
SetAnalyticInstance
Syntax
SetAnalyticInstance(ID)
Description
Use the SetAnalyticInstance method to specify the analytic instance to be associated with this analytic
grid.
An AnalyticGrid object can be bound only once to an analytic instance. If the SetAnalyticInstance method
is called after the analytic grid is bound to an instance, the method call has no effect.
Note: Do not use this method with an analytic grid that is in Freeze Column Mode.
Parameters
Parameter Description
Returns
None.
Related Links
Understanding the Analytic Calculation Engine Classes
Understanding the Analytic Calculation Engine Classes
AnalyticInstance Class Methods
SetLayout
Syntax
SetLayout(&SlicerArray, &RowAxisArray, &ColumnAxisArray)
Description
Use the SetLayout method to set the layout for the three axes, slice, row, and column.
Note: Do not use this method with an analytic grid that is in Freeze Column Mode.
If you specify No Drag drop mode for an analytic grid in Application Designer, the analytic grid has the
column axis, row axis and slicer axis, but the end user isn't allowed to change the layout by dragging and
dropping elements between axes. However, you can still change the layout using the SetLayout method.
Note: You can specify a null value ("") for all the required parameters for this method.
Parameters
Parameter Description
Returns
None.
Inactive
Description
Use this property to specify whether the analytic grid is inactive or active. This property takes a Boolean
value, true if the grid is inactive, false otherwise.
If you specify this property as true, the analytic grid is not displayed to the user and no data is fetched
from the database.
Label
Description
Use this property to specify the label that appears as the title of the grid.
Note: You can't use this property to set labels longer than 100 characters. If you try to set a label of more
than 100 characters, the label is truncated to 100 characters. Always put any changes to labels in the
Activate event for the page. This way the label is set every time the page is accessed.
ShowGridLines
Description
Use this property to specify whether grid lines are displayed with the analytic grid. This property takes a
Boolean value, true to show the lines, false otherwise.
SlicerVisible
Description
Use this property to specify whether the slicer is displayed with the analytic grid. This property takes a
Boolean value, true to show the slicer, false otherwise.
Note: Do not use this method with an analytic grid that is in Freeze Column Mode.
SummaryText
Description
Use this property to set or return a string representing the summary text for the analytic grid.
Summary text enables you to provide a brief description of the functionality and content of the grid area.
This property is pertinent for users who access the application in screen reader mode.
Example
&MyAnGrid = GetAnalyticGrid(Page.PSMYPAGE, "PSMYPAGE");
&MyAnGrid.SummaryText = "This is the new summary text through PeopleCode";
Related Links
“Setting Analytic Grid Label Properties” (Analytic Calculation Engine)
More specifically, developers create analytic models in order to define the rules which are used to
calculate data. Developers also create PeopleSoft Pure Internet Architecture pages with analytic grids in
order to display the data within PeopleSoft applications. End users view, analyze and make changes to
this data. When end users save their changes, PeopleSoft Analytic Calculation Engine recalculates the
data and saves the calculated data to the database.
• Use the Analytic Calculation Engine classes to either retrieve or specify data in an instance of an
analytic model loaded into the system, and also to calculate (or recalculate) cube values.
• Use the Analytic Calculation Engine metadata classes to manipulate an analytic model definition. For
example, you can add cubes to a cube collection or rename an existing user function for a model.
• Use the analytic grid classes to manipulate the display of analytic calculation data on a page.
• Use the analytic type metadata classes to manipulate an analytic type definition. For example, you can
specify a new analytic model for an analytic type definition.
Important! The analytic type classes are not supported on IBM z/OS and Linux for IBM System z
platforms.
Related Links
Understanding the Analytic Calculation Engine Classes
AnalyticGrid Class Reference
Understanding the Analytic Calculation Engine Classes
You can also create an analytic type definition in PeopleCode, using the Create method, then saving it to
the database using the Save method. After you save the definition, you can access it using Application
Designer.
You only need to create an instance of the analytic type. All other objects are instantiated from the
analytic type object.
Once the AnalyticTypeDefn object is created, you can then execute either the Get or Create methods to
“instantiate” the analytic type object.
Error Handling
All the analytic type classes throw PeopleCode exceptions for any fatal error that occurs in the execution
of the operation. PeopleSoft recommends enclosing your analytic model programs in try-catch statements.
This way, if your program catches the exception, the message set and message number that are associated
with the exception object indicate the error.
Related Links
Try-Catch Blocks
The following are the data types for the PeopleSoft analytic type classes:
• AnalyticTypeDefn
• AnalyticTypeModelDefn
• AnalyticTypeRecordDefn
These objects can be used anywhere you have PeopleCode, that is, in a Application Engine program, an
application class, record field PeopleCode, and so on.
An import statement names either all the classes in a package or one particular application class. For
importing the analytic type classes, PeopleSoft recommends that you import all the classes in the
application package.
• AnalyticTypeDefn
• AnalyticTypeModelDefn
• AnalyticTypeRecordDefn
Using the asterisks after the package name makes all the application classes directly contained in the
named package available.
Related Links
Understanding Application Classes
The following example creates an AnalyticTypeDefn object from the QE_ACE_ALLFUNCTION analytic
type definition.
Local PT_ANALYTICTYPEDEFN:AnalyticTypeDefn &AnalyticType;
Related Links
Analytic Calculation Engine Metadata Classes Constructor
AnalyticTypeDefn
Syntax
AnalyticTypeDefn(TypeName)
Description
Use the AnalyticTypeDefn constructor to create an AnalyticTypeDefn.
Once the AnalyticTypeDefn object is created, you can then execute either the Get or Create methods to
instantiate the model.
Note: The Delete and Rename methods can only be executed before a model is instantiated.
Parameters
Parameter Description
Returns
An AnalyticTypeDefn object.
Example
&Model = create AnalyticTypeDefn("QE_ACE_ALLFUNCTION");
AddModel
Syntax
AddModel(ModelName, ModelType)
Description
Use the AddModel method to add either an analytic model or optimization model to the analytic type
definition. If the model doesn't exist, this method fails.
Parameters
Parameter Description
Parameter Description
Value Description
Returns
The new AnalyticTypeModelDefn object.
Related Links
DeleteModel
GetModelNames
AnalyticTypeModelDefn Class Properties
AddRecord
Syntax
AddRecord(RecordName)
Description
Use the AddRecord method to add a record to the analytic type definition. If the record definition doesn't
exist in Application Designer, or if the record already exists in this analytic type definition, this method
fails.
Parameters
Parameter Description
RecordName Specify the name of the record that you want to add.
Returns
An AnalyticTypeRecordDefn object that represents the record.
Related Links
DeleteRecord
GetRecordNames
AnalyticTypeRecordDefn Class Methods
Create
Syntax
Create()
Description
Use the Create method to create, and instantiate, a new analytic type. If the analytic type already exists, an
exception is thrown.
Parameters
None.
Returns
None.
Related Links
Save
Try-Catch Blocks
CopyTo
Syntax
CopyTo(NewAnalyticTypeName)
Description
Use the CopyTo method to copy the current AnalyticTypeDefn object to the AnalyticTypeDefn object
with the specified name. This method fails if the analytic type specified with NewAnalyticTypeName
already exists.
Parameters
Parameter Description
NewAnalyticTypeName Specify the name of the new analytic type definition that you
want to create.
Returns
The new AnalyticTypeDefn object.
Related Links
Create
Save
Delete
Syntax
Delete()
Description
Use the Delete method to delete the analytic type definition. You must use this method immediately after
you create the AnalyticType object, before you instantiate it, that is, before you use either the Get or
Create method.
Note: This method executes immediately, and deletes the definition from Application Designer.
Parameters
None.
Returns
None.
Related Links
Create
Get
Save
DeleteModel
Syntax
DeleteModel(ModelName)
Description
Use the DeleteModel method to delete the specified model from the analytic type definition.
Note: The model is not deleted from the analytic type definition until you use the Save method.
Parameters
Parameter Description
ModelName Specify the name of a model that exists in the analytic type
definition.
Returns
None.
Related Links
AddModel
GetModelNames
AnalyticTypeModelDefn Class Properties
DeleteRecord
Syntax
DeleteRecord(RecordName)
Description
Use the DeleteRecord method to delete a record from the analytic type definition.
Note: The record deleted from the analytic type definition until you use the Save method.
Parameters
Parameter Description
RecordName Specify the name of the record that you want to remove from
the analytic type definition.
Returns
None.
Related Links
AddRecord
GetRecordNames
AnalyticTypeRecordDefn Class Methods
Get
Syntax
Get()
Description
Use the Get method to instantiate an existing analytic type definition as an AnalyticTypeDefn object. If
the analytic type doesn't exist, this method throws an exception.
Parameters
None.
Returns
None.
Related Links
Create
Save
GetModel
Syntax
GetModel(ModelName)
Description
Use the GetModel method to return a reference to an AnalyticTypeModelDefn object.
Parameters
Parameter Description
ModelName Specify the name of the analytic type model definition that you
want to access.
Returns
An AnalyticTypeModelDefn object.
Related Links
AnalyticTypeModelDefn Class Properties
GetModelNames
Syntax
GetModelNames()
Description
Use the GetModelNames method to return an array of string containing all the model names in this
analytic type definition.
Parameters
None.
Returns
An array of string.
Related Links
AddModel
DeleteModel
AnalyticTypeModelDefn Class Properties
GetRecord
Syntax
GetRecord(RecordName)
Description
Use the GetRecord method to return a reference to an AnalyticTypeRecordDefn object.
Parameters
Parameter Description
RecordName Specify the name of the record that you want to access.
Returns
An AnalyticTypeRecordDefn object.
Related Links
AnalyticTypeRecordDefn Class Methods
GetRecordNames
Syntax
GetRecordNames()
Description
Use the GetRecordNames method to return an array of string containing the names of all the records
associated with the analytic type definition.
Parameters
None.
Returns
An array of string.
Related Links
AddRecord
DeleteRecord
AnalyticTypeRecordDefn Class Methods
Rename
Syntax
Rename(NewAnalyticTypeName)
Description
Use the Rename method to rename an existing analytic type definition to a new name. You must use this
method immediately after you create the AnalyticType object, before you instantiate it, that is, before you
use either the Get or Create method. The new name is not saved to the database until you use the Save
method.
Parameters
Parameter Description
NewAnalyticTypeName Specify the new name for the analytic type definition.
Returns
None.
Related Links
Save
Save
Syntax
Save()
Description
Use the Save method to save any changes that were made to the AnalyticTypeDefn object to the database.
Parameters
None.
Returns
None.
AppClassPath
Description
Use this property to specify the full name of the application package that contains the Create, Copy and
Delete methods used with this analytic type definition.
Comments
Description
Use this property to specify comments for the analytic type.
Description
Description
Use this property to specify a description for the analytic type.
Name
Description
This property specifies the name of the AnalyticTypeDefn.
OwnerID
Description
This property specifies the owner ID for this AnalyticTypeDefn.
Name
Description
This property specifies the name of the analytic type model.
Type
Description
This property specifies the type of the analytic type model. Values are:
Value Description
GetSelectedField
Syntax
GetSelectedField()
Description
Use the GetSelectedField to return an array of string containing the names of the fields that are selected
for this record.
Parameters
None.
Returns
An array of string.
Related Links
SetSelectedField
SetSelectedField
Syntax
SetSelectedFields(FieldName)
Description
Use the SetSelectedField method to specify the name of the field that is selected for this record.
Parameters
Parameter Description
FieldName Specify the name of the field that you want to select.
Returns
None.
Related Links
GetSelectedField
UnsetSelectedField
Syntax
UnsetSelectedField(FieldName)
Description
Use the UnsetSelectedField method to deselect the selected field.
This method throws an exception if the field specified by FieldName isn't selected.
Parameters
Parameter Description
FieldName Specify the name of the field that you want to deselect.
Returns
None.
All of the properties listed here can also be set for the analytic type definition using Application Designer.
Related Links
“Understanding Analytic Model Properties” (Analytic Calculation Engine)
Callback
Description
Use this property to specify whether this record has a callback. This property takes a Boolean value, true
if the record has a callback, false otherwise.
Description
Description
Use this property to specify a description for the record.
Name
Description
This property specifies the name of the record.
Readable
Description
Use this property to specify whether this record is readable. This property takes a Boolean value, true if
the record is readable, false otherwise.
ReadOnce
Description
Use this property to specify whether this record is specified as read once. This property takes a Boolean
value, true if the record is only read once, false otherwise.
ScenarioManaged
Description
Use this property to specify if the record is specified as scenario managed. This property takes a Boolean
value, true if the record is scenario managed, false otherwise.
SyncOrder
Description
This property specifies the synchronization order for the record. It returns an integer value.
Writeable
Description
Use this property to specify if a record is specified as writeable. This property takes a Boolean value, true
if the record is writeable, false otherwise.
&AnalyticType.Create();
&AnalyticType.AddModel("QE_BAM_GENX", %ModelType_ACE);
&AnalyticTypeRecordDefn = &AnalyticType.AddRecordl("QE_BAM_CCSMOKE");
&AnalyticTypeRecordDefn = &AnalyticType.AddRecordl("QE_BAM_FACTTBL");
&AnalyticType.Save();
Application Classes
The application classes provide capability beyond that offered by the existing PeopleCode classes. Unlike
the existing classes, a subclass can inherit all the properties and methods of the class it extends. This
provides all the advantages of true object-oriented programming:
• extensible by subclass
In addition, the application classes provide more structure. Using the Application Packages, you have a
clear definition of each class, as well as its listed properties and methods. This makes it easier to create a
complex program that uses many functions.
Related Links
“Creating Application Packages” (PeopleCode Developer’s Guide)
In addition, use Application classes when you have to do generic processing, and just the details are
different. For example, suppose one of the processes for your application is reading a file object and
doing bulk insert. The process could all be contained in a single package, with the classes and subclasses
providing all the details, different kinds of reading for different types of files, different inserts based on
the record, and so on.
One of the main differences between a class and a function call is that the call to the class is dynamic, like
a function variable, but more closely controlled. All the calls to the class (methods) must have the same
signature.
For example, suppose you want to provide a more generic sort, with comparison function at the end of
it. You want to use the array class Sort method, but your process has to be generic: you aren't certain
if you're comparing two records or two strings. You could define a class that had as its main method a
comparison, and return a -1, 0, or 1. Then write your personalized sort, extending the array class method
Sort.
Another use is for business processing. Think in terms of core functionality, with vertical product
solutions that extend the basic processing by providing specifics, in other words, by extending the general
classes with subclasses. This could be appropriate for sales force automation or order entry.
Generally, use application classes where you can extract the common functionality.
Note: Do not extend a SOAPDoc with an application class. This is currently not supported.
The division of application classes facilitates object-oriented programming and enables a separation of the
following:
The data types used in an application class (for methods parameters, return values, and so on) can be any
PeopleCode types, including application classes. Likewise, application classes can be used anywhere in a
PeopleCode program where a general data type can be used.
Related Links
“Data Types” (PeopleCode Developer’s Guide)
Class Name
Application classes have a fully qualified name that is formed hierarchically by the name of the top-level
package that contains them, the package that contains that package, and so on down to the short class
name, that is, the one specified when the class was created in Application Designer, using a colon for the
separator between names.
The fully qualified name of the class must be unique, as this is what identifies the class. The short name
of the class does not have to be unique.
For example, suppose package CRM contains the application classes Address and Customer as well as the
package Utilities, which in turn contains the application classes Address and Incident:
• CRM:Address
• CRM:Customer
• CRM:Utilities:Address
• CRM:Utilities:Incident
Note: If you change the name of a package or an application class, that name change is not automatically
propagated through all your PeopleCode programs. You must make the change manually in your
programs. If you specify an incorrect name for a package or application class, you receive a warning
when you try to save the PeopleCode.
Class Extension
Extension represents the "is-a" relationship. When a class extends another class, it's called a subclass of
that class. Conversely, the class being extended is called a superclass of that subclass.
A subclass inherits all of the public methods and properties (collectively called members) of the class it
extends. These members can be overridden by declarations of methods and properties in the subclass.
Note: Application classes have no multiple inheritance (that is, being able to extend more than one class.)
Type checking in PeopleCode (both at design time and runtime) does strong type checking of application
classes, tracking each application class as a separate type. A subclass can be used as the class it extends,
because it implements the public interfaces of its superclass. This is called subtyping.
In the following example, the class Banana extends the class Fruit. Banana is the subclass of Fruit. From
Fruit, you can extend to Bananas. However, from Bananas you can't extend to Fruit. Another way to think
about this is you can only extend from the general to the specific, not the other way around.
class Fruit
method DoFruit();
property number FruitNum instance;
end-class;
The following code shows a correct way to assign a class object, because Banana is a subtype of Fruit.
local Fruit &Bref = create Banana();
The following is not correct. Banana is a subtype of Fruit. Fruit is not a subtype of Banana. This
assignment causes an error at design time.
local Banana &Fref = create Fruit();
Before you can extend a class, you must first import it. You must import all class names you use in a
PeopleCode program before you use them.
Related Links
Import Declarations
For example, more than one class has the property Name which returns the name of the object executing
the property. There isn't any confusion, because the field Name property returns the name of a field, while
the record name property returns the name of a record. No class has more than one property called Name.
The public part of a class declaration specifies the methods and properties that the class provides to other
PeopleCode programs. These methods and properties are dynamically bound, that is, the actual method
that is called depends on the actual class of the object, as it might be an overridden method or property
from a subclass.
In the following code example, the text in bold indicates the public part of the class declaration.
/* generic building class */
class BuildingAsset
method Acquire();
method DisasterPrep();
end-class;
Between these two access control schemes of public and private, lies the concept of protected methods
and properties. Protected methods and properties can be accessed only by objects of this application class
and those derived from this application class. Use protected methods or properties when you want to hide
them from outside use, but allow the flexibility of using them in derived classes.
The declarations of protected variables and methods are done within the class declaration, before the
declaration of private variables and methods. You can use protected instance variables in interface classes.
Protected methods and properties can be overridden by subclasses.
Most of the time your design can be implemented through the use of private methods and properties
without resorting to the use of protected methods and properties. The following examples demonstrates
the rules and some of the subtleties about when to use protected methods and properties.
class A;
method A();
property string Q;
protected
method MP() Returns string;
property string p;
end-class;
method A;
&p = "Class A: property p";
end-method;
method MP
/+ Returns String +/
Return "Class A: method MP";
end-method;
====================
class B extends A;
method B();
method M(&X As C);
method m2(&Aobj As A);
/* property string P; */
protected
property string Q;
method MP() Returns string;
end-class;
method B;
%Super = (create A());
&Q = "Class B: property Q";
/* &P = "Class B: property P";*/
end-method;
method M
/+ &X as FOXTEST:C +/;
method m2
/+ &Aobj as FOXTEST:A +/
/* MessageBox(0, "", 0, 0, "In B:M2 &Aobj.P=" | &Aobj.p);
/* Error: cannot reference &Aobj.p from class B
since class B is not involved in its implementation */
end-method;
method MP
/+ Returns String +/
Return "Class B: method MP";
end-method;
=======================
class C extends A;
method C();
protected
property string P;
end-class;
method C;
%Super = (create A());
&P = "Class C: property P";
end-method;
==========================
/* AE program */
import FOXTEST:*;
The following example also illustrates some of the rules surrounding protected access control.
import FOXTEST:Point3d;
class Point
method Point(&X1 As integer, &Y1 As integer);
method Warp(&A As Point3d);
protected
property integer x;
property integer y;
end-class;
method Point
/+ &X1 as Integer, +/
/+ &Y1 as Integer +/;
%This.x = &X1;
%This.y = &Y1;
end-method;
method Warp
/+ &A as FOXTEST:Point3d +/
/* Local Integer &temp = &A.Z; ERROR cannot access &A.Z */
end-method;
================================
import FOXTEST:Point;
method Point3d
/+ &X1 as Integer, +/
/+ &Y1 as Integer, +/
/+ &Z1 as Integer +/;
%Super = (create Point(&X1, &Y1));
%This.z = &Z1;
end-method;
method Delta
/+ &P as FOXTEST:Point +/
/* &P.x = %This.x;
ERROR cannot access &P.x since while Point3d
(the class in which references to fields x and y occur)
is a subclass of Point (the class in which x and y are declared),
it is not involved in the implementation of Point (the type of parameter p)*/
/* &P.y = %This.y;
ERROR cannot access &P.y. Same reason as above */
end-method;
method Delta3d
/+ &Q as FOXTEST:Point3d +/
/* The protected members of Q can be accessed because the class point3d is a subcla⇒
end-method;
The declarations of private variables and methods are done within the class declaration.
Note: You cannot have private methods or instance variables in an interface type of class.
In the following example, there are both public as well as private methods and properties. Any method
that is declared before the keyword Private in the initial class declaration is public. Any method declared
after the keyword Private is private. Properties are only declared in Public. Instances and Constants are
only declared in Private
In the following example, the class Example extends the class ExampleBase. It has both public as well as
private methods and properties. It also defines the private method in the definition of methods section of
the code (the private definitions are marked like this.)
import PWWPACK:ExampleBase;
method Example();
method NumToStr(&Num As number) Returns string;
method AppendSlash();
property number SlashCount get;
property number ImportantDayOfWeek get set;
property string SlashString readonly;
property date ImportantDate;
private
method NextDayOfWeek(&Dow As number) Returns date;
Constant &Sunday = 1;
instance string &BaseString;
end-class;
/* Method definitions */
method NumToStr
return String(&num);
end-method;
method AppendSlash
&SlashString = &SlashString | "/";
end-method;
get SlashCount
Return Len(&SlashString) - Len(&BaseString);
end-get;
get ImportantDayOfWeek
Return Weekday(&ImportantDate);
end-get;
set ImportantDayOfWeek
&importantdate = %This.nextdayofweek(&newvalue);
end-set;
/* Private method. */
method nextdayofweek
Return &ImportantDate + (&dow - Weekday(&ImportantDate));
end-method;
/* Constructor. */
method Example
&BaseString = &CurrentBaseString;
&SlashString = &BaseString;
&ImportantDate = Date(19970322);
end-method;
Definition of Methods
After the declaration of any global or component variables and external functions needed by the methods,
comes the actual definition of the methods. This section discusses some of the differences in how
application programs are processed by the system, and how application class method parameters are
processed.
• Application programs generally pass parameters by value, which is not the same as for existing
functions.
For example:
/* argument passed by reference */
method increment(&value as number out);
This is in contrast with existing PeopleCode functions that pass all parameters by reference when they
can be assigned something. This means the method signature is a specification of which parameters can
be updated by the method. This makes the code easier to debug and maintain because it's easy to see what
can be updated and what can't.
&Mine = 1;
&obj.Increment(&Mine);
You cannot pass properties by reference. For example, suppose MyProp is a property of class Xan, a
statement that requires a reference doesn't work if you supply the property. The following code will
always fail because &Xan.MyProp is always passed by value and the MySqlExec method requires it to be
passed by reference (so a value can be returned.)
MySqlExec("select from bar", &Xan.MyProp)
This makes sense because the semantics of an object require that you can only change a property with
standard property references, not as a side affect of some other action.
If you specify the out modifier for a method parameter with an object data type, it becomes a reference
parameter. This means that the parameter variable is passed by reference instead of the object that it is
pointing at when passed.
For example, if you pass an object parameter with the out modifier:
method myMethod(&arg as MyObjectClass);
&o2.myMethod(&o1);
Since the method argument is reassigned within the body of myMethod, &o1 does not point at the new
instance of MyObjectClass (initialized with "B") after the method call completes. This is because &o1
still references the original instance of MyObjectClass.
However, if &o1 had been passed with the out modifier, after the method call completes, &o1 points
at whatever the parameter was last assigned to; in this case, the new instance of MyObjectClass. The
parameter, rather than the object, is passed by reference.
method DoAdd
&X = &P1 + &P2;
&P1 = 1;
&P2 = 2;
end-method;
In the following PeopleCode example, an object named &Aref is instantiated from the class AddStuff.
Two parameters, &I and &J are also defined.
local AddStuff &Aref = create AddStuff();
local number &I = 10;
local number &J = 20;
The following code example is correct. &J is changed, because of the out statement in the method
signature, and because the value is being passed by reference. The value of &I is not updated.
&Aref.DoAdd(&I, &J); /* changes &J but not &I */
The following code example causes a design time error. The second parameter must be passed by
reference, not by value.
&Aref.DoAdd(10, 20); /* error - second argument not variable */
Related Links
“PeopleCode Language Structure” (PeopleCode Developer’s Guide)
Abstract methods and properties could be used, for example, when your application wants to provide
a means for in-field customization. Your application might deliver a base class specifying the abstract
methods and properties and you would allow the customization to complete those methods and properties
by using a class that would extend the base class and provide implementations for some or all of the
abstract methods and properties.
For a class that only contains abstract methods and properties, that is, a pure interface class, you would
define a PeopleCode interface, instead of a class. You define a PeopleCode interface by using the
keyword Interface instead of Class. In an interface, all the methods and properties are abstract by default.
The following example illustrates the use of abstract methods and properties. Class MyInterface is the
base class which has mostly abstract methods and properties. However it is fully specified by the class
MyImplementation which provides and implementation for all the methods and properties.
class MyInterface
method MyMethod1() abstract;
method MyMethod2() Returns string abstract;
method MyMethod3();
property string myproperty1 abstract readonly;
property number myproperty2 abstract;
property number myproperty3 abstract;
end-class;
method MyMethod3
end-method;
-------------------------------------------------------------------
import FOXTEST:MyInterface;
method MyImplementation
%Super = create MyInterface();
end-method;
method MyMethod1
/* dummy */
end-method;
method MyMethod2
/+ Returns String +/
Return "MyMethod2's implementation is this";
end-method;
• You will receive an error if you try to provide a method body for an abstract method.
• The method signatures must be identical between the abstract method definition and the method
implementation in the derived subclass.
• You will receive an error if you try to provide a Get or Set body with an abstract property.
• You will receive an error and your PeopleCode program will be terminated if you try to call an
abstract method or property at runtime, unless caught in a try-catch block.
• The class that implements an interface must still assign %Super in its constructor.
Interfaces
The concept of an interface class is purely a syntactic assist when you are defining an application
class which is totally composed of abstract methods and properties. In this case by simply specify the
keyword interface you are indicating that all the methods and properties are abstract. The following two
definitions are semantically equivalent.
class MyInterface
method MyMethod1() abstract;
method MyMethod2() Returns string abstract;
property string myproperty1 abstract readonly;
property number myproperty2 abstract;
property number myproperty3 abstract;
end-class;
interface MyInterface
method MyMethod1();
method MyMethod2() Returns string;
property string myproperty1 readonly;
property number myproperty2;
property number myproperty3;
end-interface;
When you provide an implementation for an interface you can also use the keyword implements instead
of extends. While this is not mandatory, specifying implements describes more accurately what your
application class is doing.
If your class implements an interface, you don't need to create an object reference to the superclass since
the system does that automatically for you.
In addition if your constructor takes no parameters and simply exists to create an object reference to the
superclass (that is, there is only one statement such as %Super = create mySuper();), then you
don't need to define a constructor method at all.
Constructors
The constructor for a class is the public method with the same name as the (short name of the) class. The
statements contained in this method (if any) provide the initialization of the class.
Note: Before a constructor runs, the instance variables for the class are set by default based on their
declared types.
Instantiate new objects of an application class by using the create function. This function takes the name
of the class, and any parameters needed for the constructor method.
If the short class name is unambiguous, that is, only one class by that short name has been imported, you
can use just the short class name.
If there's a possibility that the name is ambiguous, you can use the full class name to instantiate the object.
If the create function is used in the context of further object expressions, that is, with a reference to
members by a dot operation, the function call must be enclosed in parentheses. This is to emphasize that
the creation happens before the member reference. For example:
&InvCust = (create Invoice()).Cust();
If necessary, the constructor is supplied its parameters by the call-list after the class name in the create
statement. For example:
&Example = create Example(&ConstructorParameter1, 2, "Third");
A class that does not extend some other class does not need any constructor.
A class that extends another class must have a constructor, and in the constructor, it must initialize
its super class. This restriction is relaxed if the super class constructor takes no parameters, and all
the constructor does is assign it to %Super. In this case, the runtime creates the super object and
runs its constructor automatically. The benefit of this is two-fold: at design time you do not need to
provide a constructor since the runtime automatically does the equivalent of %Super = create
MySuperObject(); Also, at runtime, you may notice a performance increase since the super class
object creation and construction are done without any PeopleCode. This latter benefit can be compounded
in the case where there are multiple levels of inheritance.
To the general case, to initialize a superobject, an instance of the superclass is assigned to the keyword
%Super in the constructor for the subclass. This assignment is allowed only in the constructor for the
subclass.
method Example
%Super = create ExampleBase();
&BaseString = &CurrentBaseString;
&SlashString = &BaseString;
&ImportantDate = Date(19970322);
end-method
If your subclass’ constructor only exists to create the superclass object and assign that to your %Super,
you can dispense with providing a constructor completely as the following example illustrates.
class A
...
end-class;
Class B extends A
...
end-class;
Class C extends B
...
end-class;
...
Local C &c = create C();
...
Classes A, B and C have no constructors and the one call to create C creates objects of class C, B
and A and run their constructors. PeopleSoft recommends that unless your constructors take parameters
and need to do more than be assigned to their %Super, that you do not provide constructors since that
simplifies design time as well as may improve runtime performance significantly.
The above example is semantically equivalent to the following, except that it may run much faster, since it
does not have to run PeopleCode at each step of the construction process.
class A
...
end-class;
Class B extends A
Method B();
...
end-class;
method B
%Super = create A();
end-method;
Class C extends B
Method C();
...
end-class;
method C
%Super = create B();
end-method;
Note: Application classes don't have destructors, that is, a method called just before an object is
destroyed. The PeopleCode runtime environment generally cleans up any held resources, so they're not as
necessary as they are in other languages.
Related Links
“create” (PeopleCode Language Reference)
Superclass Reference
“%Super” (PeopleCode Language Reference)
private
instance Record &recPerson;
end-class;
method Person
/+ &pid as String +/
end-method;
method getPerson
/+ Returns Record +/
Return &recPerson;
end-method;
method getUserName
/+ Returns String +/
Local string &formattedName;
&formattedName = getUserName(&recPerson.PERSON_ID);
Return &formattedName;
end-method;
When application class properties and instance variables are used as the argument to functions or
methods, they are always passed by value, never by reference. This means that the called function or
method cannot change the value of the property or instance variable. If you want a function call to change
a property or instance variable, use a local variable in the call and then assign the property or instance
variable after the call.
Suppose you have the following class and you want to call Meth2 in the body of Meth1, passing it
MyProp:
class MyClass
property number MyProp;
method Meth1();
method Meth2(&i as number out);
end-class;
Note: You call a Java program from an Application Class the same way you do using any other
PeopleCode program, that is, by using one of the existing Java class built-in functions.
Naming Standards
This section describes the naming standards these components of application classes: packages, classes,
methods, and properties.
Naming Packages
The naming standard for application packages is in the following format.
CC_XXX[_YYY]
Where CC is the company name (for example, PS is PeopleSoft), XXX is the product line, and YYY is
the product code.
Naming Classes
Use a constructor to be the same name as the short name for the class. PeopleSoft recommends that you
do not name classes to be GetXxx.
Naming Methods
Make method names simple verb or verb object words, spelled out, first letter of each word capitalized.
Examples: GetField, Save, SetDefault, WriteRecord
Naming Properties
Make property names nouns, likewise spelled out, first letter of each word capitalized. Examples:
Dimension, HTTPMethod, PathInfo, SubscriptionProcessId.
For Boolean read-only properties, sometimes IsXxx is appropriate. Examples: IsOpen, IsNewFieldID,
IsChanged, IsDeleted
State Boolean properties positively, that is, IsChanged, as opposed to negatively, IsUnChanged. This
avoids double negatives when testing (If Not &MyField.IsUnChanged Then. . . .)
Import Declarations
Before you can use a class name in a PeopleCode program (either a class definition program or an
ordinary PeopleCode program), you must first import it using an import statement at the beginning of
your program.
An import statement names either all the classes in a package or one particular application class.
If you're importing all the classes in a package, the syntax for the import statement ends with the
following:
:*
This makes all the application classes directly contained in the named package available. Application
classes contained in subpackages of the named package are not made available.
If you're importing one particular application class, the syntax of the import statement ends with the short
name of the class. Only that class is made available.
For example, the following imports all the classes of the package named Fruit:
Import Fruit:*;
The following imports only the application classes Banana and Kiwi. If the package named Fruit contains
other classes, those are not made available to the PeopleCode program:
Import Fruit:Banana;
Import Fruit:Kiwi;
If you had a subpackage in Fruit named Drinks, you could access all the classes in that subpackage like
this:
Import Fruit:Drinks:*;
A PeopleCode program (either a separate program or one contained within a class definition) can use
only application class names that have been imported. However, a class definition can use its own name
without having to import it.
It's possible to import two packages which contain application classes with the same short name. For
example, suppose my package Fruit contained classes Apple and Banana. Suppose a second package,
Drinks, contained Apple and Cherry.
Import Fruit:*;
Import Drinks:*;
You could refer to the Banana and Cherry classes using just the short name of the class. However, you
couldn't refer to the Apple class by the short name. You must always use the full name reference (that is,
the name of the package and the name of the class) when referring to Apple.
Global Banana &MyBanana;
The following line produces an error, because the program doesn't know which Apple class you're
referring to:
Component Apple &GreenApple;
Note: Single class imports (such as, Import Fruit:Banana) are checked for existence when you save your
PeopleCode.
Self-Reference
A method can refer to the current object using the %This system variable.
Due to subtyping, %This is an object of either the method's class or a subclass of the method's class.
In PeopleCode, the methods and properties of the class cannot be used without an object qualification.
In the following code example, the line in bold indicates an error. You can't call the class this way: you
must use %This.
class FactorialClass
method factorial(&I as number) returns number;
end-class;
method factorial
if &I <= 1 then
return 1;
end-if;
One of the implications of this is that when you're writing a method, there isn't any way to guarantee
you'll access your own class' version of a public method (rather then a subclass') as it might be overridden
by a subclass. The only way to make sure that you can access your own method is to make it private.
If you have some action that you also want to make public, and you want guaranteed access to it, you can
make the action a private method, then define a public method for it that calls the private one.
In the following example, factorial is the public method that can be used by other classes. myFactorial is
the private action.
class FactorialClass
method factorial(&I as number) returns number;
private
method myFactorial(&I as number) returns number;
end-class;
method factorial
return myFactorial(&I);
end-method;
method myFactorial
if &I <= 1 then
return 1;
end-if;
end-method;
If you declare an instance variable as private you can still access it as a private property in another
instance of the same class. For example, given the following declaration:
class Example
private
end-class;
A method of Example could reference another Example instance's &Num instance variable as follows:
&X = &SomeOtherExample.Num;
Related Links
“%This” (PeopleCode Language Reference)
method Base
%This.Test();
end-method;
method Test
&sTestResult = "BASE_METHOD_CALLED";
end-method;
method CallTest
%This.Test();
end-method;
import PACKAGE:Base;
method Test();
end-class;
method Extend
%Super = create PACKAGE:Base();
end-method;
method Test
/+ Extends/implements PACKAGE:Base.Test +/
%This.sTestResult = "EXTENSION_METHOD_CALLED";
end-method;
Even though the Extend class method provides its own Test method which overrides Base's Test method,
in PeopleCode create Extend() which ultimately runs Base's constructor, the %This.Test() call
in Base's constructor still references Base's Test method, not Extend's Test method, because %This always
refers to the object under construction
PeopleSoft recommends that you use read/write or read-only properties instead of creating methods
named GetXxx and SetXxx. For example, instead of creating a method GetName, that takes no parameter,
just to return the name of an object, create a read-only property Name.
If your properties simply set or return the value of an instance variable, it is far more efficient to declare
the property that way than have a get and set method. The overhead of having a get and set method means
that each time the property is reference some PeopleCode has to be run.
• as instance variables.
• as get-set methods.
From outside the class, you cannot tell the difference between them (for example, both are dynamically
bound). However, if you just want to expose an instance variable to users of the class, you can declare a
property of that name and type, which declares the instance variable too:
class xxx
property string StringProp;
end-class
If you want the property to be read-only outside the class, use the following code:
class xxx
property string StringProp readonly;
end-class
Both of these code examples declare an instance variable called &StringProp and provide its value for
getting and change its value for setting (if not readonly). You can think of this as shorthand for the usual
implementation of get-set methods.
If you want to implement the same with code (perhaps deriving the property from other instance variables
or other data), use the following sort of PeopleCode program:
class xxx
property string StringProp get set;
private
instance string &inst_str;
end-class;
get StringProp
/+ Returns String +/
Return &inst_str; /* Get the value from somewhere. */
end-get;
set StringProp
/+ &NewValue as String +/
/* Do something with &NewValue. */
&inst_str = &NewValue;
end-set;
To specify a read-only property, omit the set portions of the code example.
Overriding Properties
A property of a superclass can be overridden by a subclass by providing a different implementation.
The properties of a class are implemented by the keywords Get and Set, or by access to an otherwise
private instance variable.
To access the property, you do not have to specify Get or Set: the context tells the processor which task
you're doing. To create read-only properties, specify only a Get method, with no Set method, or for
instance variable properties, specify Readonly.
For an instance variable property, there are two different ways for method code in the class itself to refer
to the property:
• %This.PropertyName
• &PropertyName
The first way is dynamically bound, as it uses whatever (possibly overridden by a subclass)
implementation of PropertyName that the current object provides.
The second way always accesses the private instance variable of the class that the method is declared in.
The following example returns strings, by converting the property. It also demonstrates overriding.
class A
property number Anum;
property string Astring get;
property string Astring2 get;
end-class;
/* The following is a dynamic reference to the Anum property of the current object,⇒
which might be a subclass of A, so this might not access the A class's implementat⇒
end-get;
/* The following is a static reference to our &Anum instance variable. Since it doe⇒
s not use %This, it will not be overridden even if the current object is a subclass⇒
of A. */
Get Astring2
return String(&Anum);
end-get;
There is a slight performance advantage, and you write less code, if you use the Get and Set keywords
over using get and set methods.
If you define a property with the Get and Set keywords, you also must define a get or set block in the
same part of the code that contains the method bodies.
For example, consider a Category object that has a CategoryType member that can have one of the
following values:
You can define three read-only properties corresponding to each of these values, REGULAR, BROWSE,
and NEWS, then initialize them to the appropriate values in the constructor of the class.
When you write code to evaluate the CategoryType of the Category object, perform a test like this:
If (&category.getCategoryType() = &constants.NEWS) then...
PeopleSoft recommends referring to the read-only properties, rather than their literal values, for the
following reasons:
• If you spell a literal value incorrectly, the PeopleCode editor does not catch it; if you spell a read-only
property wrong, it does.
• If you ever need to change the value of a read-only property, you only have to do it in one place.
• It makes the code more maintainable and reusable (because NEWS is more intelligible than ‘N’).
• First()
• Item(Index)
• Next()
All numeric indexes in PeopleCode are one-origin, that is, start all indexes at 1, not 0.
Declaring Constants
PeopleSoft recommends that if constants are inextricably linked to a class, you should define them within
that class. If the constants are more general, potentially used by multiple classes, consolidate the constants
into a constants class at application-level or package-level.
Message catalog set and message numbers are good candidates to centralize into a single constants class.
It can improve the readability of code and make it easier to maintain these values.
For example, you can define a constant MSG_SET_NBR, and then define constant values for each
message that explain a little about what the message represents (like REQUIRED_VALUE_MISSING,
UNIMPLEMENTED_METHOD, or INSUFFICIENT_PRIVILEGES).
method Example_M1
/+ &par as String +/
&b = False;
end-method;
A method of Example could reference another instance of the Example &Num instance variable as:
&X = &SomeOtherExample.Num;
Avoid making every instance-scoped variable a public property. You should consider each variable
individually and decide if it belongs in the public interface or not. If it does, decide if the variable
warrants get or set modifiers and therefore should be a public property. If the variable only serves internal
purposes to the class, it should be declared as a private instance variable.
Global Variables
PeopleSoft recommends avoiding global variables in application classes unless there is a situation where
no other code works. Generally, an application class should not know about anything scoped outside of
its instance. There are exceptions, since not all application classes should be standalone. For example,
an application class that interacts with the Component Buffer must know about the Component Buffer
objects.
Since instance variables are private in scope, you cannot access them in subclasses, but you can redeclare
them in subclasses. The same is true of public properties; you can even explicitly access the overridden or
overriding property. However, overriding is not recommended.
Superclass Reference
A method can refer to a member of its superclass by using the %Super system variable. This construction
is needed only to access superclass members that are hidden by overriding members in the current class.
In the following example, the classes that extend the general BuildingAsset class each have their own
method DisasterPrep, that does the specific processing, then calls the superclass (generic) version of
DisasterPrep.
/* generic building class */
class BuildingAsset
method Acquire();
method DisasterPrep();
end-class;
method Acquire
%This.DisasterPrep();
end-method;method DisasterPrep
PrepareForFire();
end-method;
/* building in Vancouver */
class VancouverBuilding extends BuildingAssetmethod DisasterPrep();
end-class;
method DisasterPrep
PrepareForEarthquake();%Super.DisasterPrep(); /* call superclass method */
end-method;
/* building in Edmonton */
class EdmontonBuilding extends BuildingAssetmethod DisasterPrep();
end-class;
method DisasterPrep
PrepareForFreezing();%Super.DisasterPrep(); /* call superclass method */
end-method;
Related Links
“%Super” (PeopleCode Language Reference)
Downcasting
Downcasting is the process of determining if an object is of a particular subclass type. If the object has
that subtype (either the object is of that subtype, or is a subtype of it), a reference to the subobject is
returned, otherwise Null is returned. In either case, the type of the resulting value is compatible with the
named subclass type.
This downcast inquiry into the actual type of an object can be used when the object has been passed to
some general facility, then passed back to more specific code. For example, the general facility might be
a dispatch mechanism, or a new storage structure such as a binary balanced tree. These general facilities
won't know about specific types, but it might be necessary for the specific program using the general
facility to recover the actual type of an object that is returned to it by the general facility.
A downcast should not be used when you could add members to a common base class to provide the
same functionality. In other words, if you find yourself using the downcast to test whether the object is
one or another of several related types, you should add members to the common base class to provide
the operations or properties that you are trying to access, then provide separate implementations of those
actions or properties in each specific class.
If the downcast operator is to be used in the context of further object expressions (such as references to
other members using dot notation) then the downcast must be enclosed in parentheses to emphasize that
the downcast happens before the member reference.
class Fruit
property number FruitCount;
end-class;
In the following code example, first the variables are assigned. All the variable assignments are legal, for
Banana is a subtype of Fruit.
local Banana &MyBanana = Create Banana();
local Fruit &MyFruit = &MyBanana; /* okay, Banana is a subtype of Fruit */
local number &Num = &MyBanana.BananaCount;
The next two lines of code don't produce an error, as &MyFruit is currently a Banana at runtime.
&MyBanana = &MyFruit As Banana;
In the next lines of code, we're reassigning &MyFruit to be of type Fruit, that is, of the superclass Fruit.
When you try to reassign &MyFruit as Banana, &MyBanana is assigned as Null, because &MyFruit is no
longer of type Banana.
&MyFruit = Create Fruit();
Exception Handling
Use the Exception class to do exception handling in your PeopleCode. This class provides a try, catch,
and throw mechanism so you don't need to check after each operation for errors. Instead, by the structure
of the try-catch blocks, you can declare when you are interested in handling exceptions, and how you
want to handle them.
Exceptions are instances or subclasses of the PeopleCode Exception class. Oracle recommends that when
applicable, application class methods should throw exceptions instead of communicating back to the
calling code with return values. You can create exceptions by:
• Creating an Exception base class that encapsulates the built-in function call and handles its function
parameters consistently. This is the preferred way.
Since a method can throw exceptions for several different reasons, Oracle recommends that you:
This allows the calling code to make decisions based on the exception type.
For example, a method that retrieves customer data from a database might throw an exception named
SQLException if a database error occurs, or an exception named PrivilegeException if the current user
doesn’t have the appropriate permissions to perform the operation. There could be different errors causing
either of these exception types to be thrown in this method; if necessary, you can write the calling code to
examine the specific message numbers and react accordingly.
Oracle recommends that you always catch an exception; if it is not caught, it causes a runtime error. Use a
try-catch block.
Not catching an exception causes a runtime error and can cause PeopleTools to display a dialog box with
the message catalog entry and information about the technical context of the exception. The reasons for
avoiding this by using try-catch blocks are:
• Application code often continues some form of processing even in the event of an exception; you
should not assume that the script stops all processing if an exception occurs.
• The error message that PeopleTools displays might not be appropriate for end-users because of its
technical information.
Related Links
Exception Class Built-in Functions
“CreateException” (PeopleCode Language Reference)
“throw” (PeopleCode Language Reference)
“try” (PeopleCode Language Reference)
• Comments which can potentially be used to generate API documentation, which start with /* and end
with */. You can write method header and class header comments for application classes, and you can
use the comment tags, with this type of comment.
Warning! In application classes you will see the use of /+ +/ style comments. Do not use these in your
PeopleCode. These annotations are generated by the compiler. If you use them, they will be removed the
next time you validate, compile, or save your PeopleCode. They are used to provide signature information
on application class methods and properties, and are regenerated each time the compiler compiles your
application class PeopleCode. Instead, use the standard commenting mechanisms listed above.
PeopleSoft recommends keeping a running line of asterisks along one side of an extensive comment to
help the readability of the code by making the entire comment stand out from the surrounding code.
Tag Description
@return Type Specify a description of the return value. The type of data
that is returned is specified after the keyword @return. For
example, explain the potential values a method may return,
whether it returns null in some circumstances, and so on.
Not all methods require documentation. For example, some simple set or get methods have method
signatures that are descriptive enough. In other cases, it may suffice to include a brief sentence in the
header explaining what the method does.
As with methods, PeopleCode get or set blocks should also carry method header comments.
*
* @version 1.0
* @author amachado
*/
Tag Description
Base Classes
Base classes contain a representation of data elements, such as documents, categories, users, and
miscellaneous security-related entities.
To design the document data element to be integration-friendly, PeopleSoft recommends you start with a
relatively basic base class. Then use more specialized types of documents to create a subclass from that
base class, adding the necessary specialized attributes.
Even if you think of ways to use data to drive the business rules, PeopleSoft recommends that you do not
place them into your data objects. Replicating business rules for every instance of a data element can be
detrimental to performance.
An example of a candidate for an abstract base class is a class that is used for administering a data entity,
such as an invoice. Such a class has a Save method. A Save method can use normal methods to call
generic validation routines, talk to the database, and handle errors; it can use the placeholder methods for
specialized logic, such as mapping a given data class to a particular database table.
PeopleSoft recommends that you program an active validation check into your placeholder method that
causes a runtime error, such as throwing an UnimplementedMethodException, if an abstract base class
placeholder method hasn’t been overridden.
Some examples of classes that are good candidates for creating generic base classes are:
• Service classes, which typically extend a class that provides infrastructure services, such as
configurable application logging.
• Data classes, which typically extend a class that enables you to plug in adapters to support sorting
their instances with custom sort algorithms.
Even when a class does not seem generic because it only has a couple of subclasses, you can still define it
in your design as a generic base class rather than cloning common code across different classes. The main
reason is maintainability: it's easier to maintain a single class than trying to keep track of the same code
scattered across your database.
Utility Classes
Some reusable code is the kind you typically don’t want to inherit, but you just want to use here and there.
Utility classes can serve this purpose.
String parsing, data type conversion, and formatting routines are all good candidates for utility classes.
PeopleSoft recommends that anytime you code something that’s more than just a line or two, and that
seems to be reusable, write it as a utility class.
Every application class is a definition of a new data type in PeopleCode, like the record, rowset, or field
data types. The application class includes both the definition of its external interface, its data (properties
and instance variables), and its actions (methods), just like the PeopleSoft delivered classes.
PeopleSoft recommends that you individually import each class when you import multiple classes from
the same package, instead of using wildcards.
Referencing Superclasses
PeopleSoft recommends that you do not set %Super to a new instance of the current class you are
defining because this would start an infinite loop.
/* Do not do this! */
%Super = %This;
class
Syntax
class ClassName [{extends | implements} SuperClassName]
[Method_declarations]
[Property_declarations]
[protected
[Method_declarations]
[Instance_declarations]
[Constant_declaration]]
[private
[Method_declarations]
[Instance_declarations]
[Constant_declaration]]
end-class
Description
Use the Class language construct to build application classes in an application package. All classes within
a package must be uniquely named, however, classes contained in different packages do not have to be
named uniquely.
External function declarations are allowed in application classes, in the global and component variable
declarations, after the class declaration (after the end-class statement), and before the method definitions.
Parameters
Parameter Description
ClassName Specify the name of the class that you are creating. All classes
within a package must be uniquely named, however, classes
contained in different packages do not have to be named
uniquely.
extends | implements SuperClassName For a regular class, specify the name of the class that this class
extends. If the class is an interface type of class, specify the
name of the interface that this class implements.
Method_declarations Specify the methods (and their signature) as used in this class.
Parameter Description
Constant_declarations Specify any constants that should be used with this class.
Returns
None.
Example
class Example extends ExampleBase
method NumToStr(&Num As number) Returns string;
method AppendSlash();
property number SlashCount get;
property number ImportantDayOfWeek get set;
property string SlashString readonly;
property date ImportantDate;
private
method NextDayOfWeek(&DoW As number) Returns date;
constant &Sunday = 1;
instance number &BaseString;
end-class;
Related Links
method
property
get
set
get
Syntax
get PropertyName
StatementList
end-get
Description
Use the get language construct when defining properties in an application class that are implemented
by methods rather than an instance variable. All properties within an application class must be uniquely
named.
Parameters
Parameter Description
Parameter Description
Returns
Depends on the assignment within StatementList
Example
get FruitCount
Return &MyFruit.Number();
end-get;
Related Links
set
“Return” (PeopleCode Language Reference)
import
Syntax
import PKG_NAME[:SubpackageName[:SubpackageName]]{:ClassName | *}
Description
Before you can use a class name, you must first import it using an import declaration statement at the
beginning of your program.
An import declaration statement names either all the classes in a package or a single application class.
Parameters
Parameter Description
import PKG_NAME Specify the name of the package that you want to import.
ClassName Import only this class of the specified package. You won't have
access to any other classes in the specified package, only this
one.
Returns
None.
Example
The following gives you access to all the classes in the FRUIT package:
import FRUIT:*;
The following gives you access to the Banana class only in the FRUIT package:
import FRUIT:Banana;
The following gives you access to the Apple class only from the Fruit subpackage of the DRINKS
package:
import DRINKS:Fruit:Apple;
Related Links
class
interface
Syntax
interfaceClassName [{extends | implements} SuperClassName]
[Method_declarations]
[Property_declarations]
[protected [Method_declarations]
[Instance_declarations]
[Constant_declaration]]
end-interface
Description
Use the Interface language construct to create classes of type interface in an application package. An
interface class is a purely abstract class.
Parameters
An interface does not have private methods or properties, but all the other parameters are identical to the
class language construct.
Returns
None.
Related Links
class
method
Syntax
method MethodName
StatementList
end-method
Description
Use the method statement to define the methods of your application class.
Parameters
Parameter Description
method MethodName Specify the name of the method that you are creating.
Returns
Depends on the method.
Example
method NumToStr
/+ Returns String +/
Return String(&Num);
end-method;
method AppendSlash
&SlashString = &SlashString | "/";
end-method;
Related Links
“Return” (PeopleCode Language Reference)
property
While properties are declared, they do not have explicit definitions like methods. However, you can create
definitions to set or get the value of a property. See set and get.
set
Related Links
get
Syntax
setPropertyName
StatementList
end-set
Description
Use the set language construct when implementing properties in an application class. All properties
within an application class must be uniquely named. The new value for the property is available in the
&NewValue parameter of the set definition.
Note: You cannot create a set-only property. You can create only get-set properties.
Parameters
Parameter Description
set PropertyName Specify the name of the property that you're implementing.
Returns
None.
Example
set FruitCount
/+ &NewValue as String +/
&NewValue = &MyFruit.ActiveRowCount;
&FruitCount = &NewValue;
end-set;
Related Links
class
• The ADS definition designer is used to define ADS definitions, which define the data sets that can
be migrated. Each ADS definition includes a record hierarchy. An ADS definition has associated
validation PeopleCode specified by an application class, which is the main subject of these topics.
• The Project Editor allows you to interactively create projects containing ADS instance data (that is,
the data defined by ADS definitions) and edit their content.
• The Project Manager allows ADS projects to be exported to a file, compared from a file, or copied
from a file.
• The Project Reviewer is used to view the results of compares, including validation.
• The Project Approver invokes the approval framework to assure that the each project has been
properly reviewed and approved before it is copied.
PeopleTools supplies the base class application class, PTADSDEFN:AdsValidationBase, that provides the
basic validation described in the following sections.
Prescribed methods described in the following sections of the validation application class are
automatically invoked when ADS projects are compared or copied. If you wish to provide additional
validation, or to override the base validation, you can implement an application class derived from
PTADSDEFN:AdsValidationBase and register that class in the ADS definition designer part of the Data
Migration Workbench. The derived class should override one or more of the automatically invoked
methods.
Basic Validation
The DoADSValidations method provides basic validation by validating static prompts, translate values,
Y/N values, and required fields. Because basic validation is always triggered for any copy or compare,
you do not need to explicitly call DoADSValidations. Therefore, even when you do not define an
extended application class for a specific ADS definition, basic validations are performed by this method.
If a validation error is detected, DoADSValidations returns false and information about the error is written
to the target database.
Extended Validation
You can extend the AdsValidationBase base class to define specific validation logic for your data sets.
To provide data set-specific validation or transformation logic, you can extend three methods from
the base class and define any additional methods and properties as necessary. The following three
AdsValidationBase class methods can be extended in your custom application class:
• OnPreCopyCompare
• OnPreUpdate
• OnPostCopy
Related Links
“Application Data Set Overview” (Lifecycle Management Guide)
“Defining Extension” (Lifecycle Management Guide)
An import statement either names a particular application class or imports all the classes in a package.
Using the asterisks after the package name makes all the application classes directly contained in the
named package available. Application classes contained in subpackages of the named package are not
made available.
Related