You need to sign in to do that
Don't have an account?
Ekta Gupta 23
Need help with Vf page
I need to expose a visualforce page on a custom object( Support Request) when SLA is breached for that support Request.
When Today date>= SLA Due Details, visualforce component on the Support Request page should show below message
"SLA Breached, please treat this on priority"
I have created below VF page and trying to expose on the page layout:
<apex:page standardController="Support_Request__c"> if (SLA_Details__c == null) { ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'SLA Breached')); return null; } </apex:page>
But its not working fine, Kindly suggest
When Today date>= SLA Due Details, visualforce component on the Support Request page should show below message
"SLA Breached, please treat this on priority"
I have created below VF page and trying to expose on the page layout:
<apex:page standardController="Support_Request__c"> if (SLA_Details__c == null) { ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'SLA Breached')); return null; } </apex:page>
But its not working fine, Kindly suggest
You have to use standard controller and also extension in vf page for this scenario.
try this code
controller
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
All Answers
You have to use standard controller and also extension in vf page for this scenario.
try this code
controller
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
Please include lightingstylesheets attribute in your apex:page tag
<apex:page lightningStylesheets="true" standardController="case" extensions="slaCheckcontroller">
I think page message wont work in lightning experience.You have to write some custom code.
Please refer below link which might help you in this
https://salesforce.stackexchange.com/questions/149797/how-to-convert-a-visualforce-apexpagemessages-to-be-lightning-style
Hope this helps you!