PopupAdvItemPicker Method
- Last UpdatedNov 06, 2025
- 2 minute read
The PopupAdvItemPicker() method opens the Item Picker dialog to allow a user to pick an item, item class or parent item class from an item tree.
All overloads of this method return the following parameters for the selected item:
- Item ID
- Item Description
- Item Display
- Item Class ID
- Item Class Description
- Item Class Display
- Parent Item Class ID
- Parent Item Class Desc
- Parent Item Class Display
This overload of the method:
- Includes the item Obsolete flag as an item filter
- Allows a list of items to be excluded from being selected
- Allows an empty node to be included in the item tree, to allow the user to select 'No Item'
'Declaration
Public Shared Function PopupAdvItemPicker( _
ByVal produced As Object, _
ByVal consumed As Object, _
ByVal obsolete As Object, _
ByVal excludedItems As ArrayList, _
ByVal includeEmptyNode As Boolean, _
ByRef itemId As String, _
ByRef itemDesc As String, _
ByRef itemDisplay As String, _
ByRef itemCategoryId As Nullable(Of Integer), _
ByRef itemCategoryName As String _
) As Boolean
public static bool PopupAdvItemPicker(
object produced,
object consumed,
object obsolete,
ArrayList excludedItems,
bool includeEmptyNode,
out string itemId,
out string itemDesc,
out string itemDisplay,
out Nullable<int> itemCategoryId,
out string itemCategoryName
)
Parameters
- produced
Optional. Set to true or false to filter the items included in the item tree according to the state of the item's item class Produced flag. Pass a null to not apply this filter option.
- consumed
Optional. Set to true or false to filter the items included in the item tree according to the state of the item's item class Consumed flag. Pass a null to not apply this filter option.
- obsolete
Optional. Set to true or false to filter the items included in the item tree according to the state of the item's item class Obsolete flag. Pass a null to not apply this filter option.
- excludedItems
- Optional. Holds a list of items that may not be picked from the tree. The items in this list will be shown, but the OK button will not be enabled if an item in the list is selected.
- includeEmptyNode
- Required. Holds a flag that , if set to true, specifies that an empty node be included at the beginning of the tree to allow the user to choose 'No Item'.
- itemId
- Output. Holds the item ID of the selected item.
- itemDesc
- Output. Holds the item description of the selected item.
- itemDisplay
- Output. Holds the selected item, in display format.
- itemCategoryId
- Output. Holds the item category ID of the selected item category.
- itemCategoryName
- Output. Holds the name of the selected item category.