Friday, May 23, 2014

Handling a slow loading APEX Home Page - the easy way

Recently someone was asking me this question via e-mail:

"On my home page I have defined a couple of PL/SQL processes that take a long time - like 30 seconds - to finish. These processes fill up some collections that are used on the page to show information. But how can I let the user know that the system is "working", because right now they're watching at an empty screen (or the login screen) for 30 seconds."

Apart from speeding up the queries, there are two approaches to solve this (that I know off) :

The first one is using AJAX calls. So call the processes On Demand - using apex.server.process - and refresh the reports / regions when they're finished. Elegant, but it requires some recoding - and some JavaScript and that may not your first choice ...

An alternative is, to create a "page-in-between". So create a dummy page (like 999). Set the Home URL of the User Interface to that 999 (see pic below). So after login the user is send to that page.


On that page, create Dynamic Action that fires on Page Load, set the Action to "Submit" and in the Settings tab, set Show Processing to Yes - as shown below.


Subsequently, create a Branch to the (slow) Home page. Now, after login the user will see a "Processing bar" until the processes on the home page are finished and the page can be loaded.

For the most APEX Developers, the last alternative will be easier to implement than the one using AJAX calls ....

Tuesday, May 13, 2014

Submit your paper for UKOUG Tech14 now (or before May 23)

Offering a great opportunity here : You can be an (active) participant of one of the greatest Oracle events in Europe : UKOUG's Tech 14. This year the event will be held in Liverpool, from December 8 to 10 (so just after "Sinterklaas" this year!).
Submit your abstract via http://tech14.ukoug.org/default.asp?p=11590 and earn a free entrance ticket. Your presentation doesn't has to cover the latest, greatest or weirdiest and most obscure feature of your favorite product, also introductory talks are wanted more than ever!
So get your creative flows running and submit your idea(s) before Friday May 23. And I hope to see you there ....

Monday, May 12, 2014

Sneak preview for Kscope14 !

It has been a while, but this year AMIS and SMART4APEX are organizing an ODTUG KScope Preview event together. This event will be held on Thursday, June 12th at the AMIS offices in Nieuwegein.
This year the annual ODTUG - Oracle Developer Tools User Group - event takes place in Seattle, from June 22 to 26. Alas not everyone has the chance to join this event. And therefore AMIS and SMART4APEX have joined forces and offer the opportunity to attend some of KScope’s presentations. A number of presenters from Europe will run a final try out of their presentations during this preview event.
During the event you will have the choice of three presentations in three streams: APEX, Database Development and ADF.Click on the agenda for the list of sessions and their abstracts.

To make sure there's enough place (and food ! and drinks !) for everyone : Click here to register.

And, yes, we are well aware the World Championships are starting that very same night. But luckily that first game starts at 10PM. So you can visit both this Kscope Preview and watch Brazil - Croatia when you get home!

Hope to see you in Nieuwegein on the 12th of June ...