Results 1 to 10 of 28

Threaded View

  1. #22

    Arrow

    Hello,

    You should install the listener onItemUpdate on your subscription object and then update, add or remove rows of your table component according to the values of the fields key and command.

    For example,

    Code:
    sub.addListener({
        onItemUpdate: function(update) {
            var cmd = update.getValue('command');
            var key = update.getValue('key');
            switch (cmd) {
            case 'UPDATE':
                // update row identified by key
                update.forEachChangedField(function(name, pos, value) {
                    // update field of the row
                });
                break;
            case 'ADD':
                // add a new row identified by key
                break;
            case 'DELETE':
                // delete the row identified by key
                break;
            }
        }
    });
    In the snippets above, you should replace the comments with Angular code.
    Unfortunately we are not Angular experts, so we cannot help with this last point, which depends on the specific Angular widgets you want to use.
    Last edited by Alessandro Carioni; July 16th, 2020 at 08:21 AM.

 

 

Similar Threads

  1. implementation of lightstreamer for a quiz contest
    By Sameer Mhatre in forum Adapter SDKs
    Replies: 1
    Last Post: July 10th, 2013, 09:58 AM

Tags for this Thread

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 05:17 AM.