This action might not be possible to undo. Are you sure you want to continue?
Apex 4.0 through the eyes of Dimitri Gielis
APEX 4.0 through the eyes of Dimitri Gielis
Published 2011 by Simple-Talk Publishing Cambridge, UK
Copyright Dimitri Gielis 2011 ISBN 978-1-906434-68-7 The right of Dimitri Gielis to be identified as the author of this work has been asserted by them in accordance with the Copyright, Designs and Patents Act 1988. All rights reserved. No part of this publication may be reproduced, stored or introduced into a retrieval system, or transmitted, in any form, or by any means (electronic, mechanical, photocopying, recording or otherwise) without the prior written consent of the publisher. Any person who does any unauthorized act in relation to this publication may be liable to criminal prosecution and civil claims for damages. This book is sold subject to the condition that it shall not, by way of trade or otherwise, be lent, re-sold, hired out, or otherwise circulated without the publisher's prior consent in any form other than which it is published and without a similar condition including this condition being imposed on the subsequent publisher. Cover Image by Andy Martin, www.this-is-sunderland.co.uk.
..............................................................50 APEX 4..0: EA3 available .........12 APEX 4.0: New features application and description .........25 APEX 4...........................53 CD APEX 4..............................................0: My first plugin – editable select list/combobox ..............0 .....0: EA2 – Websheets ....64 ...0: Prepare application for upgrade .....5 APEX 4........54 CD APEX 4.......................................................................................................................31 APEX 4...............................57 CD APEX 4...............................................................0: EA available..............................................................................................................0: Dynamic Actions Part 1 ..........................................................................................................0 Websheets: Behind the scenes ..............................0: Highlights and video .....................................32 APEX 4........52 Countdown to APEX 4 Public Release ......................61 CD APEX 4..........21 APEX 4...................................0: Verifying imported application ............39 APEX 4.................0: Writing higher quality applications by using the Advisor .0: Import APEX 3..............0: Tree View vs Component View ..............................................................28 APEX 4....................................................................0: My thoughts after first round of playing .......45 APEX 4...........................51 APEX 4.........................0: New public packages................22 APEX 4.............................6 APEX 4......................................................0: Screenshots and first impression ......................2 app in 4...........................................................0: Utilities – upgrade application ...........................49 Nice Search in APEX 4.....................0 .............36 APEX 4...................Table of Contents About the Author ..........0: Dynamic Actions Part 2 .....................................................................................................
............72 Upgrade to APEX 4........75 Upgrade to APEX 4............................................................................................................................1 and beyond .............................76 Upgrading to APEX 4.....................................84 Oracle Application Express (APEX) 4...................................................0: Application utilities ...........2 released ..............79 APEX 4......85 ....................................................80 APEX 4......1 released .0: Tabular Forms ....................CD APEX 4............................................................................................0.....................0...........................................................................0: Templates .............................................82 APEX Patch 4.........................................74 Upgrading to APEX 4...............0: Tree .........67 APEX 4....0: Known issues – workarounds and patches .......73 APEX Patch 4..............................0: Feedback feature and team development .........................................0: jQuery................0: Into production ...
development.com.com).com) he shares his thoughts and experience about Oracle and especially Oracle Application Express. In 2008 Dimitri became an Oracle ACE Director. he lives in Leuven. From the very start he liked the Oracle database and APEX so much he never stopped working with it. Together with his family. Already at an early age Dimitri started with computers (Apple II. He’s also President of the OBUG (Oracle Benelux User Group) APEX SIG. IOUG Collaborate. Oracle ACE Directors are known for their strong credentials as Oracle community enthusiasts and advocates.blogspot. 5 . Dimitri is a frequent presenter at OBUG Connect. together with John Scott. UKOUG conference and Oracle Open World. His main expertise was in the database area. Dimitri then switched to another company to create an Oracle team and do pre-sales.apex-evangelists. In 2007 Dimitri co-founded APEX Evangelists (http://www. APEX Evangelists is a company which specializes in providing training.ABOUT THE AUTHOR Dimitri was born in 1978. On his blog (http://dgielis. IBM XT) and he quickly knew he would like to work with computers and especially with databases all his life. Dimitri began his career working as a consultant for Oracle Belgium where he got in touch with almost every Oracle product.gielis@apex-evangelists. Belgium. He likes to share his experience and meet other people. to later create and manage an Oracle Business Unit. You can contact Dimitri at dimitri. and consulting specifically for the Oracle Application Express product. In 2009 Dimitri received the "APEX Developer of the year" award from Oracle Magazine. but at that time he was also exposed to HTMLDB which was renamed Oracle Application Express later on. ODTUG Kaleidoscope. In 2000.
.-) 6 . This is exactly what we have in APEX. August 05. 2. so you know what is coming. You authenticate You need to select what you want through a menu You enter things in a form Validations click in to check if you do the right things Finally the process is run You can get your transaction as a printed report. 6. you should definitely have a look at it. no? Why make it complex if things can be simple .. History of Oracle Application Express I didn't know that Mike Hichwa was inspired by an ATM machine to create APEX.0: HIGHLIGHTS AND VIDEO Wednesday.0 presentation at ODTUG. 4. 5.APEX 4. to remember the highlights. and decided to share them in this blog post. 2009 If you didn't see the video or ppt of Mike Hichwa's APEX 4. 3. I decided to take notes during the video. So here you go. Basically an ATM is very simple: 1.
Picasa and Amazon. Plugins (in the Shared Components section). 5. So we would be able to create our own widgets (item types.g. the video talks about a plugin to get a video region. 9 . Flickr. or a star-rating item. E. so it will be preparsed and the query will run a lot faster.4. In the video you see the integration with Yahoo Maps. REST Web Services.0 will allow people to extend the built-in functionalities. APEX 4. Jason also mentioned that APEX Collections will get stored in an XMLType column. You would create these plugins in PL/SQL. region types). These plugins you can find on a specific site where people can share them. It will make things easier to integrate with other sites and applications.
Improved Application Builder. share reports. 10 . download the IR as a searchable html. E. very cool search functionalities with regular expressions.g. 7. Improved Interactive Reports. create your own "where" clauses inside your IR. E. be able to notify people when a specific report gets changed. make the most important button yellow. be able to provide saved reports (as a developer and not like now that the end-user needs to save the report).6. etc.g.
I already wrote some other blog post and posted a video over a year ago (!) about Websheets. I liked it a lot. so it will be a challenge to define the final list of which will be included and which will be postponed to APEX 4.0. October 28. but the tables will be defined in meta-data. but to be fair not all wizards were finished/polished yet and while I was testing I wanted even more features.. It will be "separate" from APEX. Everything is in meta-data.APEX 4. sharing of your data (security built in).1. 12 . flashback capabilities and so much more.. I spend quite some time at the demo ground to play a bit with APEX 4. TIP All the screenshots might look different when APEX 4.0. It has some other nice features like inline editing. add columns).0 hits the road.g. so don't take it for granted it will be like that in the final version.g. 2009 At the demo grounds of OOW09 the APEX Development team showcased APEX 4. This allows people to change the structure of the table on the fly (e. e." It's even easier and faster to create a Websheet than it is to create an APEX application. you create a Websheet or an APEX app.0 and have a real feeling about this new version.0: SCREENSHOTS AND FIRST IMPRESSION Wednesday. so Websheets are not based on real tables. There are only so many enhancement requests they can put in. definitely one of the reasons to go with APEX 4. I took some screenshots to show you how things look like and commented a bit on it. I see Websheets as "APEX lite" or "APEX for business people.
The search functionality there will save everybody a lot of time..) got extended.When you log in to APEX 4.. 13 . The new color is blue instead of green and it looks as if an enhanced version of Theme 20 is used. The quick links which I use a lot (edit page. wheel to access shared components.0 you see that the Application Builder has got a nicer look and feel. Drilling down into an application gives you the next screenshot.
15 . If you edit the Dynamic Actions you can change it even more.The different actions in Dynamic Actions through the wizard.
Before you could find that in Patrick Wolf's APEX Essentials. 16 . This will definitely mean everybody can do easier quality checks of their applications. One of the new items is the Advisor. So now it will be built-in and it got more enhanced as well.The Utilities section got revamped with more features and more logical organized items.
17 . the most important one I would say is the access to the plugins. APEX 4.Team Development will be another nice feature. to make our live easier but. This is an example of something we built ourselves. like a lot of the things we did before in our own way. The new Shared Components section got some more features. bugs and to-do's can be logged and be assigned to people. New features. too. It allows the people on the project to work more closely together and all throughout the APEX interface.0 will give you everything (or at least a lot) built-in.
You see which chart you 18 . As a frequent reader of this blog you probably know by now that Anychart 5 will be integrated in APEX 4. it makes sense to write a plugin.I'm expecting a lot of the ability to have plugins in APEX 4. so it makes it easy to reuse. I've certainly a couple in my head I'd like to write. If you do something in many projects and you can't use shared components for it. but it's just the fact that it opens up APEX in every way.0.0. The new wizard looks a lot cleaner.
19 . The screenshot below shows the new wizard for creating Maps.g.want and select that from the start in the wizard. Gauges and Gantts. There are also other types of charts available now e.
APEX 4.The next screenshot shows you the Enhanced Interactive Reports with a Map on the same page.0 brings us again to another level of web development in a declarative way. I think APEX 4. I already look forward to next year when we can develop with it. You'll be able to do things in an easier and faster way than ever before.0 will change the way we write applications. As you can see the Interactive Report got some new features like Group By. 20 .
The more feedback the better the production release .com/ .. Not all features are available yet (e. Oracle released the Early Adopter version http://tryapexnow. just got access to the new version and it looks cool so far ..0 now yourself. Websheets) but there are so many other nice things in there that it's definitely worth to have already a look now. 2009 You can evaluate Oracle Application Express 4. December 19.APEX 4.. So try it out yourself and give feedback to the APEX Development team.0: EA AVAILABLE Saturday..-) 21 .g.
You can view your page. from APEX 4.0 onwards. in the Component View: Or. 2009 The Application Builder and more in particular the Page View has two modes in APEX 4.APEX 4. as you know from earlier APEX releases. December 20.0: TREE VIEW VS COMPONENT VIEW Sunday. you have the possibility to view your page in a Tree View: 22 .0.
which is a big thing for me. • • • • • • • • • • APEX_APPLICATION_PAGE_DA APEX_APPLICATION_PAGE_DA_ACTS APEX_APPLICATION_PAGE_FLASH5 APEX_APPLICATION_PAGE_FLASH5_S APEX_APPLICATION_PAGE_IR_COMP APEX_APPLICATION_PAGE_IR_GRPBY APEX_APPLICATION_PAGE_IR_NTFY APEX_APPLICATION_TRANS_MAP APEX_APPL_PLUGINS APEX_APPL_PLUGIN_ATTRIBUTES 23 . or if I don't have a mouse). you can just drag-drop. I think in this view of the page you will make fewer "mistakes" and develop higher quality pages. the more I like it. But you might have to scroll and especially for big pages with lot of conditions and different branches it might be harder to follow the logic. You can just click on a link and it brings you to where you need to be.g. By hovering over items you get extra information (e. you can right-click on the items of the tree and depending what you clicked you get the possibilities of that item.2). E. The Tree View is a new view on an APEX page. You'll also develop faster. The more I use the tree. It's also more condensed. • • • Conclusion My first choice will probably become the Tree View. just because of the structure. if you want to put one item before another. on my Mac I need to click the CTRL button to mimic a right-click). as occasionally I probably want to go back there (developing mobile. conditions). It looks like there are 19 new APEX Views (compared to APEX 3. Double-clicking on an item brings you to the details. It's structured more logically (a bit like the events view in APEX 3. The only two drawbacks I see are that when I don't have a mouse with me. The Component View also works on your mobile device (nice if you have to do a quick update through your mobile phone).This is my view on it: • With the Component View you to see everything on the page at once.g. the other drawback is that it won't work on a mobile device. it gives you a ton of extra possibilities and ways to develop faster. and I'm starting to become a huge fan of it. But I do think the APEX Dev team should keep the Component View as well.g.x). it's harder to develop (e.1.
• • • • • • • • • APEX_APPL_PLUGIN_ATTR_VALUES APEX_APPL_PLUGIN_EVENTS APEX_APPL_PLUGIN_FILES APEX_TEAM_BUGS APEX_TEAM_FEEDBACK APEX_TEAM_MILESTONES APEX_TEAM_TODOS APEX_UI_DEFAULTS_ATTR_DICT APEX_UI_DEFAULTS_GROUPS If you go to Application Builder and select from the right-hand Tasks the "APEX Views" link you see a description of all views. 24 . the Team Development views are not listed in this report. It's always interesting to review these views as they give you more insight into your application. For the new views this is the description: For some reason. or to use them to have a look at the application behind the scenes. We have been using them for reporting an application or sending automated QA feedback.
0 is so much fun . It's the same (as far as I can see) as the flex-ws-api Jason Straub wrote. Doing research on APEX 4.-) 27 .SQL> desc apex_web_service This is a really cool package. If you need that already in APEX 3.x you can download it from the sample code website.
So how does this process look in APEX 4. e.0 includes so many nice features out of the box now. Some of us built a QA tool to check things by running a package/query or by using the Advisor Patrick built. Create shared components.0: WRITING HIGHER QUALITY APPLICATIONS BY USING THE ADVISOR Sunday. make sure security and performance are good by manually checking things. create shared components. etc. etc. December 20. Create page and check directly if it's "good" (see screenshot). views etc). Now that Patrick is in the APEX Development team.0? • • • • Create database objects. which you find in the Utilities section in APEX 4. Before (APEX 3. create application. add validations. 28 .0. The community built things around APEX (2.g.x) to help us. adapt pages..-) I'm doing these series of blog posts more from the perspective of what has changed and how your development effort will change by using APEX 4. hoping you changed everything correctly. Create application. it's nice to see a lot of this coming back as built-in components.0.2. Patrick Wolf made some great things (already some time ago now) like his APEXLib framework and the APEX Advisor. 3. but I think a lot of people didn't do that. I'm sure it will help to write higher quality of code. pages.APEX 4.x days and prior) the flow was like: create database objects (tables. This post is about the built-in Advisor. A change came in: adapt database objects. that you can't stop smiling . 2009 APEX 4.
Change pages and check your pages directly. It's amazing if you upload an existing application how many things the Advisor might suggest you have a look at .-) 29 . run the Advisor again for the entire application (see screenshot) and you are good to go. When all done.Change is coming in: • • • • Change database objects. Run the Advisor and see directly which items you need to change or where things fail.
I used Patrick's Advisor (for APEX 3. 30 . Also adding our own checks would be nice. every night). We would then email the results or store it in our QA repository. Now that it's built in it's so much easier. While I was discussing with John Scott he had a really good suggestion. but we could get around that already if we could just call the Advisor from pl/SQL. etc.Having this feature built in is awesome.g. it would be nice if we could schedule a run of the Advisor (e.x) before but sometimes I forgot to run it.
0 Screenshots and first impression APEX 4.0 EA available APEX 4. As I already mentioned earlier.0 Highlights and Video. These are in my drafts: • • • • APEX 4.0 Charts. The blog posts I did so far: • • • • • • • APEX 4.0 in January. Although this is not yet the "full" version of APEX 4.0 My first plugin APEX 4.0 I would already be happy to just get this. it's the best APEX version so far.0 EA. It looks good.0.0: new public packages APEX 4.0 Dynamic Actions APEX 4. I'm going to hold a little pause in doing blog posting on APEX 4.0: writing higher quality applications by using the Advisor APEX 4. Maps and Gantts APEX 4. 2009 In the last two days I developed with APEX 4.0: Tree View vs.0: dictionary views APEX 4.APEX 4. I plan to write more about APEX 4.0: MY THOUGHTS AFTER FIRST ROUND OF PLAYING Monday. There is a lot more to discover. Although I already played a bit during OOW it's different when you have some more time.0 Team Development 31 . so you might play with it and check other new features out. feels smooth and there are many new features. Component View APEX 4. December 21.
APEX 4.0: MY FIRST PLUGIN – EDITABLE SELECT LIST/COMBOBOX
You can see the Editable Select List Plugin working and be able to download it here. To install the plugin in your own application, go to Shared Components > Plugins and hit the Install button.
Tell it in which app it needs to be installed into (plugins are app specific).
And review the code, my plugin is called AE Sexy Combo, because it's based on the Sexy Combo jQuery plugin.
So now you should be able to create this item type on your pages. You add a new item of type Plugins and select the AE Sexy Combo.
You give it a name and you need to add a select statement to it (in the LOV section of the item) and it's ready!
APEX 4.0: DYNAMIC ACTIONS PART 1
Tuesday, January 26, 2010
This post will have a closer look into the Standard Dynamic Action. (Advanced will be covered in Part 2).
Next. you define what you want to do. So. 37 . the item(s) or region name. DOM Object and JQuery Selector. I told the dynamic action what field it had to enable/disable. this is used to define the actual event on the page that will cause the dynamic action to trigger.You will need to specify the selection type of the page elements that define when the dynamic action will fire. In my case I want to disable an item when the value of the select list is N and enable it again when the value is Y. Next. I want to fire the dynamic action when my P5_SELECT equals to Y and it looks for it whenever I change the select list. You see it live here. in the above example.g. e. you specify the event type for the dynamic action. the condition and value when the dynamic action needs to fire. You can choose out of: Item(s). Region. Depending on the type you chose you'll see different things to fill in. In conjunction with the triggering elements defined in the "When" region. Finally.
APEX 4.0. "Advanced" allows you to create more complex native Dynamic Actions such as "Add Class" or "Set Value" and also plugin Dynamic Actions." Right-click on that and click Create. you should read this blog post. that are installed in your application. In this post I'll cover how to create an Advanced Dynamic Action. 39 . In this example I want to retrieve the department for a given employee. In the Application Builder you find a new region (tree record) called "Dynamic Actions.0: DYNAMIC ACTIONS PART 2 Monday. February 22. 2010 If you are interested in a Standard Dynamic Action in APEX 4.
that does more than just show/hide or enable/disable. 40 .In this post we select Advanced. Give the dynamic action a meaningful name e.g. as we want to create an Advanced Dynamic Action. Refresh Employee List.
Select the action you want to do.Tell the dynamic action when it needs to fire. The value can be retrieved in a number of ways. but in this case I search the department with a SQL Statement. In this example I want to set the value of an item (the department) for an employee. In this case I want that something happens whenever I change from Employee (P25_EMPNO). 41 .
you find them in there too. In Part 3 I'll show how to combine plugins with Dynamic Actions to be even more powerful! 43 . If you imported or created Dynamic Actions plugins. Although the above is classified as an "Advanced Dynamic Action" it's still a fairly simple example.There are many Actions you can choose from. Dynamic Actions are VERY. VERY powerful and have an unlimited amount of possibilities.
APEX 4.0 EA2 the Websheet functionality is enabled. You can type the content with the WYSIWYG editor (CK Editor) by clicking on the arrow button. Let's have a look at an example.0: EA2 – WEBSHEETS Thursday. 45 .0 there is a new type there called "Websheet Applications. March 04." We create a new Websheet Application and give it a name and possibly some content that will appear on the home page. Websheets allow you to share information with others in a very quick. 2010 In APEX 4. user-friendly and secure way. If you go to Application Builder in APEX 4.
Before it creates the Websheets. Websheets are even simpler to create than a normal APEX (database) application. You can just use all that. But you can change that by going into the Websheet Properties to Public Access. LDAP or Custom. Single Sign On." As a default Authentication mechanism it uses the Application Express Account. A whole framework is built for you with a lot of features out of the box. the wizard gives a summary page and that is it. 46 . You can compare Websheets with a preconfigured APEX application. When you run the Websheet from the App Builder you come into "Websheet-land.
files. If you go to Data > Data Grids and create a new Data Grid. you come into the Websheet Framework. all with a (WYSIWYG) html editor. sections. There's a lot to explore there! In the different sections of the page you also have Edit links. etc. The information is done through using pages. In the top menu and on the righthand side you see what you can do.g. you can add pages. you have the choice to start from scratch or from Excel/Text with copy/paste.When logged in. just like you do in a wiki/CMS. E. sections. we can change the Websheet. which allow you to easily change the text. But where it outperforms all the typical wiki or content management systems is with the data part! One of the killer features of Websheets are the Data Grids. As we have Websheet Development Access. I see two big parts of Websheets. sharing information and data. data grids. That allows you to create "a table" on the fly which holds your data 47 . tags. etc.
it starts with ws?p . .-) 48 .. It doesn't start with f?p. There's the wiki part.(actually it's a record in the Websheet repository).. dashboards. the administration (security. This Data Grid look very similar to an Interactive Report (see Actions button)... but it allows to do inline editing and a lot more (see Manage button)! Websheets are too big to discuss in one blog post. Maybe one last thing: look at the url of a Websheet (login with end/end). There are so many areas which could be covered. the data part.
g. There is an APEX 4.0: NEW FEATURES APPLICATION AND DESCRIPTION Sunday.0. you reviewed EA1 but want to see what is new in EA2). the screenshots below show the new features for tabular forms in action. March 14.0 Early Adopter I and II. If you want more detail about the new features and when they got introduced (e. 2010 If you didn't have time to review APEX 4. e.0 New Features Application which shows a lot of the new features in action. you can do that now.0 New Features Description. I find it very useful to have something like above.APEX 4. you can go to the APEX 4.g. but you want to have a quick look what new features will be in APEX 4. 49 .
In short. eh? 50 .0 they improved the navigation. 2010 I like to get where I need to be in the fastest possible way. In APEX 4. etc. which is a very intelligent search! I typed 11675:1 and it went straight to page 1 of application 11675! In the search you can also type table names. April 29. Cool.NICE SEARCH IN APEX 4. and it will show a list of every component you used that table in. On the top right you have a search box.0 Thursday. the search is very powerful.
00.33. so it's definitely time to test it out if you didn't do it yet. so you can expect new training material very soon. May 10.0 training and I'm working with the Oracle User Groups to do APEX events to showcase this new release in many other events.0. The new build is Early Adopter 3 and has release number 4.APEX 4. APEX 4. I'm currently updating our training material to this new release. We plan to do some APEX 4.0: EA3 AVAILABLE Monday.0. 2010 APEX 4. 51 .0.0 applications significantly.0 is definitely the biggest release ever and it will change the way you develop Web 2.0 just got a new refresh with the latest build. This should be the final beta before the release of APEX 4.
. To find the tables you have to escape the $ sign. But I didn't notice before. Firstly. then SQL Workshop finds the tables. However if you type APEX$ in the search it doesn't find the tables.0 WEBSHEETS: BEHIND THE SCENES Wednesday. 50 numbers and 50 varchar2 columns. you want to type APEX$ as they all start with that. it's commonly known there are 50 date. if you want to search in SQL Workshop for the Websheets table. so I find it interesting to see there's already something in Websheets for that. June 16. when you have a closer look at the columns. Secondly. 2010 Tomorrow during my presentation about Team Collaboration in APEX 4.APEX 4. there is also a Geocode column in the definition of the table. 52 . While I was going over my presentation again I came across two things I thought are interesting.0. The last weeks I'm involved in a project that uses Geocodes. I'll talk about Websheets.. so your search becomes "APEX\$".
COUNTDOWN TO APEX 4 PUBLIC RELEASE Monday.0. we can start to count down for the public release! So I made a bet with myself. June 07. Time will tell. so I should be fine on that side.0 I'll blog about another new feature! The way I'll do it.oracle. DG Tournament is an existing application I originally wrote in 2006 and upgraded along the years with the new versions of APEX. But maybe they will be really fast in shipping this release and I won't have enough time to get the app migrated. but there are over 170 new features in APEX 4. Every day till the public release of APEX 4.com) in the production release of APEX 4. I've no idea how much longer the public release will take. What do I hope to show you? • • • • How to move from APEX 3.0.0 Show new ways of doing your development Rewrite existing (custom) functionalities by making use of built-in APEX 4.2 to APEX 4.0.. 2010 As the APEX Development team took the last step (upgrade of apex. is simple: I'll migrate the DG Tournament application to APEX 4.. 53 .0 features Incorporate new features.
I'll use apex." So let's start with preparing our application to move to APEX 4. I'll make use of the Supporting Objects feature in APEX to include all my database objects and data with my application (just like you have with a packaged application).0: PREPARE APPLICATION FOR UPGRADE Monday.0.oracle.0 Public Release. so I can quickly go from my current server and install it on the APEX 4. The first thing I have to do is to package my current application (APEX 3. I need a SQL script with all my database objects and data. June 07.0 where you try your production application before "going live. To get such a script I'll use SQL Developer (or you might already have the scripts in Subversion or so). But before I can use it." I'm going to do the same.com as my test instance of APEX 4.2).0 test server.CD APEX 4. As you probably will create a test instance with APEX 4. 2010 This blog post is part of a series posting "Count Down to APEX 4.0. 54 .
55 .In SQL Developer I go to Tools – Export Database and I'll follow the wizard to include all my objects. The final step will show you an overview of the objects it will include in the script. Click the Finish button and wait for the script to generate.
. Save the file somewhere because. So stay tuned. 56 .0.. In the Installation Scripts section you should see something like this: Next you can take an export of your application.Next you can upload this script into the Supporting Objects section of APEX. we are going to import it into APEX 4. tomorrow.
we took an export of our application and included the script to create the database objects and data in the Supporting Objects of APEX.0: IMPORT APEX 3." Yesterday. The file will import into the APEX Repository.CD APEX 4. Next we have to install the application.0 Public Release. so click the Next button. In the Application Builder click on the Import button and select the exported file.0. So the only thing we need to do now is import our application in APEX 4. 57 .2 APP IN 4.0 This blog post is part of a series posting "Count Down to APEX 4.
When the installation of the application is finished. Finally click the Install button which will install the application into your workspace. the wizard won't stop yet. So the wizard asks if you want to install these Supporting Objects as well.Select the parsing schema and how you want the Application Id assigned to it. so click Install. We get a confirmation message which asks if we are sure we want to go further with the install. As we need the database objects and some data we click Next and make sure the Yes option is selected. 58 . as we have Supporting Objects included in the export file.
Most of the errors were data related. 59 . In my case I got a few errors. It's a pity SQL Developer wasn't able to produce me a "correct" SQL which just works.The wizard comes back with the result of the install of the Supporting Objects. When you click on the Install Summary button you can review the outcome.
. You can just upload your new file to SQL Workshop and run it from there. Separate scripts for database objects and data 3. So.com) 2.In this case I prefer to build a new script. delete my objects in APEX 4.oracle. Datapump when possible (in my case I can't use it as I don't have direct access to the database of apex. but that is for tomorrow. whenever you finished with the database objects and loading the data. You don't need to install the full application again. 60 . as that was successfully installed.0 and rerun the script for creating the database objects.. we can go further with real APEX 4.0 features. Depending the size of the script upload to Supporting Objects or run manually (for really big data sets you can't use APEX to upload your data). To get data or database object from one database to another I prefer the methods in this order: 1.
but I'll use one. It's not my goal to explain all of them in this blog post. The Advisor will look at my application and tell me what is not correct. and security. 62 . So we click on the Advisor button (bottom left). he!? In the navigation bar we click on the Application Utilities icon. the Advisor. We want to leave the default checks like that and click on the Perform button. As you can see. the Advisor will check for errors. Cool.Now I'm going to use a new feature of APEX 4.0: the Advisor. We get to a page with a lot of nice utilities. performance. etc.
0 I'm using the Advisor constantly. Back to the app. I didn't look yet if there's an API available to do this now. now it's time to verify the recommendations of the Advisor and adapt accordingly. I'll use another exciting feature which you also find in Application Utilities (screenshot on this page)! Anybody want to guess which feature I'll use? 63 . Whenever I want to do a release I run the Advisor for the full application.. Tomorrow. Depending on the size of the application it can take seconds or minutes.. but a few people.We'll keep that running for some time. It looks like I've some things to look at! In APEX 4. Whenever I finish a page I let the Advisor run for that page. including myself. mentioned this at EA1. It would be nice if we could get this Advisor to run every night and get the outcome by mail the next morning. Finally there are the results.
As I said yesterday. so we won't need to add an extra validation in (like we had to do in APEX 3." In the previous posts we imported our application (and database objects) in APEX 4. This is the fastest way to make use of the latest features of APEX 4. 2010 This blog post is part of a series posting "Count Down to APEX 4. That is what they mean with the first (Update Value Required Item attribute to Yes) Enabling a lot of new features for the Interactive Report Upgrade all your charts (based on Anychart 3) to the new charting engine in APEX 4. E. that can be specified native in APEX 4. June 10.CD APEX 4.0 and ran the Advisor to check that the application didn't have any errors.0: UTILITIES – UPGRADE APPLICATION Thursday.0.0 (Anychart 5) 64 . but this time we click on the "Upgrade Application" button (second left from the bottom).x).0 Public Release. The following screen displays the available upgrade types along with the number of objects that can be upgraded.0 and do a bulk upgrade of the different components (new features). we are going again to Utilities.g. • • • • You can replace the old date picker with a new one If a value can't be null.
So click on the Upgrade Application Summary link in the breadcrumb (or you can select another type from the drop down). The only thing I would be aware of. I clicked on the Date Picker upgrade link. 65 . you'll see that the ones that are already upgraded won't appear anymore. you need to make sure you undo that before/after you migrate. We can now do the same for the other types. First.g. We select the ones we want (check box in front of the records) and click the Upgrade button. is if you used a workaround against a problem (e.So we click on the candidate objects count to review the candidates. the LOV's null). It will come back if it successfully upgraded the components.
Yesterday Roel knew the answer what my topic of today was going to be.. you see the updated app in APEX 4.-) 66 ..Finish them all and you are ready for the day again.. you have an idea what I'll do next? You have more options now.0 here.. no? .
don't like and want improved. you get a popup to enter feedback information. 68 . which. Now people can tell you what they like. As a default you get the above items on your page. if you click on. but you can add that like you wish.0. So you can manually do these steps too.That's all you have to do to enable feedback for your application... Enhancement Request or Bug. The Feedback Type can be off: General comment. I just got the Feedback button (link). The wizard created a new page and an entry in the navigation bar (which you find in Shared Components). all that information will appear in the Team Development section of APEX 4. I literally didn't have to do anything else. As I already included the navigation bar in my custom look and feel of DG Tournament.
69 . As you can see.submit_feedback package is used to get the data into Team Development. we see a dashboard of all the feedback for the applications in this workspace. to do entry or a feature. I can now convert the feedback into a bug. The most right-side button is Feedback. When we click on that. I entered three feedback comments. but I didn't treat the comments yet.If you look at the Page Process of the Feedback Page you will see the apex_util.
you can see open. closed or all and can see the feedback in Extended or Basic modus.We'll click on the Feedback tab and see all of the feedback. You have different views of this feedback. You update the feedback entry and can change the status. From this screen you click on a Feedback entry. 70 . etc.
It's all in Team Development. I didn't touch the Milestones. but it’s worth having a look at those as well. I would let people test our migrated application and ask to enter their comments as feedback. I. Features. would do the same. To-Dos and Bugs. It gives me (and project manager and other developers for larger projects) and the customers insight into what has to be done and we can properly plan. as a developer.That is how I would go forward. 71 .
0 production release at this very moment. the day we all waited for :-) You can download APEX 4. 2010 It's finally there. June 23. 72 ..0: INTO PRODUCTION Wednesday.APEX 4..
it's also mentioned there. 2010 If you upgrade your application from APEX 3.0: KNOWN ISSUES – WORKAROUNDS AND PATCHES Wednesday.x to 4.0 and I talked about some of the issues I discovered and how I worked around them.2 to 4. too. 73 .0. Oracle is working hard on a patchset (4. On the Known Issues page you see the issues categorized nicely.0. I plan to write some other blog posts with steps I did when upgrading DG Tournament to APEX 4. At ODTUG I did a live migration of an application written in APEX 3.0 you might encounter some issues. On Metalink you can already find patches for specific issues. August 04.1) and they hope to release it soon. If the issues can be fixed by working around it. You also might have seen my previous posts where I upgrade DG Tournament from APEX 3 to 4. I'm doing the same presentation at APEXPosed in Brussels in October.UPGRADE TO APEX 4.
0.1.0. 2010 Hi! Just read Joel Kallman's post that the Oracle Application Express (APEX) team released 4.03. August 18.1 release and install that.00.0 you can directly download the 4. I recommend going to 4.1 RELEASED Wednesday. If you still have 3. 74 .0.0 installed.0.0.0.x running and want to upgrade to 4.1 as soon as possible if you have 4.1 which corrects a number of issues found in APEX 4. The new version of APEX is 4.APEX PATCH 4.
The enhancement I want to discuss in this post is Adding a row to the tabular form. so finally. To make use of these enhancements requires some manual changes of the page the tabular form is on. so when you upgrade your existing APEX 3. 2010 It was a long time ago I promised this post.UPGRADE TO APEX 4. but they should still work like they did before. September 13. In APEX 4.0: TABULAR FORMS Monday. today. 76 .0 the Tabular Forms got enhanced quite a lot.x (or older) applications the tabular forms are not upgraded automatically (or at least not completely). I found some time to finish the post.
'Add rows to tabular form') It results in the output below.To identify the pages you have to change manually I use this query: select WORKSPACE.0 related to tabular forms: if you still used an old template layout.0. PROCESS_NAME from APEX_APPLICATION_PAGE_PROC where PROCESS_TYPE in ('Multi Row Update'. 78 . and shows which pages you still have these processes on: Another thing I found while upgrading my applications to APEX 4.1 patch (see patch notes). APPLICATION_ID. APPLICATION_NAME. PAGE_ID. PAGE_NAME. the new functionality didn't work (missing of some tokens) and some other things which got already fixed in the 4.
I've applications that were initially built in APEX (HTMLDB) v2 and others built straight with APEX 3. September 06. I also try to update it to a nicer and more up-to-date look and feel. Some applications used a built-in theme. I verify my custom templates to support the new APEX 4..0 features more div/css based layout.0 and thought to share my thoughts on the Theme and Templates part of the application. but more had a custom look and feel.UPGRADING TO APEX 4. but I did have issues when I used templates which didn't have all tokens (#. The reasons why I'm following this approach are multiple: • • • • • better w3c compliant easier for screen readers (for disabled people) fresher and more up-to-date look and feel support for all new APEX 4. I'm personally following the path of installing a new APEX 4. 2010 In the last week I migrated more applications from APEX 3.x. with tabular forms (but I'll do a specific blog post on that – and is already a known issue).x to 4.0 features. Most migrations went OK. which makes it more clean and easier to adapt in the future.0 theme for my application and applying changes to that to get the same look and feel I had before. Or at least.0: TEMPLATES Monday.g.. But obviously you should decide yourself if it's worth updating your templates in your applications.# things in html that get replaced at run time by APEX) e. 79 .
it's easy to find for that person. but that got changed. E. I find it easy to see the pages for that section of the application and I can verify if my security model is fine on these pages. September 09. 2010 I tend to use the grouping functionality to logically group my APEX pages.APEX 4.g.g. You can also use ranges of pages for the different sections of the application. I've a group called "Admin" which hold all the Admin pages. 80 . E. E. the Grouping of Pages was in the Task area on the right-hand side of the page.0. Now you find a lot of the Goodies in "Application Utilities" (see red arrow in the quick pick icons).0: APPLICATION UTILITIES Thursday. the pages should be protected with the Admin Role.g. 10000–20000 is for Admin pages. If I tell my colleague to go and change the Admin section. It also helps me to separate the work between developers. Before APEX 4.
81 .0. the grouping feature is a bit more tucked away in APEX 4. for example).Clicking on that link will give you access to the Application Dashboard. On that page. So. you'll see Page Specific Utilities. to rename my pages. Clicking on the "Cross Page Utilities" link will give you the links for grouping pages or bulk editing them (a feature I use a lot too. but then you get a more logical grouping of features you can do. on the right-hand side. the Upgrade Application wizard and many other features.
0: TREE Friday. it also looks a lot better.x.APEX 4. The only catch is that the query is not that straightforward. It's really cool and a lot better than the previous tree in APEX 3. October 08. 82 . 2010 In APEX 4. When you navigate throughout this tree there is no submit anymore.0 there's a new Tree Region.
as the example below is missing the level column! Anyway. check out the tree. etc. you'll see the explanation what columns the query should have. Be careful. it's definitely something that people seem to like. 83 .If you look under the query.
2010 Just a quick note to say that there's a new patch for Oracle Application Express that fixes a number of issues and also adds some enhancements to APEX (e.APEX PATCH 4. 84 .0. Thumbs up for the APEX Development team for giving us these nice additions and the fixes.g. etc. API additions to APEX_UTIL. two new themes. November 20. Joel Kallman from the APEX Development team wrote a good blog post about it.2 RELEASED Saturday.) To download and read more about the patch set.
reports.1 will focus on enhancement to existing functionality and additional capabilities to support applications running on mobile devices. Plugins – Add plugin support for additional components and enhance plugin definitions. 85 . Websheets – Allow for greater control over user interface. Error Handling – Improve error handling and user-defined exception processing. Application Express 4. new page section types. Dynamic Actions – Enhance conditional processing and allow Dynamic Actions to be defined for tabular forms.1 is planned to incorporate the following: • • • • • • • • • • • • • • Development for Mobile Applications – Include themes and HTML templates suitable for smart phones and mobile devices. Oracle Application Express 4. Master-Detail-Detail – Allow the generation of pages to support master-detaildetail relationships. As we can read on that page. Interactive Reporting – Allow multiple reports on one page and support pivot queries.1 AND BEYOND Wednesday. Accessibility – Improve accessibility in existing themes and HTML templates.ORACLE APPLICATION EXPRESS (APEX) 4. Numerous functional and performance improvements. 2010 The APEX Development team updated the Statement of Direction for the future releases of Oracle Application Express. and enhanced spreadsheet / datagrid integration. Charting – Provide for chart rendering without using Flash (to enable display on mobile devices). Data Upload – Enable end-users to upload data into an existing table (within an application). November 17. Tabular Forms – Allow multiple tabular forms on one page and continue to expand tabular forms validations. and buttons. Use of ROWID – Allow usage of ROWID for Automatic DML processing (as an alternative to identifying the PK columns). Modal Dialog – Add ability to display a dialog on top of a page (the rest of the page will be grayed out).
-) 86 . too. This solution I actually showed at Oracle Open World.1 or later.0 and you don't want to wait till 4. so if you are on APEX 4. something is coming .Great features I would say! For many of the above items we work around them with some handwritten coding. no worries. As many of you know. We plan to release these nonFlash based charts soon too. I'm a heavy supporter of charts and dashboards and we've already been working on a non-Flash-based charting engine for the current release of APEX.
For the latest information and pricing on all Red Gate's tools. visit www.Oracle tools from Red Gate Software All information and prices correct at the time of going to print.com .red-gate.
WOW!!!! Exactly what I'm looking for. Hewlett Packard Visit www.$595 The Deployment Suite for Oracle Better. free trial of all our Oracle tools . to test. faster. "One word.com for a 14-day. Works like a charm. 11g The Deployment Suite for Oracle contains: Schema Compare for Oracle Compares and deploys Oracle database schemas Data Compare for Oracle Compares and migrates Oracle database contents Schema Doc for Oracle 1. With multiple developers posting changes into a dev database. this allows me to generate a script to sync up and compare the two schemas." Al Drozd Senior Application Developer. more accurate deployment Eliminate mistakes deploying Oracle database changes from dev.. 10g.red-gate. to production Troubleshoot and fix errors caused by differences in Oracle database schemas and data Generate SQL scripts to migrate table contents from one database to another Automate schema deployments using the command line tool Eliminate tedious and time-consuming manual tasks by automatically generating documentation Satisfy audit requirements by keeping complete documentation Supports Oracle 9i..0 (due for release Q2 2011) Automatically generate Oracle database documentation.
We strongly believe that only by working with the best people can you deliver the best solutions. By working with the APEX Evangelists team you will receive a secure. Whether you're a small company on a tight budget. APEX Evangelists can provide the right Oracle Application Express solution for you. Consulting and Training for clients using our team of highly trained and qualified Oracle specialists from around the world.apex-evangelists. Visit www. professionally designed Oracle Application Express solution that not only fits your requirements today but will also scale as you grow.apex-evangelists. or a large multi-national corporation looking for a rapid turnaround.Apex Evangelists Apex Evangelists www. each of whom is an expert in web development using Oracle Application Express.com APEX Evangelists provides real world Oracle Application Express Solutions.com .
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.