Transaction Webservice API

Misc

 
Document HTML Signatures
Click

<input type="text" cp-sig-id="sig1" cp-sig-type="click" cp-sig-role="role1"/>

To reference a specific target in the HTML document other than the default cp-root:


<div id="cp-root">
 <p>Text here not referenced by the signature</p>
 <div id="otherArea">
 <input type="text" cp-sig-id="sig1" cp-sig-type="click" cp-sig-role="role1" cp-sig-target="otherArea"/>
 </div>
</div>

Image

<input type="text" cp-sig-id="sig1" cp-sig-type="image" cp-sig-role="role1"/>

Audio

<input type="text" cp-sig-id="sig1" cp-sig-type="audio" cp-sig-role="role1" cp-sig-audiomax="1"/>

Click-initial

<input type="text" cp-sig-id="sig1" cp-sig-type="click-initial" cp-sig-role="role1"/>

Initial and exclusive initial are a little trickier. You have to include the initial or exclusive initial signature(s) AND one of the types above.
Initial

<input type="text" cp-sig-id="sig1" cp-sig-role="roleName" cp-sig-type="click"/>
<input type="text" cp-sig-id="sig1-initial" cp-sig-role="roleName" cp-sig-type="initial" cp-required="true" cp-sig-ref="sig1"/>

Initial Exclusive

