In today's pre-release there's a new feature for messages... DropDown Messages. This is really nice and is far more in line with current UI standards. To get to it, use the existing Action Javascript Message box and then turn on the Use advanced message box property. Now you can select "DropDown" from the Advanced message box style.
The Animation style choice of 1 or 2 doesn't seem to do anything for me... both animations are the same.
What would be welcome is a set of styles to select for the message box... again... similar to other UI environments. E.g. "Warning" for a red backbround and white text. The ability to set style attributes would be nice... or set a class... anything to style the message box.
Clearing the Animation style automatically fills it with 0, but that doesn't change the animation. Turning off animation would also be nice.
Having a timed message option would also be nice.
You can do some of this if using the .dropDownMessage() method. For example... converting the Action to code will get you something like this...
Beware the {grid.object} part (I'm working with a UX). It doesn't seem to make a difference but I'd change these to {dialog.Object} just in case it bites you in the future...
If you change this code to...
You'll get a nice simple dropdown message box, no animation, just a single message line, centered both ways, and will hide in 4 seconds. For mobile this is ideal.
{dialog.Object}.dropDownMessageHide(); isn't documented in the notes... but you can ferret it out in the inline help notes of the Action... and it is available in autocomplete.
The Animation style choice of 1 or 2 doesn't seem to do anything for me... both animations are the same.
What would be welcome is a set of styles to select for the message box... again... similar to other UI environments. E.g. "Warning" for a red backbround and white text. The ability to set style attributes would be nice... or set a class... anything to style the message box.
Clearing the Animation style automatically fills it with 0, but that doesn't change the animation. Turning off animation would also be nice.
Having a timed message option would also be nice.
You can do some of this if using the .dropDownMessage() method. For example... converting the Action to code will get you something like this...
Code:
var dropDownType = 'Wait'; var title = 'Message Title'; var msgBody = 'Message Box'; var width = '400px'; var oKButtonLabel = ''; var cancelButtonLabel = ''; {grid.object}.dropDownMessage(dropDownType,title,msgBody,width,'','','','',2);
If you change this code to...
Code:
var dropDownType = ''; var title = ''; var msgBody = 'Message Box'; var width = '100%'; var oKButtonLabel = ''; var cancelButtonLabel = ''; {dialog.Object}.dropDownMessage(dropDownType,title,msgBody,width,'','','','',0); setTimeout(function(){ {dialog.Object}.dropDownMessageHide(); },4000);
{dialog.Object}.dropDownMessageHide(); isn't documented in the notes... but you can ferret it out in the inline help notes of the Action... and it is available in autocomplete.
Comment