Unit and Unit Group Binds

The Unit and Unit Group binds allow access to the selected unit or unit group.

These binds are available within the 'Binds to' dropdown, as shown below.

 

Each bind is defined in the sections below.

Configuration

To use any bind:

  1. Create a business rule as defined in the Creating a Business Rule, Function, or Library topic.

  2. Edit the business rule as defined in the Editing a Business Rule or Function topic.

  3. In the Edit Operation dialog, add the bind to a business rule, as defined in the Adding a Bind topic in the Resource Materials online help documentation.

  4. In the Edit Operation dialog, optionally add Messages, as defined in the Localized Messages for JavaScript Business Rules topic.

  5. In the Edit Operation dialog, add JavaScript to call the bind.

Note: Example scripts should not be used as-is without thorough testing, including updating the script to match object and link types that exist on your system

Unit

The selected unit is bound to the action or condition variable.

For example, to add the value '5 cm' to the 'Size' LOV.

Copy
//lov= Binds to List of Values
//node=Current object
//unit= Select the unit which you want to bind (cm, m, g/cm^2 etc)
lov.createListOfValuesValue(5, unit, node.getID());   

Unit Group

The selected unit group is bound to the action or condition variable.