Results 1 to 3 of 3

Hybrid View

  1. #1
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi Alex,

    on the client side, you could filter out update events which do not satisfy you criteria, for example by "overriding" the onItemUpdate method of DyanGrid in the following way:

    Code:
    // Save the reference to the original "onItemUpdate" method.
    dynaGrid.originalOnItemUpdate = dynaGrid.onItemUpdate;
    
    // Override the "onItemUpdate" method.
    dynaGrid.onItemUpdate = function(update) {
        // Assuming "last" and "updatetime" as the field names of your field schema.
        var last = update.getValue("last");
        var updateTime = update.getValue("updatetime");
    
        // Result of your matching criteria. 
        var canUpdate = false;
        // Insert here your logic to verify if your criteria can be satisfied.
        [...]
        //
        if (canUpdate) {
            // Invoke original method to fire visual updates.
            this.originalOnItemUpdate(update);
        }
    }
    Furthermore, you have the possibility to use the "selector", but in this case you must also adding some logic in the Metadata Adapter.
    Let me know if selector may be an option and, in that case, we can assist you by providing more details on this.

    Thanks and Regards,
    Gianluca

  2. #2
    Hi,

    this works perfect for me.

    Thanks,
    Alex

 

 

Similar Threads

  1. Replies: 4
    Last Post: January 12th, 2015, 09:36 AM
  2. Replies: 4
    Last Post: September 24th, 2013, 09:28 AM
  3. getting field value directly via javascript
    By pluczak in forum Client SDKs
    Replies: 1
    Last Post: April 3rd, 2012, 09:36 AM
  4. Getting old value
    By shreyaspurohit in forum Client SDKs
    Replies: 5
    Last Post: December 17th, 2008, 01:19 PM
  5. having problem while subscribing pairs
    By rekhender in forum Adapter SDKs
    Replies: 1
    Last Post: October 31st, 2008, 09:58 AM

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 10:09 AM.