Demo Toolbox 2.1.0

BACK TO THE xCELERATOR HOMEPAGE

xCelerator Author: Charles Burnett EMC (CBurnett)

 

Description

NOTE: The major and minor version numbers of the xCelerator have been changed to match the supported xCP release. For clarity, the previous version of DTb was 2.4, and the current version is 2.2.0 (which is not to be confused with DTb 2.1, which was an earlier release). Besides a few bug fixes and support for xCP 2.2, no new functionality was added to this version.

 

This xCelerator contains a collection of UI widgets, JavaScript functions, and Java services. The UI widgets can be added to pages in xCP Designer, via the “Custom” section of the widget palette. The JavaScript functions can be used anywhere the client-side expression editor is available in xCP Designer. The Java services can be called from workflows (either stateful or stateless) by use of the “Execute Java Service” activity. The source code for the java services is also provided inside the JAR. See below for a brief description of each of the extensions, sorted by their type.

 

New components since the last minor release are marked in bold text.

New components since the last major release are marked with an asterisk (*).

 

Highlights

 

 

UI Widgets


Name

Description

Advanced Text Input

A “Text Input” widget which must conform to a supplied format/input mask (uses regular expressions)

Button

Supports navigation to a custom URL, emulation of the browser’s back/forward/close buttons, as well as targeting an iframe instead of the parent browser window

Data Service Poller

Allows you to automatically invoke or refresh a data service on a page based on a custom time interval

Geo Location

Uses the location services provided (if enabled) by the browser to determine the approximate latitude and longitude of the user

Heading

Convenience widget for adding an image and some large bold text to the top of the page

HTML Editor

A text area widget which supports the rendering and editing of HTML.

IFrame

Convenience widget for adding an IFrame to a page

Multi Slider

Similar to the Single Slider, but allows the user to specify multiple values via multiple knobs

Progress Bar

Displays a progress bar based on a multi-value integer

Single Slider

A form control that displays a range of integer values and has an indicator, or “thumb,” which indicates the current setting. The user moves the thumb along the slider’s bar, to change the setting

* New since last major release

(bold) New since last minor release


 

JavaScript Functions


Name

Description

arraySize (type-specific)

Returns the size of an array (number of elements)

convert (type-specific)

A number of functions for converting from one data type to another

getBrowserQueryString

Returns the current URL’s query string (everything after ? but before #)

getBrowserQueryStringParam

Returns a specific parameter value from the query string

getBrowserURL

Returns the current URL in the browser

getBrowserURLHash

Returns everything after the # in the current URL

getBrowserUserAgent

Returns the "user agent" (browser) being used by the client

getFormatIconTag

Returns an HTML <img> tag with the appropriate URL (as returned by getFormatIconURL) for the format icon

getFormatIconURL

A convenience function which will return the appropriate icon URL for a supplied format, such as ‘png’ or ‘pdf’

getLabelFromPicklist

Gets the label for a provided picklist value

ifElse (type-specific)

An ‘if-then-else’ function for returning two different values depending on a supplied condition

ifElseArray (type-specific)

An ‘if-then-else’ function for returning two different array values depending on a supplied condition

isEmpty (type-specific)

Tests for empty values

join (type-specific)

Joins an array into a string using a delimiter

push (type-specific)

Adds an element to the end of an array

redirect / redirectIf

Redirects the browser to a different page. redirectIf can be used to conditionally redirect based on a Boolean value.

regexGroup / regexMatch / regexReplace

A few functions for parsing strings against regular expressions

regexReplaceArrayStr

A regex function which will perform a replacement across all elements of a string array

reloadIf

Reloads/refreshes the current page, only if the supplied condition is true.

split (type-specific)

Splits a string using a delimiter and returns an array

timeAgo

Converts a datetime value into a relative duration from “now”

trim

Removes leading and/or trailing whitespace from a string

unshift (type-specific)

Adds an element to the beginning of an array

urlEncode / urlDecode

URL encoding and decoding for a string

* New since last major release

(bold) New since last minor release


 

Java Services


Name

Description

acquireTask

Acquires a task as the user who started the workflow.

addComment

Adds a comment to a comment thread (topic) for a specified object

completeTask

Completes a task / work item.

containsString

Returns true if a string array contains a particular string

dateToMillis

Converts a date value to the number of milliseconds since the epoch (January 1, 1970)

delegateTask

Delegates a work item (or an array of work items) to a specified user name

generateContentHash

Generates an SHA1 hash value for a document’s content

iCalCreate

Creates an iCalendar (.ics) file which can be attached to an email, in order to create an event in a user’s email calendar.

millisToDate

Converts a number of milliseconds since the epoch (January 1, 1970) to a date value

prettyTime

Returns a “humanized” date/time value, such as “10 minutes ago”

regexGroup/regexGroups

Utilizes regular expression matching to return matched information contained in parentheses

regexMatch

Returns true/false if a specified string matches a specified pattern

regexReplaceAll

Replaces all occurrences of supplied pattern with a supplied value

saveAttrsToXML

Generates an XML document based on the attributes of an object

sleepFor/sleepUntil

Can be used to “pause” or “delay” a workflow for a number of seconds, or until a specific date and time

transformDocToPDF

Uses the document_to_xCP_pdf transformation template (Documentum CTS) to convert a document to PDF format

 

User

The target users are:

  • xCP Designers
  • xCP Developers

 

 

Downloadable Content

 

DownloadList of Contents
Documentation.pdf
  • Overview, Installation, and User Guide
DemoToolbox-2.1.0.zip
  • Overview, Installation, and User Guide
  • Installation files for xCP 2.1
  • License and Copyright Info
dtb.DemoToolbox-2.2.0.jarUpdated library for xCP 2.2

 

 

BACK TO THE xCELERATOR HOMEPAGE