<?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("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
//2021-10-21 gwy 版本更改为51.0
|
var foo = function(){
|
if("{!QIS_Report__c.QIS_Status__c}" != "取消"){
|
alert("状态为取消的QIS才可以被复制并新建");
|
return;
|
}
|
window.open("/{!QIS_Report__c.Id}/e?clone=1&retURL=%2F{!QIS_Report__c.Id} &CF00N100000073PA0={!QIS_Report__c.Name}&CF00N100000073PA0_lkid={!QIS_Report__c.Id}");
|
|
}
|
foo();</url>
|
</WebLink>
|