Forum Discussion

angela's avatar
angela
Catalyst II
5 hours ago

How to highlight a custom CUI Button like the Notification Button based on events of interest?

Hi community,

does anyone know where Aras stores the "New Release" information that is shown in the CUI notification button (see screenshot)?

I want to implement a similar button-highlighting mechanism. I have a time-tracking system in Innovator that is launched via a similar CUI button in the main header. I want users to be able to see at a glance whether their timer is currently running. (the timer is used for something not PLM related if you wonder about the use case)

I know that we can use Messages/Notifications to make the button react, but I don't want to use the Messages feature itself.

I think CUI buttons that can indicate a "status" of something could be a powerful feature.

Thanks for any hints!

Angela

1 Reply

  • Update: The "New Release" info is stored in Innovator\Server\temp\VersionServer.xml

    This is surprisingly not helpful at all. At first, I thought this might be exactly what I was looking for, but Aras probably relies on some internal functionality to populate this information in Innovator.

    That said, I may be overthinking the problem. I can use an init event to display the correct button state on startup. The only thing left to solve is how to update appearance of the button whenever a user starts or stops their timer.  

    The main challenge seems to be figuring out how to access or interact with a CUI element in the main window header from another context (grid, form, etc.). Unfortunately, this approach does not work because "control" will be undefined. 

    const key = "com.aras.innovator.cui_default.mwh_header_notifications_button";
    const data = control.data.get(key);