Maximo Open Forum

 View Only

 How do we refresh the UI after field update

  • Customizations
Abdul Rasheed Mohammad's profile image
Abdul Rasheed Mohammad posted 04-16-2025 03:37

Hi 

I'm trying the below scenario and facing an issue. Kindly provide your inputs if you have implemented something similar.

When I modify a custom field in the Work Order Tracking application, I'm throwing a Yes/No/Cancel exception and upon clicking Yes, I'm deleting the related assignment entries.

Here when I click on Yes, I would like the entries to be deleted, work order to be saved and the UI to be refreshed, all upon one click of "Yes".

Is this possible via field level class. I tried setModified(True) but that doesn't seem to refresh the UI.

Can UI be only refreshed via a webclient session, if Yes, how can we achieve this from a field level class.

Any inputs are appreciated.

Levi Hinz's profile image
Levi Hinz

First question would be, how are you deleting them?  Are you deleting via the Work Order and the same relationship used to display the assignments, or are you querying and deleting separately?  And are you saving the delete transaction?

First option is to use the same relationship, via the Work Order, to delete the records, and then save the work order. This should automatically refetch the record and all relationships, showing the data is changed.

Next option would be to delete the way you currently are, but then force a refresh of the whole record, or just the relationship used to display the assignments.

Key point is, the view is only changed on fetching the data, or when you update the record or relationships being used in the display.