Forum Discussion

angela's avatar
angela
Catalyst II
21 days 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

6 Replies

  • 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);

     

    • Hi angela​, we had a need to disable the notification message that automatically appears in the user's notification button when a new version of Aras was available. I had initially tried updating the VersionServer.xml, but you are correct that the file is generated by another process, so the fix didn't persist. The solution was to update the file Innovator/Client/Modules/aras/Startup/userNotifications.tsx. You can probably locate the needed logic there.

  • Hi Angela

    In some project, we  simply use a customized Landing Page, so business can make announcement about upcoming maintenance and deployment for example.

    Notification in the corner are not always seen by all users

    • angela's avatar
      angela
      Catalyst II

      Notification in the corner are not always seen by all users

      True! But what about some ridiculously annoying color shifts and CSS animations? Unfortunately, the forum doesn't allow video uploads, so I can't show my current "test" in its full animated glory. 

      That´s of course not my final solution, but I made some successful tests to highlight CUI elements in the main window header from a TOC View based application.