Today, Developer Force (http://developer.force.com) released its new library. Here are a few of them. All can be found at http://wiki.developerforce.com/index.php/Documentation. Workbook http://www.salesforce.com/us/developer/docs/workbook/index.htm Fundamentals http://www.salesforce.com/us/developer/docs/fundamentals/index.htm Cookbook http://www.salesforce.com/us/developer/docs/cookbook/index.htm Apex Advanced Code Example http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_shopping_cart_example.htm https://sites.secure.force.com/appexchange/listingDetail?listingId=a0N30000001saDCEAY And many more to come!
Reading the cheatsheet for Filtered Lookup (beta), I noticed an interesting line: Lookup filters function similarly to validation rules when you save a record. That is, actions that cause related records to save, such as changes to a roll-up summary fields, also trigger the lookup filters on the related record and block the save. The implications for this are massive. Let's explore two examples: Example 1: Filter as Validation Rule from Parent Record We create a lookup on a Child object to Parent. We filter the lookup to EXCLUDE Parent.Status = 'Closed' (Parent.Status is only Open or Closed.) We can edit the Child records as long as the Parent Status is not Closed. When Parent.Status is changed to Closed, existing related Child records are not affected... BUT if we attempt to edit a Child when the Parent is Closed, Force.com will throw an error (which we can customize) beause that […]