#REM Parameters from outside: #DialogTitle ... translation for header title of the confirmationdialog #DialogMessage ... translation for messsge inside the confirmationdialog #DialogCommitButton ... translation for title of CTA button Example: #LOCAL("DialogTitle", "_LanguageTagFor_DialogTitle_[js]") #LOCAL("DialogMessage", "_LanguageTagFor_DialogMessage_[js]") #LOCAL("DialogCommitButton", "_LanguageTagFor_DialogCommitButton_[js]") { "Group": "Delete", "Name": "{Unassign[js]}", "Value": "#URLAction", #INCLUDE("SNIPPET-BatchAction-ConfirmationDialog") } #ENDLOCAL #ENDLOCAL #ENDLOCAL #ENDREM "#BLOCK("NewLineReplace","") function() { /* define variable on *batch-action-level* (scope) => this = executing batch action input */ var batchAction = ep(this), $form = $(this.form); require(['jquery', 'ep', 'de_epages/presentation/ui/confirmationdialog'], function($, ep, confirmationdialog) { /* define variable on *require-level* (scope) => this = require? */ var request; batchAction.closest('form').uiForm({showSaveWarn:false}); request = { 'dialogClass' : '.ep-product-portal-confirmationDialog', 'submitForm' : $form, 'buttonActivatedSelector' : batchAction.parent(), 'text' : { 'DialogTitle': '#DialogTitle', 'DialogMessage': '#DialogMessage', 'DialogCommitButton': '#DialogCommitButton' }, 'batchAction': batchAction }; confirmationdialog.open(request); }); }#ENDBLOCK"