Warehouse Selector
Overview
A dropdown of your warehouses or locations. The chosen one is remembered for the whole app so other blocks can filter by it.
Choose the active warehouse (saved in app state).
When to use
- Switch between the main warehouse and van stock.
- Default the Warehouse field on stock adjustments.
- Filter an inventory grid to one location.
Quick start
- Drag Warehouse Selector onto an inventory page.
- Open Data → Warehouses → Records and add your locations.
- Bind a filter or a default value in other components to App state →
warehouse.
Recommended data
Creates (or reuses) the Warehouses entity: Name (required) and Address. No relationships by default.
- Warehouses — fields: Name, Address.
Layout rules
- Can contain any component.
- Can be placed in any container (page, section, card, row, column, grid…).
Properties
Kept with the blueprint; the visible label is Warehouse (edit it on the inner Dropdown).
Default: Warehouse Selector
Entity whose records fill the dropdown (labels from Name). Defaults to Warehouses.
Data binding
A Dropdown whose options come from the Warehouses entity; on change it sets the app state key warehouse to the selected id.
Events
This block is built from ordinary components. Select one of them (in Layers) to change what happens on these events:
- On change
- None on the block; the inner Dropdown's onChange runs Set state (app,
warehouse) which you can extend.
Responsive behavior
Uses 12 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.
Permissions
Use the Permissions tab to show this component only to some roles. Hiding a component is a convenience, not security — the server always checks who may read or change data.
Common patterns
- Add a Warehouse relation field to Stock Movements and filter Inventory Movement by App state → warehouse.
Limitations
- Products have no per-warehouse stock out of the box; add a Warehouse field or a separate Stock per Warehouse entity if you need it.
Troubleshooting
Why: App state is kept per session but your component rebinds its default.
Fix: Read the value from App state rather than setting a default value.