The Progress Bar can display custom formatted text as shown in this sample as "rows".
The following is an example of how to use the PL/SQL API inside a page process :
declare
l_processname varchar2(128 char) := 'PROCESS_01';
begin
UC_PROGRESSBAR_PKG.start_process(p_process_name => l_processname,
p_maxval => 10000);
for i in 1..20
loop
-- Pause for 0.5 second.
UC_PROGRESSBAR_PKG.set_status(p_process_name => l_processname,
p_value => i*500);
sys.DBMS_SESSION.sleep(0.5);
end loop;
UC_PROGRESSBAR_PKG.stop_process(p_process_name => l_processname);
end;
Text options for the plug-in are set inside "JavaScript Initialization Code". With the "textTemplate" style option text otput template can be defined.
function( pOptions ) {
pOptions.style.textTemplate = "%0 of %1 rows";
pOptions.style.completeText = "Completed!";
return pOptions;
}