Skip to content
pCon.configurator onlineDocumentation
Esc
↑↓navigate↵open⌘Jpreview
On this page

InactivePositionState

struct InactivePositionState (
    string ppName,
    boolean? optional
)

Field ppName specifies the name of the pricing procedure that treats the position as an inactive position, and field optional indicates whether the user interface should treat the position as an optional (true) or alternative (false) position. The default value of optional is false.

An empty string as ppName acts as a kind of wildcard, matching all pricing procedures, including those later added to the basket.

For view items with set-article mode BreakUp, the returned state combines the part’s state with the set-article’s state. The inactive sets are united, with the part’s optional/alternative attribute taking precedence in a conflict. A wildcard entry may therefore coexist with explicit pricing-procedure entries that override its optional attribute. This can occur for BreakUp views with merge mode None; the state stored on an individual position still cannot combine a wildcard with explicit entries.

For merge modes other than None, view states are normalized against the pricing procedures currently used by the basket. States with the same effect can merge even if represented differently. The effective inactive state is included when comparing broken-up set-article parts, and sub-article comparisons include their inactive state, preventing merging of items whose effective states differ.