Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, November 26, 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!
 Administration Forums - General Administration
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to General Administration | New ThreadView:  Search:  
 Author  Thread: opportunity attachment tab error
Jill D
Posts: 31
 
opportunity attachment tab error Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Sep 09 5:52 PM
hello,
when opening the attachments tab in an opportunity, we get the following error:
An error occured executing active form script (Opportunity:Attachments)
Error calling method AXChangeForm
Object doesn't support this property or method: frmAttachment.Parent.DetailsView.LnkAccount
at line 24 char 5
We can access the tab and data ok after the error message

Line 24 char 5 in the script is: gStrAccountID = frmAttachment.Parent.DetailsView.lnkAccount.LinkID

We are using version 7.2.0.1501, DB sql server 2005, windows server 2003 sp2, no remotes

Can someone shed some light on this? it would be great to eliminate the error.

thanks!


[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: opportunity attachment tab error Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 09 3:38 AM
This script relies on the Opportunity Detail view. It is looking for the lnkAccount control. Did you remove, rename or replace the account link on your Opportunity Detail View?
You could either undo your change on the Opportunity Detail view, or change the script so that it doesn't rely on this field.

Typically, when dealing with SLX Views and scripts, I rather hide a field than deleting it to avoid this type of issue.
Never the less, if you rather just modify the Attachment view to match your changes to your Opportunity Detail view replace line 24 with the following code:

gStrAccountID = GetField("ACCOUNTID", "OPPORTUNITY", "OPPORTUNITYID = '" & grdAttach.BindID & "'")
[Reply][Quote]
Jill D
Posts: 31
 
Re: opportunity attachment tab error Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 09 11:14 AM
Thanks for the reply! It is entirely possible that my predecessor made changes to a standard Opportunity Detail view, which is one of my pet peeves - if you want something custom - make it! and leave the "stock" components alone. (grrr!) I'm working my way through a bunch of "customizations" right now, so I'll see if I can restore the script before changing line 24 (another customization!)



j.d.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: opportunity attachment tab error Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Sep 09 11:18 AM
I agree with you, trying to restore the field is probably the safest bet so that you avoid any issues moving forward.

[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/26/2024 9:27:32 AM