Monday 23 December 2013

Add PDF VF-Page to Notes and Attachment from custom button and refresh current page.





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);


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:-



Tuesday 17 December 2013

Show Radio Button on the VF page


Hi Guys,

here the example to show the Radio buttons on the VF Page and toggle between them,

Controller Class And VF Page:-


this is the screen shot of the VF page.