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;
}
ページを実行してボタンをクリックすると、コンソールにエラーが表示されます。
Error in action for 'my-action'. TypeError: Cannot read property 'dialogClass' of undefined
どうすれば修正できますか?