Skip to main content

Posts

APEX 3.1.1 "broke my application" : This is the fix.

In APEX 3.1.1 all compound item types - items that contain HTML layout and multiple inputs - have been surrounded by a fieldset. The result is that some items that previously nicely aligned horizontally now wrap to the next line. It mainly effects items with Post Element Texts or where a ColSpan > 1 is defined. This unwanted effect is easily repaired by creating a new CSS file containing: fieldset{display:inline;vertical-align:middle;} and referencing this CSS file in your template. The result then looks like it was before:

Drag & Drop feature in APEX

In a previous post I mentioned a Drag & Drop feature we created in APEX. Because there is a lot of interest for this subject, I created a small movie where I show the drag and drop function. The purpose is to load an Open Action (or Order) into a Truck for a specified day. If you like to see this feature live at OOW - and on a somewhat bigger size screen - , or other nice things we created during our project, please vote for my session on Oracle Mix : (Re)developing-a-logistic-application-in-apex-in-the-real-world. You can register using your OTN account.

Extending SQL Developer with Designer data

Using the Preferences of SQL Developer you can register a User Defined Extension (UDE). This UDE is just a small XML file containing a command or query. If your Oracle Designer Repository is queriable by the user you use for your connection, you can show the Table Definitions in Designer alongside the definitions in the Oracle Database. You just have to create an XML file containing this code: Register the file as an 'EDITOR' type in SQL Developer using Tools / Preferences / Database / User Defined Extensions. Restart SQLDev and the result is something like: Is it usefull? Not really with this query, but you can extend the query with a lot of other data, for example to list the modules a table is used in or the column definitions of that table!

Travelling back from New Orleans

From the Sheraton to the airport I shared a cab with Carl Backstrom and arrived around 2 hours before the scheduled departure. I only had a 37 minute transfer time in Houston so I had picked a chair in the front of the plane - just after the business class. The plane left the gate exactly on time, but it stopped on the runway. Due to a thunderstorm the airport closed for 30 minutes.... So when I got out of the plane in Houston my transfer time was reduced to -2 minutes. The plane to Amsterdam was somewhere at the same pier - but that pier is really huge. So I started the 1 kilometer walk without any (positive) expectations. But to my suprise that plane was scheduled 45 to 60 minutes later! I've never been so happy with a delay.... The flight was o.k. In the 10 hours flight I snoozed a little and arrived in Amsterdam at the original scheduled time. My wife and daughters waited there for me, so it was a good homecoming!

ODTUG Kaleidoscope 2008 : Day 4 - ADF vs APEX and Wrap Up

