You need to sign in to do that
Don't have an account?
Ryan Pat
vf page hide button
I have one visualforce page and based on opportunity stage = closed won and if industry is blank it is throw error message that please select industy but in the vf page at the bottom there are 2 buttons but when this error message come i do not want to show submit button i want to hide that button how can i complete this ?
Here is my code
Here is my code
<apex:page standardcontroller="Opportunity" extensions="OpportunityApprovalControllerExtension"> <apex:Form > <apex:PageBlock mode="view" title="Approval Submission Details"> <apex:messages /> <apex:PageBlockButtons location="bottom"> <apex:commandButton value="Submit" action="{!SubmitForApproval2}" rendered="{!ShowSubmitButton}" /> <apex:commandButton value="Return to Opportunity" action="{!ReturnToOpp}" /> </apex:PageBlockButtons> </apex:PageBlock> </apex:Form> </apex:page>
Greetings to you!
Try this:
Please refer to the below links which might help you further with the above requirement.
http://www.infallibletechie.com/2013/04/hide-and-show-example-using-apex-in.html
http://www.interactiveties.com/blog/2012/visualforce-dynamic-buttons.php
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
Try this:
Please refer to the below links which might help you further with the above requirement.
http://www.infallibletechie.com/2013/04/hide-and-show-example-using-apex-in.html
http://www.interactiveties.com/blog/2012/visualforce-dynamic-buttons.php
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
How can i fix this issue??
I have one object called CPM which has couple of fields one is user field which has a lookup with user object and second one is week number which is a formula field it will show which week is going on based on Todays date.
2. On opportunity object i have 2 field one is sub date it is a date field and other is current week which is a formula field it will show current week number based on opportunity sub date .
Now the requirement is based on CPM object record user and week number field it will go to all opportunity which is created this year and sub date is not blank and on opp current week is same and update CPM Field .
Here is a batch class it is working currectly but some one check and optimized this code as much as possible with bulkify also :