Results 1 to 3 of 3

Thread: Multiple explicit formula deep binds failing.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default Multiple explicit formula deep binds failing.

    The following View Model formula works perfectly fine:
    Code:
    formulas: {
       recordDirty: {
          bind: {
            bindTo: '{someRecord}',
            deep  : true
          },
          get: function(record) {
             return record.dirty;
          }
       },
    }

    However if you try to deep-bind 2 records (or other object), it is currently not possible and will result in invalid data passed to the getter:

    Code:
    formulas: {
       twoRecordsDirty: {
          bind: {
            recordA: {
              bindTo: '{someRecord}',
              deep  : true
            },
            recordB: {
              bindTo: '{anotherRecord}',
              deep  : true
            },
    
          },
          get: function(records) {
             return recordA.dirty || recordB.dirty;
          }
       },
    }
    Last edited by Artur Bodera (Joust); 30 Sep 2014 at 3:10 AM. Reason: because of this archaic forum software breaks my markup every single time ...

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. Can you please post a test case which reproduces the issue you are facing?
    https://fiddle.sencha.com/#home

  3. #3

    Default

    For me does not work even without "deep". Am I doing something wrong?

    Example: https://fiddle.sencha.com/#fiddle/1i61

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •