The Valid Value Selection Screen allows custom Produmex Scan screens to replace free-text inputs with predefined, easy-to-select values. The selection screen can be applied to an existing input field or added as a new field, and is fully supported on both Android and Windows Mobile devices.
The valid value selection screen uses Valid Values to populate the selectable list.
The Default Value field specifies which key should be preselected when the screen loads.
Optional user queries can fully override the valid values or default value:
Note: If these queries are defined, their results take priority over the standard field configuration.
In the Field Type column, select Choose from List. This tells Produmex Scan to use a Choose from List instead of a text field.
The user can define valid values in either of the following ways:
Filtering Sales Orders by Item Group
This example shows how the Valid Value Selection screen can be used to filter Sales Orders based on Item Groups.
Based on the example image let's create a custom query that contains the following:
Select a list of valid values that will be displayed:
Open the Query Manager and create a query:
BXMobileWH9_SalesIssueScreen_ItemGroup_load_values
Insert the content:
select
ItmsGrpCod as "Key",
ItmsGrpNam as "Value"
from OITB
When the user selects an Item Group from the Valid Value Selection Screen:
Open the Query Manager and create a query:
BXMobileWH9_SalesIssueScreen_ItemGroup_validate
Insert the content:
UPDATE OHEM SET U_TEST = $[ItemGroup] WHERE "empID" = $[Employee.EmployeeID]
Pressing Reload will show:
Open the Query Manager and create a query:
bx_mobile_wh9_salesissue_query_custom
Insert the content:
select distinct
RDR1.DocEntry,
17 as DocType
from RDR1
left join OITM on RDR1.ItemCode = OITM.ItemCode
left join ORDR on ORDR.DocEntry = RDR1.DocEntry
where
LineStatus = 'O'
and OITM.ItmsGrpCod in (
select U_TEST
from OHEM
where empID = $[EmployeeNo]
)
The Valid Value Selection Screen provides a simple and reliable way to:
The user can define a default value in one of the following ways: