Open the views property editor, the second tab: extra has the formats per view.
Thanks Chris de Gelder!!!
He helped me a lot. The solution is to define a available view (under properties, extra, available views, new, second tab, extra). When you put the custum format there, it works fine
Original code: this.fixObjProps(['notused']);
New code: this.fixObjProps(['notused','notused1']);
I've also issues a support ticket for this.
One more thing, this workaround requires the latest version of the app (the one with the fix for color enumerations).