Any idea how can I clear/reset/null/destroy/oblitarate an AC server connect object from within the dmx namespace?
dmx-on:input.debounce:250="value ? serverconnect1.load({query: value}) : do what?"
Basically I need to clear the data or the object itself if the input value is empty.
I could use static js and the input event and dmx.parse the SC load and then null dmx.app.data.serverconnect1.data if input is empty but I don’t know if there is a better approach.
Thanks for taking a shot at it.
Unfortunately my problem lays with the server connect data, not with the input. I need to clear the data contained in the server connect AC component when the input is empty.
So if I type “dog” it will search for dog, but if I backspace, delete or clear the input I need to clear the data in a SC AC component.
@patrick would it be useful to create an AC method to clear/destroy dmx child data/objects? Even if it’s not available in the UI. There might be advanced use cases where something like this is needed.