I noticed today that my dialog boxes aren't working in the beta like they did in 6.06. I get this error: Can't find method com.servoy.extensions.plugins.dialog.DialogProvider.js_showErrorDialog(string,org.mozilla.javascript.CharSequenceBuffer,string,string).
My current code for an error dialog is this:
- Code: Select all
pressedButton = plugins.dialogs.showErrorDialog("No Results","Your search for " + searchField + " found 0 results. Would you like to search again?","OK","Cancel");
I tried adding a new dialog, and the sample code/help reads as follows:
- Code: Select all
Plugin<dialogs>.showErrorDialog(dialogTitle:String, dialogMessage:String, buttonsText:Object): String
Shows a message dialog with the specified title, message and a customizable set of buttons.
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
@param {String} dialogTitle Dialog title.
@param {String} dialogMessage Dialog message.
@param {Object} buttonsText Array of button texts.
@return String
Am I going to have to find all of my dialogs and doc the title, message and buttons for each one?