Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2010
    Location
    London
    Posts
    18

    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

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,090
    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?

  3. #3
    Member
    Join Date
    May 2010
    Location
    London
    Posts
    18
    Yep, that makes sense re the dedicated item(s), thanks Dario.

    I'm using Vivace.

 

 

Similar Threads

  1. How to send message to each client?
    By hungtt in forum Adapter SDKs
    Replies: 7
    Last Post: December 30th, 2010, 04:42 AM
  2. Sending an image to the client
    By mnanda in forum Client SDKs
    Replies: 2
    Last Post: July 16th, 2010, 12:04 PM
  3. LS not sending all messages to client
    By mnenchev in forum General
    Replies: 3
    Last Post: April 20th, 2010, 10:10 AM
  4. sending multiple snapshot (true) event in smartUpdate()
    By Pradeep Chahal in forum Adapter SDKs
    Replies: 6
    Last Post: October 12th, 2009, 01:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:18 PM.