liuyan
2022-11-24 8badb57ea2c82557850ad5b39281c3e8714eb119
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public without sharing class TestController extends NewAndEditBaseController 
{
    public TestController(ApexPages.StandardController controller) {
        
        List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('Inquiry_form__c').getDescribe().fields.getMap().keyset());  
        // Add fields to controller. This is to avoid the SOQL error in visualforce page
        if(!Test.isRunningTest()){
            controller.addFields(fieldList);
        }
        LookUpOverrideFields.add('Contact_Name__c');
        //添加项
        Init(controller.getRecord());
        system.debug(LookUpOverrideFieldsMapJson);
    }
 
 
}