Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenPlant | AutoPLANT
  • Product Communities
OpenPlant | AutoPLANT
OpenPlant | AutoPLANT Wiki Functions and Operators list for Report Designer in Bentley Raceway and Cable Management
    • Sign In
    • -OpenPlant | AutoPLANT Wiki
      • +OpenPlant
      • +Bentley AutoPLANT
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • -Bentley Raceway and Cable Management
        • How to Download Bentley Raceway and Cable Management
        • Bentley Raceway and Cable Management Product Compatibility
        • -CONNECT Edition - Bentley Raceway and Cable Management
          • +Resolved issues in Bentley Raceway and Cable Management Releases
          • +What's New in Bentley Raceway and Cable Management Releases
          • +Manufacturer Based Raceway Content in Bentley Raceway and Cable Management
          • +AutoPlace Conduit tool - BRCM CONNECT Edition
          • +Cable Reports- Cable Pull Cards and Cable Drums-Bentley Raceway and Cable Management CONNECT Edition
          • +Cable Routing-Bentley Raceway and Cable Management CONNECT Edition.
          • +Drawing generation - Bentley Raceway and Cable Management CONNECT Edition
          • +i-Model - Bentley Raceway and Cable Management CONNECT Edition
          • +Installation_Configuration - BRCM CONNECT
          • +Power Platform Support - BRCM CONNECT Edition
          • +Project Setup- Bentley Raceway and Cable Management
          • +ProjectWise Integration - Bentley Raceway and Cable Management CONNECT
          • +Raceway Design Tools - Bentley Raceway & Cable Management
          • +Raceway IDs - Bentley Raceway and Cable Management CONNECT
          • -Reports - Output Manager - BRCM CONNECT Edition
            • Functions and Operators list for Report Designer in Bentley Raceway and Cable Management
            • How to add Calculated Field in Reports
            • How to Add Equipment UDAs in BOQ Reports
            • How to add the User Defined Attributes into Reports
            • How to apply filters to the Columns of the Output Reports
            • How to Configure Equipment Product Codes
            • How to Export Custom Cable UDAs in Cable Route List report
            • How to generate Isometric Cable Report.
            • How to Include Raceway Accessories in the BOQ Report
            • How to Insert Page Break in BRCM report templates
            • How to Perform Calculations on Product Code (PCode) values
            • How to Utilize Equipment UDAs in BOQ report for Product codes and Descriptions
          • +Underground System - Bentley Raceway and Cable Management CONNECT Edition
          • +User Defined Attributes (UDA) Settings - Bentley Raceway and Cable Management CONNECT Edition
          • +Components Center - Bentley Raceway and Cable Management CONNECT Edition
          • +i-Twin Services-Bentley Raceway and Cable Management CONNECT Edition.
          • +Equipment & Cable List Import-Bentley Raceway and Cable Management CONNECT.
          • +Interoperability
        • +V8i - Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
      • Your Feedback is important to us!

     
     Questions about this article, topic, or product? Click here. 

    Functions and Operators list for Report Designer in Bentley Raceway and Cable Management

      Product(s): Bentley Raceway & Cable Management
      Version(s): CONNECT Edition (10.04.00.31)
      Environment: N/A
      Area: Output Manager
      Subarea: Report Designer
      Orignal Author: Aadarsh Tale

    Background

    This article provides information on the basic and reporting specific list of Constants, Operators and Functions which can be used to create the Calculated Field's Expression inside the Report Designer.


    Math Functions

    Function

    Description

    Example

    Abs(Value)

    Returns the given numeric expression's absolute, positive value.

    Abs(1 - [Discount])

    Acos(Value)

    Returns a number's arccosine (the angle in radians, whose cosine is the given float expression).

    Acos([Value])

    Asin(Value)

    Returns a number's arcsine (the angle in radians, whose sine is the given float expression).

    Asin([Value])

    Atn(Value)

    Returns a number's arctangent (the angle in radians, whose tangent is the given float expression).

    Atn([Value])

    Atn2(Value1, Value2)

    Returns the angle whose tangent is the quotient of two specified numbers in radians.

    Atn2([Value1], [Value2])

    BigMul(Value1, Value2)

    Returns an Int64 containing the full product of two specified 32-bit numbers.

    BigMul([Amount], [Quantity])

    Ceiling(Value)

    Returns the smallest integer that is greater than or equal to the numeric expression.

    Ceiling([Value])

    Cos(Value)

    Returns the angle's cosine, in radians.

    Cos([Value])

    Cosh(Value)

    Returns the angle's hyperbolic cosine, in radians.

    Cosh([Value])

    Exp(Value)

    Returns the float expression's exponential value.

    Exp([Value])

    Floor(Value)

    Returns the largest integer less than or equal to the numeric expression.

    Floor([Value])

    Log(Value)

    Returns a specified number's natural logarithm.

    Log([Value])

    Log(Value, Base)

    Returns the logarithm of a specified number in a specified Base.

    Log([Value], 2)

    Log10(Value)

    Returns a specified number's base 10 logarithm.

    Log10([Value])

    Max(Value1, Value2)

    Returns the maximum value from the specified values.

    Max([Value1], [Value2])

    Min(Value1, Value2)

    Returns the minimum value from the specified values.

    Min([Value1], [Value2])

    Power(Value, Power)

    Returns a specified number raised to a specified power.

    Power([Value], 3)

    Rnd()

    Returns a random number that is less than 1, but greater than or equal to zero.

    Rnd()*100

    Round(Value)

    Rounds the given value to the nearest integer.

    Round([Value])

    Round(Value, Precision)

    Rounds the given value to the nearest integer, or to a specified number of decimal places.

    Round([Value], 2)

    Sign(Value)

    Returns the positive (+1), zero (0), or negative (-1) sign of the given expression.

    Sign([Value])

    Sin(Value)

    Returns the sine of the angle defined in radians.

    Sin([Value])

    Sinh(Value)

    Returns the hyperbolic sine of the angle defined in radians.

    Sinh([Value])

    Sqr(Value)

    Returns the square root of a given number.

    Sqr([Value])

    Tan(Value)

    Returns the tangent of the angle defined in radians.

    Tan([Value])

    Tanh(Value)

    Returns the hyperbolic tangent of the angle defined in radians.

    Tanh([Value])

    ToDecimal(Value)

    Converts Value to an equivalent decimal number.

    ToDecimal([Value])

    ToDouble(Value)

    Converts Value to an equivalent 64-bit double-precision floating-point number.

    ToDouble([Value])

    ToFloat(Value)

    Converts Value to an equivalent 32-bit single-precision floating-point number.

    ToFloat([Value])

    ToInt(Value)

    Converts Value to an equivalent 32-bit signed integer.

    ToInt([Value])

    ToLong(Value)

    Converts Value to an equivalent 64-bit signed integer.

    ToLong([Value])

    String Functions

    Function

    Description

    Example

    Ascii(String)

    Returns the ASCII code value of the leftmost character in a character expression.

    Ascii('a')

    Char(Number)

    Converts an integerASCIICode to a character.

    Char(65) + Char(51)

    CharIndex(String1, String2)

    Returns the starting position of String1 within String2, beginning from the zero character position to the end of a string.

    CharIndex('e', 'devexpress')

    CharIndex(String1, String2, StartLocation)

    Returns the starting position of String1 within String2, beginning from the StartLocation character position to the end of a string.

    CharIndex('e', 'devexpress', 2)

    Concat(String1, ... , StringN)

    Returns a string value containing the concatenation of the current string with any additional strings.

    Concat('A', ')', [ProductName])

    Contains(String1, SubString1)

    Returns True if SubString1 occurs within String1; otherwise, False is returned.

    Contains([ProductName], 'dairy')

    EndsWith(String1, SubString1)

    Returns True if the end of String1 matches SubString1; otherwise, False is returned.

    EndsWith([Description], 'The end.')

    Insert(String1, StartPosition, String2)

    Inserts String2 into String1 at the position specified by StartPositon

    Insert([Name], 0, 'ABC-')

    Len(Value)

    Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.

    Len([Description])

    Lower(String)

    Returns String in lowercase.

    Lower([ProductName])

    PadLeft(String, Length)

    Left-aligns the defined string's characters, padding its left side with white space characters up to a specified total length.

    PadLeft([Name], 30)

    PadLeft(String, Length, Char)

    Left-aligns the defined string's characters, padding its left side with the specified Char up to a specified total length.

    PadLeft([Name], 30, '<')

    PadRight(String, Length)

    Right-aligns the defined string’s characters, padding its left side with empty space characters up to a specified total length.

    PadRight([Name], 30)

    PadRight(String, Length, Char)

    Right-aligns the defined string’s characters, padding its left side with the specified Char up to a specified total length.

    PadRight([Name], 30, '>')

    Remove(String, StartPosition)

    Deletes all the characters from this instance, beginning at a specified position.

    Remove([Name], 3)

    Remove(String, StartPosition, Length)

    Deletes a specified number of characters from this instance, beginning at a specified position.

    Remove([Name], 0, 3)

    Replace(String, SubString2, String3)

    Returns a copy of String1, in which SubString2 has been replaced with String3.

    Replace([Name], 'The ', '')

    Reverse(String)

    Reverses the order of elements within String.

    Reverse([Name])

    StartsWith(String1, SubString1)

    Returns True if the beginning of String1 matches SubString1; otherwise, False.

    StartsWith([Title], 'The best')

    Substring(String, StartPosition, Length)

    Retrieves a substring from String. The substring starts at StartPosition and has a specified Length.

    Substring([Description], 2, 3)

    Substring(String, StartPosition)

    Retrieves a substring from String. The substring starts at StartPosition.

    Substring([Description], 2)

    ToStr(Value)

    Returns a string representation of an object.

    ToStr([ID])

    Trim(String)

    Removes all leading and trailing SPACE characters from String.

    Trim([ProductName])

    Upper(String)

    Returns String in uppercase.

    Upper([ProductName])

    Aggregate Functions

    Function

    Description

    Example

    Avg(Value)

    Evaluates the average of the values in the collection.

    [Products].Avg([UnitPrice])

    Count()

    Returns the number of objects in a collection.

    [Products].Count()

    Exists()

    Determines whether the object exists in the collection.

    [Categories][[CategoryID] == 7].Exists()

    Max(Value)

    Returns the maximum expression value in a collection.

    [Products].Max([UnitPrice])

    Min(Value)

    Returns the minimum expression value in a collection.

    [Products].Min([UnitPrice])

    Single()

    Returns an object if it is single in a collection.

    [Accounts].Single() is not null

    Single(Expression)

    You can pass an expression as a parameter: [Collection][Condition].Single(Expression). This function returns the Expression if the Collection contains only one object that meets the specified Condition (optional).

    [Collection].Single([Property1]) - returns the found object's property value.

    Sum(Value)

    Returns the sum of all the expression values in the collection.

    [Products].Sum([UnitsInStock])

    Operators

    Operator

    Description

    Example

    +

    Adds the value of one numeric expression to another or concatenates two strings.

    [UnitPrice] + 4

    [FirstName] + ' ' + [LastName]

    -

    Finds the difference between two numbers.

    [Price1] - [Price2]

    *

    Multiplies the value of two expressions.

    [Quantity] * [UnitPrice] * (1 - [BonusAmount])

    /

    Divides the first operand by the second.

    [Quantity] / 2

    %

    Returns the remainder (modulus) obtained by dividing one numeric expression by another.

    [Quantity] % 3

    |

    Performs a bitwise inclusive OR on two numeric expressions. Compares each bit of its first operand to the corresponding bit of its second operand. If either bit is 1, the corresponding resulting bit is set to 1. Otherwise, the corresponding resulting bit is set to 0.

    [Number] | [Number]

    &

    The bitwise AND operator. Compares each bit of its first operand to the corresponding bit of its second operand. If both bits are 1, the corresponding resulting bit is set to 1. Otherwise, the corresponding resulting bit is set to 0.

    [Number] & 10

    ^

    Performs a bitwise exclusive OR on two numeric expressions.

    [Number] ^ [Number]

    ==

    =

    Returns true if both operands have the same value; otherwise, it returns false.

    [Quantity] == 10

    !=

    Returns true if the operands do not have the same value; otherwise, it returns false.

    [Country] != 'France'

    < 

    Less than operator. Used to compare expressions.

    [UnitPrice] < 20

    <=

    Less than or equal to operator. Used to compare expressions.

    [UnitPrice] <= 20

    >=

    Greater than or equal to operator. Used to compare expressions.

    [UnitPrice] >= 30

    > 

    Greater than operator. Used to compare expressions.

    [UnitPrice] > 30

    In (,,,)

    Tests for the existence of a property in an object.

    [Country] In ('USA', 'UK', 'Italy')

    Between (,)

    Specifies a range to test. Returns true if a value is greater than or equal to the first operand and less than or equal to the second operand.

    [Quantity] Between (10, 20)

    And

    &&

    Performs a logical conjunction on two Boolean expressions.

    [InStock] And ([ExtendedPrice]> 100)

    [InStock] && ([ExtendedPrice]> 100)

    Or

    ||

    Performs a logical disjunction on two Boolean expressions.

    [Country]=='USA' Or [Country]=='UK'

    [Country]=='USA' || [Country]=='UK'

    ~

    Performs a bitwise negation on a numeric expression.

    ~[Roles] = 251

    Not

    !

    Performs a logical negation on a Boolean expression.

    Not [InStock]

    ![InStock]

    +

    Returns a numeric expression's value (a unary operator).

    +[Value] = 10

    -

    Returns the negative of a numeric expression's value (a unary operator).

    -[Value] = 20

    Is Null

    Returns true if an expression is a null reference, the one that does not refer to any object.

    [Region] is null


    You can also download the list from here:
     

    Aadarsh Tale
    Functions and Operators list for Report Designer in Bentley Raceway and Cable Management
    By Aadarsh Tale over 2 years ago in OpenPlant | AutoPLANT > OpenPlant | AutoPLANT Files

     

    See Also

    How to add Calculated Field in Reports
    Product(s): Bentley Raceway & Cable Management Version(s): CONNECT Edition (10.04.00.31) Environment: N/A Area: Output Manager Subarea: Report Designer…
    Last edited over 1 year ago in OpenPlant | AutoPLANT > OpenPlant | AutoPLANT Wiki

    Still a Problem?

    If above problem still persists, then please create a Service Request and contact the Bentley Product Advantage group.  Please include a list of all relevant details to get in depth analysis for a solution or workaround.

    Comments or Corrections?

    Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!

    • Report Designer
    • BRCM CONNECT Edition
    • Share
    • History
    • More
    • Cancel
    • Aadarsh Tale Created by Bentley Colleague Aadarsh Tale
    • When: Thu, May 21 2020 6:59 AM
    • Aadarsh Tale Last revision by Bentley Colleague Aadarsh Tale
    • When: Wed, Sep 1 2021 9:18 AM
    • Revisions: 2
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies