Sitedetout - Tutoriels informatiques

Adding your own alert messages

Adding your own alert messages

If you’ve installed WebCenter Content (UCM) or have made changes such as switching the search engine, you may have noticed an alert message at the top of the pages letting you know if there is a specific task that needs to be done such as a restart or rebuild of the search collection.

Well, these alerts are open for administrators to set as well.  So for instance, if you have a planned outage you can set a message letting users know the system is going to be down for a certain amount of time.

Adding and managing alerts is very simple.  There are three primary services that are used:  SET_USER_ALERT,GET_USER_ALERTS, DELETE_USER_ALERT.   With SET_USER_ALERT, you simply need to pass in alertId (a unique identifier you give the alert) and alertMsg with the message you want to display.   And because it’s just a service, you can simply call it in a URL to set it (as an administrator):

http://myserver:16200/cs/idcplg?IdcService=SET_USER_ALERT&alertId=maint&alertMsg=My message.

You can get fancy with the message by including HTML as well as Idoc Script.  That will be processed on the page as it’s being rendered.  Optionally, you can pass in alertUrl which would be a URL that the message would lead to.  This value is appended to the “/cs/idcplg” path.

To know what alerts are set, you can run the GET_USER_ALERTS service and pass in IsJava=1 to display the values back:

http://myserver:16200/cs/idcplg?IdcService=GET_USER_ALERTS&IsJava=1.

It will then display the alerts in the USER_ALERTS result set.

To remove the alert, simply run the DELETE_USER_ALERT service and pass in alertId to identify which alert to remove.  Optionally, you can pass in isTempAlert=1 when you first create the alert and it will be removed the next time the server restarts.


Commentaires de Adding your own alert messages

  • Amazing issues here. I’m very glad to see your article. Thanks so much and I’m looking forward to contact you.
    Will you kindly drop me a e-mail?
    canadianpharmacy (Aubrey) canadianpharmacy (Rosalyn)

    Rosalyn 26 septembre 2019 21 h 11 min Répondre
  • Hi to all, for the reason that I am genuinely eager of reading this website’s
    post to be updated regularly. It carries nice material.
    professional custom essay writing service professional custom essay
    writing service

    Kurtis 15 septembre 2019 8 h 32 min Répondre

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.

Menu Title
Chargement...

Powered by sitedetout.com