auto_stories Knowledge Base chevron_right Form chevron_right Article

Load Plannerv5

Load Planner places order lines into a vehicle or container in 3D, calculates fill rate and weight, and writes the result to the shipment lines. Warehouse staff can follow the plan step by step on a terminal with the Load Plan Viewer component.

This article is for app builders who set up shipping and warehouse processes in Xpoda. It covers the components and the data they need first, then setup in Studio and planning in Client.

Where to find it

Load Planner and Load Plan Viewer in the toolbox (Data & Layout)

Compatibility

Free FormResponsive FormFlexible FormMobile
✓✓✓Viewer (83)

Components

  • Load Planner (82): Added to the shipment (load) order form. Reads vehicle dimensions from form fields and order lines from a query. Plan places the load; Transfer writes the lines to a table.
  • Load Plan Viewer (83): Added to the form opened on the terminal. Shows the saved plan in 3D/2D, steps through it and colors the packages already scanned.

Modes

  • Single vehicle (load order): one shipment order = one vehicle. Flow: Plan → Transfer.
  • Fleet capacity planning: several vehicles for one planning record. Orders are grouped into day / week / month periods by delivery date. Flow: Plan → Create (one shipment record per vehicle).

Required data and forms

The planner needs a vehicle (inner dimensions, maximum load) and order lines (item, quantity, package dimensions and weight). Set up in this order:

  • Master data: item packaging (units per package, package dimensions, gross weight, stacking rules), vehicle types (inner dimensions, tonnage, axles), customer card.
  • Shipment lines form: the table Transfer writes to.
  • Shipment (load) order form: customer and vehicle selection, vehicle dimension fields and the Load Planner component.
  • Optional: fleet planning form and viewer form.
Note: Do not refresh after save must be on for the shipment order form. Otherwise the form is cleared after saving and Plan / Transfer cannot find the record ID. A Create Object action (Value changed) that fills the dimension fields when a vehicle is selected is recommended.

Setup in Studio

  • Open the shipment order form and drag Load Planner from the toolbox onto it. On a Flexible form the default size is 24 × 14 cells.
  • Give the component a meaningful name (e.g. LoadPlan). The plan is saved under this name in a table column, which is created when the form is saved.
  • In the Properties panel, click Data Sources & Transfer on the Load Plan row and choose the mode at the top of the window.

Load Plan → Data Sources & Transfer button

Settings window tabs

  • Vehicle (single): inner length / width / height, maximum load, vehicle code, optional axle fields. Each can be a Form field or a Constant.
  • Vehicle Types (fleet): vehicle types query, customer vehicle preference, default period and question, time limits.
  • Orders (both): length and weight units, order query, Line columns, extra line pool query. Use form fields in the query as $PFieldName$ (e.g. $PUserTableID$). Template fills sample SQL; Test runs the query with a sample value and ticks the required columns. ORDER BY sets the loading priority.
  • Transfer (single): target form/table, line grouping, column mapping (Target column / Source / Value), check and cleanup SQL. Load columns reads the target table's columns.
  • Create (fleet): mapping for the per-vehicle record and its detail lines.
  • Advanced (both): saved plan query and solver settings. Search: Off / Standard / Deep (default Deep, Time limit 10,000 ms). Placement order: Optimized or Keep line order. Min. base support: share of a package's base that must rest on packages below (0.8 = 80%).

Vehicle, Orders (Test result), Transfer and Advanced tabs

Vehicle, Orders (Test result), Transfer and Advanced tabs

Vehicle, Orders (Test result), Transfer and Advanced tabs

Vehicle, Orders (Test result), Transfer and Advanced tabs

Click Save in the window, then save the design in Studio.

Planning in Client (single vehicle)

  • Open a shipment order or enter a new one and save it. Selecting the customer and vehicle fills the dimensions.
  • Click Plan on the planner's toolbar. The order query runs on the server and a plan is produced.
  • The vehicle is shown in 3D. The summary row shows vehicle, package count, weight and volume fill, load length and the number of packages that did not fit.

View: ◩ Perspective, Door, Top and Side cameras; 3D / 2D switch. The step bar below plays the loading sequence package by package.

3D view after Plan

Editing lines

  • Added: lines in the plan, in loading order. ▲▼ changes the order; Query order returns to ORDER BY. The quantity box is for partial loading (0 = remove). After planning, the Loaded column shows ✓, a partial quantity or "Not in plan".
  • Not added: lines removed from the plan and pool results; Add puts them back.
  • Lines to transfer: the lines Transfer will write.
  • Did not fit: quantity not loaded and the reason.

Click Plan again after any change.

Reasons a package didn't fit

CodeMeaning
NO_SPACENo space left
OVERWEIGHTTonnage exceeded
TOO_LARGEPackage does not fit the vehicle
MISSING_DATADimensions, weight or units per package missing
AXLE_LOADAxle load exceeded
LOAD_ON_TOPThe package below cannot carry this load

Transfer

Transfer writes the plan to the shipment lines table using the mapping on the Transfer tab and saves the plan to the component's column. The record must be saved and the plan up to date. A check query (for example, scanning has already started) can stop the transfer.

Fleet mode

  • Add Load Planner to the planning form in Fleet capacity planning mode and fill the Vehicle Types and Create tabs.
  • In Client, select the customer and vehicle preference and save.
  • Choose the Period (None / Day / Week / Month) and the question: How many vehicles are needed? (unlimited fleet) or With available vehicles (uses the counts in vehicle types; leftovers are shown).
  • Plan: vehicles are listed as cards under period headings. Clicking a card opens that vehicle's 3D plan; the card's list changes the vehicle type and × removes the vehicle.
  • Create: opens one shipment record with detail lines per vehicle.

Fleet screen

Viewer and terminal

Barcode loading on the terminal stays the same; a View Plan button is added to the screen.

  • Add a shipment ID field, an item code field and Load Plan Viewer to the viewer form.
  • Fill the Plan (planner and plan query) and Status & View (scan status query, view) tabs.
  • In Client, entering a shipment number opens the plan. Packages are colored Loaded / Next / Waiting by scanned quantity and the summary shows progress (e.g. Scanned 20 / 225).

Viewer

Troubleshooting

SymptomCauseFix
Transfer or Create says “Save first”The record is not savedSave the record and try again
Form clears after saving, Plan does nothingDo not refresh after save is offTurn the form setting on
A saved single-vehicle plan does not openMode was saved as FleetSelect Single vehicle in the settings window and save
Drop-down list is emptySame column selected twice (SELECT A, A)Use distinct aliases such as AS Value, AS Text
Lines show MISSING_DATAItem packaging lacks dimensions, weight or units per packageComplete the packaging record