
03-08-2010 03:14 PM - last edited on 03-08-2010 03:27 PM
On a recent call with ACC's someone asked me if I could show how someone might use web info to navigate to a customers folder somewhere on a network. I thought this was a kind of clever idea - but I ran into an issue with the Web info tab that if your folder name contains spaces the web info replaces those spaces with + so never finds the folder (thanks to Pat Egen for pointing this out).
As a quick workaround I created the html file attached which strips out the +'s and maps to the spaces in the folder names. This allows you to use web info like a little folder browser.
A few notes: This is a really rudimentary workaround - you need to change the html file to point to the root folder directory you want (I show a mapped drive of E: but you could use a network path like File://Servername/share as well
Here's the explanation of the code in the html file:
<scripttype="text/javascript">
var companyname = gup('company');
companyname = companyname.replace("+", " ");
companyname =companyname.replace("+", " "); ßKindof funny here I’m just undoing what the webinfo parser did
companyname =companyname.replace("+", " ");
companyname =companyname.replace("+", " ");ß ifyou have names with more than 5 spaces you can just copy this line and paste itagain (I really should do a loop here but it’s Friday and I’m lazy!)
companyname =companyname.replace("+", " ");
window.location="file://E:/" +companyname ß change the E:/ to thedirectory you want as the starting directory
Once you configure the html to point to the default folder then setup your web link in webinfo to point to that html file. Here's mine:
file://D:/companynav.html?company={Contact.Company
Hope this helps.
03-08-2010 03:16 PM - last edited on 03-08-2010 03:29 PM
I also think it's kind of clever to use the Contact context web browser control and create a new tab dedicated to this kind of folder mapping for a contact or company record.
You need to change the space replacer to %20 in the control for this to support folders with spaces.
Overall I love having this kind of access within ACT! and I can drag and drop files into the customers folder while on that record. Pretty cool idea thanks to the ACC's who brought this up!.