You need to sign in to do that
Don't have an account?
Priyesh Misquith 12
Conditional rendering of multiple PDF
I have the secnario where there are multiple visualforce component.
<apex: page renderAs='pdf'>
<c:componentA />
<c:componentB />
<c:componentC />
</apex: page >
when the field value in Opportunity field__c = Apple
i want to download the pdf containing the details of componentA and ComponentB on the click of the button
when the field value in Opportunity field__c = Ball
i want to download the pdf containing the details of componentA and ComponentC on the click of the button
when the field value in Opportunity field__c = Cat
i want to download the pdf containing the details of componentB and ComponentC on the click of the button
please let me know how can it be achived.
<apex: page renderAs='pdf'>
<c:componentA />
<c:componentB />
<c:componentC />
</apex: page >
when the field value in Opportunity field__c = Apple
i want to download the pdf containing the details of componentA and ComponentB on the click of the button
when the field value in Opportunity field__c = Ball
i want to download the pdf containing the details of componentA and ComponentC on the click of the button
when the field value in Opportunity field__c = Cat
i want to download the pdf containing the details of componentB and ComponentC on the click of the button
please let me know how can it be achived.
I found a developer forum thread that mentions a way to render only particular tags based on boolean value that might be able to help.
https://developer.salesforce.com/forums/?id=906F0000000kA79IAE
Can you please have a look at it, looking forward to hearing back from you.
Regards,
Anutej
All Answers
I found a developer forum thread that mentions a way to render only particular tags based on boolean value that might be able to help.
https://developer.salesforce.com/forums/?id=906F0000000kA79IAE
Can you please have a look at it, looking forward to hearing back from you.
Regards,
Anutej
Hope this helps!
Did you try with above solution? Does it solve your purpose?
I tried with Anutej solution by creating the custom controller and setting Boolean rendering value Since i have nearly 30 component to render based on different scenrio .
but Dushyant your solution also helps the above scenario.
Thank you