Alert component message text munging bug and workaround
I just posted a workaround on the London MMUG web site regarding a nasty little bug with the Alert component cropping the end of long message texts. Hope this prevents someone out there from doubting their sanity and/or losing copious amounts of hair!
Comments
by JesterXL on 2004-10-20 15:49:37
by aral on 2004-10-20 16:12:09
I just tried this and, depending on the width (again), you may need more than one newline character but it works like a charm :)
I still want to take a few minutes to create a more permanent hack that will be transparent to the developer.
by aral on 2004-10-20 20:58:22
var errorStr:String = "You had the following errors in your request:\n\n";
if (!theaterIDArr) errorStr += "* Select one or more theaters from the list above.\n"
if (!reportTypeArr) errorStr += "* Select one or more export options below.\n";
An easy way to increase the width was to just add a bit of spaces to the Alert windows title!
Since you can see your errors below the title you can guess the right amount of spaces.
Sounds cheap, but it works great and is a really simple hack:
var title:String = "PDF Request Error ";
var errorStr:String = "You had the following errors in your request:\n\n";
if (!theaterIDArr) errorStr += "* Select one or more theaters from the list above.\n"
if (!reportTypeArr) errorStr += "* Select one or more export options below.\n";
HTH
by will on 2004-10-20 21:01:13
by will on 2004-10-20 21:02:38
by vinodvv on 2007-08-01 08:50:35
by Pavan on 2007-12-05 05:24:59
by Aral on 2007-12-05 11:49:20