function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srini NandhiSrini Nandhi 

usage of Standard Controller in Apex Component

Hi All,

I have a vf page with standard and Extension Controller. I want to Convert this page in to VF Component for Use in Emial Template.

i can able to get all the Extension functionality by putting component in VF page. but it is not working in VF Email Template.
How can i pass StandardController to Component controrller? and how to use Standard controller.getRecord() method in Constructor ?

tried with passing attribute name but not working.
 
can give me some exmple to pass Standard Controller Record to Component controller.

How to use and get StandardController.getRecord() in Components?

Thanks,

Srini

Srini NandhiSrini Nandhi
Hi Mahesh,

above links are fine with VF page. Using VF page it is working fine. but i want to use with EmailTemplate.
we cant use vf page in Email Template.

How to Refer the standardcontroller from the Email template what should we pass using attribute name on component?

Thanks,
Srini