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!
|
|
Add New Contact creates a crash!!!
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
|
|
|
|
Re: Add New Contact creates a crash!!!
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. |
|
|
|
Re: Add New Contact creates a crash!!!
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
|
|
|
|
Re: Add New Contact creates a crash!!!
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
|
|
|
|
Re: Add New Contact creates a crash!!!
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
|
|
|
|