7. Designer Context Blocks

Home/7. Designer Context Blocks

7. Designer Context Blocks

You are here:

The designer context blocks are primarily responsible for putting data into the global context so that they can be referenced by the application blocks or NAV.

The following sections will outline each available context and provide a brief example of how the block can be used.

Using the Selected Line

The “Using the Selected Line” block is intended for applications that are displaying a data grid (or card panel).  This block will take the currently selected line (or panel) and will add each column from the underlying dataset to the context.  Variable names will match the column name.

Using the Selected Line
Note: You can use the “Inspect Context” block to view available variable names.

Using the Selected Line Example

Provided below is an example of using the “Using the Selected Line” block. The application loads an item list of data and once loaded displays a message indicating the selected item number.

Application Designer:

Form Opens

Using the Document Header

The “Using the Document Header” block is intended for applications that are displaying a data grid (or card panel).  This block will take the current document data “header” information and add each column from the dataset to the global context.  Variable names will match the column name.

Document Header

Using the Document Header Example

Provided below is an example of using the “Using the Document Header” block. The application loads a warehouse receipt document and once loaded displays a message indicating the receipt document number.

Application Designer:

Form Opens

Using the PDA Configuration

The “Using the PDA Configuration” block pushes all the NAV PDA Configuration options into the global context so they can be referenced as needed.  In addition, information concerning the current location is also made available (bins mandatory, require picks, etc.)

Using the PDA Configuration
Note: You can use the “Inspect Context” block to view available variable names.

Using the PDA Configuration Example

Provided below is an example of using the “Using the PDA Configuration” block.

Application Designer:

Form Opens

Using the Last Scanned Barcode

The “Using the Last Scanned Barcode” block pushes the last barcode data into the global context.  The context that is created depends on the type of barcode and are listed below.  Typically, this block is used when responding to a barcode scan event (See Designer Events for more information).

Last Scanned Barcode

Barcode Context:

Barcode Type Context Created
License Plate
  • LicenseNumber
    • The License Plate number
  • LPBinCode
    • The bin code on the License Plate
  • LPLineCount
    • The number of lines on the License Plate
  • SourceNumber
    • The Source No. the License Plate is assigned to
  • Status
    • The License Plate status
  • OriginalBarcode
    • The License Plate number
  • Type
    • Will be “LPBarcode”
Document
  • Purchase Order
    • barcode.DocumentNumber
      • The purchase order number
    • barcode.Type
      • Will be “PurchaseBarcode”
  • Sales Order
    • barcode.DocumentNumber
      • The sales order number
    • barcode.Type
      • Will be “SalesBarcode”
  • Warehouse Shipment
    • barcode.DocumentNumber
      • Will be the warehouse shipment number
    • barcode.Type
      • Will be “ShipmentBarcode”
  • Warehouse Receipt
    • barcode.DocumentNumber
      • Will be the warehouse receipt number
    • barcode.Type
      • Will be “ReceiptBarcode”
  • Transfer Order
    • barcode.DocumentNumber
      • Will be the transfer order number
    • barcode.Type
      • Will be “TransferBarcode”
  • Count Sheet
    • barcode.DocumentNumber
      • Will be the sheet name
    • barcode.SheetNumber
      • Will be the sheet name
    • barcode.Type
      • Will be “CountBarcode”
  • Production Order
    • barcode.DocumentNumber
      • Will be the production order number
    • barcode.ProdOrderNumber
      • Will be the production order number
    • barcode.ProdOrderLineNumber
      • Will be the production order line number
    • barcode.Operation
      • Will be the operation number (if specified in barcode)
    • barcode.SerialNumber
      • Will be the serial number (if specified in barcode)
    • barcode.LotNumber
      • Will be the lot number (if specified in barcode)
    • barcode.SerialTracked
      • Will be true if serial number specified in barcode
    • barcode.LotTracked
      • Will be true if lot number specified in barcode
    • barcode.Type
      • Will be “ProductionBarcode”
  • Warehouse Activity
    • barcode.DocumentNumber
      • Will be the warehouse activity number
    • barcode.ActivityNumber
      • Will be the warehouse activity number
    • barcode.WhseActivityType
      • Will be the type of activity
    • barcode.Type
      • Will be “ActivityBarcode”
  •  
Bin
  • barcode.BinNumber
    • The Bin code
  • barcode.OriginalBarcode
    • The Bin code
  • barcode.Type
    • Will be “BinBarcode”
Text
  • barcode.OriginalBarcode
    • The barcode that was scanned
  • barcode.Type
    • Will be “TextOnlyBarcode”
Tag
  • barcode.TagBinCode
    • The Bin code in the tag barcode
  • barcode.ShelfNumber
    • The Shelf number in the tag barcode
  • barcode.OriginalBarcode
    • The tag barcode scanned
  • barcode.Type
    • Will be “TagBarcode”
LP Template
  • barcode.TemplateName
    • The template name
  • barcode.OriginalBarcode
    • The template name
  • barcode.Type
    • Will be “LPTemplateBarcode”
Location
  • barcode.LocationCode
    • The location code
  • barcode.LocationName
    • The location name
  • barcode.BinsMandatoryInLocation
    • True if the location requires bins
  • barcode.RequireReceive
    • True if the location requires receipts
  • barcode.RequireShipment
    • True if the location requires shipments
  • barcode.RequirePutAways
    • True if the location requires put-aways
  • barcode.RequirePicks
    • True if the location requires picks
  • barcode.DirectedPicksAndPutAways
    • True if the location is directed
  • barcode.OriginalBarcode
    • The location code
  • barcode.Type
    • Will be “LocationBarcode”
Item
  • barcode.BarcodeQuantity
    • The quantity returned from the Item decoding
  • barcode.BaseUnitOfMeasure
    • The Items base unit of measure code
  • barcode.BinCode
    • The bin returned from the Item decoding
  • barcode.BinQuantity
    • The bin quantity returned from the Item decoding
  • barcode.Custom1
    • The Custom 1 value returned from the Item decoding
  • barcode.Custom2
    • The Custom 2 value returned from the Item decoding
  • barcode.Custom3
    • The Custom 3 value returned from the Item decoding
  • barcode.Description
    • The Items Description
  • barcode.Description2
    • The Items Description 2
  • barcode.ExpirationDate
    • The expiration date returned from the Item decoding
  • barcode.ItemCategoryCode
    • The Items Item Category Code
  • barcode.ItemNumber
    • The Item number
  • barcode.ItemTrackingCode
    • The Items Item Tracking Code
  • barcode.LotNumber
    • The lot number returned from the Item decoding
  • barcode.ProductGroupCode
    • The Items Product Group Code
  • barcode.PurchaseUnitOfMeasure
    • The Items Purchase Unit of Measure Code
  • barcode.PutAwayUnitOfMeasure
    • The Items Put-away Unit of Measure Code
  • barcode.SalesUnitOfMeasure
    • The Items Sales Unit of Measure Code
  • barcode.SerialNumber
    • The serial number returned from the Item decoding
  • barcode.Type
    • Will be “ItemBarcode”
  • barcode.OriginalBarcode
    • Will be the barcode the user scanned
  • barcode.UnitOfMeasure
    • The unit of measure returned from the Item decoding
  • barcode.VariantCode
    • The variant code returned from the Item decoding
Note: Item barcodes also produce additional context based on Item Tracking Code configuration.  To view the additional context use the “Inspect Context”.

Using the Last Barcode Scanned Example

Provided below is an example of using the “Using the Last Barcode Scanned” block to display some information about the item scanned.

Application Designer:

Scanned Item
Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Need help?

Leave A Comment

Go to Top