Dynamic objects edit

Hi,

I have a requirement to allow a user to define data objects dynamically. I think the property sheet could be a good choice for this. So… I would need to allow the user to define, create, edit, and save objects. This would involve adding fields to a property sheet dynamically one by one, adding a json object from the server to the property sheet dynamically for editing, and then saving the data back to the server. Is this possible?

Thanks,
-S

Hi,

Perfect! Thanks.

-S

Hello @sigipa,
Please check the next snippet: https://snippet.webix.com/pfpt2zns
It can be done via Webix Ajax request.
For example, to save data to the server, you can do something like next:

const data =  property.config.elements;
          webix.ajax().post(url, JSON.stringify(data), function() {
            webix.message({ type:"debug", text:"Property is saved", expire:-1});
          });
        }

Which will send all data from the property to the server.

Ajax operations docs: http://docs.webix.com/helpers__ajax_operations.html