涂煌豪
2022-05-17 c406cfcd9ce37fd43711bb12b3dae2b3bd120c49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>copy_QIS</fullName>
    <availability>online</availability>
    <description>复制带原QIS编码用;</description>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>复制1</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
//2021-10-21 gwy 版本更改为51.0
var foo = function(){
if(&quot;{!QIS_Report__c.QIS_Status__c}&quot; != &quot;取消&quot;){
alert(&quot;状态为取消的QIS才可以被复制并新建&quot;);
return;
window.open(&quot;/{!QIS_Report__c.Id}/e?clone=1&amp;retURL=%2F{!QIS_Report__c.Id} &amp;CF00N100000073PA0={!QIS_Report__c.Name}&amp;CF00N100000073PA0_lkid={!QIS_Report__c.Id}&quot;);
 
}
foo();</url>
</WebLink>