insPageBtn
online
window.open("/apex/OFSInsReportLayout?id={!URLENCODE(Inspection_Report__c.Id)}", "", "");
button
javascript
报告书明细编辑
onClickJavaScript
false
{!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();