Login    Sites MenuBlueStep

BlueStep Platform Support

RelateScript
Outline full outline 
Overview 
Data Types 
Operators 
Statements 
Functions 
Data Conversion 
String Functions 
HTML/CSS/JavaScript 
Array Functions 
Date/Time Functions 
Mathematical Functions 
Advanced Functions 
Alert Functions 
compileSASS(String Sass) 
createChart(...) 
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 
newEmail(...)
B.email
 
readZip(...)
B.zip
 
sendEmail(...)
B.email
 
sendIntramail(...) 
sendMessage(...)
B.sendMessage
 
sendRedirect(...)
B.response.sendRedirect
 
sleep(...) 
Restricted Functions 
Working with Relate Data 
How Formulas Work 
Related Topics 

Get Sassy with your bad self with our fresh, new Sass (SCSS) compiler. It's fresh, it's new, and it compiles Sass.

Method Name Return Value Description
compileSASS(String Sass) String Pass in a big fat string of Sass and get back a string of CSS.

Sass (SCSS) is a CSS preprocessor. Some of the key features are variables, nesting, mixins, inheritance, function directives, math, and looping. Now you only have to declare colors and sizing once for your project. Copy the following to have the BlueStep color palatte:

styles = compileSASS(``
  $bs-red: #C03B2B;
  $bs-orange: #F29D1F;
  $bs-yellow: #EFC319;
  $bs-green: #28AE60;
  $bs-blue: #2A81BA;
  $bs-blue-2: #0063A6;
  $bs-purple: #894C9E;
  $bs-gray: #969FA0;
  $bs-default: #2D3F50;
``)

Sass has tons of built-in functions. Here is a list. Some I'd like to point out are lighten, darken. Sass can accommodate maps (a bit like JavaScript objects). It has the @if directive (along with @else) allowing you to apply conditional styles. There is an insane amount of other functionality available. Here's an example of nesting:

Sass

.btn {
  margin-bottom: 0 !important;
  overflow: hidden;
  width: 100%;
  &.save-button {
    .save-icon, .snapshot-icon {
      .saving {
        animation: saving 1s -.5s infinite;
      }
      svg {
        height: 2rem;
        padding: 0 .5rem;
        transition: .3s;
      }
    }
  }
}

CSS

.btn {
  margin-bottom: 0 !important;
  overflow: hidden;
  width: 100%;
}
.btn.save-button .save-icon .saving, .btn.save-button .snapshot-icon .saving {
  animation: saving 1s -0.5s infinite;
}
.btn.save-button .save-icon svg, .btn.save-button .snapshot-icon svg {
  height: 2rem;
  padding: 0 0.5rem;
  transition: 0.3s;
}

You'll notice that the CSS in this example is actually 4 lines less, but it's a lot more typing and maintaining. If you have to change .btn, for example, in the CSS you'll have to change it in five places, whereas the Sass only requires one change.