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
   Retrieving Items from a Picklist via Javascript
Saleslogix is very light on how to use client side processes to do things in the Saleslogix web client.&n
Posted on Aug 29, 2014 by Kris Halsrud to Kris Halsrud's Blog
 
   Saleslogix Xbar update coming soon
Scheduled to be released 8/29/2014 Features in Update •Installation improvements •Enterp
Posted on Aug 21, 2014 by Scott Weber to SalesLogix Product Blog
 
   Configuring and Packaging secured actions in Saleslogix 8.0
Using Secured Actions, you can restrict access to user interface elements in the Saleslogix web client.
Posted on Aug 12, 2014 by Jason Buss to Jason Buss' Blog
 
   How do you add a parameter for File Attachment Size and Timeout in Saleslogix 8.1?
Question: Is it possible to set a parameter for file attachment size and timeout in Salelogix? If
Posted on Aug 07, 2014 by Dale Richter to SalesLogix Questions & Answers
 
   Fixing Duplicate Saleslogix FieldIndex Values in the SECTABLEDEFS
I had to fix a client's SECTABLEDEFS table that contained duplicate FieldIndex values.  FieldInd
Posted on Aug 07, 2014 by Kris Halsrud to Kris Halsrud'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