Labii Documentation
HomeFree SignupFree DemoContact Us
  • Getting Started
    • Introduction
    • Quick Start
  • User Guide
    • Interface
      • Side Menu
      • Views
    • Add Record
      • Add a project
      • Add a blank record
      • Add records in bulk
      • Add a record from a template
      • Add record(s) from file(s)
      • Add a template
    • Record List View
      • Table List View
      • Project List View
      • Row List View
      • ❗Import Records
      • Export Records
      • Bulk Operations
        • Bulk Edit Columns
        • Bulk Edit Sections
        • Bulk Print Detail
        • Bulk Print Labels
        • Bulk Print Barcodes
        • Bulk Print QR Codes
        • Bulk Download
        • Use Selected to Add Blank Record
        • Use Selected to Bulk Add Records
    • Record Detail View
      • Columns
      • Sections
      • Notes
      • Signers
      • Versions
      • Activities
      • Visitors
      • Permissions
      • Section
      • Actions
        • Sign
        • Print
        • Share
    • Navbar
      • Search
        • Global search
        • Search at list view
        • Search query
      • Scan
    • Side Menu
      • Dashboard
      • Calendar
      • Notifications
      • Reload Organization
      • Switch Organization
      • Change Data Center
    • Accounts
      • Authentication
      • Setup an account
      • Create an account
      • My Profile
    • AI Integration
      • Prompt box
      • Prompt template
      • ProtocolGPT
      • AI in Widgets
      • Use cases
  • Admin Guide
    • Organization
    • Backups
    • Personnel
    • Certifications
    • Teams
    • Projects
      • Members
    • Applications
    • Tables
      • Columns
      • Sections
      • Filters
    • Workflows
    • Widgets
    • Subscriptions
    • Credits
    • Invoices
    • Single Sign On
      • Google G Suite
      • Okta
      • OneLogin
      • Microsoft Azure
    • API Keys
  • Widgets
    • Overview
    • Column Widgets
      • Form
        • Text inputs
          • Text
          • MultilineText
          • RichText
          • Number
          • RangeUnit
          • Email
          • Phone
          • Secret
          • Link
          • Address
        • Boolean
          • Checkbox
          • Switch
        • DateTime
          • Date
          • Time
          • DateTime
          • Appointment
          • TimeStamp
          • Timezone
        • Dropdown
          • Select
          • MultiSelect
          • ForeignKey
          • ForeignKeys
          • Member
          • Members
        • File
          • Files
          • Image
          • File Path
          • File Size
          • File Antivirus Status
      • Barcode
        • Barcode
        • QR Code
      • Calculation
        • Formula
        • Numbering
        • RowCount
        • Consumption
      • Integration
        • API
          • API
        • Dropdown
          • API ForeignKey
          • API ForeignKeys
      • Column
        • Record Citation
        • Column Citation
        • Column Data
        • Column Addition
      • Regulation
        • Signature
          • Signature
          • Open Signature
          • Signature Status
      • ❗Chemistry
      • ❗PubMed
      • ❗Device
      • ❗Integration
      • Advanced
        • Subtitle
        • Rating
        • Nested Fields
        • Storage
        • Storage Coordinates
    • Section Widgets
      • Office
        • Text
          • Plain Text
          • CKEditor Classic
          • CKEditor Balloon
          • CKEditor Document
          • CKEditor Restricted
          • CKEditor Classic Controlled
          • Code Editor
        • ❗Table
        • File
          • Files
          • File Preview
        • Google Drive
        • Drawing
        • G Suite
        • Microsoft Office
      • Data Display
        • Columns
          • Columns
          • Metadata
        • Sections
          • Section Display By Record
          • Section Display By ForeignKey
        • Record List
          • Record List
          • Record List by Column
          • Record List by ForeignKey
          • Record List by Query
      • ✅Regulation
        • Signers
        • ✅Audit Trail
          • ✅Activities
          • Versions
          • Visitors
      • Process Management
        • Flowchart
        • Steps
      • Diagram
        • Mermaid
        • Gantt Chart
        • Stage Flowchart
        • Relation Flowchart
      • Reference Manager
      • Biology
        • Molecular Biology Suite
          • Plasmid Editor
          • Open Vector Editor
        • Microplate
          • 6-Well Plate
          • 12-Well Plate
          • 24-Well Plate
          • 48-Well Plate
          • 96-Well Plate
          • 384-Well Plate
          • Flexible Well Plate
        • Sample Aliquoting
        • Assay
          • ELISA Standard Curve
          • ELISA Qualitative
          • Dose Response Curve
        • Protein
          • MolStar
          • RCSB Saguaro
        • Bioinformatics
          • QUiCKR Analysis
          • CRISPResso2
      • Chemistry
        • Chemical Formats
        • Chemical Drawing
        • Chemical Analysis
        • Chemical Reaction
      • Combination
        • Clinical Genomicist Workstation
      • Productivity
        • ✅Calendars
          • Calendar
          • Scheduling
        • Automation
          • Workflows
        • Ungrouped
          • Storage Map
        • Table of Contents
        • Communication
          • Email Template
          • Notifications
          • Comments
        • Barcode
        • ToDo
        • Timer
      • Report
        • Record Summary
          • Record Summary
        • Data Driven Charts
          • Chart By Category X
          • Chart By Numeric X
        • Custom Input Charts
          • Data Visualizer
    • Dashboard Widgets
      • Labii
      • Shortcut
        • Applications
        • Links
        • Filters
      • Productivity
        • Office
        • Flowchart
        • Section
        • Project Management
          • ✅Tasks
        • Summary
      • ✅Reports
        • Record Summary
          • Record Summary By Date
          • Record Summary By Tables
          • Record Summary By Projects
          • Record Summary By Users
        • Data Driven Charts
          • Chart By Category X
          • Chart By Numeric X
        • Matrix
          • Record Count By Filter
        • Audit
          • Storage Audit
      • Integration
        • Quickbooks
          • Quickbooks Customers
          • Quickbooks Accounts
          • Quickbooks Items
          • Quickbooks Invoices
  • API
    • Concepts
      • How to get token from Labii ELN & LIMS
      • How can I load Labii data from API into DataFrame
    • Methods
      • Authentication
      • Notification
      • Organization
      • Personnel
      • Team
      • Organization Widget
      • Statement
      • Backup
      • Project
      • Member
      • Table
      • Column
      • Filter
      • Row
      • Cell
      • Section
      • Activity
      • Version
      • Visitor
      • Workflow
      • Step
      • Widget
    • Variables
    • SDK
      • API Client (python)
      • API Client (javascript)
      • SDK (python)
      • SDK (javascript)
      • Examples
  • Applications
    • Electronic Lab Notebook
      • ELN for Research and Development
      • ELN for Production
      • ELN for ELISA Data Analysis
      • ELN for Dose Response Curve
    • Process Management
      • ❗Report creating process in diagnosis testing
      • ❗Email follow up process in CRM
      • ❗Management of the purchasing, approval, and ordering processes.
    • Sample Management
      • Sample Receiving
      • Track sample consumption
      • Aliquots Management
    • Equipment Management
      • ❗Equipment Scheduling
      • ❗Equipment Maintenance
    • Inventory Management
      • Barcode System
      • Stock Checkin and Checkout
      • Storage Management
      • ❗Purchase Management
    • Laboratory Information Management System
      • LIMS for Sample Testing
      • LIMS for NGS
    • Customer Relationship Management (CRM)
      • Quickbooks Integration
    • Document Management
    • Chemical Registration
    • Mouse Colony Management
    • Diagnostic Testing
    • Diabetes Tracker
    • Project Management
      • Task Management
      • How to manage research goals
    • Reference Management
    • Training Management
  • Support
    • Overview
    • Documentation
    • YouTube
    • Videos
    • Tickets
    • Chat with us
    • Schedule a meeting
    • Take a survey
    • Resources
    • Download
    • Blogs
    • FAQ
    • Other
      • Guidelines for Preparing Documents on Research Needs for Labii Configuration
