Show message to user when a new record inserted in database

asked 2013-06-14 07:33:50 +0800

Mangapathi gravatar image Mangapathi
11 3


I want show message to user when a background job(quartz) inserts new record in database. How can I achieve this. Any suggestions.

thanks & regards, Mangapathi

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted

answered 2013-06-14 09:54:25 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8

Try below code after data insert code

Clients.showNotification("Some message);
link publish delete flag offensive edit


Hi Joshi, I want to show message to specified users only, how to do this.

Mangapathi ( 2013-06-14 10:58:03 +0800 )edit

i'am assuming you have user name check the user name then show the message.

hswain ( 2013-07-03 07:00:24 +0800 )edit

answered 2013-06-14 11:08:22 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2615 3 8

You can see example here. Follow the steps

Click this Link

In the Top Menu, Click MVVM

Next click CRUD Form.

You can see "MVVM CRUD Without DB Connection". In the action column, you can download the source code, or you can run or you can look the documentation.

link publish delete flag offensive edit


No link provided

Mangapathi ( 2013-06-14 11:09:38 +0800 )edit

Sorry. Here is the Link http://emrpmsexpert.com:8080/ZKExamples/

Senthilchettyin ( 2013-06-14 11:18:15 +0800 )edit

Link was not opening.

Mangapathi ( 2013-06-14 12:27:30 +0800 )edit

Hi Senthil, the link you provided was not opening.

Mangapathi ( 2013-06-26 10:20:05 +0800 )edit

answered 2013-07-03 03:50:06 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

When you say a background quartz job I assume it is a long running operation running in an independent thread and user is still able to use the app while it is running in background. This would need Server-push. If that's the case you can use EventQueue with an Asynchronous Event Listener to run this background job and when it is finished it can update UI via a synchronous event listener. Please refer to this documentation

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2013-06-14 07:33:50 +0800

Seen: 38 times

Last updated: Jul 03 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More