<input type="text" cp-sig-id="sig1" cp-sig-role="roleName" cp-sig-type="click"/>
<input type="text" cp-sig-id="sig1-initial1" cp-sig-role="roleName" cp-sig-type="initial-ex" cp-sig-group="group1" cp-required="true" cp-sig-ref="sig1"/>
<input type="text" cp-sig-id="sig1-initial2" cp-sig-role="roleName" cp-sig-type="initial-ex" cp-sig-group="group1" cp-required="true" cp-sig-ref="sig1"/>



 
Entity conversion
sp 32
! excl 33
" quot 34
# num 35
$ dollar 36
% percnt 37
& amp 38
' apos 39
( lpar 40
) rpar 41
* ast 42
+ plus 43
, comma 44
- hyphen 45
- minus 45
. period 46
/ sol 47
; semi 59
< lt 60
= equals 61
> gt 62
? quest 63
@ commat 64
[ lsqb 91
\ bsol 92
] rsqb 93
^ circ 94
_ lowbar 95
` grave 96
{ lcub 123
| verbar 124
} rcub 125
~ tilde 126
  nbsp 160
¡ iexcl 161
¢ cent 162
£ pound 163
¤ curren 164
¥ yen 165
¦ brvbar 166
§ sect 167
¨ uml 168
¨ die 168
© copy 169
ª ordf 170
« laquo 171
¬ not 172
­ shy 173
® reg 174
¯ macr 175
¯ hibar 175
° deg 176
± plusmn 177
² sup2 178
³ sup3 179
´ acute 180
µ micro 181
para 182
· middot 183
¸ cedil 184
¹ sup1 185
º ordm 186
» raquo 187
¼ frac14 188
½ half 189
½ frac12 189
¾ fra34 190
¿ iquest 191
À agrave 192
Á aacute 193
 acirc 194
à atilde 195
Ä auml 196
Å aring 197
Æ aelig 198
Ç ccedil 199
È egrave 200
É eacute 201
Ê ecirc 202
Ë euml 203
Ì igrave 204
Í iacute 205
Î icirc 206
Ï iuml 207
Ð eth 208
Ñ ntilde 209
Ò ograve 210
Ó oacute 211
Ô ocirc 212
Õ otilde 213
Ö ouml 214
× times 215
Ø oslash 216
Ù ugrave 217
Ú uacute 218
Û ucirc 219
Ü uuml 220
Ý yacute 221
Þ thorn 222
ß szlig 223
à agrave 224
á aacute 225
â acirc 226
ã atilde 227
ä auml 228
å aring 229
æ aelig 230
ç ccedil 231
è egrave 232
é eacute 233
ê ecirc 234
ë euml 235
ì igrave 236
í iacute 237
î icirc 238
ï iuml 239
ð eth 240
ñ ntilde 241
ò ograve 242
ó oacute 243
ô ocirc 244
õ otilde 245
ö ouml 246
÷ divide 247
ø oslash 248
ù ugrave 249
ú uacute 250
û ucirc 251
ü uuml 252
ý yacute 253
þ thorn 254
ÿ yuml 255


 
Wizards
dialogs: This is the root tag for the wizard.
<dialogs> </dialogs>

Optional attributes

  • firstDialog: otherwise use the first one listed
  • styleSheet: a css file to link to the wizard
  • id: the id for the element
  • validationTarget: the validationTarget for the wizard

Child Tags

Sample:

	
<dialogs>
 <dialog name="one">
        <!-- dialog one's content-->
    </dialog>
 <dialog name="two">
        <!-- dialog two's content-->
    </dialog>
 <dialog name="three">
        <!-- dialog three's content-->
    </dialog>
</dialogs>
	
	
dialog: This is one visual element.
<dialog name=""> </dialog>

Optional attributes

  • progress: a number 1-100 indicating progress through the wizard
  • goto: the name of the next dialog to goto if if or compound if fail. endWizard is a special case that will drop to workflow.
  • action: if goto="endWizard", this action will be passed back to the workflow
  • id: the id for the element
  • validationTarget: the validationTarget for the dialog

Child Tags

Sample

	
<dialog name="one" progress="20">
 <if></if> <!-- if attributes -->
    <content>
        <!-- dialog content -->
    </content>
</dialog>
<dialog name="info" goto="endWizard" action="wizardFinished">
 <content>
        <!-- dialog content -->
    </content>
</dialog>
	
	
if: Optional flow control.
<if field="" condition="" value="" type="" target=""></if>

Attributes

  • field: the field used for the test
  • condition: the jexl condition. (eq, neq, lt, gt, etc.)
  • value: the value
  • type: the type of the field(string, date, number)
  • target: the dialog to go to if the test evaluates to true (or 'endWizard' to return to workflow)
  • action (Optional): if target="endWizard" this action will be returned to workflow

Sample

	
<if field="country" condition="eq" value="US" type="string" target="US"></if>
<if field="birth" condition="lt" value="01/01/2000" type="date" target="younger"></if>
<if field="GPA" condition="gt" value="3" type="number" target="endWizard" action="passes"></if>
	
	
if_compound: Optional flow control.
<if_compound target=""> </if_compound>

Attributes

  • target: the dialog to go to if the test evaluates to true (or 'endWizard' to return to workflow)
  • action (Optional): if target="endWizard" this action will be returned to workflow

Child Tags, Use one or the other

Sample

	
<if_compound target="last">
 <and>
 <test field="firstName" condition="neq" value="" type="string"></test>
 <test field="age" condition="gt" value="19" type="number"></test>
 </and>
</if_compound>
<if_compound target="endWizard" action="wizard_done">
 <or>
 <test field="State" condition="eq" value="CA" type="string"></test>
 <test field="State" condition="eq" value="OR" type="string"></test>
 <test field="State" condition="eq" value="WA" type="string"></test>
 <test field="State" condition="eq" value="AZ" type="string"></test>
 </or>
</if_compound>
	
	
and: Optional flow control. Will evaluate to true if all child tests evaluate to true.
<and> </and>

Child Tags

Sample

See sample in if_compound
or: Optional flow control. Will evaluate to true if one of child tests evaluate to true.
<or> </or>

Child Tags

Sample

See sample in if_compound
test: Tests to be run to evaluate parent and/or tag
<test field="" condition="" value="" type=""></test>

Attributes

  • field: the field used for the test
  • condition: the JEXL condition. (eq, neq, lt, gt, etc.)
  • value: the value
  • type: the type of the field(string, date, number)

Sample

See sample in if_compound
content: The HTML to be displayed. This can have whatever content is needed, but must have at least one child element.
All HTML inputs (input, select, textarea) are wizard fields and will be wizard data.

Sample

	
<content>
 <div>
        all the content here
    </div>
</content>
<content>
 <p>
        all the content here
    </p>
</content>
	
	
Wizard Fields: Any HTML input type with special attributes that the wizard will interpret.
<input type="text" name="" value=""/>

Attributes

  • name: (Required) the wizard data will use this name as the key
  • value: (Optional) a default value for the wizard
  • cp-use: (Optional) is an answer required. (R: required, roles: check the roles attribute, test: evaluate the test attribute
  • cp-pattern: (Optional) answer must match the pattern
  • cp-custompattern: (Optional) when pattern="custom" this attribute has a regular expression to use
  • cp-sample: (Optional) displays a sample next to the field if pattern fails
  • cp-roles: (Optional) when use="roles" this attribute will have a list of comma separated roles that the field is required for
  • cp-test: (Optional) when use="test" this attribute will have a JEXL statement to evaluate.
  • cp-validationTarget: (Optional) the validationTarget for the wizard field.
  • cp-requiredMessage: (Optional) message displayed in validationTarget if wizard field fails the use test
  • cp-validationMessage: (Optional) message displayed in validationTarget if wizard field fails the pattern test
  • cp-message: (Optional) message displayed in validationTarget if wizard field fails a test and no specific message is available

Sample

	
<input type="checkbox" name="yes" cp-use="R" cp-validationTarget="errorTarget" cp-requiredMessage="yes must be checked"/>
<!-- This textarea (reason) and text field (phone) assumes the dialog or
     wizard contains the validationTarget to display the message-->
<textarea name="reason" cp-use="test" cp-test="${medicalIssue eq 'true'}" cp-message="must have a reason stated"></textarea>
<input type="text" name="phone" cp-pattern="phone" cp-validationMessage="must be a phone number"/>
	
	
Validation Targets Validation Targets is the id of an element in the dialog or in the page where messages will be displayed. If the target is a table, the message will be added in a <tr><td>message</td></tr> tag. If the target is a list, the message will be added in a <li>message</li> tag. Otherwise, it will be added in the body of the tag with <br/> following each message.
For more information and examples, visit the help wiki by clicking on the info button and type 'Wizards' in the search.


 
Wizard Patterns
Name Description
alphanumeric Allows only alpha-numeric characters.
date Matches dates of the form MM/dd/yyyy where MM is the month and can be 1 or 2 digits long, dd is the day and can be 1 or 2 digits long and YYYY is always 4 digits long.
dateDayMonthYear Matches dates of the form dd/MM/yyyy where dd is the day and can be 1 or 2 digits long, MM is the month and can be 1 or 2 digits long and YYYY is always 4 digits long.
dateMonthYear Matches dates of the form MM/yyyy where MM is the month and can be 1 or 2 digits long and YYYY is always 4 digits long.
dateYearMonthDay A date pattern that typically matches browser input type=date fields.
zip code Validates a 5 or 9 digit zip code.
real number Validates a real number.
whole number Validates whole numbers (0,1,2,3,...) max 2147483647
integer Validates integers (...,-3,-2,-1,0,1,2,3,...) min -2147483647, max 2147483647
pos integer Validates positive integers (1,2,3,...) max 2147483647
numeric Validates a string of any length containing only numbers
phone number Matches a hyphen separated US phone number, of the form ANN-NNN-NNNN, where A is between 2 and 9 and N is between 0 and 9.
phone See phone number.
international phone number Allows phone numbers, with an international dialing code at the start and hyphenation and spaces that are sometimes entered.
email Matches a valid email address including ip's which are rarely used. Allows for a-z0-9_.- in the username, but not ending in a full stop i.e user.@domain.com is invalid and a-z0-9- as the optional subdomain(s) with domain name and a 2-7 char (a-z) tld allowing for short tld's like ca and new ones like museum.
ssn Matches a hyphen-separated Social Security Number (SSN) in the format NNN-NN-NNNN.
ein Matches a Employer Identification Number (EIN) in the format NN-NNNNNNN.
tin Matches a Tax Identification Number (TIN) in the format of SSN (NNN-NN-NNNN) or EIN (NN-NNNNNNN).
dow Matches days of the week or their abbreviations.
state Matches any state abbreviation in the United States with upper case letters.
currency Validates a US currency. Supports $3.00, $3,000.00, 3, 3.00, .30
currency1 Validates a US currency without the $ sign. Supports 3.00, 3,000.00, 3, 3.00, .30, .03
creditCardUS Validates a credit card issued in the United States of type Visa, Discover, Amex, and Diners


Custom Wizard Patterns
<input name="test" type="text" cp-pattern="custom" cp-custompattern="(^[0-9]$)"/>
The attribute 'cp-pattern' must equal "custom"
The attribute 'cp-custompattern' can equal any regular expression.


 
Formatter Samples
Format a date string

// in workflow
var dateString = c.getWizard("wizard").getData().getValue("birthDate");
c.getPage("index").setValue("birthDate",dateString);

// in the page
${formatter.formatDateString(birthDate,'MMM dd, yyyy')}

Format a currency

// in workflow, assumes wizard has a field named 'fee'
c.getPage("index").getData().addData(c.getWizard("wizard").getData());

// in the page
${formatter.formatCurrency(fee)}



 
Browser Samples
User agent

// in workflow
var userAgent = c.getBrowser().getUserAgent();

// in the page
<p>You are using this browser: ${browser.userAgent}</p>

Cross browser CSS

<style>
    body.ie     {color:red}
    body.win    {font-family:Tahoma}
    body.ff     {color:blue}
    body.sf     {color:green}
    body.mac    {font-family:Helvetica}
    body.linux  {font-family:Courier}
</style>
<body class="${browser.browser} ${browser.operatingSystem}">
 <p>Here is some text that will look different depending on browser and operating system</p>
</body>



 
Javascript Resources
Source Version Name
ace 1.1.3 ace.js
bootstrap 5.3.5 bootstrap-bundle-min.js
bootstrap 5.3.5 bootstrap-min.js
bootstrap 4.5.3 bootstrap-bundle-min.js
bootstrap 4.5.3 bootstrap-min.js
bootstrap 3.3.7 bootstrap-min.js
chartjs 4.0.0 chart.js
chartjs 2.8.0 chart.js
cpal ui container.js
cpal ui content.js
cpal ui paging.js
cpal 1.0 ajax.js
cpal 1.0 base64.js
cpal 1.0 cnav.js
cpal 1.0 dtree.js
cpal 1.0 motionjs.js
cpal 1.0 stringbuffer.js
cpal 1.0 winGeometry.js
cpal 1.0 yav-config.js
cpal 1.0 yav.js
d3 7.8.5 d3_min.js
d3 5.9.7 d3_min.js
d3 4.2.2 d3_min.js
d3 3.5.5 d3_min.js
d3 3.0.0 d3_min.js
dimple 2.0.1 dimple_min.js
epoch 0.6.0 epoch-min.js
html2canvas 1.4.1 html2canvas.js
jquery 1.8.6 jquery-min.js
jquery 1.8.6 jquery-ui-min.js
jquery 1.7.2 jquery-min.js
jquery 1.7.2 jquery-ui-min.js
jquery 1.3.2 jquery-min.js
jquery-core 3.4.1 jquery-min.js
jquery-core 2.1.4 jquery-min.js
jquery-core 1.12.4 jquery-min.js
jquery-ui 1.9.2 jquery-ui-min.js
jquery-ui 1.8.18 jquery-ui-min.js
jquery-ui 1.8.14 jquery-ui-min.js
jquery-ui 1.7.3 jquery-ui-min.js
jquery-ui 1.12.1 jquery-ui-min.js
jquery-ui 1.11.4 jquery-ui-min.js
jquery-ui 1.11.0 jquery-ui-min.js
jquery-ui-touch-punch 0.2.3 touch-punch-min.js
tinymce 5.8.2 tinymce.min.js
tinymce 4.9.11 tinymce.min.js
tinymce 3.4.7 tiny_mce.js
w2ui 1.4.2 w2ui-min.js
w2ui 1.4.0 w2ui-min.js
w2ui 1.3.2 w2ui-min.js
yui 2.8.0 animation-min.js
yui 2.8.0 autocomplete-min.js
yui 2.8.0 button-min.js
yui 2.8.0 calendar-min.js
yui 2.8.0 carousel-min.js
yui 2.8.0 charts-min.js
yui 2.8.0 colorpicker-min.js
yui 2.8.0 connection-min.js
yui 2.8.0 connection_core-min.js
yui 2.8.0 container-min.js
yui 2.8.0 container_core-min.js
yui 2.8.0 cookie-min.js
yui 2.8.0 datasource-min.js
yui 2.8.0 datatable-min.js
yui 2.8.0 datemath-min.js
yui 2.8.0 dom-min.js
yui 2.8.0 dragdrop-min.js
yui 2.8.0 editor-min.js
yui 2.8.0 element-delegate-min.js
yui 2.8.0 element-min.js
yui 2.8.0 event-delegate-min.js
yui 2.8.0 event-min.js
yui 2.8.0 event-mouseenter-min.js
yui 2.8.0 event-simulate-min.js
yui 2.8.0 get-min.js
yui 2.8.0 history-min.js
yui 2.8.0 imagecropper-min.js
yui 2.8.0 imageloader-min.js
yui 2.8.0 json-min.js
yui 2.8.0 layout-min.js
yui 2.8.0 logger-min.js
yui 2.8.0 menu-min.js
yui 2.8.0 paginator-min.js
yui 2.8.0 profiler-min.js
yui 2.8.0 profilerviewer-min.js
yui 2.8.0 progressbar-min.js
yui 2.8.0 resize-min.js
yui 2.8.0 selector-min.js
yui 2.8.0 simpleeditor-min.js
yui 2.8.0 slider-min.js
yui 2.8.0 storage-min.js
yui 2.8.0 stylesheet-min.js
yui 2.8.0 swf-min.js
yui 2.8.0 swf.js
yui 2.8.0 swfdetect-min.js
yui 2.8.0 swfstore-min.js
yui 2.8.0 tabview-min.js
yui 2.8.0 treeview-min.js
yui 2.8.0 uploader-min.js
yui 2.8.0 utilities.js
yui 2.8.0 yahoo-dom-event.js
yui 2.8.0 yahoo-min.js
yui 2.8.0 yuitest-min.js
yui 2.8.0 yuitest_core-min.js
yui 2.7.0 animation-min.js
yui 2.7.0 autocomplete-min.js
yui 2.7.0 button-min.js
yui 2.7.0 calendar-min.js
yui 2.7.0 carousel-min.js
yui 2.7.0 charts-min.js
yui 2.7.0 colorpicker-min.js
yui 2.7.0 connection-min.js
yui 2.7.0 container-min.js
yui 2.7.0 container_core-min.js
yui 2.7.0 cookie-min.js
yui 2.7.0 datasource-min.js
yui 2.7.0 datatable-min.js
yui 2.7.0 dom-min.js
yui 2.7.0 dragdrop-min.js
yui 2.7.0 editor-min.js
yui 2.7.0 element-min.js
yui 2.7.0 event-min.js
yui 2.7.0 get-min.js
yui 2.7.0 history-min.js
yui 2.7.0 imagecropper-min.js
yui 2.7.0 imageloader-min.js
yui 2.7.0 json-min.js
yui 2.7.0 layout-min.js
yui 2.7.0 logger-min.js
yui 2.7.0 menu-min.js
yui 2.7.0 paginator-min.js
yui 2.7.0 profiler-min.js
yui 2.7.0 profilerviewer-min.js
yui 2.7.0 resize-min.js
yui 2.7.0 selector-min.js
yui 2.7.0 simpleeditor-min.js
yui 2.7.0 slider-min.js
yui 2.7.0 stylesheet-min.js
yui 2.7.0 tabview-min.js
yui 2.7.0 treeview-min.js
yui 2.7.0 uploader-min.js
yui 2.7.0 utilities.js
yui 2.7.0 yahoo-dom-event.js
yui 2.7.0 yahoo-min.js
yui 2.7.0 yuitest-min.js
yui 2.7.0 yuitest_core-min.js
yui 2.6.0 animation-min.js
yui 2.6.0 autocomplete-min.js
yui 2.6.0 button-min.js
yui 2.6.0 calendar-min.js
yui 2.6.0 charts-experimental-min.js
yui 2.6.0 colorpicker-min.js
yui 2.6.0 connection-min.js
yui 2.6.0 container-min.js
yui 2.6.0 cookie-min.js
yui 2.6.0 datasource-min.js
yui 2.6.0 datatable-min.js
yui 2.6.0 dom-min.js
yui 2.6.0 dragdrop-min.js
yui 2.6.0 editor-min.js
yui 2.6.0 element-beta-min.js
yui 2.6.0 event-min.js
yui 2.6.0 get-min.js
yui 2.6.0 history-min.js
yui 2.6.0 imagecropper-beta-min.js
yui 2.6.0 imageloader-min.js
yui 2.6.0 json-min.js
yui 2.6.0 layout-min.js
yui 2.6.0 menu-min.js
yui 2.6.0 resize-min.js
yui 2.6.0 selector-beta-min.js
yui 2.6.0 slider-min.js
yui 2.6.0 tabview-min.js
yui 2.6.0 treeview-min.js
yui 2.6.0 uploader-experimental-min.js
yui 2.6.0 yahoo-min.js
yui 2.5.2 animation-min.js
yui 2.5.2 autocomplete-min.js
yui 2.5.2 button-min.js
yui 2.5.2 calendar-min.js
yui 2.5.2 charts-experimental-min.js
yui 2.5.2 colorpicker-min.js
yui 2.5.2 connection-min.js
yui 2.5.2 container-min.js
yui 2.5.2 cookie-beta-min.js
yui 2.5.2 datasource-beta-min.js
yui 2.5.2 datatable-beta-min.js
yui 2.5.2 dom-min.js
yui 2.5.2 dragdrop-min.js
yui 2.5.2 editor-beta-min.js
yui 2.5.2 element-beta-min.js
yui 2.5.2 event-min.js
yui 2.5.2 get-min.js
yui 2.5.2 history-min.js
yui 2.5.2 imagecropper-beta-min.js
yui 2.5.2 imageloader-min.js
yui 2.5.2 json-min.js
yui 2.5.2 layout-beta-min.js
yui 2.5.2 menu-min.js
yui 2.5.2 resize-beta-min.js
yui 2.5.2 selector-beta-min.js
yui 2.5.2 slider-min.js
yui 2.5.2 tabview-min.js
yui 2.5.2 treeview-min.js
yui 2.5.2 uploader-experimental.js
yui 2.5.2 utilities.js
yui 2.5.2 yahoo-min.js

Stylesheet Resources
Source Version Name
bootstrap 5.3.5 bootstrap-min.css
bootstrap 4.5.3 bootstrap-min.css
bootstrap 3.3.7 bootstrap-min.css
bootstrap 3.3.7 bootstrap-theme-min.css
bootstrap-icons 1.11.3 bootstrap-icons.css
chartjs 2.8.0 chart.css
cpal ui container.css
cpal ui content.css
cpal ui paging.css
cpal 1.0 dtree.css
cpal 1.0 nav-wizard.css
cpal 1.0 nav-yui.css
epoch 0.6.0 epoch-min.css
font-awesome 6.5.1 font-awesome-min.css
font-awesome 5.14.4 font-awesome-min.css
font-awesome 4.7.0 font-awesome-min.css
jquery 1.8.6 jquery-ui-custom.css
jquery 1.7.2 jquery-ui-custom.css
jquery-ui 1.9.2 jquery-ui-custom.css
jquery-ui 1.8.18 jquery-ui-custom.css
jquery-ui 1.8.14 jquery-ui-custom.css
jquery-ui 1.7.3 jquery-ui-custom.css
jquery-ui 1.12.1 jquery-ui-min.css
jquery-ui 1.12.1 jquery-ui-structure-min.css
jquery-ui 1.12.1 jquery-ui-theme-min.css
jquery-ui 1.11.4 jquery-ui-min.css
jquery-ui 1.11.4 jquery-ui-structure-min.css
jquery-ui 1.11.4 jquery-ui-theme-min.css
jquery-ui 1.11.0 jquery-ui-min.css
jquery-ui 1.11.0 jquery-ui-structure-min.css
jquery-ui 1.11.0 jquery-ui-theme-min.css
w2ui 1.4.2 w2ui-min.css
w2ui 1.4.0 w2ui-min.css
w2ui 1.3.2 w2ui-min.css
yui 2.8.0 autocomplete-core.css
yui 2.8.0 autocomplete-skin.css
yui 2.8.0 autocomplete.css
yui 2.8.0 base-min.css
yui 2.8.0 border_tabs.css
yui 2.8.0 button-core.css
yui 2.8.0 button-skin.css
yui 2.8.0 button.css
yui 2.8.0 calendar-core.css
yui 2.8.0 calendar-skin.css
yui 2.8.0 calendar.css
yui 2.8.0 carousel-core.css
yui 2.8.0 carousel-skin.css
yui 2.8.0 carousel.css
yui 2.8.0 colorpicker-core.css
yui 2.8.0 colorpicker-skin.css
yui 2.8.0 colorpicker.css
yui 2.8.0 container-core.css
yui 2.8.0 container-skin.css
yui 2.8.0 container.css
yui 2.8.0 datatable-core.css
yui 2.8.0 datatable-skin.css
yui 2.8.0 datatable.css
yui 2.8.0 editor-core.css
yui 2.8.0 editor-skin.css
yui 2.8.0 editor.css
yui 2.8.0 fonts-min.css
yui 2.8.0 grids-min.css
yui 2.8.0 imagecropper-core.css
yui 2.8.0 imagecropper-skin.css
yui 2.8.0 imagecropper.css
yui 2.8.0 layout-core.css
yui 2.8.0 layout-skin.css
yui 2.8.0 layout.css
yui 2.8.0 logger-core.css
yui 2.8.0 logger-skin.css
yui 2.8.0 logger.css
yui 2.8.0 menu-core.css
yui 2.8.0 menu-skin.css
yui 2.8.0 menu.css
yui 2.8.0 paginator-core.css
yui 2.8.0 paginator-skin.css
yui 2.8.0 paginator.css
yui 2.8.0 profilerviewer-core.css
yui 2.8.0 profilerviewer-skin.css
yui 2.8.0 profilerviewer.css
yui 2.8.0 progressbar-core.css
yui 2.8.0 progressbar-skin.css
yui 2.8.0 progressbar.css
yui 2.8.0 reset-fonts-grids.css
yui 2.8.0 reset-fonts.css
yui 2.8.0 reset-min.css
yui 2.8.0 resize-core.css
yui 2.8.0 resize-skin.css
yui 2.8.0 resize.css
yui 2.8.0 simpleeditor-core.css
yui 2.8.0 simpleeditor-skin.css
yui 2.8.0 simpleeditor.css
yui 2.8.0 skin-sam.css
yui 2.8.0 slider-core.css
yui 2.8.0 slider-skin.css
yui 2.8.0 slider.css
yui 2.8.0 tabview-core.css
yui 2.8.0 tabview-skin.css
yui 2.8.0 tabview.css
yui 2.8.0 testlogger.css
yui 2.8.0 treeview-core.css
yui 2.8.0 treeview-skin.css
yui 2.8.0 treeview.css
yui 2.8.0 yuitest-core.css
yui 2.8.0 yuitest-skin.css
yui 2.8.0 yuitest.css
yui 2.7.0 autocomplete-core.css
yui 2.7.0 autocomplete-skin.css
yui 2.7.0 autocomplete.css
yui 2.7.0 base-min.css
yui 2.7.0 border_tabs.css
yui 2.7.0 button-core.css
yui 2.7.0 button-skin.css
yui 2.7.0 button.css
yui 2.7.0 calendar-core.css
yui 2.7.0 calendar-skin.css
yui 2.7.0 calendar.css
yui 2.7.0 carousel-core.css
yui 2.7.0 carousel-skin.css
yui 2.7.0 carousel.css
yui 2.7.0 colorpicker-core.css
yui 2.7.0 colorpicker-skin.css
yui 2.7.0 colorpicker.css
yui 2.7.0 container-core.css
yui 2.7.0 container-skin.css
yui 2.7.0 container.css
yui 2.7.0 datatable-core.css
yui 2.7.0 datatable-skin.css
yui 2.7.0 datatable.css
yui 2.7.0 editor-core.css
yui 2.7.0 editor-skin.css
yui 2.7.0 editor.css
yui 2.7.0 fonts-min.css
yui 2.7.0 grids-min.css
yui 2.7.0 imagecropper-core.css
yui 2.7.0 imagecropper-skin.css
yui 2.7.0 imagecropper.css
yui 2.7.0 layout-core.css
yui 2.7.0 layout-skin.css
yui 2.7.0 layout.css
yui 2.7.0 logger-core.css
yui 2.7.0 logger-skin.css
yui 2.7.0 logger.css
yui 2.7.0 menu-core.css
yui 2.7.0 menu-skin.css
yui 2.7.0 menu.css
yui 2.7.0 paginator-core.css
yui 2.7.0 paginator-skin.css
yui 2.7.0 paginator.css
yui 2.7.0 profilerviewer-core.css
yui 2.7.0 profilerviewer-skin.css
yui 2.7.0 profilerviewer.css
yui 2.7.0 reset-fonts-grids.css
yui 2.7.0 reset-fonts.css
yui 2.7.0 reset-min.css
yui 2.7.0 resize-core.css
yui 2.7.0 resize-skin.css
yui 2.7.0 resize.css
yui 2.7.0 simpleeditor-core.css
yui 2.7.0 simpleeditor-skin.css
yui 2.7.0 simpleeditor.css
yui 2.7.0 skin-sam.css
yui 2.7.0 slider-core.css
yui 2.7.0 slider-skin.css
yui 2.7.0 slider.css
yui 2.7.0 tabview-core.css
yui 2.7.0 tabview-skin.css
yui 2.7.0 tabview.css
yui 2.7.0 testlogger.css
yui 2.7.0 treeview-core.css
yui 2.7.0 treeview-skin.css
yui 2.7.0 treeview.css
yui 2.7.0 yuitest-core.css
yui 2.7.0 yuitest-skin.css
yui 2.7.0 yuitest.css
yui 2.6.0 autocomplete.css
yui 2.6.0 base-min.css
yui 2.6.0 button.css
yui 2.6.0 calendar.css
yui 2.6.0 colorpicker.css
yui 2.6.0 container.css
yui 2.6.0 datatable.css
yui 2.6.0 editor.css
yui 2.6.0 fonts-min.css
yui 2.6.0 grids-min.css
yui 2.6.0 imagecropper.css
yui 2.6.0 layout.css
yui 2.6.0 menu.css
yui 2.6.0 reset-min.css
yui 2.6.0 resize.css
yui 2.6.0 simpleeditor.css
yui 2.6.0 tabview.css
yui 2.6.0 treeview.css
yui 2.5.2 autocomplete.css
yui 2.5.2 base-min.css
yui 2.5.2 button.css
yui 2.5.2 calendar.css
yui 2.5.2 colorpicker.css
yui 2.5.2 container.css
yui 2.5.2 datatable.css
yui 2.5.2 editor.css
yui 2.5.2 fonts-min.css
yui 2.5.2 grids-min.css
yui 2.5.2 imagecropper.css
yui 2.5.2 layout.css
yui 2.5.2 menu.css
yui 2.5.2 reset-min.css
yui 2.5.2 resize.css
yui 2.5.2 simpleeditor.css
yui 2.5.2 tabview.css
yui 2.5.2 treeview.css


 
Color Names
black
blue
cyan
darkGray
gray
green
lightGray
magenta
orange
pink
red
white
yellow


 
Javascript in Navigator
The following examples demonstrate best practices for client-side Java Script in Navigator. You should always use the ClientPal object to access the main form in the page. Additionally ALL Ajax communication in Navigator should be done using the ClientPal object.

For more information and sample code, refer to the "Javascript in Navigator" sample Pal in Pal Manager/Tools.
Trigger client-side javascript from server-side workflow

var page = c.getPage("index");
page.addJavascript("runMyClientSideScript()");

Access the page Form

var frm = ClientPal.getPageForm();
frm.elements["name"].value="My name";

// for libraries that needs the form by name:
var frmName = ClientPal.getPageFormName();


eval()

// since eval is restricted, any eval we need to do goes through ClientPal.
// see the AJAX sample below for a better use case.
var x = 3;
ClientPal.runJavascript("a=x*9");

AJAX


<input type="button" value="Send" onclick="sendAjax()"/>

// client-side javascript
function sendAjax()
{
    ClientPal.sendAjaxRequest("saveThis","resultHandler",ClientPal.getPageForm());
}

function resultHandler(html,js)
{
    if (html!=null)
    {
        document.getElementById("result").innerHTML=html;
    }
    if (js!=null)
    {
        ClientPal.runJavascript(js);
    }
}

// server-side workflow
if (c.isAction("saveThis"))
{
    var frag = c.createFragment("frag","<p>OK</p>",false);
    var response = c.createAjaxResponse(frag,false);
    response.addJavascript("alert('we saved your info')");
    return response;
}

Open a new Window

// client-side javascript
function openThisWindow()
{
    var url = "http://www.someothersite.com";
    var name="myWIndow";
    var params="toolbar=yes,width=300,height=300,resizable=yes,scrollbars=yes,location=yes,status=yes,directories=yes,menubar=yes,copyhistory=no";
    var win = ClientPal.openWindow(url,name,params);
}


Reload a document

// client-side javascript
function reloadDoc()
{
    ClientPal.reloadDocument();
}




 
DataSet Paging Samples
Filter by page
 
// in workflow
var filter = ds.createFilter();
filter.setPageSize(10);
filter.filterByPage(pageNumber);
var records = ds.getRecords(filter);
records.setName("records");
page.addDataList(records);
return page;

// in the page
${records.hasPreviousPage()}
${records.hasNextPage()}
${records.getFirstPage()}
${records.getPreviousPage()}
${records.getNextPage()}
${records.getLastPage()}
${records.getCurrentPage()}
${records.getPageCount()}
                        
 


 
Date Format Examples
Letter Date or Time Component Presentation Examples
G Era designator Text AD
y Year Year 1996; 96
Y Week year Year 2009; 09
M Month in year Month July; Jul; 07
w Week in year Number 27
W Week in month Number 2
D Day in year Number 189
d Day in month Number 10
F Day of week in month Number 2
E Day name in week Text Tuesday; Tue
u Day number of week (1 = Monday, ..., 7 = Sunday) Number 1
a Am/pm marker Text PM
H Hour in day (0-23) Number 0
k Hour in day (1-24) Number 24
K Hour in am/pm (0-11) Number 0
h Hour in am/pm (1-12) Number 12
m Minute in hour Number 30
s Second in minute Number 55
S Millisecond Number 978
z Time zone General time zone Pacific Standard Time; PST; GMT-08:00
Z Time zone RFC 822 time zone -0800
X Time zone ISO 8601 time zone -08; -0800; -08:00
Common Usage
Date and Time Pattern Result
"yyyy.MM.dd G 'at' HH:mm:ss z" 2001.07.04 AD at 12:08:56 PDT
"EEE, MMM d, ''yy" Wed, Jul 4, '01
"h:mm a" 12:08 PM



Copyright © 2006 - 2026, ContractPal, Inc. All rights reserved. API Date: Apr 11, 2026 06:50 PM