The last morning of this years ODTUG was completely filled with one three hour session: APEX versus ADF 'shootout'. Although the presenters, Lucas and Dimitri, quickly stated that there was no violence to be expected, the audience was hoping for some clear statements. Lucas and Dimitri both built an application using their favorite tool and demo'ed it to the audience. Both failed on one part - as live demo's tend to do - so it was 1-1 at mid time. After the break the match continued with some nice features shown on both sides. Both presenters where dared to say something positive on the other tools. For Dimitri this was the most difficult part: "I can't come up with anything nice to say about JDeveloper". After a complete comparison, there was one clear winner: The audience ! Thanks to both of you guys for this joint effort! So to wrap up: ODTUG is a great event. Not great in the sense that you're overwhelmed with 1,000's of people (there were abou...

ODTUG Kaleidoscope 2008 : Day 3 - Experts Day

Building Advanced Tabular Forms was the first subject of the day. In APEX you can build tabular forms (a multi record update form) using a wizard or manually (with the APEX_ITEM API and processing with the APEX_APPLICATION API. Another option is using a collection which gives you full control on the processing - like distributing your data over multiple tables. After that one Dimitri Gielis presented on Creating Advanced Charts with APEX. He showed the audience what you can do using the charting options of APEX. Impressive! Next was the Oracle APEX Developer of the Year 2007, Patrick Wolf. His main message is that you can speed up your development process (even further!) when you use the right third party tools. The tools you can't do without as an APEX developer are - apart from Firefox itself: Firebug - a great extension on Firefox Web Developer - another Firefox extension YSlow - a performance monitor, again an Firefox extension Live HTTP Header - to track traffic between the br...

ODTUG Kaleidoscope 2008 : Day 2 - You can(’t) do THAT in a browser!

The first session of this day was APEX Development: Watch it live! by Bill Holtzman of the National Air Traffic Controllers Association. He built a Grievance Control system for the NATCA used by hundreds of users. Now he showed live how to build a football betting system in only 45 minutes (using some prefab SQL scripts). Another nice example how quick application development in APEX can be! After that Scott Spendolini came on stage with his presentation You can't do THAT in a browser! Although APEX contains a lot of really nice features, like Flash based charting, Export to PDF/Word./Excel and Tree Reports, sometimes you have the need to go a little bit further than that. He demoed how you can achieve MS Outlook integration for your Address Book (vCard) and Calendar (iCal). Then he showed how some third party products seamlessly integrate with APEX: DHTLMX Tree (DHTML eXtensions) : Consists of JS libraries to manage all aspects and uses an XML file as data source. You can create...

ODTUG Kaleidoscope 2008 : Day 1

Today started off with a keynote of Vince Casarez about ‘Web 2.0 meets the enterprise'. He showed some really cool stuff included in Webcenter, like the carrousel (similar to the iTunes coverflow), dynamic charts that were refreshed using push technology. This is the stuff Oracle itself is using for their Fusion apps. Next John Scott was on for his APEX Hints, Tricks and Best Practices. They were all very useful so I'll list them all 10. Don't use the default SYSAUX tablespace for the APEX environment, but use dedicated tablespaces instead to make the installation more manageable. Create specific accounts for all developers, making QA and auditing easier. Always lock a page when you make changes and document these changes using the comment property. Use aliases for applications and pages, so f?p=SALES:HOME instead of f?p:117:17. Use the possibilities of APEX to support re-use of code, like Shared Components, Page 0, UI Defaults and Publish / Subscribe. A little explan...

ODTUG Kaleidoscope 2008 : The pre-conference conference

The day started with a rather fierce thunderstorm, and I can tell you that if it rains in New Orleans it really rains! This day was a sort of warming-up for the real conference with three full day symposiums on Essbase, APEX and Fusion. I attended the ‘The Seasoning of Application Express - Must hear Succes Stories‘ symposium that started off with an impressive presentation of Scott Spendolini. His theme was ‘Less is more‘, what didn’t refer this own presentation as he managed to go to 431 slides in half an hour! After that Mike Hichwa from Oracle did an ‘Apex Update’. He told us that currently APEX is the most used tool within Oracle for internal applications. Oracle also releases products that are based on APEX, like Database Vault. And we got a sneak preview of the future of APEX: we will get updateable interactive reports, custom item types, easy way to attach files of any kind to a record and declarative AJAX support. And some other good news: SQL Developer will support logical an...

ODTUG Kaleidoscope 2008 : The day before

After an 18 hour trip from my home I arrived at the Sheraton in New Orleans. Luckily this time I also got my bag (at OOW 2007 it arrived a day later). A small wonder, because my transfer time in Houston was reduced from 1 ½ hour to 20 minutes due to the border control officer, who seemed to be very interested in all my predecessors in the queue. So I had to run from gate E to C. On the way I saw at a screen that The Netherlands where ahead against France with 1-0. At the time I arrived in New Orleans I called home and found out it turned out be a 4-1 victory! When I came outside of the airport the tropical atmosphere hit me. It was about 32 C, but very very humid. After dropping of my luggage and freshening up a little in my room at the 43 floor, overlooking the Mississippi, I went out into the French Quarter. This area is packed with bars and restaurant and every bar seemed to have it’s own live music. I managed to stay awake until 9pm - that makes about 22 hours awake - and slept unt...

ODTUG Kaleidoscope 2008 : APEX rules!

In a couple of weeks ODTUG's Kaleidscope 2008 takes off. This years theme seems to be: APEX, APEX and again..APEX. At least, for me it is. Because my preliminary schedule is packed with 24(!) APEX sessions in 5 days. So at Thursday afternoon I should know everything I always wanted to know about APEX, but were afraid to ask . I'm looking forward visiting New Orleans and meet again some friends from the Oracle blogosphere. I will report back my findings here! So here's the schedule: Date From To Title Presenter Sunday 9:00 10:00 Managing the Army's Enterprise Real Property Planning with Oracle APEX Bharat Pappu and Brian Duffy 10:00 11:00 Creating Dynamite Applications that Deliver Kathy Hunsicker 11:15 12:15 Oracle Application Express: Power to the People Rich Mutell, Dimitri Gielis, John Scott 13:00 14:00 How IntelliReal used Oracle Application Express to Rapidly Build their Production Environment Chris Ostrowski 14:00 15:00 Mastering Unreasonable...

UKOUG Day 4

The last day of the conference already... The day started with a presentation on Datamodelling using JDev . The presenter showed how JDev could replace Designer for modelling. Imho JDev doesn't support logical modelling at all (he misused Java class models to represent a logical model), there is no repository and no relation between a logical and physical model. For just physical modelling JDev is fine, because all 11g database options are included. This modelling option will become available in SQL Dev also.... After that I went to see my esteemed colleague Peter Lorentzen's talk on How to make your APEX Application Secure . He stated that APEX is secure, but developers make it unsecure . Nice statement Peter! One of his (many) good advices was not to use XE for an APEX (open) production environment as XE is not patched and you will be vulnerable to all kinds of attacks. He also showed a script attack by adding a small "Hello World" script as a value for a database v...

UKOUG Day 3

The (rather ambitious) schedule for today was : Lost in JDeveloper by Sten Vesterli : Sten guided the (Forms experienced) audience in creating an ADF Swing Client App ofcourse declaratively (next to AJAX this is the buzzword of the conference : everything should be declarative, you can be a programmer when you' re able in controlling your mouse ;-) ). Programming Real Applications with APEX by Andrew Woodward : Again everything declarative but now using APEX instead of JDev. The point was: you can create simple applications faster than using Oracle Forms but when you need more advanced features you'll need to program Javascript and AJAX. But that's only temporarily, because in the next version(s) you also will be able to create AJAX components declaratively . Modelling on the cheap by Andrew Clarke (I chaired this one) : Andrew sketched out the pros and cons of different modelling tools - from whiteboards to (free) datamodelling tools. As far as he knows the best free da...

UKOUG Day 2

After yesterdays Blogger Meetup it was hard to start the day... The first session of the day was Sue Harper's talk on SQL Developer Latest Features . She mainly focussed on the new / enhanced features of version 1.5, that will be production somewhere (early?) 2008. To name some new features : external authentication (OPS$ users), browsing queues and Java, schema differences and schema copy, recall filters and a flashback query tab, formatter enhancements, your own code templates and drill down reports. With very new version SQL Developer looks more like the current TOAD version ;-). After that I visited a session about Building Rich UI with APEX and AJAX . It was pretty impressive what you can do with a combination of APEX and AJAX (look at ajaxpatterns.org . The presenter also showed the use of widgets of the jQuery UI library like an accordion and a fancy date picker ( jquery.com ). The next session about the Roadmap for legacy system migration I chaired. A solution for the up...

UKOUG Day 1

After a rough flight yesterday I arrived in Birmingham. The city has a complete Christmans atmosphere, as you might expect at this time of year. There even is a 'real' Frankfurter Christmas market with ' Beer und Bratwurst ' and hot wine - and lots and lots of other more or less Christmas related stuff. I made some pictures, but on my (new) laptop the drivers for the camera are not installed yet, so I'll add the pictures later on... This morning the UKOUG started with two keynotes on '30 Years of Oracle'. The one of Tom Kyte was amusing as ever. At that moment I realised that I volunteered to introduce him this afternoon, probably for an audience of over 1,000 people. I'm more nervous about that than about my own presentation! After that I went to an presentation on APEX 3.1 New Features . This version is already available on OTN (not for download, but to play with) and has a lot of interesting and nice looking features. For instance the end-user can dyn...

UKOUG newbie

The first week of December I'm visiting the UKOUG in Birmingham. This is my first visit, and I will not only attend sessions, but also chairing a couple and even presenting one. Luckily my presentation is on the first day (Monday 15:20), so I can enjoy the rest of the conference without being nervous... My presentation is on the automatic transformation of Oracle Forms to Java, so if you're interested: come to the show in Birmingham (or the Pro4Pro in Amstelveen on December 11). I've got a very interesting - and busy - schedule for this week. And apart from this schedule I will visit the Blogger Meetup on Monday. And besides attending sessions I hope I can make the time and energy to (re)contact a lot of people I met in San Francisco last year or that I know of from the net only. I hope to meet you there! I will post some report back on this conference, so return later on. Monday 08:00 - 18:45 REGISTRATION OPEN 10:30 - 19:40 EXHIBITION OPEN 09:05 - 09:10 Welcome f...

Blogging about 11g : Function Result Cache

From the 11g New Features Guide: "New in 11.1 is the ability to mark a PL/SQL function to indicate that its result should be cached to allow lookup, rather than recalculation, on the next access when the same parameter values are called. This function result cache saves significant space and time. Oracle does this transparently using the input actuals as the lookup key. The cache is system-wide so that all distinct sessions invoking the function benefits. If the result for a given set of actuals changes, you can use constructs to invalidate the cache entry so that it will be properly recalculated on the next access. This feature is especially useful when the function returns a value that is calculated from data selected from schema-level tables. For such uses, the invalidation constructs are simple and declarative. Concurrent, multi-user applications that use this feature experience better response times. Applications that implement a session-private scheme consume significantly l...

Blogging about 11g : Allow Sequences in PL/SQL Expressions

My company took part in the Oracle 11 g Beta test and I also ran some (small) test on the new PL/SQL features. One of them is that access to sequences is allowed in PL/SQL, so no need to "SELECT tst_seq.nextval INTO n FROM dual" anymore! DECLARE   n NUMBER; BEGIN   SELECT seq.nextval   INTO n   FROM dual; END; can now be coded as DECLARE   n NUMBER; BEGIN   n := seq.nextval; END; For "currval" the same solution is possible. So there is no need for a cursor anymore, but more important to me : the usability and readability of the PL/SQL is code is enhanced by this new feature.

Adding a missing tab to SQL Developer

In SQL Developer v1.2 the trigger tab for views is missing. You can add this tab (and many many others you can think of) by using User Defined Extensions. Create an XML file with the definition of the tab: <?xml version="1.0" encoding="UTF-8"?> <items>   <item type="editor" node="ViewNode" vertical="true">     <title><![CDATA[Triggers]]></title>     <query>       <sql>         <![CDATA[select table_owner                 , trigger_name                 , trigger_type                 , triggering_event       ...

Oracle WebCenter Suite : A new way of application development

Yesterday the design environment (JDev) for WebCenter Suite was released. After the demo by Thomas Kurian at OOW2006 I was very curious about this new product. The WebCenter Suite is the first result of the Fusion stack: The Oracle Fusion developers needed it to build the Fusion apps. But now we can use it too! The WebCenter Framework (the runtime environment) will be available any day now. Using the Framework you can use out-of-the-box WebCenter Services, like Content Management, Search, Presense Server, Instant Messaging, Wiki and Forums. WebCenter supports building applications by putting small blocks of UI together. So after modular development in PL/SQL (what every developer should do), and modular development of services - using SOA - we can now develop modular UI blocks and put these all together to build a even more user friendly process driven work environment for the end-user. I hope I can spend some time in the near future to try out this new product. The development team is...