Since you are trying to navigate to the workOrderDetails page and not a custom read-only page, I assume you're trying to make this editable? That's a pretty significant enhancement to the app to do properly. I can't help you implement this, but I will provide some high-level guidance.
Right now, your childwods datasource uses a where clause that uses a state variable. This isn't possible in most Maximo Mobile flows because we normally download these records via the navigator application which won't have this state variable set (since the state variable here is specific to the app, TECHMOBILE or your clone of TECHMOBILE). The forceReload() doesn't trigger an outbound request to the server normally in Maximo Mobile. forceReload will reload the data from the sqlite database typically, but if a datasource has never been loaded it would trigger it to make the outbound request then. Since you have not configured this datasource to offline-immediate-download, the very first time forceReload is called this will retrieve from the server but won't thereafter. You could use forceSync() instead which would trigger it to go to the server. Just be aware that it won't work offline and depending on your timeout settings, this could be disruptive to the user. For example, if it takes 4 minutes to download, your user is stuck waiting for 4 minutes since it is an await in your JavaScript method. There are no limits to the number of records returned and you need to wait for all records to be returned.
If you don't care about offline access, and are on 9.0, I would consider using the mobile-server-search on the datasource instead. This triggers the Maximo mobile framework to automatically go to the server when a search is executed against the datasource. As soon as a new search is executed, it removes other records that had previously matched the search criteria. It limits the number of records returned based on the page-size of the datasource to avoid an undesirable situation where hundreds or thousands of records are returned, impacting the user experience.
------------------------------
Steven Shull
------------------------------
Original Message:
Sent: Mon February 17, 2025 12:33 AM
From: Finny Charles R
Subject: MAS9 - Maximo Child Workorder
@Steven Shull Could you please provide some insights on this
------------------------------
Finny Charles R
------------------------------