I want to clear a specific field when a button is clicked in my extension. The button is a simple input type = button with an id = 'canceldata' where I can catch actions by using:
var doc = Qv.Document;
This works, but I want a function that takes a field name (For example clearField("Year")) as parameter and clears that field of any values selected. Is there such a function? I have scouted the JS API but with no luck.
When I try to call functions like Qv.Document.Object.Data.ClearAllButThis() the console says that it's not a function.
I know I can always solve the problem by adding a QV object with an action that clears the selection but its not as good looking as I want