Page 1 of 1


PostPosted: Tue Sep 16, 2008 5:07 pm
by harryg
Would it be possible to have some code that puts some return characters in the displayed text for the errordialog ?

e.g. when an attempt to insert into a table with some non null fields is made (with nulls) the following trap produces a dialog box that is about 80cm long !
plugins.dialogs.showErrorDialog('Error', 'SQL error:'+ plugins.rawSQL.getExceptionMsg(), 'Ok')

( luckily I have 2 monitors :) )

Many thanks

Harry Rogers

Re: ShowErrorDialog

PostPosted: Tue Sep 16, 2008 5:52 pm
by IT2Be
Hi Harry,

Why don't you truncate the text yourself?

replace whatever text you want with '\n' or encapsulate it in html and use html formatting.

Re: ShowErrorDialog

PostPosted: Tue Sep 16, 2008 6:08 pm
by harryg
Hi Marcel

Thanks for the quick reply, Indeed it is possible.
I was wondering if it would be possible to add a (optional?) parameter to the dialog call such that it was at least fitted to the users screen width.

All the best

Re: ShowErrorDialog

PostPosted: Tue Sep 16, 2008 9:37 pm
by IT2Be
I think you will have to make a feature request for it.

You can also check out our Dialog Plugin (
When you like it I might be able to add such a parameter as well...

Re: ShowErrorDialog

PostPosted: Wed Sep 17, 2008 10:55 am
by harryg
Thanks for that Marcel, I'll take a look.

I think in the context this all came from I'll be better off using showformindialog anyway ! as I need WebClient support.

Thanks again - I'm sure I'll be asking plenty more questions before too long.