Spellchecker plugin issues

Hi all,

I’m trying to use the spellchecker plugin, and have come across some problems.

Scenario: Spell check email and send it. Servoy sends the email as it was before the spellcheck…

After a spellcheck In Developer, if I use the dataprovider used by the component I’m spellchecking, I get the old value before the spellcheck took place, even if I put a controller.saveData() before trying to use the dataprovider. Haven’t tested this in Client yet, but it is sure confusing in Developer.

plugins.spellcheck.checkTextComponent(elements.bodytext_textile);
if(! check_addresses()) {
	return 0;
}
controller.saveData()
var to = correspondence_email;
var from = doc_correspondence_to_users.lmr_user_email_address;
var footer = doc_correspondence_to_users.lmr_email_footer;
var msg = correspondence_bodytext;

msg has value as before spellcheck…

I do have muliple components showing the same dataprovider, to deal with rtf, html and plaintext correspondence.

Also, Feature request:

plugins.spellcheck.checkTextComponent() should take an array of components so you can spellcheck several fields at once without any WORKAROUNDS…

Servoy 3.1.3_01
Mac OS X 10.4.9

Christian,

The spell checker plugin checks the text of the component in a separate interaction with the user.
The checkTextComponent() call does not block until the user finished checking, but returns immediately, so your method still has the old value because the user is still checking.

Rob

Hi Rob,

the the spell check and the sending of email was not connected in a script. They were in two separate scripts both triggered by user interaction. And did add a controller.saveData() before sending email… I still got the old value.

Christian,

When the text field that is to be checked has the focus updating to the new value works.
Try adding ```
elements.bodytext_textile.requestFocus();

We will update the spellcheck plugin to do this automatically in a future version.

Rob