Results 1 to 5 of 5

Threaded View

  1. #1

    Second level data adapter, in the same class as the primary

    like in the Portfolio example, I have a DynaGrid
    the adapter have events, at startup it pushes a full list of rows, at any time a new row can be added. This part is ok

    but I have other more tiny events (quote) for them the secondLevelAdapter is well suited (because I don't know the row id for them)
    but I did not managed to catch the events in the browser, probably because it's all in the same default Adapter class?

    I tried setting it or not:

    sending a UPDATE command with a random(but not existing) key make it work, but that's not really clean

    in js:
    Code:
    var subscription = new Subscription("COMMAND", id, fieldList);
    //subscription.setDataAdapter("DEFAULT");
    subscription.setRequestedSnapshot("yes");
    //subscription.setCommandSecondLevelDataAdapter("DEFAULT");
    subscription.setCommandSecondLevelFields(secondLevelFieldList);
    
    
    subscription.addListener(grid);
    client.subscribe(subscription);


    ..sorry but it seems the forum doesn't handle well the Title editing
    Last edited by darch; March 29th, 2013 at 04:07 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:41 PM.