From a1b500c74db7ed741ab4bebbd42530fd30b89bf9 Mon Sep 17 00:00:00 2001 From: yangjieke <yangjieke@prec-tech.com> Date: 星期五, 01 四月 2022 10:07:17 +0800 Subject: [PATCH] SWAG-CCL6R7 补充 --- force-app/main/default/pages/ViewOnCallDecrypt.page | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/pages/ViewOnCallDecrypt.page b/force-app/main/default/pages/ViewOnCallDecrypt.page index 2ddae3a..72a1136 100644 --- a/force-app/main/default/pages/ViewOnCallDecrypt.page +++ b/force-app/main/default/pages/ViewOnCallDecrypt.page @@ -17,12 +17,13 @@ </apex:repeat> </apex:pageBlockSection> <script> + AWSService.sfSessionId = '{!GETSESSIONID()}'; var staticResources = JSON.parse('{!staticResource}'); function QueryConsumApplyFromAWS() { AWSService.query(staticResources.queryUrl, '{!AWSDataId}', queryBack, staticResources.token); } var queryBack = function queryBack(data) { - document.querySelector("[id='page:form:pageBlock:pageBlockSection:j_id2:1:j_id3']").innerHTML = data.object.callerPhone; + document.querySelector("[id='page:form:pageBlock:pageBlockSection:j_id2:0:j_id3']").innerHTML = data.object.callerPhone; document.querySelector("[data-id='Responsible_Person_HP__c']").innerHTML = data.object.responsiblePersonHP; }; sfdcPage.appendToOnloadQueue(function () { -- Gitblit v1.9.1