The following lines contain the word 'select', 'insert', 'update' or 'delete':
l_message varchar2(240) := 'Please select a Page';
select ip.page_id, ipt.page_name, ip.page_type
from icx_pages ip,
icx_pages_tl ipt
where ip.user_id = l_user_id
and ipt.language = userenv('LANG')
and ip.page_id = ipt.page_id
and ip.page_type in ('USER', 'SEED')
order by PAGE_TYPE DESC, SEQUENCE_NUMBER;
select MAX(page_name)
into l_page_name
from icx_pages_tl
where page_id = p_page_id
and language = userenv('LANG');
if (p_mode = 'DELETE') then
l_title := wf_core.translate('ICX_CONFIRMTITLE');
htp.p('function selectTo() {
alert("'||l_message||'");
htp.p ('function applyDelete(url){
top.opener.parent.location = url;
elsif (p_mode = 'DELETE') then
l_function_syntax := 'javascript:applyDelete('''||'icx_define_pages.savepage?p_mode=DELETE&p_page_id='||p_page_id||''')';
htp.p('
htp.formSelectOption(cvalue => wf_core.translate('ICX_PREDEFINED'),
cattributes => 'VALUE="'||to_char(rec.page_id)||'"');
htp.formSelectOption(cvalue => rec.page_name,
cattributes => 'VALUE="'||to_char(rec.page_id)||'"');
htp.formSelectClose;
if (p_mode IN ('RENAME', 'DELETE')) then
htp.tableRowOpen;
update icx_pages
set SEQUENCE_NUMBER = l_position
where user_id = l_user_id
and page_id = TO_NUMBER(l_page_id);
elsif (p_mode = 'DELETE') then
-- Set the new page name
oracleconfigure.deletepage (p_page_id => p_page_id);
select ip.page_id, ipt.page_name
from icx_pages ip,
icx_pages_tl ipt
where ip.user_id = l_user_id
and ipt.language = userenv('LANG')
and ip.page_id = ipt.page_id
and ip.page_type = 'USER'
order by ip.sequence_number;
l_message := wf_core.translate('SELECT_PAGE');
htp.p('function selectTo() {
alert("'||l_message||'")
}');
htp.p('function deleteBlankRowIfNotEmpty(toList)
{
var idx = -1;
{ // go through the list and get all selected items
for ( i = 0; i <= toList.length-1; i++)
{ // if the item is selected then swap it
if (toList.options[i].selected)
{ // check if it is not the first item
if (i != 0)
{
swap(toList.options[i], toList.options[i - 1]);
toList.options[i - 1].selected = true;
toList.options[i].selected = false;
{ // go through the list and get all selected items
for ( i = toList.length-1; i >= 0; i--)
{ // if the item is selected then swap it
if (toList.options[i].selected)
{ // check if it is not the first item
if (i != toList.length-1)
{
swap(toList.options[i], toList.options[i + 1]);
toList.options[i + 1].selected = true;
toList.options[i].selected = false;
{ // get the first item selected which needs to move to top
iSelected = toList.selectedIndex;
if (iSelected == 0)
return;
for ( iMoveTop = 1; iMoveTop <= iSelected; iMoveTop++)
{ // get the last item selected which needs to move to bottom
for ( i = 0; i <= toList.length-1; i++)
{ // if the item is selected then swap it
if (toList.options[i].selected)
iSelected = i;
if (iSelected == toList.length-1)
return;
iSelected = toList.length - 1 - iSelected;
for ( iMoveDown = 1; iMoveDown <= iSelected; iMoveDown++)
var temp=document.PageList.C.selectedIndex;
selectTo();
htp.p ('function Delete() {
var temp=document.PageList.C.selectedIndex;
selectTo();
'/icx_define_pages.DispPageDialog?p_mode=DELETE&p_page_id="+ valuestring,
"EditRegion", "statusbar=Y,resizable,width=575,height=300");
var temp=document.PageList.C.selectedIndex;
selectTo();
document.updatePageList.pages.value = "";
document.updatePageList.pages.value = document.updatePageList.pages.value + ":" + document.PageList.C.options[i].value;
document.updatePageList.submit();
htp.p('
htp.formSelectOption(cvalue => rec.page_name,
cattributes => 'VALUE="'||to_char(rec.page_id)||'"');
htp.formSelectClose;
htp.formOpen('icx_define_pages.OrderPages','POST','','','NAME="updatePageList"');
l_actions(6).name := 'DeletePage';
l_actions(6).text := wf_core.translate('DELETE');
l_actions(6).action := 'top.main.Delete()'; -- put your own commands here