Hi Friends,
In this post i m writing how to add the attachment to Note
& Attachment of Salesforce.com from VF-Page which is rendered as “pdf”
from detail page Custom button.
Here the Custom button code its of onclick java script behaviour:-
window.showModalDialog('/apex/PDF_Page?id={!Lead.Id}','',"
dialogWidth:800px;dialogHeight:500px; center:yes | no | 1 | 0 | on | off");
location.reload(true);
dialogWidth:800px;dialogHeight:500px; center:yes | no | 1 | 0 | on | off");
location.reload(true);
Here i used two VF-Pages to avoid recursive calling of VF Page because I am saving Attachment of page to Notes and
Attachment of same object.
Note:-
Remember not to call the method from "PDF_Page_demo".
Happy Coding...:)
here the sceern shots:-