Tuesday, June 30, 2009

ODTUG in the rearview mirror

Still recovering from a light jet lag, it is time to look back at another excellent ODTUG event. Although I planned to blog about it on a daily basis, the social/networking activities prevented that... (a.k.a. "I rather drink a beer with some friends and have a good chat, that write another blog post"). So here's a (rather) long wrap up of this fantastic event!

Sunday June 21: APEX Symposium
The symposium, with around 200 attendees, started at 8:00 AM (attending ODTUG is really hard work!). The day started with a sort of keynote by Joel Kallman, followed by 6 presentations of real world APEX applications and was finished off with a Panel discussion. Some highlights of the day:
Joel did an excellent presentation called Application Express: Ahead of the Curve. He explained that APEX is still ahead of it's time and therefore will still gain (even) more interest in the market. Especially because of the high speed development, you can create all kinds of applications with a good ROI (but of course you knew that already...).
Olivier Dupont showed that at Brussels Airport APEX is used for securing the entrance to all parts of the area (a real mission critical example!), even using no (real) browser and no mouse.
Cognera utilizes APEX for their billing solution in the utilities market in Canada (using BPO and SaaS constructions). Martin D'Souza even showed they embedded APEX into an Access application!
On behalf of PAETEC, Dennis Vanill presented their APEX enterprise application using an own framework to intercept the standard APEX rendering in order to minimize the number of common objects.
Jan Navratil showed that the National College for School Leadership uses APEX to support over 200,000 school leaders in the UK.
At Cornerstone Brands APEX is successfully used in their call center to handle thousands of orders daily by hundreds of users. So even a data entry environment APEX is suitable as Paul Davidson showed. Using the new APEX application the call center reduced the time per call and so increased the number of calls per agent substantially.

All examples showed APEX is suitable for mission critical enterprise applications with large numbers of users, even in a data entry environment!

The last general session of the day was a keynote by Steve Miranda. He demo'ed a (small) part of the new Fusion Apps. The UI looked very web 2.0, impressive functionality and animations. Although I wondered if all this visual force is still impressive - and useful - if you use such an application on a daily basis...

Monday June 22
Doug Gault kicked off the APEX part of the day with Performance Tuning APEX Applications. Performance is all about the User Experience. Some free tips: Separate UI (APEX) from Logic (SQL); move anonymous PL/SQL into the DB; use binds; instrument your code; gather statistics (for both application and APEX schema). For monitoring performance you can use the APEX Reports (especially the By Weigthed Page Performance); set the debug mode on; show the #TIMIMG# substitution variable in the region footer; use Firebug and/or set &P_TRACE=YES in the URL.
Next, mister APEX Security himself, Scott Spadafore, covered the APEX Security Essentials. All about the risks of hacking and the APEX answers thereto: session state protection, session timeout, VPD etc.
The last session of the day was more or less the general APEX keynote: APEX 4.0 by Mike Hichwa. For a very interested and curious crowd of over 200 people, Mike showed a lot of cool new features. More details about that in a next post.
In the evening we had the usual APEX meetup in one of Monterey's many restaurants. The meetup is getting bigger and bigger. This time there were more than 30 people!

Tuesday June 23
Another (beautiful) day packed with interesting APEX sessions. Bharat had the honor of keeping everyone's interest (after yesterdays meetup). He easily attracted attention by showing what you can do using DHTMLX Tree's and Grid. Very web 2.0 like pages with no resemblance of the standard APEX Themes at all!
Later that day Tim St. Hilaire dived into the wonderful world of jQuery and Yahoo UI. He showed how you can solve Wait Processing, Pop Up Dialog Boxes and Autocomplete functionality using these Javascript frameworks. Looking at the LOC needed for implementing this functionality jQuery will be my personal preference!
Next John Scott showed what you can do to increase the scalability of APEX. Using caching, minifying javascript, adding expiry info, gzip files etc you can dramatically reduce the number of round trips and the size of the data transfer.
Then it was my turn to present about How to integrate Forms and APEX. It went rather well, although I finished somewhat early. For myself I noted some accents to improve the presentation for OOW!
The last session of the day was done by Brian Spendolini. He demoed how to use Oracle Application Express on the iPhone. He showed how to overcome the size and navigation limitations of the iPhone and how to create real native iPhone APEX apps. Very cool stuff...
That evening I was invited for the Oracle ACE dinner in the other conference hotel at the beach. Nice food and good company. As always we ended up at Knuckles...

