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

Housekeeping

So far, so good—in fact, almost completely good. Your selectList is repopulating as you want, but remember, getting your application to do what you want is only the first step. You also have to insure that the appropriate values in your controller are properly initialized, and that your controller does not allow users to do what they are not supposed to do.

First to the initialization.

1.
Add the highlighted line of code to your positionExtension class.
public positionExtension(ApexPages.StandardController
       postionController) {
    this.position = (Position__c)
     postionController.getRecord();
 positionTypeID = position.position_type__c;
    }
Remember that the positionTypeID property is the intermediary between the Position_Type__c field ...

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