Combo sync bug?

Hi all,
check this: https://snippet.webix.com/eumbvblv

combo correctly sync with remapped datacollection but when I click to select item in the list box, I get "script error".

Filter does not work either.

Am I wrong?

Thanks

Comments

  • edited June 8

    Hi,

    IDs are not really changed that way, they are special data fields for Webix logic that loads and processes data. To check that this is true, you can check out data after they have been parsed into the component:

    dc.waitData.then(() => {
      console.log(dc.data.pull);
    });
    

    To really change IDs, use changeId. And you should use scheme for that.

    var dc = new webix.DataCollection({
      scheme:{
        $init: obj => {
          this.changeId(obj.id, obj.Codice);
        }
      },
    });
    

    https://snippet.webix.com/c8jhumlm

  • edited June 8

    Thank you very much for the answer but filter does not work yet.

  • My bad, thank you

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!