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
   Saleslogix XBar Installation
When installing the new XBar application I found the instructions a little vague so I thought I would pas
Posted on Jul 18, 2014 by Mark Duthoy to SalesLogix Support
 
   "Saleslogix’s affordable pricing and usability allow the product to rise above competitors in the space" - Info-Tech Research Group, Inc.
"SalesLogix’s affordable pricing and usability allow the product to rise above competitors in the sp
Posted on Jul 14, 2014 by Scott Weber to SalesLogix Product Blog
 
   Saleslogix Default Group Layout
How can I default the formatting of columns in my Saleslogix groups?
Posted on Jul 03, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Changing Contact Process Statuses in Bulk
Recently, I was asked if it was possible to cancel a group of running contact processes.The answer is yes
Posted on Jun 30, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Finding the Current Parent Record ID in SalesLogix Web
Sometimes it's the easiest things that can be a big barrier to entry for getting started with somet
Posted on Jun 27, 2014 by Ryan Farley to Ryan Farley'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