Using MAS90 and MAS200 Customizer Scripting to show a document related to an inventory item

By Mark Chinsky • June 14th, 2010

This came from a stream in our discussion group. It allows you to associate a PDF (usually a drawing) with items and have the ability to click a button to automatically bring it up (and email it if necessary). It is designed to properly error trap if the document can’t be found. Thanks to all our group members for this.

Dim PDFPath
PDFPath = “N:\DataDocs\”

Dim PDFFile
Dim wsh
dim filesys

PDFFile =ML_ITEM_NO& “.pdf”

set wsh = CreateObject(“WScript.Shell”)

Set filesys = CreateObject(“Scripting.FileSystemObject”)

if filesys.FileExists(PDFPath & PDFFile) then

Return = wsh.Run (chr(34) & PDFPath & PDFFile & chr(34),1,False)
else
msgbox “File ” & PDFPath & PDFFile & ” Not Found”,, “File Not Found”

end if

© 2010, Mark Chinsky. All rights reserved. Formed in 2005. the 90 Minds Consulting Group is a collaboration of 100 Sage partners who independently join together online in a 24 x 7 private communication network to solve difficult issues for their customers. The group is not affiliated with Sage and our collaboration provides for unparalleled member access to early warnings of bugs and other issues which members in turn are encouraged to use to provide an exceptional customer experience.

Mark is a partner at Clients First Business Solutions, LLC. He is based out of the NY/NJ office. Mark has been in ERP sales and service for more than 20 years and at least 15 with Sage
Mark Chinsky
View all posts by Mark Chinsky
Mark's website
Share
 

Leave a Comment

You must be logged in to post a comment.

« | Home | »