Hi Ritesh,
You can add the selected item to a state. Here is an idea:
- Create a custom function on your AppCustomizations.js -
myChooseAssetItem
- Replace the on-item-click in the
openCreadWOAssetLookup
lookup with your function
- Use the
page.state.assetDescription
in your app.xml
myChooseAssetItem (item) {
//You can try using any field from the datasource
this.page.state.assetDescription = item.description;
this.page.callController("chooseAssetItem", item);
}
I hope this can work or give you an idea of what you want to achieve.
------------------------------
Maycon Belfort
Consultant
BPD Zenith
Melbourne
Australia
------------------------------
Original Message:
Sent: Thu January 11, 2024 01:39 AM
From: Ritesh Ranjan
Subject: Maximo Mobile 8.10 - TECHMOBILE - Looking for some ideas to populate other field based on selecting another input field in Create workorder page.ture in Create Work Order Page
Happy New Year to All :)
Looking for some help/idea on this.
In Create Workorder page, we have option to select ASSET and LOCATION field. so here, I need to show two new readonly fields like Asset Description and Location Description which should show the description of asset and location once user selects the same in Asset and Location field.
Similar to the behavior we show the other details related to any existing field via relationships in core maximo.
Thanks in Advance.
------------------------------
Ritesh Ranjan
------------------------------