Question & Answer
Question
How to bypass a form with mandatory fields using mobileConsoleOverrides.xml
Answer
I am trying to bypass the frmCountInventoryAttributesEntry form used in the
RF based count process. I am trying to do this using the
mobileConsoleOverrides.xml file. The contents of this file as I am trying to
use it follows. Basically I have an onloadaction="F3" defined for that form and
I also declared the values of the default fields in that form. Though when that
form loads the application just closes. I have tried a number of different ways
to do this. If I don't include the defaultvalues of the fields and declare
validate="always" I get an "Inventory Status is Mandatory" error. Can you
please try this and see if you can get it to work with the
mobileConsoleOverrids.xml file?
<MobileConsoleOverride>
<ResourceOverrides>
<ResourceOverride ResourceId="rfcount">
<FormOverrides>
<FormOverride name="frmCountInventoryAttributesEntry"
onloadaction="F3" >
<Fields>
<Field name="txtInvStatus"
defaultvalue="RFI" validate="always" />
<Field name="txtProClass"
defaultvalue="Supply" validate="always" />
</Fields>
</FormOverride>
<FormOverride name="frmCountSKUQtyEntry">
<Fields>
<Field name="txtCountQty" executeaction="F3"/>
</Fields>
</FormOverride>
<FormOverride
name="frmCountSKUSerialScan">
<Fields>
<Field name="txtSerialNo"
defaultbinding="xml:/TagAttributes/@LotNumber" validate="always" />
</Fields>
</FormOverride>
</FormOverrides>
</ResourceOverride>
</ResourceOverrides>
</MobileConsoleOverride>
Solution:
It is NOT possible to bypass the frmCountInventoryAttributesEntry screen through mobile overrides because the screen design and mobile override restrictions. The frmCountInventoryAttributesEntry screen has two fields i.e product class and inventory status that are mandatory for count to happen. The provision of onloadaction is to bypass a screen provided there is no mandatory data that needs to captured. As inventory status and product class are mandatory, the onloadaction will NOT be applicable in this context.
Historical Number
HTG3027
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21563443