Yes, setEditorType() will cause your custom item to be used. The problem is, your code sample so far has no behavioral differences from a TextItem, so it doesn't reveal whatever you're doing wrong that prevents your class from being used.
Announcement
Collapse
No announcement yet.
X
-
That's exactly what you are doing. For some additional notes on custom FormItems see this blog entry.
Comment
-
Thank you both for your help. I had understood the issue with using 'this' but I had not been aware that instance variables would cause problems as well.
I did make a quick change to my custom form item to remove the setting of the attribute editorType and replaced it with an SC.logWarn. It is being called, so my sub-class is being used.
The blog posting was very helpful. Thanks for pointing me to it.
Again, thank you both for your help. It is much appreciated.
Regards,
John
Comment
Comment