Powered by GitBook
On this page
  • Overview
  • Variables
  • Escape to become a variable
  1. API

Variables

Variables are the terms employed to substitute specific values within the parameters.

PreviousWidgetNextSDK

Last updated 19 days ago

Overview

Labii variables serve as placeholders used to replace specific values within parameters, offering a dynamic and adaptable approach to data management and customization. These variables enable the convenient substitution of particular values with placeholders, streamlining processes and facilitating the automation of repetitive tasks within the Labii platform. By employing variables, users can create templates or configurations that accommodate various scenarios, allowing for swift adjustments and efficient handling of diverse data sets without the need for manual reconfiguration. This versatility empowers users to create more flexible and responsive systems, enhancing productivity and adaptability within Labii's framework.

Variables

  • Record Properties

    • {{SID}} - The SID of the current record.

    • {{UID}} - The UID of the current record.

    • {{NAME}} - The name of the current record.

    • {{DESCRIPTION}} - The description of the current record.

    • {{PROJECTS}} - The projects data of current record.

    • {{OWNER.SID}} - The SID of the owner.

    • {{OWNER.NAME}} - The owner of current record.

    • {{DATECREATED}} - The date created of the current record.

    • {{VERSION}} - The version of the current record.

    • {{LINK}} - The detail view link of the current record.

    • {{SHARABLELINK:<URL>}} - The sharable link generated based on the provided URL. The URL must contain an api_key to be accessible by users without Labii access.

  • URL

    • {{URL}} - The current URL.

    • {{DOMAINFRONTEND}} - The current Domain.

  • Date

    • {{TODAY}} - Today's date in the format or "YYYY-MM-DD"

    • {{CURRENT:<FORMAT>}} - The current date time with the provided format

      • Javascript, use the format from the momentjs:

      • Python, use the format from Strftime:

    • {{[+/-][#][DAY/WEEK/MONTH/YEAR]:<FORMAT>}} for a certain date before/after current date.

      • The <FORMAT> is optional, default to YYYY-MM-DD. For example, '{{-5WEEK}}' for 5 weeks ago in the format of YYYY-MM-DD.

      • Javascript, use the format from the momentjs:

      • Python, currently the format is not supported.

  • Column

    • {{[COLUMN_SID]}} - Column values can be returned by using the SID of a column. For example {{nqtw0a40x1d58puzEJOTY}}

    • {{[COLUMN_SID]:<CODE>}} - Column values can be returned by using the sid of a column and further processed with an inline Javascript script.

      • In Javascript, the <CODE> can be any javascript code. For example {{nqtw0a40x1d58puzEJOTY:parseInt(data)}}

      • In Python, the <CODE> can only be the keys of dictionary separated by ".". For example: {{nqtw0a40x1d58puzEJOTY:user.sid}}

  • User

    • {{USER.SID}} - The Personnel SID of the user.

    • {{USER.NAME}} - The Name of the user.

  • Metadata

    • Use label that start with {{ and end with }} to include the value of such metadata to be used in the variables.

    • Use case: Store the Share API Key at the organization level to generate the sharable link for each record.

    • Example: {"label": "{{TEST}}", "value": 10}

Escape to become a variable

In scenarios where it's necessary to prevent a string from being interpreted as a variable within {{string}}, and you would prefer the string to be managed as literal text, using backslashes to escape the curly braces is an appropriate approach. To achieve this, you can employ \\{\\{string\\}\\}. This method effectively guards against the automatic conversion process that typically treats text enclosed in double curly braces as variables. By doing so, it ensures that your intended literal string remains intact and correctly rendered without being altered during parsing or execution, thereby maintaining the accuracy of the information you wish to convey.

https://momentjs.com/
https://strftime.org/
https://momentjs.com/