This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT emp.empno | |
, emp.ename | |
, emp.job | |
, NVL(TO_CHAR(emp.mgr),'-') mgr | |
, TO_CHAR(emp.hiredate, 'DD-MON-YYYY') hiredate | |
, emp.sal | |
, emp.comm | |
, emp.deptno | |
FROM emp | |
, dept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM dept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Folders --> | |
<section id="knockoutSection" class="col col-4"> | |
<nav> | |
<ul class="departments" data-bind="foreach: departments"> | |
<li class="" data-bind="text: $data, | |
css: { selected: $data == $root.chosenDeptId() }, | |
click: $root.goToDept"> | |
</li> | |
</ul> | |
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section#knockoutSection{ | |
background:#f8f8f8; | |
} | |
nav{ | |
background:#e8e8e8; | |
padding:10px; | |
margin: 0px; | |
} | |
nav ul{ | |
margin: 0px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getJSON( "/pls/apex/vincentdeelen/hr/dept", function( data ) { | |
depts = $.map(data.items, function (el) { | |
return el.dname; | |
}); | |
ko.applyBindings(new EmpDeptViewModel()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
var depts; | |
// Functions | |
function EmpDeptViewModel() { | |
// Data | |
var self = this; | |
self.departments = depts; | |
self.chosenDeptId = ko.observable(); | |
self.chosenDeptData = ko.observable(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parent.closeIFrame() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function closeIFrame(){ | |
$('#parameterFrame').dialog("close") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#iframeContainer').append(frame) | |
$('#parameterFrame').dialog({ modal:true | |
, height:400 }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( $('#parameterFrame').length >0 ){ | |
$('#parameterFrame').remove() | |
} | |
var reportId = $v('P100_REPORT_ID') | |
var url = 'f?p=&APP_ID.:200:&SESSION.:&REQUEST.:&DEBUG.:200:P200_REPORT_ID:' + reportId | |
, frame = $( '<iframe></iframe>' | |
, { id : "parameterFrame" | |
, class : "iframe" | |
, frameborder : 0 | |
, src : url |
NewerOlder