| | |
| | | <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}"); |
| | | window.open("/{!QIS_Report__c.Id}/e?newclone=1&retURL=%2F{!QIS_Report__c.Id} &CF00N100000073PA0={!QIS_Report__c.Name}&CF00N100000073PA0_lkid={!QIS_Report__c.Id}"); //update by Deloitte 2022/04/11 |
| | | |
| | | } |
| | | foo();</url> |