Wednesday June 24
The (for me) final day of the conference started off with Dietmar Aust's Generating complex Excel reports with APEX and jXLS. Maybe as a last resort I would come up with this solution, but it is not my tool of choice, because you have to learn another specific "jXLS language" and some Java stuff for the communication with the engine.
Next Joel Kallman showed how to Effectively Manage an Application Express instance using the Oracle Database Resource Manager. With live demo's on oracle.apex.com he explained how to use the different resource settings in order to improve the overall performance. With 7,000,000 page views a week, apex.oracle.com has only around 5 (real) active sessions at any moment. Should I say more on scalability?
After that, two sessions about managing the development of larger and multiple applications. In the first, Scott Spendolini explained the use of multiple Applications (one master application to subscribe to, one login application, one template application with all the subscriptions as a starter app and one for access control) can simplify, unify and speed up your development effort. In the other session Raj Mattamal raced - in his own special way ;-) - through the problems you might encounter when working with a larger team on an APEX application. Version control, page locking, page exports and - again - splitting up an application into different sub-apps where discussed.
In between these two, Francis Mignault talked about How to Build a multi-tenant SAAS application with Oracle Application Express. Very impressive to see how they managed to support such a different style of UI for their customers, while it still is one application in the end. Using VPD, customer specific style sheets and customer specific information it seemed like we were looking at totally different apps!

Thursday to Sunday June 25 - 28
While suffering from an information overload I decided to skip the last three sessions on Thursday morning and drove to Yosemite. After a very nice drive over the Californian roads (sometimes very long and straight, just like in the movies) I arrived in Yosemite. First I went to see the really, really big sequoias. Then I drove all the way up to Glacier Point. From there you have a stunning view on the amazing wonderful environment. Another long and winding road later I ended up in Yosemite Valley where I had reserved a cabin on forehand. Lots of squirrels, chipmunks and raccoons, but no bears... The next day I headed up to Mirror Lake, and took a quick look at the Yosemite Falls. Alas I had too little time to make a big hike all the way to the top, because I had to turn in my car at the end of the day. Another fine drive to (even visited La Grange) San Francisco - driving over the Bay Bridge is really special! Early next morning to the airport to catch my 7:35 flight to Atlanta. In Atlanta my 2 hours transfer time was extended to five hours before I could get on the long second leg to Amsterdam. Back home Sunday around noon....

Thanks to Crystal and her team and all the ODTUG volunteers it was another great ODTUG conference. Hope to see you all in October at OOW or at the next ODTUG event (in Boston? Atlantic City? Orlando?).

Monday, June 29, 2009

Abstract for Oracle Open World accepted!

To my suprise I received an e-mail from the Oracle Open World Content Team that my abstract "It's Great to Integrate: Combining Oracle Forms and Oracle Application Express" has been accepted - even though it is still "in the Mix", open for voting (currently 65 votes at the 9th position).
Maybe a 'spy' attended my session at ODTUG?
Nevertheless, I proudly accepted the invitation and hope to see you all at the next Oracle event in San Francisco!

Sunday, June 21, 2009

ODTUG 's just like a high school reunion

Today I drove down from SFO to Monterey via the scenic coastal route. At first I had some problems with my car: it is the first time I drive a car with an automatic gearbox, so I have to keep remembering to leave my left foot just where it is....
In Monterey I first went to the Bay Aquarium. It was quite busy there, but once you've seen it, you know why. I especially liked the jellyfish and the octopus. Just beautiful! At the aquarium I already met "the Insum guys": Francis and Patrick.
Back at the hotel I met more old acquaintances, visiting ODTUG again is just like a high school reunion...
After dinner and some beers, the jetlag is really kicking in...my computer tells me it's 6 AM and I feel tired...
Looking forward to the sessions of tomorrow!

Saturday, June 20, 2009

Anycharts Conversion Package available

As I wrote in a previous post my colleague Rutger was working on an Anycharts Conversion Package to automagically convert the standard charts in APEX from version 3 to version 4. That's finished now. You can download the latest (beta) release on http://apexacp.blogspot.com! Give it a try!!

Earplugged, Blindfolded and Jetlagged

After a long long journey I finally made it to my hotel next to San Francisco Airport. I can see the planes as they come and go, but luckily can't hear them.
The first leg of my trip, from Amsterdam to Cincinnatti, wasn't that bad: I had a complete row of three chairs for myself! Delta provided everyone with earplugs and blindfolds, so I stretched my legs and took some naps (still don't know if it is a good idea to take as much sleep as you can on a flight or to try to stay awake as long as you can, in order to survive a none hour time lap). The offerings on the entertainment system where good enough and even the food was ok.
I had less then two hours to change planes in Cincinnatti, and - with the experiences of the Sam Francisco and Houston Immigration lines - I wasn't certain that that would be enough. To my big suprise there was no line at all (I don't want to call three people in fron of me a 'line')! I even had to wait at the luggage belt before my suitcase arrived.
The second leg was worse. The airplane was completely booked, and there were lots of children aboard. I don't have anything against children (I have two of my own), but they don't make me happy when they're sitting right behind me and play around with the table tray and kick against the chair every time I almost fall asleep.
And also the service for this part was very minimal: no inflight entertainmant, only food for purchase and too few beverages. But what can you expect when you go for the cheapest option (only 450 euro ($600,-) for the complete trip).
In my hotel I stayed awake until 9:30 and then fell in a deep sleep. From which I woke up at... 3 AM! With some effort I managed to stay in bed, with some little naps, until 6. After breakfast I'll go to the car rental to get my car and drive the scenic route to ... Monterey!

