• bgleber
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

 So, I have a list of checkboxes that are used to filter a recordset.

 

 Here's the VisualForce code...

 

<apex:selectCheckboxes value="{!HDDFormFactor}" Title="Form Factor" Layout="pageDirection">

 

<apex:selectOptions value="{!HDDFormFactorOptions}" />

 

</apex:selectCheckboxes>

 

 

 

Here's the supporting Apex...

 

 

List<String> HDDFormFactor{get;set;} public List<SelectOption> HDDFormFactorOptions { get { if (HDDFormFactorOptions == null && auctionRecordTypeName == 'Hard Drive') { HDDFormFactorOptions = new List<SelectOption>(); Schema.DescribeFieldResult fieldResult = Auction__c.HDD_Form_Factor__c.getDescribe(); List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues(); for(Schema.PicklistEntry p : ple) HDDFormFactorOptions.add(new SelectOption(p.getValue(), p.getValue())); } return HDDFormFactorOptions; } set; }

 

 

My issue is when the page submits, the values that are checked are not stored in the  HDDFormFactor property like I thought they would be. Am I doing something wrong or is there another method to selectCheckboxes.

 

Thanks for any help.

 

I am looking to encrypt some data using 3DES algorithm.

Is this possible in Apex ?

 

Any pointers would be greatly appreciated.

 

Thanks,

Sham

  • October 20, 2009
  • Like
  • 0