ShowErrorDialog

HI
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

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.

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

I think you will have to make a feature request for it.

You can also check out our Dialog Plugin (http://www.it2be.com/plugins.htm#dialog).
When you like it I might be able to add such a parameter as well…

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.