cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to create and manage alerts in mashup?

bmarimuthu-2
1-Newbie

How to create and manage alerts in mashup?

logimage.png

Hi,

  I have written a custom service for getting the log details of my service. How to get the details of log as an alert from script logs when the mashup is loaded?

  How to create a basic alert in mashups?

Could anyone please explain me in detail?

3 REPLIES 3

You may look into creating a  triggered service, i.e. once some condition is met, a textbox would get populated.

PaiChung
22-Sapphire I
(To:bmarimuthu-2)

There are services for all this.

Creating Alerts is part of the ThingShape/ThingTemplate/Thing

Retrieving and Handling can be done from the Alert Stream

I don't remember if there is a subsystem as well or not with services for this.

ankigupta
5-Regular Member
(To:bmarimuthu-2)

Hi Bavithraa Marimuthu​,

As per my understanding; you want some popup to shown as alert on your Mashup. You can use Status message widget for that.

Add your custom service in your Mashup with OnLoad checked so that service is invoked as soon as Mashup is loaded.

Also, bind the output of the Service to the message property of the Status widget.

Now on ServiceInvokeCompleted of this service (available in the right bottom after clicking on the custom service) bind the showMessage event of the Status widget.

So, as soon as the Mashup is loaded you will get a popup with the alert.

I hope it helps.

Top Tags