Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2007
    Location
    Colorado Springs
    Posts
    16

    Command Mode Delete Processing Question

    With our .NET 4.0 thick client (custom .NET adapters/Presto version 4.02) we would like to manage COMMAND mode DELETES in such a way that the
    client can inspect the type of delete received and determine from this how to manage its local data cache. However upon inspecting the IUpdateInfo
    data received from Lightstreamer, only the event item ID and command (DELETE) are included in the payload. This behavior remains the same
    irrespective if the Data Adapter sends the all the item event name / value pair data to Lightstreamer as part of the COMMAND mode DELETE payload.
    (Please note that when we sent all the item event's name/value pairs to Lightstreamer, one field (delete transaction type) had been updated to
    reflect a delete type classification value.)

    Is there any way to either:

    1. Include another field (name/value pair) in addition to the command and event item ID with a COMMAND mode DELETE transaction that would be received on the .NET client? (This field would represent the type of delete that has occurred.)

    2. Or have Lightstreamer send all the event item's name / value pairs as part of the COMMAND mode DELETE transaction payload (IUpdateInfo)


    The listing below documents the COMMAND mode ADD, UPDATE and DELETE IUpdateInfo object contents received on the .NET thick client:

    [Lightstreamer.DotNet.Client.UpdateInfoImpl] =

    ADD

    {[ 14013, ADD, EVT, 2, , 0, 0, , , 0, , , , 0320, NSPT, AAAA-A, 2/22/2011 8:00:00 PM, 600, 2/22/2011 8:10:00 PM, , , , 0, BXK, Lightstreamer ADD., , DDD, , , , , 0, , , , , , , , , 14013, 14013, 1, 2/22/2011 8:01:36 PM, , 0, False, 0, 0, , True, , , , , NonSupport, 0, True, False, , , 2/22/2011 8:00:00 PM, False, 29, False, False, , ]}

    ---
    UPDATE (A time value was changed to 8:20 PM)

    {[ (14013), UPDATE, (EVT), (2), (), (0), (0), (), (), (0), (), (), (), (0320), (NSPT), (AAAA-A), (2/22/2011 8:00:00 PM), 1200, 2/22/2011 8:20:00 PM, (), ( ), (), (0), (BXK), Lightstreamer UPDATE., (), (DDD), (), (), (), (), 1, (), (), (), (), (), (), (), (), (14013), (14013), 2, 2/22/2011 8:06:46 PM, (), (0), (False), (0), (0), (), (True), (), (), (), (), (NonSupport), (0), (True), (False), (), (), (2/22/2011 8:00:00 PM), (False), 31, (False), (False), (), () ]}

    ---
    DELETE

    {[ (14013), DELETE, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
    null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
    null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
    null, null, null, null, null, null, null, null, null, null, null, null, null ]}

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    190
    I confirm you that the COMMAND mode DELETE ignores all other fields except item ID and command.
    So the behavior of what your thick client receives is consistent with Lightstreamer specifics.

    Mode COMMAND action DELETE can be associated as a physically delete while your scenario is more like logical delete.
    (You do not want the whole item disappears from client, at least not right away, I'm correct?).

    A workaround I can suggest you is to split your current delete action in two events:
    - An UPDATE with the new value for the delete transaction type field and any other appropriate fields;
    - A DELETE.
    Please note that in this case in your subscriptions you should set the "unfiltered" flag in order to avoid that the server merges the two events.
    I think that in such a way your client can inspect the local data cache after UPDATE event received and determine from this how to manage the subsequent DELETE.

    Hope this Help.

    Giuseppe

 

 

Similar Threads

  1. command mode
    By Pradeep Chahal in forum Java Adapter API
    Replies: 1
    Last Post: February 24th, 2010, 09:52 AM
  2. command mode
    By Pradeep Chahal in forum Java SE Client API
    Replies: 2
    Last Post: February 15th, 2010, 10:20 AM
  3. NonVisualTable with COMMAND mode
    By Alessandro in forum JavaScript Client API
    Replies: 2
    Last Post: June 17th, 2009, 11:50 AM
  4. COMMAND mode
    By atnemeth in forum Flash/Flex/AIR Client API
    Replies: 3
    Last Post: May 19th, 2008, 10:19 AM
  5. Use of Selectors in COMMAND mode
    By Alessandro in forum Architecture - Integration - Deployment
    Replies: 0
    Last Post: February 2nd, 2007, 05:40 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
  •  
Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
All times are GMT +1. The time now is 08:57 PM.