| | |
| | | |
| | | <apex:outputPanel rendered="{!IF(type = 'General' || type = 'All',true,false)}"> |
| | | <!-- Before PIPL Update by Li Jun 20220414 Start --> |
| | | <apex:commandButton value="Attach" action="{!uploadFile}"></apex:commandButton> |
| | | <!-- <apex:commandButton value="Attach" action="{!uploadFile}"></apex:commandButton> --> |
| | | <!-- Before PIPL Update by Li Jun 20220414 End --> |
| | | <input class="btn" type="Button" value="PIPL Attach" onclick="window.open('/apex/SWOFileUploadPage')" /> |
| | | <apex:iframe src="/apex/SWOFileUploadPage?parentId={!swoid}" scrolling="true" height="300" id="fileUploadSection"/> |
| | | <!-- <input class="btn" type="Button" value="Attach" onclick="window.open('/apex/SWOFileUploadPage?parentId={!swoid}')" /> --> |
| | | <table class="tableCss" style="border:1px solid #000000;width: 80%"> |
| | | <tr style="text-align:center;"> |
| | | <th style="text-align:center;width: 33%;">File Name</th> |
| | |
| | | |
| | | return sb.tostring() |
| | | } |
| | | console.log('{!mailListStr}'.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\s+/g,"").replace("\"/g","\\\"")) |
| | | var mailListObj = JSON.parse('{!mailListStr}'.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\s+/g,"")) |
| | | console.log('awsDataIdStr = ' + '{!awsDataIdStr}') |
| | | var mailListObj = JSON.parse('{!awsDataIdStr}'); |
| | | var staticResourceMailMerge = JSON.parse('{!staticResourceMailMerge}') |
| | | var mailList = [] |
| | | var PIDataObjList = {} |
| | |
| | | |
| | | |
| | | for(var i=0;i<mailListObj.length;i++){ |
| | | mailList.push(mailListObj[i].mm.AWS_Data_Id__c) |
| | | mailList.push(mailListObj[i]) |
| | | } |
| | | var queryBack = function queryBack(data){ |
| | | console.log(data) |