Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenRoads | OpenSite
  • Product Communities
  • More
OpenRoads | OpenSite
OpenRoads | OpenSite Wiki cif: namespace functions in XSL reports
    • Sign in
    • -Road and Site Design - Wikis
      • -OpenRoads Designer
        • +Training
        • +Basic Settings
        • +Terrain Modeling
        • +Geometry CONNECT
        • -Model Analysis & Reporting
          • Computations from a Named Boundary Based on a User Defined Shape
          • Asset definitions file for asset manager in OpenRoads Designer
          • Bringing custom XSL reports forward to OpenRoads Designer CONNECT Edition from SS4
          • cif: namespace functions in XSL reports
          • How can I get a dynamic report of offsets and elevation differences between alignments in OpenRoads/OpenRail?
          • How to get the Station Region Information to show on the Horizontal Reports.
          • How to resolve "No Design Surfaces Found" message and create cut fill volumes
          • How to update custom XSL reports to operate within new workspace environment
          • I get a Crash when trying to export 3D model to shapefile using the Asset manager
          • Report on Feature Definitions and Symbologies in OpenRoads Designer CONNECT
          • Video: Create Cut Fill Volumes - Overexcavation and MDC
          • Video: Create Cut Fill Volumes - Select Backfill
          • Video: Create Cut Fill Volumes - Substrata
          • Video: Create Cut Fill Volumes - Unsuitable Materials
          • Video: Create Cut Fill Volumes tool
          • Video: Cross Section Gradebook Report
          • Video: End Area Volumes
          • Video: Export Geometry to LandXML
          • Video: Generating a Profile Report at a Specified Interval
          • Video: How to add item types with Asset Manager and generate reports
          • Video: Legal Description Report
          • Video: Quantities Report by Named Boundary tools
          • Volume discrepancy between reports and element property in ORD
          • What controls the label symbology of civil analysis tools in Open Roads/Site/Rail Designer?
          • What do the Civil Quantities values mean under the properties for a Civilized Mesh?
          • Wiki: Unable to load Geometry Report as it throws an error, "Cannot find directory. please check directory or internet address is correct.
        • +Corridor Modeling
        • +Model Detailing
        • +Drawing Production
        • +Drainage and Utilities
        • +Survey CONNECT
        • +Civil Cells CONNECT
        • +How To Wikis
        • +Installation CONNECT
        • +ProjectWise Integration
        • +Workspace
        • +Troubleshooting Various Issues
        • +MX to OpenRoads Designer Equivalence Videos
        • Downgrade Civil Model
        • Remove Civil Model
        • Civil File Manager
        • Bentley Civil Québec
        • "Error reading the Feature XML File" in the Features XML To/From Excel
        • Bentley Civil User Accreditation - Program Overview
        • How to turn off display of inactive topology?
        • Migrating Project Data to OpenRoads Designer
        • OpenRoads Designer Workflow - Voice Command
        • Workspace error when working with Subsurface Utilities in OpenRoads Designer
        • Textual manipulators missing for survey data
        • Unable to Open Utility Properties for catchment areas
        • When opening a file, it closes right away
        • +VBAs and DLLs for Custom Functions
      • +OpenRoads ConceptStation
      • +OpenRail Designer
      • +OpenSite Designer
      • +OpenRoads Navigator Mobile App
      • +SS10/SS4/SS3 OpenRoads
      • +GEOPAK Native
      • +InRoads Native
      • +MX Native
      • +OpenRoads SignCAD
    • +Draw Profiles - Bentley PowerCivil

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

    cif: namespace functions in XSL reports

    Product(s): OpenRoads Designer
    Version(s): 10.08.01.33
    Area:  Reports

     Question:

    Can you provide a list of the available cif namespace javascript functions used in the XSL reports in OpenRoads Designer?  

    Answer:

    These are the cif parameters available to use from style sheets:

                     xslDirectionModeFormat

             xslFaceModeFormat

             xslVerticalObservationModeFormat

             xslAngularMethod

             xslConvertToCY

             xslRootDirectory

             xslShowHelp

     

    These are the cif functions available to use from style sheets:

                     public string columnFormat(string value, int length)

     

            //Note: Default precision is hardcoded to 2

            public string columnDoubleFormat(double value, int length)

            public string columnDoubleFormat(double value, int precision, int length)

            public string formatNumber(double value, int precision)

            public string formatNumber(double value)

            public string stationFormat(double value, string externalStatName)

            public string stationFormat(double value, int precision, string externalStatName)

            public string ordinateFormat(double value)

            public string distanceFormat(double value)

            public string distanceFormat(double value, int precision)

            public string areaFormat(double value)

            public string areaFormat(double value, int precision)

            public string acreFormat(double value)

            public string acreFormat(double value, int precision)

            public string cubicFormat(double value)

            public string cubicFormat(double value, int precision)

            public string directionFormat(double value)

            public string directionFormat(double value, int precision)

            public string directionMode()

            public string angularFormat(double value)

            public string angularFormat(double value, int precision)

     

            // Example: S12°16'57.835"E formats as South 12°16'57.835" East

            public string directionFormatLongCardinalDirections(double value)

     

            // Example: S12°16'57.835"E formats as South 12 Degrees 16 Minutes 57.835 Seconds East

            public string directionFormatLongCardinalDirectionsAndSymbols(double value)

     

            // Example: S12°16'57.835"E formats as South tweleve Degrees sixteen Minutes fifty-seven and eight hundred thirty-five thousandths Seconds East

            public string directionFormatLongCardinalDirectionsAndSymbolsAndNumbers(double value)

            public string numberToName(string numberString)

            public string integerNumberToName(int wholeNumber)

            public string gradeFormat(double value)

            public string gradeFormat(double value, int format)

            public string pointType(string value)

            public void SetGridOut(double value)

            public string date()

            public string time()

            public string landXMLDate()

            public string landXMLTime()

            public string leadingFormat(string strString, int nLength)

            public string trailingFormat(string strString, int nLength)

    • Share
    • History
    • More
    • Cancel
    • Kevin McDonald Created by Bentley Colleague Kevin McDonald
    • When: Fri, Sep 25 2020 12:36 PM
    • Revisions: 1
    • 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

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