IBM Support

Disable Field Validation In Mobile

Question & Answer


Question

Can I turn off field validation in Maximo Mobile?

Answer

Some fields in Maximo mobile have validation against them, An example of when you may want to disable validation is when you are performing inventory issues.

When you scan in the item to be issued, and the item record is not on the device, you are prompted to Accept Value,Cancel & Clear or Look-up,




If you have bar code scanning enabled you do not need to download all your inventory records, by scanning the barcode you know the data will be correct, Not downloading all your inventory will help with refresh performance. You also do not want to be prompted with these choices every time you scan in your inventory item, so this would be a good place to disable validation.

Turning off validation is done in the mobileinv.xml. For the new inventory issue example you will search in the mobileinv.xml for the "New Issue Details Screen" <page id="NEW_ISSUE_DETAILS"
In this section of the xml file you want to remove the domain and domainattribute for the fields you do not wish to validated. In the screen shot below I have selected to remove validation from ITEMNUM, STORELOC and BINNUM.


<section id="newissuedetails" scrollable="true">
<!-- Issue 08-17565 Auto complete some fields -->
<textbox id="newissuedetails_1" dataattribute="ITEMNUM" lookup="iteminvbalisslookup" inputmode="required" domain="INVBALANCES" domainattribute="ITEMNUM" validateevent="autocompleteitemnum"/>
<!-- Issue 09-17718 - added validateevent -->
<textbox id="newissuedetails_3" dataattribute="STORELOC" lookup="locinvballookup" inputmode="required" domain="STORELOCATIONS" domainattribute="LOCATION" validateevent="validateStoreLoc"/>
<textbox id="newissuedetails_4" dataattribute="BINNUM" lookup="bininvballookup" domain="INVBALANCES" domainattribute="BINNUM"/>

When done it will look like this.

<section id="newissuedetails" scrollable="true">
<!-- Issue 08-17565 Auto complete some fields -->
<textbox id="newissuedetails_1" dataattribute="ITEMNUM" lookup="iteminvbalisslookup" inputmode="required" validateevent="autocompleteitemnum"/>
<!-- Issue 09-17718 - added validateevent -->
<textbox id="newissuedetails_3" dataattribute="STORELOC" lookup="locinvballookup" inputmode="required" validateevent="validateStoreLoc"/>
<textbox id="newissuedetails_4" dataattribute="BINNUM" lookup="bininvballookup" />



Once this is done you will run importall and packagemobile and send the new jar files to the mobile device. Now when you scan the item mobile will simply accept the value entered.

[{"Product":{"code":"SSLL3Y","label":"Maximo Mobile Inventory Manager"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Mobile Inv Mgr","Platform":[{"code":"PF033","label":"Windows"}],"Version":"6.4;6.5;7.1;7.5","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SSLL52","label":"Maximo Mobile Work Manager"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Mobile Work Mgr","Platform":[{"code":"PF033","label":"Windows"}],"Version":"6.5","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21455587