Configuring Additional Inventory Section Searches
You can add more content to the inventory section and make it available to mobile. To do this, define additional elements in the same way as the default content.
For example, you might add elements like taskresources or services.
Note:
Every item must have a unique uniform resource identifier (uri) property, a datalist type, and a set of options.
"inventory": {
"element": {
"consumable": {
....
},
"orderable": {
},
"taskresources": {
"uri": "taskresources",
"type": "datalist",
"options": {
"sort": "label",
"employee": {
"record": "employee",
"filters": [
["isinactive","is","F"],"and",
["custentity_nx_region","noneof","@NONE@"]
],
"map": {
"id": "internalid",
"label": "formulatext:nvl(trim(trim(trim({firstname})||' '||{middlename})||' '||{lastname}), {entityid})"
}
}
}
},
"services": {
"uri": "services",
"type": "datalist",
"options": {
"all": true,
"record": "item",
"filters": [
["isinactive","is","F"],"and",
["type","anyof","Service"]
],
"map": {
"id": "internalid",
"label": "name"
}
}
},
"timeclass": {
"uri": "time_class",
"type": "datalist",
"options": {
"all": true,
"record": "classification",
"filters": [
["isinactive","is","F"]
],
"map": {
"id": "=internalid",
"label": "formulatext: {name} || ' : ' || {custrecord_lit_class_description} || ' : ' || {custrecord_del_as_pl_assetnumber.custrecord_del_as_pl_platenu}",
"items": "=custrecord_lit_other_service_options[]",
"defaultitem": "=custrecord_lit_main_service_item"
}
}
},
"plant_items": {
"uri": "plant_items",
"type": "datalist",
"options": {
"all": true,
"record": "item",
"filters": [
["isinactive","is","F"],"and",
["custitem_lit_cost_type","anyof","2"],"and",
["type","anyof","Service"]
],
"map": {
"id": "=internalid",
"label": "formulatext: nvl({custitem_nxc_mobile_display_name},{itemid})",
"maxplant": "formulatext:nvl({custitem_nxc_mobile_max},24)[integer]"
}
}
}
}
}
You can reference these extra elements by their uri, like time_class, to return their options elsewhere in the mobile app.
"timeclass": {
"type": "select",
"label": "Plant",
"search": true,
"class": "el-6",
"required": true,
"column": 1,
"options": "time_class.options"
},