Archive for the ‘Coding samples’ Category

Vertical text in javascript

I’ve just recently been given a Word document with a mock up of a report that I needed to reproduce in HTML. Well, i looked at various options like using transforms, rotate, DX filters in IE, but none of them worked properly, or without major headaches. Whilst searching around, I found a JS library called [...]

Share
More »

Oracle APEX radio groups as buttonsets

Oracle APEX radio groups as buttonsets

Buttonsets are sometimes appropriate to represent a choice of selections instead of radio buttons. I think they look much better – especially when used for smaller lists. Sub lists can be shown or hidden easily using dynamic actions in APEX 4.

Share
More »

Getting the server name in Oracle 11g

In an APEX application i’m creating, I’m storing some output files that the public needs to get access to on the XMLDB server. The problem is, when i’m moving my code to production, I need to update the location to send the users to. Previously, I’d used global variables in a Global package to store [...]

Share
More »

Oracle Apex sticky hide and show regions

Recently had a need for sticky hide/show regions in Oracle Apex 4.1. Here’s how I done it. Add the jQuery cookie library to your page template Added the following line to the hide and show region template ?View Code HTML1 $.cookie(‘#REGION_STATIC_ID#’,$(‘##REGION_STATIC_ID# .hide:first:visible’).length);return false; So my hide and show region template looks like this: ?View Code [...]

Share
More »

Creating ACLs in Oracle 11g

In Oracle 10g, network access was pretty easy. Just fire up a UTL_HTTP request and voila, you’re data appears. In 11h, everything is locked down, here is where Access Control Lists (ACLs) come into play. To allow a user to access external resources, i.e. web content, you must create an ACL, assign users or roles [...]

Share
More »

Android SDK install error

Spent ages trying to get Andoid SDK  installed and configured so that I could get to grips with Appcelerator mobile development tool working. Kepy on saying I didnt have a SDK installed Oh how annoying. I tried: Installing an older version of JDK Installing JRE, JDK, SDK, ImOK…. nada Changing my PATH variable until Id went [...]

Share
More »

Upgrading Oracle Apex 3.2 to Apex 4.0 on Amazon EC2 Cloud

Just today, I upgraded one of my Amazon cloud servers to Application Express 4.0. Few wee problems along the way, but got there in the end. Here is how I did it. Download APEX 4.0 from here Copy the .zip to an S3 bucket Make the bucket public Use PUTTY to log on to the [...]

Share
More »

Oracle Apex, jQuery and GIS intergation

Oracle Apex, jQuery and GIS intergation

I recently needed to provide mapping functionality in an APEX app I was developing. In V3+ of Oracle apex, you can create interactive reports like this Now when you click the cog, you geta map icon at the top: I added a <li> element to the interactive report on-the-fly using jQuery (depending if it finds [...]

Share
More »

Oracle Apex error – document.wwv_flow.submit is not a function

You might occasionally get this error in Oracle Apex when submitting a page. Alternatively, the page might not submit at all when you click a page button. I must admit this had me stumped and i had to resort to disabling everything, then reenabling region items to find out what was wrong. Turns out that [...]

Share
More »

Oracle Pipline functions

Pipelined functions are an extremely useful feature of Oracle 9i and above. They allow you to present disperate nontable based data as a standard table whilst streaming the output so that processing can begin immediately. I.e., they let you SELECT from a function much like you would SELECT from a table. Cool huh? Why would [...]

Share
More »