Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Notifications (Error, Warning or Info)

Notifications are useful for your scripts to tell the user what went wrong or even debug. Enjoy!

from Spotfire.Dxp.Framework.ApplicationModel import NotificationService
notificationService = Application.GetService[NotificationService]()

notificationService.AddErrorNotification("Error title","Error summary","Error details")
notificationService.AddInformationNotification("Info title","Info summary","Info details")
notificationService.AddWarningNotification("Warning title","Warning summary","Warning details")


2 comments:

Unknown said...

can we hide this notification message from web player?

Jose Leviaguirre said...

Yes Manu, you can put a conditional statement to check if the client is webplayer or not: http://spotfired.blogspot.com/2015/03/how-to-tell-if-spotfire-is-running-from.html