You need to sign in to do that
Don't have an account?
Varun Teja
We have 3 objects Account, Contact, Opportunity. In a VF page using controller we need to display the contact & Opportunity details which are related to Account.
We have 3 objects Account, Contact, Opportunity. In a VF page (using controller) we need to display the contact & Opportunity which are related to Account.Here the condition is, For paticular Account 'Show Contacts' and 'Show Opportunity' and 'Reset' buttons are there.
1. If 'show contacts' button click it will fetch the particular account contacts only display in tabular , but here 'Show Contacts' button should be disable and 'Show Opportunity' button will be enable.
2. If 'show Opportunity' button click it will fetch the particular account contacts only display in tabular , but here 'Show Opportunity' button should be disable and 'Show Contacts' button will be enable.
Ex: TestAccount1 'Show Contacts' 'Show Opportunity' 'Reset'
TestAccount2 'Show Contacts' 'Show Opportunity' 'Reset'
TestAccount3 'Show Contacts' 'Show Opportunity' 'Reset'
Could you please help on this
1. If 'show contacts' button click it will fetch the particular account contacts only display in tabular , but here 'Show Contacts' button should be disable and 'Show Opportunity' button will be enable.
2. If 'show Opportunity' button click it will fetch the particular account contacts only display in tabular , but here 'Show Opportunity' button should be disable and 'Show Contacts' button will be enable.
Ex: TestAccount1 'Show Contacts' 'Show Opportunity' 'Reset'
TestAccount2 'Show Contacts' 'Show Opportunity' 'Reset'
TestAccount3 'Show Contacts' 'Show Opportunity' 'Reset'
Could you please help on this
Try the below visualforce page code using standard controller to display the Account information and its related Contact and Opportunity records In another way, you can do this using standardController "Account" and in extension use the below query and replace XXXX's with dynamic account Id using(GetRecord Method of the controller). Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra