My First APEX Plug-In – Color Picker.
For anyone who does not know by now, APEX 4.0 has been released. And if you have not yet downloaded and upgraded, I say, “What are you waiting for?!?!?!”. Click here NOW and download it. I’ll wait. *insert jeopardy music here*. Ok, done? Great!
There are a ton of new features in this release. One of the most significant ones are Plug-Ins. In a nut shell, Plug-Ins give you, the APEX developer, to ability to extend the APEX development framework with custom item types, region types, and process and dynamic actions.
I finally got around to playing with them and lets just say I am impressed. At first, the idea of writing Plug-Ins seems daunting, but after playing with them for an hour or so, it did not seem so hard. It’s easy to take the example supplied with the sample application and and use it as a outline to make your own. In fact, that is exactly what I did to make my first item Plug-In. I encourage you to do the same. You can also grab my Plug-In and see what I did as well.
In prior APEX releases, if you wanted to include a jQuery plugin on your page, you would have had to embed all the code into the page itself. And there are many different places to include that code. Each developer does it a bit differently. I know myself, I was not very consistent going from page to page within the same application. This made for maintenance nightmares. Plug-Ins fix all of that.