LocationEntity GitHub

๐Ÿ“Š Overview: 6 Functions 6 Getters

Extends: Entity

๐Ÿ• Last updated: 2025-12-10T11:45:23.208Z


๐Ÿ“‘ Table of Contents


Functions

Regular Functions

CheckRelated

[๐Ÿ–ฅ๏ธ local]

Function CheckRelated($LocationID : Text) -> Boolean

Returns true if specified LocationID exists anywhere in this locationโ€™s parent hierarchy

Parameters:

Name Type Optional Description
$LocationID Text - -

Returns: Boolean


printQRSheet

[๐Ÿ–ฅ๏ธ local]

Function printQRSheet($PageSize : Text; $ShowPrintSettings : Boolean)

Prints a QR code sheet for this location using specified page size

Parameters:

Name Type Optional Description
$PageSize Text - -
$ShowPrintSettings Boolean - -

printLabel

[๐Ÿ–ฅ๏ธ local]

Function printLabel($ShowPrintSettings : Boolean)

Prints a location barcode label with QR code

Parameters:

Name Type Optional Description
$ShowPrintSettings Boolean - -

generateQR

[๐Ÿ–ฅ๏ธ local]

Function generateQR -> Picture

Generates QR code picture containing location barcode data as JSON

Returns: Picture


getStockListboxCollection

[๐Ÿ–ฅ๏ธ local]

Function getStockListboxCollection -> $StockListboxCollection : Collection

Returns collection of stock listbox objects for all pallets and material stock at this location

Returns: Collection


removeLocation

[๐Ÿ–ฅ๏ธ local]

Function removeLocation -> Boolean

Deletes this location after validation (no sub-locations, no stock, user confirmation), returns success status

Returns: Boolean


Computed Attributes (Getters/Setters/Query/OrderBy)

DisplayName

[๐Ÿ” get only, ๐Ÿ–ฅ๏ธ local]

Function get DisplayName -> $DisplayName : Text

Returns full location path with ยป separators (e.g., โ€œWarehouse ยป Aisle 1 ยป Shelf Aโ€)

Returns: Text


HasStock

[๐Ÿ” get only]

Function get HasStock -> Boolean

Returns true if location has any pallets or material stock assigned to it

Returns: Boolean


Level

[๐Ÿ” get only, ๐Ÿ–ฅ๏ธ local]

Function get Level -> $Level : Integer

Returns hierarchy depth level (0=root, 1=first level, etc.)

Returns: Integer


ListBoxDisplayName

[๐Ÿ” get only, ๐Ÿ–ฅ๏ธ local]

Function get ListBoxDisplayName -> $ListBoxDisplayName : Text

Returns location name indented with tabs based on hierarchy level for listbox display

Returns: Text


ListboxMetaExpression

[๐Ÿ” get only, ๐Ÿ–ฅ๏ธ local]

Function get ListboxMetaExpression -> $ListboxMetaExpression : Object

Returns styling object for listbox row (font weight, background color based on hierarchy level)

Returns: Object


SortOrder

[๐Ÿ” get only, ๐Ÿ–ฅ๏ธ local]

Function get SortOrder -> $SortOrder : Text

Returns tab-delimited hierarchy path for sorting locations in tree structure

Returns: Text


๐Ÿ—‚๏ธ Tables

  • Location - ORDA Entity class for Location table
  • Location - ORDA DataClass class for Location table

๏ฟฝ Forms


Generated from LocationEntity.4dm