Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Friday, August 29, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
8/29/2025 4:37:10 PM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Notes / History - Opening Attachments
Phil Parkin
Posts: 819
Notes / History - Opening Attachments
Posted: 06 Jan 08 11:11 PM
SLX 7.2.1 / Eval database / Outlook 2003
After dropping an e-mail containing multiple attachments to the Account Notes/History tab ...
Try right-clicking and View Attachment. The View History Attachment form is displayed which allows you to select which attachment to view.
Select one and click OK. It then executes
OpenSelectedFile Application.BasicFunctions.GetAttachmentPath & grdAttach.GetCurrentField("FILENAME"), _
grdAttach.GetCurrentField("ATTACHID"), _
grdAttach.GetCurrentField("DESCRIPTION") 'DNL
Which results in an error (too many arguments). The correct code is (I think)
OpenSelectedFile Application.BasicFunctions.GetAttachmentPath & grdAttach.GetCurrentField("FILENAME"), _
grdAttach.GetCurrentField("DESCRIPTION")
Can anyone else verify? Maybe I've missed a bundle somewhere that fixes this ...
Cheers
PP
[
Reply
][
Quote
]
Phil Parkin
Posts: 819
Re: Notes / History - Opening Attachments
Posted: 14 Jan 08 4:11 PM
Verified. This is defect #1-48735.
[
Reply
][
Quote
]
Bob (RJ)Ledger
Posts: 1103
Re: Notes / History - Opening Attachments
Posted: 15 Jan 08 7:15 AM
Good Info Phil,
I've got a 70/72 bundle that's FULL of this kind of "broken stuff" in OOTB forms and scripts. I'll add this one to it.
For those of you who are partners, you already know I keep an updated copy of this bundle posted in the Partners' NG. For obvious legal reasons, the bundle cannot be posted to a "public" forum.
--
RJLedger - rjlSystems
[
Reply
][
Quote
]
Ryan Farley
Posts: 2265
Re: Notes / History - Opening Attachments
Posted: 15 Jan 08 8:47 AM
Quote:
Originally posted by Bob (RJ)Ledger
For obvious legal reasons, the bundle cannot be posted to a "public" forum.
Hehe. I know of no such "obvious legal reasons".
-Ryan
[
Reply
][
Quote
]
Bob (RJ)Ledger
Posts: 1103
Re: Notes / History - Opening Attachments
Posted: 16 Jan 08 7:19 AM
Quote:
Originally posted by Ryan Farley
Hehe. I know of no such "obvious legal reasons".
-Ryan
The original code is owned by Sage.. it's their copyright.. that's the reason.. and it's very clear in the license agreement...
It would be like publishing an SP and/or HF in an open forum.. no different. This isn't an original customization we are talking about.. it's Sage code that's been "touched" to fix an OOTB bug.
--
RJLedger - rjlSystems
[
Reply
][
Quote
]
Aaron Lowe
Posts: 37
Re: Notes / History - Opening Attachments
Posted: 30 Sep 09 3:18 PM
We just got this error, too.
"An error occurred executing active form script (System: View History Attachments). Wrong number of arguments or invalid property assignments: ‘OpenSelectedFile’ at line 5, char 5” error when viewing Notes/History records with multiple attachments"
I looked it up on the SLX support knowledgebasee and it refers to defect ID 1-62432 and says the only resolution is to upgrade to v7.5. Well -- we can't upgrade to v7.5 because we are on Oracle 9i.
I seemed to fix it by changing the script in the "View History Attachments" form. I took out the line that concatenates the ATTACHID to the call
From:
Sub cmdOKClick(Sender)
OpenSelectedFile Application.BasicFunctions.GetAttachmentPath & grdAttach.GetCurrentField("FILENAME"), _
grdAttach.GetCurrentField("ATTACHID"), _
grdAttach.GetCurrentField("DESCRIPTION") 'DNL
End Sub
To:
Sub cmdOKClick(Sender)
OpenSelectedFile Application.BasicFunctions.GetAttachmentPath & grdAttach.GetCurrentField("FILENAME"), _
grdAttach.GetCurrentField("DESCRIPTION") 'DNL
End Sub
[
Reply
][
Quote
]
Phil Parkin
Posts: 819
Re: Notes / History - Opening Attachments
Posted: 30 Sep 09 4:30 PM
Hmmm - that looks curiously like the code I posted at the very top of this thread ... glad it works though.
[
Reply
][
Quote
]
Aaron Lowe
Posts: 37
Re: Notes / History - Opening Attachments
Posted: 30 Sep 09 4:55 PM
Oops... lol
I don't know VB too well and I guess I just skimmed right over that because I didn't understand it. Then I opened up the form and started working. Probably would've saved me some time if I would've READ it better.
That's what happens when I don't get enough sleep.
Quote:
Originally posted by Phil Parkin
Hmmm - that looks curiously like the code I posted at the very top of this thread ... glad it works though.
[
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
|
page cache (param): 8/29/2025 4:43:22 PM