• dev_zyx
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi,

 

 How can we do something like Set History Tracking for OpportunityTeamMember? OWD setting for Opportunity in my org is Private. Please help.

 

Thanks and Regards.

Hi,

 

In one of the custom search functionalities that i came across there is use of StandardSetController (not sure why we use it). Also when i check on my page it is a little confusing. This functionality is to search some custom object but the recordSetVar says something else which might be developers error. Code snippets below:

 

<apex:page Controller="SearchCustObj" recordSetVar="{!opportunities}">
...

<apex:dataTable width="100%" border="1" id="DataTable" value="{!opportunities}" var="o" style="font-size:13px;text-align: center; vertical-align:top;word-wrap: break-word;height: 20px;"  headerClass="h1"
   columnsWidth="auto" >
 ....

</apex:page>

 

<!-- Controller -->

public with sharing class SearchCustObj{

 

        public ApexPages.StandardSetController setCon{get;set;}
        public List<CustObj__c> sObjectRecordsTemp{get;set;}

                public List<CustObj__c> getOpportunities()
                {
                          return sObjectRecordsTemp;            
                }

        .....

 

Can someone please help me understand this? Also if someone can share some documentation around better designing custom searches it would be very helpful.

 

Thanks in advance.

 

Hi,

 

 How can we do something like Set History Tracking for OpportunityTeamMember? OWD setting for Opportunity in my org is Private. Please help.

 

Thanks and Regards.