-
August 25th, 2010, 05:28 PM
#1
Sending a message to the client
Hi,
I have a .Net DataAdapter\MetaDataAdapter serving a website, and have a requirement to cause a certain action on the clients' browser if a particular scenario occurs on the server.
For example, if I get particular information on the server that means my data source is unreliable, I need to inform the user (and possibly, through JS, cause some action on the client).
What is the best way of doing this? Perhaps calling the Failure method of the IItemEventListener? Or somehow using the Control.txt file (although I can't find any documentation on this)?
Thanks,
Colm
-
August 26th, 2010, 09:04 AM
#2
This kind of information should be handled at application level.
You could use dedicated items to carry metainformation to the client;
the client can receive them through a NonVisualTable, hence the whole processing is demanded to application code.
Note that the Failure method is about technical problems in the Data Adapter that could be resumed only through a full closing and restarting.
Also note that Control.txt is not part of the Web Client Interface; by the way, are you using a Moderato license or an evaluation account?
-
August 26th, 2010, 09:52 AM
#3
Yep, that makes sense re the dedicated item(s), thanks Dario.
I'm using Vivace.
Similar Threads
-
By hungtt in forum Adapter SDKs
Replies: 7
Last Post: December 30th, 2010, 03:42 AM
-
By mnanda in forum Client SDKs
Replies: 2
Last Post: July 16th, 2010, 11:04 AM
-
By mnenchev in forum General
Replies: 3
Last Post: April 20th, 2010, 09:10 AM
-
By Pradeep Chahal in forum Adapter SDKs
Replies: 6
Last Post: October 12th, 2009, 12:25 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:27 AM.
Bookmarks