Detect Opening Attachment

I figured out how to dynamically add a new contextmenu item if the opening context menu was for an attachment and met certain file criteria (Vaulted file).

The only thing that's not good about this is, I'll have to do it for other forms, and also update it every time we update Vault. Has to be a better way.


From: "Jose Gomez jose@... [vantage]" <vantage@yahoogroups.com>
To: Vantage <vantage@yahoogroups.com>
Sent: Monday, March 16, 2015 12:12 PM
Subject: Re: [Vantage] Detect Opening Attachment

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260 --

#ygrps-yiv-261156221yiv1427779260 .ygrps-yiv-261156221yiv1427779260ygrp-photo-title{
clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;}
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260ygrp-photo{
background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260photo-title
a,
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260photo-title a:active,
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260photo-title a:hover,
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260attach-table div.ygrps-yiv-261156221yiv1427779260attach-row {
clear:both;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260attach-table div.ygrps-yiv-261156221yiv1427779260attach-row div {
float:left;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 p {
clear:both;padding:15px 0 3px 0;overflow:hidden;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260ygrp-file {
width:30px;}
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260attach-table div.ygrps-yiv-261156221yiv1427779260attach-row div div a {
text-decoration:none;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260attach-table div.ygrps-yiv-261156221yiv1427779260attach-row div div span {
font-weight:normal;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 div.ygrps-yiv-261156221yiv1427779260ygrp-file-title {
font-weight:bold;}
#ygrps-yiv-261156221
#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260
#ygrps-yiv-261156221yiv1427779260ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp #ygrps-yiv-261156221yiv1427779260hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp #ygrps-yiv-261156221yiv1427779260ads {
margin-bottom:10px;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp .ygrps-yiv-261156221yiv1427779260ad {
padding:0 0;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp .ygrps-yiv-261156221yiv1427779260ad p {
margin:0;}

#ygrps-yiv-261156221 #ygrps-yiv-261156221yiv1427779260 #ygrps-yiv-261156221yiv1427779260ygrp-mkp .ygrps-yiv-261156221yiv1427779260ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-261156221



You might be able to do it via customization though I haven't tried. Yeah that's the method I was referring to


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?



On Mon, Mar 16, 2015 at 12:08 PM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

 
<div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149404">
  
  
  <div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149403"></div><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149408" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr">I looked in that DLL and see the DownloadFile method,I&#39;m guessing this is the one I should try to modify.</div><div dir="ltr"><br clear="none"></div><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149407" dir="ltr">Also, what about adding a new context menu item for attachments? Do you know what DLL is associated with that, or I could prossibly do it via customization?<br clear="none"></div><br clear="none">  <div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149413" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149412" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149411" dir="ltr"> <hr size="1">  <font id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149410" face="Arial"><span id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149409" class="ygrps-yiv-261156221yiv1427779260"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br clear="none"> </span><b><span style="font-weight:bold;">Sent:</span></b> Monday, March 16, 2015 9:33 AM</font><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149415"><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149414" class="ygrps-yiv-261156221yiv1427779260h5"><br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br clear="none"> </div></div> </div><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149418"><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149417" class="ygrps-yiv-261156221yiv1427779260h5"> <div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149416"><br clear="none"><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149420"><div id="ygrps-yiv-261156221yui_3_16_0_1_1426508905455_149419">



There is no BO , short of customizing the screen (view attachment) button I can't think of another way. In E10 there is a Lib that gets used
Ice.Proxy.Lib.FileTransfer
You could modify that code but that would be complex and require the SDK (or very creative thinking.... http://reflexil.net/)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?



On Mon, Mar 16, 2015 at 8:34 AM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div></div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div>Hi Jose,</div><div><br clear="none"></div><div dir="ltr"><span>We are beginning to implement Autodesk Vault. The actual file locations are encrypted on the server, so I am needing to run a few lines of code to download the latest file version before actually opening the file.</span></div><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>The path to the attachments would be something like this $/Designs/filename.dwg</span></div><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>Then using the Vault&#39;s API I can download a local copy of the file using the location above. <br clear="none"></span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>This was my thought on how to get this to work anyway, since Epicor wants to launch the file using it&#39;s default program. However, the file won&#39;t be there unless I step in between the user opening the file and Epicor actually launching the default program.</span></div><br clear="none">  <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 13, 2015 5:38 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br clear="none"> </font> </div><span> </span><div><br clear="none"><div>



What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end
On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div>Hi all,<br clear="none"><br clear="none">Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br clear="none"><br clear="none">I want to intercept this before the attachment is opened if possible?<br clear="none"><br clear="none">Thanks,<br clear="none"><br clear="none">Ted<br clear="none"></div><div><span><br clear="none"></span></div>

</div>
 


<div style="color:#fff;min-height:0;"></div>




</div>
 


<div style="color:#fff;min-height:0;"></div>





</div><div><div class="ygrps-yiv-261156221yiv1427779260h5">
 


<div style="color:#fff;min-height:0;"></div>





Hi all,

Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?

I want to intercept this before the attachment is opened if possible?

Thanks,

Ted


What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end

On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Hi all,<br><br>Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br><br>I want to intercept this before the attachment is opened if possible?<br><br>Thanks,<br><br>Ted<br><p><span><br></span></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>
Hi Jose,

We are beginning to implement Autodesk Vault. The actual file locations are encrypted on the server, so I am needing to run a few lines of code to download the latest file version before actually opening the file.

The path to the attachments would be something like this $/Designs/filename.dwg

Then using the Vault's API I can download a local copy of the file using the location above.

This was my thought on how to get this to work anyway, since Epicor wants to launch the file using it's default program. However, the file won't be there unless I step in between the user opening the file and Epicor actually launching the default program.


From: "Jose Gomez jose@... [vantage]" <vantage@yahoogroups.com>
To: Vantage <vantage@yahoogroups.com>
Sent: Friday, March 13, 2015 5:38 PM
Subject: Re: [Vantage] Detect Opening Attachment



What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end
On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

 
<div id="ygrps-yiv-475443594yui_3_16_0_1_1426508905455_2712">
  
  
  <div id="ygrps-yiv-475443594yui_3_16_0_1_1426508905455_2711">Hi all,<br><br>Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br><br>I want to intercept this before the attachment is opened if possible?<br><br>Thanks,<br><br>Ted<br></div><div id="ygrps-yiv-475443594yui_3_16_0_1_1426508905455_2717"><span><br></span></div>

</div>
 


<div style="color:#fff;min-height:0;"></div>




There is no BO , short of customizing the screen (view attachment) button I can't think of another way. In E10 there is a Lib that gets used
Ice.Proxy.Lib.FileTransfer
You could modify that code but that would be complex and require the SDK (or very creative thinking.... http://reflexil.net/)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Mon, Mar 16, 2015 at 8:34 AM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div>Hi Jose,</div><div><br></div><div dir="ltr"><span>We are beginning to implement Autodesk Vault. The actual file locations are encrypted on the server, so I am needing to run a few lines of code to download the latest file version before actually opening the file.</span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>The path to the attachments would be something like this $/Designs/filename.dwg</span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>Then using the Vault&#39;s API I can download a local copy of the file using the location above. <br></span></div><div dir="ltr"><span><br></span></div><div dir="ltr"><span>This was my thought on how to get this to work anyway, since Epicor wants to launch the file using it&#39;s default program. However, the file won&#39;t be there unless I step in between the user opening the file and Epicor actually launching the default program.</span></div><br>  <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 13, 2015 5:38 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br> </font> </div><span class="ygrps-yiv-2110914144"> <div><br><div>



What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end
On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <div>Hi all,<br><br>Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br><br>I want to intercept this before the attachment is opened if possible?<br><br>Thanks,<br><br>Ted<br></div><div><span><br></span></div>

</div>
 


<div style="color:#fff;min-height:0;"></div>




</div>
 


<div style="color:#fff;min-height:0;"></div>

I looked in that DLL and see the DownloadFile method,I'm guessing this is the one I should try to modify.

Also, what about adding a new context menu item for attachments? Do you know what DLL is associated with that, or I could prossibly do it via customization?


From: "Jose Gomez jose@... [vantage]" <vantage@yahoogroups.com>
To: Vantage <vantage@yahoogroups.com>
Sent: Monday, March 16, 2015 9:33 AM
Subject: Re: [Vantage] Detect Opening Attachment

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616 --

#ygrps-yiv-171382216yiv2452895616 .ygrps-yiv-171382216yiv2452895616ygrp-photo-title{
clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;}
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616ygrp-photo{
background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616photo-title
a,
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616photo-title a:active,
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616photo-title a:hover,
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616attach-table div.ygrps-yiv-171382216yiv2452895616attach-row {
clear:both;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616attach-table div.ygrps-yiv-171382216yiv2452895616attach-row div {
float:left;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 p {
clear:both;padding:15px 0 3px 0;overflow:hidden;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616ygrp-file {
width:30px;}
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616attach-table div.ygrps-yiv-171382216yiv2452895616attach-row div div a {
text-decoration:none;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616attach-table div.ygrps-yiv-171382216yiv2452895616attach-row div div span {
font-weight:normal;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 div.ygrps-yiv-171382216yiv2452895616ygrp-file-title {
font-weight:bold;}
#ygrps-yiv-171382216
#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616
#ygrps-yiv-171382216yiv2452895616ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp #ygrps-yiv-171382216yiv2452895616hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp #ygrps-yiv-171382216yiv2452895616ads {
margin-bottom:10px;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp .ygrps-yiv-171382216yiv2452895616ad {
padding:0 0;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp .ygrps-yiv-171382216yiv2452895616ad p {
margin:0;}

#ygrps-yiv-171382216 #ygrps-yiv-171382216yiv2452895616 #ygrps-yiv-171382216yiv2452895616ygrp-mkp .ygrps-yiv-171382216yiv2452895616ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-171382216



There is no BO , short of customizing the screen (view attachment) button I can't think of another way. In E10 there is a Lib that gets used
Ice.Proxy.Lib.FileTransfer
You could modify that code but that would be complex and require the SDK (or very creative thinking.... http://reflexil.net/)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?



On Mon, Mar 16, 2015 at 8:34 AM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

 
<div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48903">
  
  
  <div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48902"></div><div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48909" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div>Hi Jose,</div><div><br clear="none"></div><div dir="ltr"><span>We are beginning to implement Autodesk Vault. The actual file locations are encrypted on the server, so I am needing to run a few lines of code to download the latest file version before actually opening the file.</span></div><div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48908" dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>The path to the attachments would be something like this $/Designs/filename.dwg</span></div><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>Then using the Vault&#39;s API I can download a local copy of the file using the location above. <br clear="none"></span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>This was my thought on how to get this to work anyway, since Epicor wants to launch the file using it&#39;s default program. However, the file won&#39;t be there unless I step in between the user opening the file and Epicor actually launching the default program.</span></div><br clear="none">  <div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48912" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48911" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48910" dir="ltr"> <hr size="1">  <font id="ygrps-yiv-171382216yui_3_16_0_1_1426508905455_48913" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 13, 2015 5:38 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br clear="none"> </font> </div><span class="ygrps-yiv-171382216yiv2452895616"> </span><div><br clear="none"><div>



What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end
On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

 
<div>
  
  
  <div>Hi all,<br clear="none"><br clear="none">Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br clear="none"><br clear="none">I want to intercept this before the attachment is opened if possible?<br clear="none"><br clear="none">Thanks,<br clear="none"><br clear="none">Ted<br clear="none"></div><div><span><br clear="none"></span></div>

</div>
 


<div style="color:#fff;min-height:0;"></div>




</div>
 


<div style="color:#fff;min-height:0;"></div>





You might be able to do it via customization though I haven't tried. Yeah that's the method I was referring to


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Mon, Mar 16, 2015 at 12:08 PM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div dir="ltr">I looked in that DLL and see the DownloadFile method,I&#39;m guessing this is the one I should try to modify.</div><div dir="ltr"><br></div><div dir="ltr">Also, what about adding a new context menu item for attachments? Do you know what DLL is associated with that, or I could prossibly do it via customization?<br></div><br>  <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <hr size="1">  <font face="Arial"><span class="ygrps-yiv-152409080"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br> </span><b><span style="font-weight:bold;">Sent:</span></b> Monday, March 16, 2015 9:33 AM<div><div class="ygrps-yiv-152409080h5"><br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br> </div></div></font> </div><div><div class="ygrps-yiv-152409080h5"> <div><br><div><div>



There is no BO , short of customizing the screen (view attachment) button I can't think of another way. In E10 there is a Lib that gets used
Ice.Proxy.Lib.FileTransfer
You could modify that code but that would be complex and require the SDK (or very creative thinking.... http://reflexil.net/)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?



On Mon, Mar 16, 2015 at 8:34 AM, Ted Koch tkoch77@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <div></div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"><div>Hi Jose,</div><div><br clear="none"></div><div dir="ltr"><span>We are beginning to implement Autodesk Vault. The actual file locations are encrypted on the server, so I am needing to run a few lines of code to download the latest file version before actually opening the file.</span></div><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>The path to the attachments would be something like this $/Designs/filename.dwg</span></div><div dir="ltr"><br clear="none"><span></span></div><div dir="ltr"><span>Then using the Vault&#39;s API I can download a local copy of the file using the location above. <br clear="none"></span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>This was my thought on how to get this to work anyway, since Epicor wants to launch the file using it&#39;s default program. However, the file won&#39;t be there unless I step in between the user opening the file and Epicor actually launching the default program.</span></div><br clear="none">  <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr"> <hr size="1">  <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> &quot;Jose Gomez <a rel="nofollow" shape="rect" target="_blank" href="mailto:jose@...">jose@...</a> [vantage]&quot; &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt;<br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Vantage &lt;<a rel="nofollow" shape="rect" target="_blank" href="mailto:vantage@yahoogroups.com">vantage@yahoogroups.com</a>&gt; <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Friday, March 13, 2015 5:38 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Vantage] Detect Opening Attachment<br clear="none"> </font> </div><span> </span><div><br clear="none"><div>



What's the end goal? I think you can do this... Somewhat but it's kinda complex. What are you looking for in the end
On Mar 13, 2015 3:14 PM, "tkoch77@... [vantage]" <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <div>Hi all,<br clear="none"><br clear="none">Does anyone know if there is a BO method that is triggered when a user attempts to view an attachment in Epicor?<br clear="none"><br clear="none">I want to intercept this before the attachment is opened if possible?<br clear="none"><br clear="none">Thanks,<br clear="none"><br clear="none">Ted<br clear="none"></div><div><span><br clear="none"></span></div>

</div>
 


<div style="color:#fff;min-height:0;"></div>




</div>
 


<div style="color:#fff;min-height:0;"></div>





</div><div><div class="ygrps-yiv-152409080h5">
 


<div style="color:#fff;min-height:0;"></div>