<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Unassign</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) {
|
window.open("/apex/EquipmentRentalUnassign?raId={!URLENCODE(Rental_Apply__c.Id)}");
|
} else {
|
//弹框选择
|
window.open("/apex/EquipmentRentalUnassign?raId={!URLENCODE(Rental_Apply__c.Id)}&EquipmentId="+records);
|
}
|
};
|
foo()</url>
|
</WebLink>
|