On February 21st I did a presentation on CodeGen at AMIS. Just a short presentation on what is possible using this great tool. I have created a couple of questions for the hands-on part of the session.
Assignment 1: Build a script that shows the contents (describe) of a table.
Assignment 2: Build a script to create the table.
function showHide(ADiv) {
if (document.getElementById) { // DOM3 = IE5, NS6
divhandle = document.getElementById(ADiv).style;
} else {
if (document.layers) { // Netscape 4
divhandle = document.ADiv;
} else { // IE 4
divhandle = document.all.ADiv.style;
}
}
if (divhandle.display == "") { // shown
divhandle.display = "none";
} else { // hidden
divhandle.display = "";
}
}
Resolution
Assignment 3: Retrieve DATA from the CD-Collection table, make it into an HTML file.
function showHide(ADiv) {
if (document.getElementById) { // DOM3 = IE5, NS6
divhandle = document.getElementById(ADiv).style;
} else {
if (document.layers) { // Netscape 4
divhandle = document.ADiv;
} else { // IE 4
divhandle = document.all.ADiv.style;
}
}
if (divhandle.display == "") { // shown
divhandle.display = "none";
} else { // hidden
divhandle.display = "";
}
}
Resolution
Assignment 4: Create JAVA classes and PL/SQL Code for a table Example taken from: Oracle and Java Stored Procedures http://www.developer.com/db/article.php/3337411
function showHide(ADiv) {
if (document.getElementById) { // DOM3 = IE5, NS6
divhandle = document.getElementById(ADiv).style;
} else {
if (document.layers) { // Netscape 4
divhandle = document.ADiv;
} else { // IE 4
divhandle = document.all.ADiv.style;
}
}
if (divhandle.display == "") { // shown
divhandle.display = "none";
} else { // hidden
divhandle.display = "";
}
}
Resolution