| <?xml version="1.0" encoding="UTF-8"?> | 
| <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Split_Apply</fullName> | 
|     <availability>online</availability> | 
|     <displayType>massActionButton</displayType> | 
|     <linkType>javascript</linkType> | 
|     <masterLabel>分单</masterLabel> | 
|     <openType>onClickJavaScript</openType> | 
|     <protected>false</protected> | 
|     <requireRowSelection>true</requireRowSelection> | 
|     <url>{!RequireScript("/soap/ajax/51.0/connection.js")} | 
| {!RequireScript("/soap/ajax/51.0/apex.js")} | 
| //2021-10-21 gwy 版本更改为51.0 | 
| var foo = function() { | 
|     var records = {!GETRECORDIDS($ObjectType.Rental_Apply_Equipment_Set__c)}; | 
|     if (records.length < 1) {  | 
|         alert("请选择借出备品一览记录");  | 
|     } else {  | 
|         //弹框选择 分单到办事处OR备品中心 | 
|          window.open("/apex/RentalApplySplit?objId={!URLENCODE(Rental_Apply__c.Id)}&raesIds="+records, 'RentalApplySplit', 'width=600,height=200');     | 
|     } | 
| }; | 
| foo()</url> | 
| </WebLink> |