Hi Stacy,
I was wrong, it's not enough to make things working. I reviewed ReceivePageController:saveRecevie method (IRMOBILE/src/ReceivePageController.js). It looks like additional customisation is needed in this method PostRequestUtil:setRealValues2AddedNewDSRec (IRMOBILE/src/utils/PostRequestUtil.js). Please try to put your attribute into the constant array called properties (see example below).
Please see my test below (test was done using Mobile v9):
- TESTBMA as custom attribute was added into the mobileReceipts maximo-datasource definition.
- "Properties" constant array was extended in
PostRequestUtil:setRealValues2AddedNewDSRec
/**
* Get response of the post request
* @param {selecteditem} selecteditem the selected item with values to be set.
* @param {actionname} actionname the name of the action, e.g. RECEIVE, INSPECT
* @returns {response} JSON object of items list and the boolean emptyquantity
*/
const setRealValues2AddedNewDSRec = (selecteditem, actionname, item, app) => {
const properties = [
"ponum",
"porevisionnum",
"orgid",
"siteid",
"positeid",
"polinenum",
"itemnum",
"itemsetid",
"conditioncode",
"linetype",
"remark",
"tolot",
"shelflife",
"useby",
"packingslipnum",
"receiptquantity",
"inspectionrequired",
"rotating",
"actualdate",
"testbma"
];
(...)
};
3. New custom field was added into the UI (for verification purpose).
Test (review payload):