Login    Sites MenuBlueStep

BlueStep Platform Support


RelateScript
Overview
How and Where are Formulas Used?
Basic Syntax and Behavior
Style Guidelines
Data Types
Text Data: String
Whole Numbers: Integer
Real Numbers: Float
True/False Values: Boolean
Dates and Times
Time Periods: DateDiff
Lists of Values: Arrays
Operators
Order of Operations
Assignment
String Concatenation
Arithmetic & Date/Time Operators
Comparative Operators
Logical Operators
Casting Operators
Increment and Decrement Operators
The Conditional Operator
Bitwise Operators
Statements
The if Statement
The while Loop Statement
The do/while Loop Statement
The for Loop Statement
The for/in Loop Statement
The continue Statement
The break Statement
The Array Creation Statement
Functions
Data Conversion
charCode(...)
charVal(...)
format(...)
formatElapsedTime(...)
getFormatter(...)
join(...)
parseFloat(...)
parseInteger(...)
readCSV(...)/readCSVRows(...)
split(...)
toDate(...)
toDateDiff(...)
toDateTime(...)
toTime(...)
String Functions
compareToIgnoreCase(...)
escapeJS(...)
indexOf(...)
lastIndexOf(...)
isKey(...)
matches(...)
nullOrEmpty(...)
pad(...)
replace(...)
secureHash(...)
SHA1AsBase64(...)
SHA1AsHex(...)
substring(...)
toLowerCase(...)
toTitleCaps(...)
toUpperCase(...)
trim(...)
xssHtmlSafe(...)
xssSafe(...)
HTML/CSS/JavaScript
decodeURI(...)
diff(...)
encodeURI(...)
getButtonHTML(...)
getButtonURL(...)
getPopInScript(...)
newJSONArray(...)
B.xmlToJsonString
newJSONObject(...)
B.xmlToJsonString
putContent(...)
B.pageContent
scriptIncl(...)
scriptTag(...)
toHTML(...)
toPlainText(...)
Array Functions
firstIndex(...)
lastIndex(...)
size(...)
Date/Time Functions
curDate(...)
curDateTime(...)
curTime(...)
set(...)/calc(...)
Mathematical Functions
avg(...)
max(...)
min(...)
pow(...)
random(...)
round(...)
sum(...)
Advanced Functions
Alert Functions
getNewAlert(...)
B.createAlert
getAlert(...)
B.findAlert
getUserAlerts(...)
B.User.alerts
compileSASS(String Sass)
createChart(...)
Chart Examples
doLookup(...)
B.lookup
drugAllergyByProductID(...)
B.Drug.allergyInteractionsWith
drugDrugByProductID(...)
B.Drug.drugInteractionsWith
drugFoodByProductID(...)
B.Drug.foodInteractions
getCurrentNav(...)
getHTTPRequester(...)
B.fetch
getPageInfo()
B.pageInfo
getPDF(...)
B.pdf
getRecentRecords(...)
B.optRecentRecords,BaseRecord.optRecentRecords,User.recentRecords
getSecurityGroup(...)
B.findSecurityGroup
getUserData(...)
B.sessionData,User.userData
getZipOutput(...)
B.zip
isLayout()
log(...)
Medispan
newPatientProfile()
newPatientDrug(...)
newEmail(...)
B.email
readZip(...)
B.zip
sendEmail(...)
B.email
sendIntramail(...)
sendMessage(...)
B.sendMessage
sendRedirect(...)
B.response.sendRedirect
sleep(...)
Restricted Functions
clearCache()
B.clearCache
clearLock(...)
B.clearLock
End Point request/response
B.request,B.response
executeQuery(...)
B.executeQuery
logKeyword(...)
Mckesson Functions
getActivePatients(...)
getDispensesByRX(...)
getDispensesByDate(...)
getFieldByID(...)
getDispense(...)
getDispenseMap(...)
getPatientMap(...)
prepareLookup(...)
setBioImage()
storeString(...)
storeURL(...)
Web Services
getNewSoapClient(...)
B.createSoapClient, B.createJaxWsSoapClient
SoapObject
Sample Code
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
Accessing Fields
Single Entry Forms
Multi-Entry Forms
Queries and Reports
Searching
Form Permissions
Special Data and Functions
System Data
getDocumentLibrary(...)
getMergeTag(...)
getRecordNav(...)
The transaction Object
How Formulas Work
Types of Formulas
The 8 Step Edit Process
Writable or Read-Only?
Field Formulas
Related Topics
Generating PDFs
Applied Examples
Errors and Solutions*
Help Menu Instructions
JavaScript Functions