In your assistant file...
function MyAssistant() {
}
add a method like so...
MyAssistant.prototype.showDialogBox = function( caption, msg ){
this.controller.showAlertDialog({
onChoose: function(value) {},
title: caption,
message: msg,
choices: [{
label: 'OK',
value: 'OK',
type: 'dismiss'
}]
});
}
then call it wherever you like...
this.showDialogBox( "My App", "Here's a debug message..." );