Skip to main content
1-Visitor
March 17, 2017
Question

Real time Notification

  • March 17, 2017
  • 1 reply
  • 3825 views

Hi,

I was trying to implement real time notifications in thingworx. For this I need to have UI like below.  Instead of text(Import/Export) I would like to have icon.RN.PNG

Can someone help me on How I can implement this.

Carles Coll

Pai Chung

Aanjan Ravi

1 reply

19-Tanzanite
March 19, 2017

Hi Raju,

Can you please explain in detail the requirements of your project?

Where do the notifications come from (ThingWorx or another source)? If another source, then do you pull or you have the information pushed to your server?

What do you mean by "UI like below"? Do you simply need to have a grid with the notifications and a menu? If yes, what is the menu content?

Waiting for your answer.

BR,

Vladimir

rk-311-VisitorAuthor
1-Visitor
March 20, 2017

Hi Vladimir,

My requirement is about giving notifications between users. When User A does some action then then it should be notified to User B.

So I am doing below steps.

1. Storing notification in database When User A does the action.

2. On User B side, Service is written to get the notifications. I am triggering this service every 10 secs with Auto Refresh widget.

3. Now the display of notification should be like the design I showed in above post.  I don't have idea which widget will fulfill my requirement. Data will be fetched from the service.

I am done upto step 2. Now facing difficulty in step3.

Thanks

Raju

1-Visitor
March 20, 2017

Do you have Thingworx Utilities?  You could just use a workflow to trigger your notification so that you don't have to use a DB.  Or an even easier way to do this would be to create an event and fire it when user A does whatever should cause the notification.  Have your event set a property on a thing and then use a status message widget to display your message.  You can cause the message to appear by binding to the property changed event.