NAV 2009 SP1, SQL, 3 tiers
Hi everyone, this is a thing a customer ask us (and i already didn't suggest him to do it)...
Anyway, i think it would be cool to know how to do it, and we can learn something if we solve this (in my opinion).
Request: they want a popup message with ("you have been notified!") when a customer is notified (with standard notification system: e.g. adding a note on a sales order)
How Can I achieve this?
i thought to automatically open the notification page and then use a controladdin with a timer event in this page to check if there are new lines for my userid in table 2000000068. It works, but it can generate problems like ("multiple requests have been sent...etc etc)...and i don't like timers :whistle:
Then i thought to add a controladdin with event "onchangetext" (or something similar, i don't remember the exact name of the event) with the counter of the lines for my user...no luck, if the form is minimized, and if the notification is sent by a colleague of mine, i don't receive any message...
Someone has ideas?thanks in advance
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog0
Answers
In a very limited, basic way, you're trying to make an instant messenger client. Or something similar to the "You have an email" thing that pops up in Outlook. Probably don't want a message to pop open as that could be kind of annoying to the user (or could just be my preference).
Anyway, just an idea. Hope it helps.
A simple sample that will create a mail - to be used in OnInsert trigger in table 2000000068 :
Create an Automation varaible : "mailshell" type:Automation subtype: 'Microsoft Shell Controls And Automation'.Shell
OnInsert()
IF Notify THEN
BEGIN
CREATE(mailshell,FALSE,ISSERVICETIER);
mailshell.Open('mailto:' + "To User ID" + '&subject=Notified&body=this is the mail body');
CLEAR(mailshell);
END;
- hope this will get you started. Do also take a look at 'Messenger API Type Library' for Messenger interfaces
Troels Bent Hansen
Senior Program Manager
Microsoft Dynamics NAV
****** This posting is provided "AS IS" with no warranties, and confers no rights ******
For clarity, in the previous system they had popup messages, maybe they're used to receive them...
BTW, as i said, i tried to make them use standard notification functionality: i can open a page with notifications on the login (cu 1), and force the user to answer a CONFIRM in order to close this minipage...the page is automatically refreshed if you receive a notification: you have only to reclick the page if you've minimized it...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
I do not know if SingleInstance codeunits are working on RTC or not... :-k
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
You mean to save the value into table that others could read it? :-D
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Exactly!(i already tried with real tables, but it works only for notifications form me to me...which is quite useless )
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog