• johndoe
  • NEWBIE
  • 25 Points
  • Member since 2013

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

I want to create a dynamic select list. Below is my code:

 

Component.Apex.SelectList selectDynamic = new Component.Apex.SelectList();
        selectDynamic.multiselect = false;
        selectDynamic.value = stringList;
        Component.Apex.SelectOptions dynamicOptions = new Component.Apex.SelectOptions();
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('hi','hi'));
        dynamicOptions.value = options;
        selectDynamic.childComponents.add(dynamicOptions);

 

on the page load I'm getting error "Invalid selectOptions found. Use SelectOption type in Apex."

A button is created in the custom object, is there any way to add the button to the page layout of any layout such as Account/Opportunity?
I had to add the button to the custom object because the force ide was not including the custom buttons and links created in the account customizations, and so wasnt able to deploy them. Is there any workaround for this?

A button is created in the custom object, is there any way to add the button to the page layout of any layout such as Account/Opportunity?
I had to add the button to the custom object because the force ide was not including the custom buttons and links created in the account customizations, and so wasnt able to deploy them. Is there any workaround for this?