Delete/remove subform without ID

Hi,

Can I delete a subform without ID? and if there is any option that my JSON repairs itself and it keeps the order from 1 - N ?

Hi,

how was this subform created? Could you please share a snippet?

In fact, any Webix view has an ID. It may be given in the configuration or it is automatically generated during webix.ui execution. Anyway, ID can be accessed as view.config.id.

You can learn about it here: http://docs.webix.com/desktop__view.html#viewid

Aaah. Sorry. Here you go

http://webix.com/snippet/a02f8d35

I think there 2 ways to get your sub form:

  • You should store sub form id to somewhere and then you can retrieve it:
    newAddCustomer.id = webix.uid();
    //… store newAddCustomer.id to local storage
    // …get webix component
    $$(newAddCustomer.id)

  • You can get list of sub forms from parent view:
    $$(“additionalCustomerAdd”).getChildViews();

Check the document: http://docs.webix.com/desktop__view.html