Пример открытия диалогового окна с помощью jQuery.
Создаете кнопку, в свойстве "Action When Button Clicked / Action" установите "Redirect To URL", в "URL "Target" пропишите следующий код:
javascript:$('<div></div>').appendTo('body')
.html('<div style="display:table;"><div style="display:table-cell;"><img style="width:64px;height:64px;" src="/i/menu/todo_64.gif"></div><div style="display:table-cell; vertical-align: middle;">Запустить процесс за &P1_MONTH_NAME.?</div></div>')
.dialog({
modal: true, title: 'Диалоговое окно', zIndex: 10000, autoOpen: true,
width: 'auto', resizable: false,
buttons: [
{
id: 'ui-dialog-button-yes',
html: '<span style="width:40px;">Да</span>',
class: 'button-alt1',
click: function () {
$(this).dialog("close");
apex.submit({request:"START",showWait:true});
}
},
{
id: 'ui-dialog-button-no',
html: '<span style="width:40px;">Нет</span>',
class: 'button-default',
click: function () {
$(this).dialog("close");
}
}
],
open: function(event, ui) {
$('#ui-dialog-button-no').focus();
},
close: function (event, ui) {
$(this).remove();
}
});