I have NOT been able to update the fields from the element template using the same first method “updateProperties”. Could you please inform how i update the element template properties? I mean it is possible Im just not correctly attaching the template to begin with. But when i download the xml it looks like it’s there…
Thank you. I see what you mean, and now that i read this it is quite obvious. However what I don’t understand is how to pkg the changes in the panel for the modeling._comandStack.exucute method (what i have in the example is this.formBuilder.array([]) which is definitely not right). Do I create a moddle? like moddle.create(‘bpmn:ExtensionElements’), i did that and while it doesnt error out, it also doesnt update anything.
Hi, Thank you, use case is I’ve built an angular custom props panel, with a form which users can update the input fields, add apply an element template and update the template values, at which point the “onUpdateTemplate” get’s called. I know how to update the element name, documentation id etc, but when it comes to the element templates updates you said i have to use modeling.commandStack.execute but I am unsure what to pass to extensionElements.
There is no way to update the element template itself. As stated in my previous post, the element template itself is a static resource. However, you can modify the properties of the element after an element template was applied to it.
If you want to find out more about how to update properties of an element using our APIs, check out this example (in particular editing elements)