Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

This section describes the functions that are available in Relate Script.  The functions can be categorized into 7 groups:

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(...)


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
compileSASS(String Sass)
createChart(...)
doLookup(...)


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
newEmail(...)
B.email

readZip(...)
B.zip

sendEmail(...)
B.email

sendIntramail(...)
sendMessage(...)
B.sendMessage

sendRedirect(...)
B.response.sendRedirect

sleep(...)

Restricted Functions
clearCache()


clearLock(...)
B.clearLock

End Point request/response
B.request,B.response

executeQuery(...)
B.executeQuery

logKeyword(...)
Mckesson Functions
prepareLookup(...)
setBioImage()
storeString(...)
storeURL(...)
Web Services