O'Reilly logo

The Developer’s Guide to the Force.com Platform by Phil Choi, Andrew Fawcett, Glen Martin, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic SOQL and SOSL

As repeatedly emphasized in this book, good Force Platform applications are data-driven. These applications naturally interact with data, even to the point of sometimes changing the user interface based on data values, such as with record types, dependent picklists, or the Visualforce example you will be creating in the next chapter.

All these examples use different data, but rely on a fixed set of data structures. What about those times when you want to go beyond the data structure of a single known object? What if you want to create some functionality that can operate on different objects, depending on application context?

To address this issue, Apex code includes the ability to create SOQL and SOSL statements dynamically, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required