I notice when i create a new action in system, actions, that the form is cleared
next time around when i create an action.
We can NOT get this behaviour, i’ve wandered the internet for hours searching for
a good solution. I even had the issue with 2.0.0 but now it seems fixed.
Do you have access to the form component in your console (console.log(form)) ?
If yes, can you do the same with form.getForm() and see the available methods ?
Forms with Extjs are sometimes tricky.
If your form an id, you can access it too with with finbById(’yourId’).getForm().reset()
b03tz: I wonder if you take your tbar handler function and move it outside the scope of the paymentGrid construct, give it a name e.g. function paymentGridTbarHandler() {...} then call it by name in the tbar handler e.g. tbar: paymentGridTbarHandler ..
It’s been many months since I’ve been in the thick of an extjs app, but I do recall having to do this in certain cases to make sure that functions inside handlers actually executed each time. You might need to look up what parameters are passed to the tbar handler in order to get the right context in your handler function.
I hope this doesn’t lead you on a wild goose chase, but it’s something to try.