Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
CrossFilter Class
Namespace
CrossFilter Constructors
The following are constructors for CrossFilter.
CrossFilter(criteria, includesObject, primaryEntityField, relatedEntity, relatedEntityJoinField)
Signature
public CrossFilter(List<Reports.ReportFilter> criteria, Boolean includesObject, String primaryEntityField, String relatedEntity, String relatedEntityJoinField)
Parameters
-
criteria:
Type: List<Reports.ReportFilter>
Information about how to filter the relatedEntity. Relates the primary entity with a subset of the relatedEntity.
-
includesObject:
Type: Boolean
Specifies whether objects returned have a relationship with the relatedEntity (true) or not (false).
-
primaryEntityField:
Type: String
The name of the object on which the cross filter is evaluated.
-
relatedEntity:
Type: String
The name of the object that the primaryEntityField is evaluated against—the right-hand side of the cross filter.
-
relatedEntityJoinField:
Type: String
The name of the field used to join the primaryEntityField and relatedEntity.
CrossFilter Methods
The following are methods for CrossFilter.
getCriteria()
Signature
public List<Reports.ReportFilter> getCriteria()
Return Value
Type: List<Reports.ReportFilter>
getRelatedEntity()
Signature
public String getRelatedEntity()
Return Value
Type: String
getRelatedEntityJoinField()
Signature
public String getRelatedEntityJoinField()
Return Value
Type: String
setCriteria(criteria)
Signature
public void setCriteria(List<Reports.ReportFilter> criteria)
Parameters
-
criteria:
Type: List<Reports.ReportFilter>
Return Value
Type: void
setIncludesObject(includesObject)
Signature
public void setIncludesObject(Boolean includesObject)
Parameters
-
includesObject:
Type: Boolean
Return Value
Type: void
setPrimaryEntityField(primaryEntityField)
Signature
public void setPrimaryEntityField(String primaryEntityField)
Parameters
-
primaryEntityField:
Type: String
Return Value
Type: void
setRelatedEntity(relatedEntity)
Signature
public void setRelatedEntity(String relatedEntity)
Parameters
-
relatedEntity:
Type: String
Return Value
Type: void
setRelatedEntityJoinField(relatedEntityJoinField)
Signature
public void setRelatedEntityJoinField(String relatedEntityJoinField)
Parameters
-
relatedEntityJoinField:
Type: String
Return Value
Type: void