Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - Legacy Development
Forum to discuss SalesLogix legacy development including views, scripts, etc.. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to Legacy Development | New ThreadView:  Search:  
 Author  Thread: Validate legacy input with Active Script?
Dan Carvin
Posts: 227
 
Validate legacy input with Active Script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 08 5:04 PM
I'm working in SLX 6.2. I have a legacy form that I want to validate with an Active Script, just because I prefer to work with Active Scripts.

So how to I do set the postable property of a legacy form to true or false using an active script?
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Validate legacy input with Active Script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 08 7:08 AM
Just convert the legacy form over to "Activex".. it's the "best practice" thing to do no hastle.

Use the "forms converter" in the Architect if you do not want to do it manually. We do it all the time.
--
RJLedger - rjlSystems
[Reply][Quote]
Steve Robertson
Posts: 146
 
Re: Validate legacy input with Active Script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 May 08 11:20 AM
Hi Dan,

You could also do something like this using a VBScript attached to the WhenValidate of the legacy form:

Sub Main
Dim i
Dim frm
Dim blnResult

'Loop through the open forms
For i = 0 to Application.Forms.Count - 1
'Find the Add Contact Screen form.
If Application.Forms(i).Name = "frmAddContactScreen" Then
'Save the reference to this form
Set frm = Application.Forms(i)
End If
Next

'Do your validation - checking email address has something in
If len(frm.cdEmail.Text) <> 0 Then
blnResult = True
Else
blnResult = False
End If
'Validation Result
frm.Postable = blnResult
'Clean Up
Set frm = Nothing
End Sub

But upgrading the forms is the better way to go.

Cheers,

Steve
[Reply][Quote]
Taby
Posts: 1
 
Re: Validate legacy input with Active Script?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Dec 09 12:22 AM
Can you please help me out with the procedure to convert Legacy form to Activex....
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 5:20:50 AM