Attributes and other Data Values - WorkView - Foundation 24.1 - Foundation 24.1 - Ready - OnBase - Premier - external - Premier

WorkView

Platform
OnBase
Product
WorkView
Release
Foundation 24.1
License
Premier

#VariableName

The # symbol is used to declare that a variable name follows. The data contained by this named variable is resolved and replaces this tag.

@AttributeName

The @ symbol prefixes an attribute name reference. The value of the named attribute is resolved and used at this place in the template block.

“Text Literal”

Quotes are used to specify literal text for setting conditions for variable values. Untagged text within a template block is always assumed to be plain text.

100 or 1.2776

Numeric values can be used as shown in SET or IF commands.

WorkView Macros

Existing WorkView macros can be used. Wrap these in <<>> brackets to place the value in output text, or use unbracketed for SET and IF commands. See the Macros chapter for more information about macros. Examples:

<<~Today>>

<<%User>>

UPop

A UPOP block can wrap any text-producing commands in order to create a link associated to this text. The default sub command is to create an object-pop link associated with the current object. Some examples of how this can be used are:

<<UPop>>This will be a link to the current object<<End>>

<<UPop: Object>> This will be a link to the current object <<End>>

<<UPop: Object, ClassName>> This will be a link to the related object of the class specified <<End>>

<<UPop: Object, ClassName, @Manager>> Link to an object from the class named with the ID in the attribute named <<End>>

<<UPop: Object, ClassName, AttributeName, @AttributeName>>Link to an object from the class named where the object's attribute is equal to the current object's attribute value<<End>>

<<Upop: Filter, ~FilterName>> Opens the unconstrained results from the named filter<<End>>

<<Upop: Filter, FilterName>> Opens the results from the named filter, constraining to the current object<<End>>

<<Upop: Filter, FilterName, upopConstraint>> Opens the results from the named filter constraining as specified<<End>>

<<UPop: LifeCycle, LifeCycleName>>Link that opens the named Life Cycle<<End>>

<<UPop: LifeCycle, LifeCycleName, QueueName>> Link that opens the named queue in the named life cycle<<End>>

<<UPop: Document, @AttributeName>> Link that opens the document identified by the specified value of the attribute specified<<End>>

Modifiers can be added to a data output tag to control the format of the data. A fixed set of modifiers is supported directly. In addition, a .NET C# format string can be provided if further control is needed. Modifiers work in most places data can be referenced. For example, a control break on a date value can actually be made to break on a change of the calendar quarter, half, or year.

Examples:

<<#totalActual, CurrencyWhole>>
<<#percentageOfEstimate, "F1" >>

Available modifiers include:

Month

Provides the numeric month of a date.

Quarter

Provides the numeric calendar quarter of a date.

Half

Provides the numeric calendar half of a date.

DayOfYear

Provides the numeric day of year for a date.

DayOfWeek

Provides the numeric day of week for a date.

DayOfMonth

Provides the numeric day of the month of a date.

Year

Provides the numeric year of a date.

Age

Provides the age based on the provided date, relative to “today”.

Hour

Provides the numeric hour of a date/time.

Minute

Provides the numeric minute of a date/time.

Second

Provides the numeric second of a date/time.

AmPm

Provides a numeric 0 if the date/time is in the AM, 1 if PM.

Whole

When used to modify a numeric value, rounds the number to the nearest whole number. No decimal point is in the result.

Currency

Formats a numeric value as a currency, with currency symbol and thousands separators.

CurrencyWhole

Formats a numeric value as a whole-dollar currency, with currency symbol and thousands separators. Number is rounded to the nearest whole dollar amount and the decimal portion is truncated.

“F1”

Where F1 can be any .Net/C# format string. In this case, the decimal number is formatted to 1 decimal place. Format string specifications are here:

Numbers: http://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx

Date/Time: http://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx