From 02de2a5973b758dc94dff108dd6cbf07a42c6cee Mon Sep 17 00:00:00 2001
From: 付煜 <fuyu3103346691@163.com>
Date: 星期一, 28 三月 2022 16:20:25 +0800
Subject: [PATCH] LightningUtil修改
---
force-app/main/default/classes/NewAndEditQISController.cls | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/NewAndEditQISController.cls b/force-app/main/default/classes/NewAndEditQISController.cls
index 94bcb4f..899961a 100644
--- a/force-app/main/default/classes/NewAndEditQISController.cls
+++ b/force-app/main/default/classes/NewAndEditQISController.cls
@@ -5,6 +5,20 @@
List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('QIS_Report__c').getDescribe().fields.getMap().keyset());
controller.addFields(fieldList);
Init(controller.getRecord());
+
+
+
+ //Updated by Chen Yanan 20220323 Start
+ String contactId = controller.getRecord().Id;
+ if(contactId == null){
+ Map<string,string> mso = ApexPages.currentPage().getParameters();
+ system.debug('mso='+mso);
+ if(mso.containsKey('CF00N10000002FHFK_lkid')){
+ controller.getRecord().put('Name', '*');
+ }
+ }
+ system.debug('controller.getRecord()='+controller.getRecord());
+ //Updated by Chen Yanan 20220323 End
}
@RemoteAction
--
Gitblit v1.9.1