Skip to main content
14-Alexandrite
January 15, 2026
Question

Make listener update UI after doing modification at check-in on WTPart?

  • January 15, 2026
  • 1 reply
  • 406 views

Version: Windchill 12.0

 

Use Case: Using a listener via API in order to update attributes at check-in of the corresponding WTPart / WTPartUsagelink.


Description:

Updating values of the attributes works perfectly, but after check-in using the browser UI, the new attribute values are not displayed on screen. The UI is not refreshed. Is there a command/hook or something that makes the web ui refresh?

If the user manually refreshes (hits F5), then the new values are displayed...

I tried those functions, but either wasn't competent enough or they are not made for this use case...:

 

// refresh for changes that might have been made to the object
working_part = (WTPart) PersistenceHelper.manager.refresh(working_part, true, true);


WorkInProgressHelper.service.refreshObject(working_part);
PersistenceServerHelper.manager.update(working_part);
PersistenceServerHelper.update(working_part);
wt.fc.PersistenceHelper.manager.save(working_part);
// this all does not help...

 Anybody have an idea?

 

 

1 reply

16-Pearl
January 15, 2026

Hi @SvenR,

 

Which event are you using, pre-checkin or post-checkin?

SvenR14-AlexandriteAuthor
14-Alexandrite
January 15, 2026

@TDT pardon, yes, I should have mentioned that I am using

WorkInProgressServiceEvent.PRE_CHECKIN

as hook for the listener. 👍

 

 

16-Pearl
January 15, 2026

Which API are you using to update or store the attribute value?