From 03523642de0c4f319d90d0aec8a756f9e80e6a7e Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 17 三月 2022 21:27:47 +0800 Subject: [PATCH] PIPLFunctionDeployV2 --- force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls b/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls index 99d2209..b6c54ad 100644 --- a/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls +++ b/force-app/main/default/classes/NewConsumApplyEquipSetDetailController.cls @@ -1,4 +1,12 @@ +/** + * @description : + * @author : ChangeMeIn@UserSettingsUnder.SFDoc + * @group : + * @last modified on : 03-17-2022 + * @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc +**/ global without sharing class NewConsumApplyEquipSetDetailController { + public String layoutSectionsStr {get; set;}//for dynamic add readonly attribute public List <LayoutDescriberHelper.LayoutSection > layoutSections{set;get;} public String awsToken{set;get;} public static Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); @@ -33,6 +41,7 @@ } LayoutDescriberHelper.LayoutWrapper LayoutWrapperValue = LayoutDescriberHelper.describeSectionWithFieldsWrapper(rtTypeId, 'Consum_Apply_Equipment_Set_Detail__c','classic'); layoutSections = LayoutWrapperValue.layoutSections; + layoutSectionsStr = JSON.serialize(layoutSections); //for dynamic add readonly attribute List<String> requiredFieldAPIList = LayoutWrapperValue.requiredFieldAPIList; Map<String,String> fieldAPIToLabelMap = LayoutWrapperValue.fieldAPIToLabelMap; requiredFieldAPIListStr = JSON.serialize(requiredFieldAPIList); -- Gitblit v1.9.1