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
   Mobile 3.0.3 for Saleslogix v7.5.4, v8.0.0 & v8.1.0 is now available!
Saleslogix Mobile v3.0.3 is now available in the customer portals. This update addresses all issues int
Posted on Apr 14, 2014 by Scott Weber to SalesLogix Product Blog
 
   Editing Filters in Saleslogix Web Client 8.0
Is it possible to add or remove Saleslogix filters from the List view in Accounts?
Posted on Apr 08, 2014 by SalesLogix Support to SalesLogix Questions & Answers
 
   Creating a Unique Saleslogix table ID in a SQL Function
A couple of months ago Ryan Farley wrote an article about how to use a SQL stored procedure to create a S
Posted on Mar 25, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Saleslogix Integration with Google - WOW!
Saleslogix will be releasing their Google Integration this month and from what I have seen, it is fantast
Posted on Mar 18, 2014 by Scott Weber to SalesLogix Product Blog
 
   Using a Test Plan
So you have approved the Statement of Work (SOW) for some modifications and are awaiting the delivery of
Posted on Mar 13, 2014 by George Jensen to George Jensen's Blog
 
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