Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Working with Relate Data 
Field Data 
Text Fields 
Memo Fields 
Date/Time Fields 
Number Fields 
Boolean Fields 
Single Select Fields 
Multiple Select Fields 
Signature Fields 
Document Fields 
clear(...) 
getContent(...) 
getDefaultPath(...) 
getThumbnailHTML(...) 
getThumbnailURL(...) 
import(...) 
move(...) 
rename(...) 
setContent(...) 
setContentFromURL(...) 
setContentType(...) 
setNotes(...) 
setVersioned(...) 
Image Transformations 
Document Permissions 
Relationship Fields 
Biometric Fields 
Password Fields 
Accessing Forms and Fields 
Special Data and Functions 
How Formulas Work 
Related Topics 

The getDefaultPath(...) function has two variations, not counting syntax variations.  When the default path includes a date-dependent part an option date can be passed in, corresponding to the five types of data that it can format. The format function converts numeric values and date/time values into String values using a specific format.

Syntax:
getDefaultPath( document-field )
getDefaultPath(
document-fielddate )
document-field.getDefaultPath( )
document-field.getDefaultPath( date )

Parameter Description
document-field The document field from which to retrieve the default path.
date A DateTime or Date value indicating for what date the default path should be generated.  If the date is null or omitted, creation timestamp of the currently referenced document is used.  If there is no document referenced by the document field, then the current date and time is used.  This parameter will only have effect if the default path settings defined in the document field configuration include a date-specific rule.