Oracle apex Oracle APEX-针对'的操作错误;xxx';。TypeError:无法读取属性';dialogClass';未定义的

Oracle apex Oracle APEX-针对'的操作错误;xxx';。TypeError:无法读取属性';dialogClass';未定义的,oracle-apex,oracle-apex-19.1,Oracle Apex,Oracle Apex 19.1,我的IG上有一个自定义按钮,可以打开一个模式对话框页面。以下是我使用的代码: function(config) { var $ = apex.jQuery, toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(), toolbarGroup = toolbarData.toolbarFind("actions4"); toolbarGroup.controls.push( {

我的IG上有一个自定义按钮,可以打开一个模式对话框页面。以下是我使用的代码:

function(config) {
   var $ = apex.jQuery,
     toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
     toolbarGroup = toolbarData.toolbarFind("actions4"); 


     toolbarGroup.controls.push( {
         type: "BUTTON",
         label: "My Button",    
         action: "my-action",
         hot: true
     });

    config.toolbarData = toolbarData;

     config.initActions = function( actions ) {     
         actions.add( {
         name: "my-action",
         label: "My Action",
         action: function(event, focusElement) {
             javascript:apex.navigation.dialog('f?p=&APP_ID.:2:&SESSION.');
         }
      } );

   }
   return config;
}
当我运行页面并单击按钮时,控制台中出现错误:

“我的操作”的操作中出现错误。TypeError:无法读取未定义的属性“dialogClass”


如何修复它?

如果查看JavaScript文档,必须为apex.navigation.dialog函数提供其他参数:


apex.navigation.dialog(
网址,
{
标题:"命令",,
高度:'480',
宽度:“800”,
莫代尔:是的,
可调整大小:true
},
“a-Dialog--uiDialog”,
$(“#mybutton_static_id”)
);

您可以像这样在客户端构建URL:
var URL='f?p='+$v('pFlowId')+':2:'+$v('pInstance')或使用
apex.util.makeApplicationUrl

    apex.navigation.dialog(
      url,
      {
        title: 'Orders',
        height: '480',
        width: '800',
        modal: true,
        resizable: true
      },
      'a-Dialog--uiDialog',
      $('#mybutton_static_id')
    );