Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 2025 
 
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 - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Add New Contact creates a crash!!!
Alan Young
Posts: 17
 
Add New Contact creates a crash!!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Nov 07 7:40 PM

Hello All
Here is my new way I found to crash SLX!

Sub myNewContact(Sender)
dim cAccountID

If cUserID = "" Then cUserID = Application.BasicFunctions.CurrentUserID
If cAccountID = "" Then
'' get account id from lookup id on current form
cAccountID =lveAccount.LookupID
end if

msgbox "hi" & cAccountID

application.BasicFunctions.AddContactForAccount(cAccountID)

end Sub

I get exception eaccessViolation , access violation at address 004C604E in module saleslogix.exe Read of address 00000198

Any ideas?

Thanks
Alan Young
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Add New Contact creates a crash!!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Dec 07 12:03 AM
This function application.BasicFunctions.AddContactForAccount() is deprecated in SalesLogix versions 6.2 and later.
You'll have to find another way.
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Add New Contact creates a crash!!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Dec 07 12:04 AM
As also is Application.BasicFunctions.AddContactForAccount

Function
Launches just the contact insert screen for a specific account for the Legacy Basic SalesLogix Views. This function was replaced by Active Forms in release 6.2 and is supported for the convenience of customers who have been using SalesLogix versions 6.1.x and earlier.

Object
Application.BasicFunctions.AddContactForAccount

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Add New Contact creates a crash!!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Dec 07 12:05 AM
[QUOTE]Originally posted by Mike Spragg

As also is Application.BasicFunctions.AddContactForAccount

Sorry, meant Application.BasicFunctions.AddContact**And**Account

[Reply][Quote]
Alan Young
Posts: 17
 
Re: Add New Contact creates a crash!!!Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 07 3:39 PM
This worked finally

Set objMainView = Application.MainViews.Add("System:Add New Contact Account", 0, False)
objMainView.BorderStyle = 3
objMainView.Caption = Application.Translator.Localize("Add new contact for account: " & cAccountName)
objMainView.ShowModal
Set objMainView = Nothing

[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 © 2025 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): 8/18/2025 7:41:15 AM