<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>newEdit</fullName>
|
<availability>online</availability>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>编辑</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() {
|
var records = new Array();
|
var result = sforce.connection.query("select id,Status__c from SolutionProjectRequirements__c where id= '{!Solution_Programme__c.SolutionProjectRequirementsId__c}' ");
|
records = result.getArray("records");
|
if(records[0].Status__c == '07结案'){
|
alert('solution项目需求已结案,不能编辑');
|
}else{
|
var url = "{!Solution_Programme__c.Id}/e?retURL=%2F{!Solution_Programme__c.Id}";
|
window.top.location.href=url;
|
|
}
|
}
|
foo();</url>
|
</WebLink>
|