<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>insPageBtn</fullName>
|
<availability>online</availability>
|
<description>window.open("/apex/OFSInsReportLayout?id={!URLENCODE(Inspection_Report__c.Id)}", "", "");</description>
|
<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-22 gwy 版本更改为51.0
|
var foo = function() {
|
var RecordTypeId = "{!Inspection_Report__c.RecordTypeId}";
|
var url;
|
|
if(RecordTypeId == '0121m000000m3Bi'){
|
url = '/apex/OFSInsReportLayoutForVm';
|
}else{
|
url = '/apex/OFSInsReportLayout';
|
}
|
|
window.open(url += '?id={!Inspection_Report__c.Id}')
|
}
|
foo();</url>
|
</WebLink>
|