Wednesday, June 17, 2009

Vote for OOW sessions is open...and mine is one of them...

As from today the Vote-a-Session for Oracle Open World 2009 is open. The organization received over 3,500 (!) abstracts. 350 of theses submissions are granted 'direct access' to the main OOW program and around 150 were selected for the public Vote-a-Session on Oracle Mix...including mine (so I already made it to the top-500). But now I need your vote! So please login on Oracle Mix (you can easily create an account if you don't have one) and vote for My Session: "It's great to integrate: Combining Oracle Forms and Oracle Application Express". The full list of proposals is available on https://mix.oracle.com/oow/proposals. Last year there were a lot of APEX related sessions to vote for, this year I can only find around five.
Alert: You have to vote for at least 3 sessions for your votes to count!
Hope to see you all at OOW....

Monday, June 08, 2009

Can't wait to unpack my ACE Award...

Last Friday I received an email from the Oracle ACE Program Office that I am accepted for the Oracle ACE Award! At this moment I am not on the ACE Directory and also my OTN Forum Profile doesn't show the Ace of Spades yet, but that should be fixed in a few days or so (I am more than thrilled to swap my two 'Guru medals' for one spade thing). The award itself seems a little dangerous because I had to sign a document to release Oracle from all liability for any injuries caused by that award. Seems like a rather sharp thing...
According to the ACE Directory I am the 215th worldwide, 13th in The Netherlands, and, after Andrew and Piet, the third within Logica.
A special thanks to David and John who nominated me. I guess I owe them a few drinks during the upcoming ODTUG event...

Alternating Row Colors in Interactive Report

In APEX, using an 'old-fashioned' report, you can create alternating row colors out of the box. But when you want to use the Interactive Report (IR) features, you can't do that anymore. But some people still have that need, according to this question on the Forum.
The main problem is that you can filter and re-order the resultset on the fly, so you can't define the coloring using the onload method of the page, because that's only fired once.
But when you have a Link Column in your report you can use the onload event of the image in that link :
<img src="#IMAGE_PREFIX#edit.gif" alt="" onLoad="Alternate(this);">
And define in your Page HTML Header:

You can see the colorful result here: http://apex.oracle.com/pls/otn/f?p=ROEL:ALTERROW

Friday, June 05, 2009

Highlight Row in Interactive Report

Recently I encountered a question on the OTN Forum about "How to Highlight a Current Row in an Interactive Report". For a regular report that kind of highlighting is a built-in functionality in the template, but an IR doesn't have a (editable) template (could be a nice enhancement for a future version though!). But you can override the styles used by an IR, by adding some STYLE tags in the Page HTML Header. First take a look at the on-line demo. You can click the [Edit] button to see the highlighting in action.

So how do we achieve that:
First we need to add a function call to the [Edit] link/button in the IR: Add "onclick=highLight(this);" to the Link Attributes property of the Link Column. This click calls a "highLight" function, defined in the Page HTML Header:

function highLight( pThis ){
$(pThis).parent().parent().children().addClass('current') ;
var empno = $(pThis).parent().next().html();
$s('P36_CUR_EMP', empno);
refreshReport( empno, 'P36_CUR_EMP' );
The "refreshReport" is a wrapper for some (standard) APEX functions to execute a Partial Page Refresh of the detail region on the right side of the page. The rest of the code is some jQuery stuff, first do a clean up to remove all "current" classes from the TD-tags - to "un-highlight" a previous selection - and subsequently add that class to all TD's in the current TR.

Next define a "current" style to your own taste. In this example I used:

background : transparent url(#WORKSPACE_IMAGES#row-over.gif) repeat-x scroll 0 0 !important;
border-bottom : 1px solid red !important;
border-top : 1px solid red !important;
I also tweaked the standard "apexir_WORKSHEET_DATA" styles a bit to get a hover effect:

.apexir_WORKSHEET_DATA tr:hover {
background:#EFEFEF url(#WORKSPACE_IMAGES#row-over.gif) repeat-x scroll left top;
- and did some other restyling on the look-and-feel as well - but that's about it!