1. #11
    Ext JS Premium Member
    Join Date
    Apr 2011
    Location
    Sweden
    Posts
    89
    Vote Rating
    1
    MHjerpe is on a distinguished road

      0  

    Default


    Quote Originally Posted by MHjerpe View Post
    Why do I always.. start type in the Forum... (When there is no activity in it anwya (middle in the night in US))

    And later on find a workaround anyway..

    So what i do is.. I listen to the event Write for the store.
    Check if I can find the Window with the Form.. if so..
    I get the values from the form.. to fetch the ID then
    do a findRecord.. and then
    tell the Form to load in the updated record with form.loadRecord(record)..
    This method works ok with changes only... but not with new records.. as I don't have the ID to find the record..

    Why is simple thing like this taking soo much time and effort to implement with Ext Js..

    I wished ssamayoa's would work.. but then I got other strange errors...

  2. #12
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    sysbrothe is on a distinguished road

      0  

    Default


    a similar problem, you need to display data in a grid in the method renderer

    zstore = Ext.getStore('ZCarsTypeStore');

    zstore.filters.removeAtKey('IDS');
    zstore.filters.add('IDS', new Ext.util.Filter({
    property: 'IDS',
    value: value
    }));

    zstore.filterOnLoad = false;
    zstore.load();
    console.log(zstore.first()); // return random true or previous data
    console.log(zstore.findRecord('IDS','5')); // return undef or random prev data

    how to display data in a grid cell, from the other store (one-many relationship) with this result (

    p.s. sorry for bad english

  3. #13
    Sencha User
    Join Date
    Dec 2012
    Posts
    21
    Vote Rating
    1
    martskins is on a distinguished road

      0  

    Default


    Thank you! This saved me a lot of time today!