Login / Register  search  syndication  about

          Jason Buss' Blog

Jason Buss on SalesLogix development & customization, SQL, and more.

Utilizing Spell-Check functionality in SalesLogix 7.5 LAN

If you've ever wanted to implement some sort of Spell Check functionality within your SalesLogix database, you're in luck!  The Standard Spell Check vbScript makes it simple to add this functionality to your custom forms. *Note: Microsoft Word must be installed on the local machine.

For this example, I'll set up Spell Check functionality in a standard Memo field.  There are two ways to implement this sort of functionality:

1:   Using the Standard Memo popup.  This method will launch an generic edit view for the memo field which includes "Spell Check" as a right-click menu option.

 First of all, we need to create a form.  For this example, we simply need an Account form containing a Memo control, and a button to launch the Standard memo popup.

 

 In the code for this form, we will first want to include the System:Spell Check.  Once the script is included, add the following code to the Button's click event:

Sub Button1Click(Sender)
    InvokeStandardMemoPopup Memo1, "Spell Check This form", False
End Sub

This subroutine takes three parameters. The first is the name of the Memo control, followed by a Caption for the form we are launching.  The final parameter is a boolean designating if a time/date stamp should be added to the invoked form.

Upon clicking the button, you are now presented with the standard memo popup view.

 

If you right click in the view, you will see a "Spell Check" item included in the menu.

 

That was pretty easy to set up.  However, if you don't want to present an additional view to the end user, you can add the functionality directly into your memo control.

 2:  Adding spellcheck functionality to a memo control.

We'll use the same form as before, but we will need to add A PopupMenu control to the form.  We'll need to set up the PopupMenu items to include "Spell Check" as a menu item.  Double click the PopupMenu's Items property and add these items:

 

We'll also need to add the following code to the PopupMenu control's "OnClick" event:

Sub PopupMenu1Click(Sender, ByRef MenuItem)
    StandardOnPopUpMemoClick Memo1, MenuItem.MenuIndex
End Sub

 

The last step is to add this code to the Memo control's "MouseDown" event:

 Sub Memo1MouseDown(Sender, Button, X, Y)
    If Not Sender.ReadOnly And Button = 1 Then
        StandardMemoMouseDownEvent Memo1, PopupMenu1
    End If
End Sub

This code checks to see that the memo control is not read-only, and that the right mouse button has been clicked.  Then you just pass the Memo control and PopupMenu control to the StandardMemoMouseDownEvent subroutine. 

 

There you go!  You've just used the Spell Check script included in SalesLogix to add Spell Check functionality to your custom form.  I hope you find this article helpful!  Thanks for reading!Smile

What's This?
  
Bookmark and Share

About Jason Buss

   Jason is a senior application developer with Customer FX.



Related Content
   Preserving Custom Roles, Secured Actions, and Assignments in Infor CRM (formerly Saleslogix) Upgrades
When upgrading between levels of Infor CRM one of the tasks that is commonly needed is to run a batch/exe
Posted on Dec 16, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Easily Showing and Hiding Tabs at Runtime in Infor CRM (Saleslogix)
Showing and hiding tabs in the Infor CRM (Saleslogix) client should be an easy thing. It should be someth
Posted on Dec 16, 2014 by Ryan Farley to Ryan Farley's Blog
 
   Telnet Sample to Send an SMTP email
I am always forgetting how to test sending an email through an SMTP gateway using the Telnet client. 
Posted on Dec 12, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Problem setting SLXTextbox enabled property / Setting unexposed base control properties for a custom control
I recently had an issue with a Quickform where I was attempting to set the Enabled property of a TextBox
Posted on Dec 05, 2014 by Jason Buss to Jason Buss' Blog
 
   Checking Infor CRM (Saleslogix) Picklists for valid data
This week I received a question about a particular picklist. One of the picklist items, when chosen, wou
Posted on Dec 05, 2014 by Dale Richter to Infor CRM Questions & Answers
 
Comments

 

Spell buss | Gyetramp said:

Pingback from  Spell buss | Gyetramp

November 2, 2011 6:57 AM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register