Index
Index 2
Why I use Linux and Firefox
HTML DB & Javascript
The Basics
Enable/Disable Form Items
HTML DB Javascript Remix
Show/Hide/Toggle Form Items
htmldb_Get Introduction
AJAX & DHTML
AJAX
Set Multiple Items
(AJAX) Auto Update Report
(AJAX) Collection Control
(AJAX) Process On Demand
(AJAX) Report Pull
(AJAX) Report Row with Detail
(AJAX) Select Items
(AJAX) Set Item Value
(AJAX) Tree
htmldb_Get Aysnc Extension
DHTML
Form Element Focus
Progress Meter On Submit
Region Tabs
Report Row With Detail (iframe)
Report Row with Detail
Shuttle (Item Based)
Shuttle (PL/SQL Based)
Smart Table
List (DHTML Tree)
Show/Hide Report Columns
HTML DB Usage
Linked Reports
HTML/CSS/Layout
HTML DB DHTML Tree
Region Position
Report Row Templates
Multi Region Form Layout
Vertical Aligned Regions
Layout Example
SVG / Canvas
Canvas #1
Custom Charts
Thermometer
Scatter (Coming Soon)
Timeline (Coming Soon)
SVG Knowledge Tree
Pie Chart CSS
Bar Spacing
Application Exports / CSS / JS
Ondemand Example
Index
>
AJAX and DHTML
>
Ondemand Example
On Demand Test
Text to Send to Process
Text Drop
Code
Step 1: Create Page 0 if needed
Step 2: to create ondemand application process
Step 3: hook up to javascript
Javascript Code
<script language="JavaScript" type="text/javascript"> <!-- function f_TestOnDemand(){ var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=mytestprocess',0); get.add('TEMPORARY_ITEM',html_GetElement('P11_TEST').value) gReturn = get.get(); if(gReturn){ html_GetElement('P11_TEXT_DROP').value = gReturn }else{ html_GetElement('P11_TEXT_DROP').value = 'null' } get = null; } //--> </script>
Ondemand Process
declare l_counter number; l_o_name varchar2(2000); begin htp.prn('<body>'); htp.prn('<desc>This was just put into session in Application Item TEMPORARY_ITEM</dec>'); htp.prn('<payload id="test">'||v('TEMPORARY_ITEM')||'</payload>'); htp.prn('</body>'); end;
Links
Forum Message