• Manjunath S 85
  • NEWBIE
  • 5 Points
  • Member since 2020

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

Hi Trailblazers,

I am stuck in Step 3 of the Advanced Apex Specialist badge where I'm getting this error:

"Ensure that the getFamilyOptions method returns the correct picklist values."

I have only the 4 picklist values: 
User-added image

The getter method for the FamilyOptions property is defined here:

public static List<SelectOption> GetFamilyOptions(){
        List<SelectOption> familySelections = new List<SelectOption>();
        familySelections.add(new SelectOption(Constants.SELECT_ONE,Constants.SELECT_ONE));
        for(Schema.PicklistEntry ple : Constants.PRODUCT_FAMILY){
            familySelections.add(new SelectOption(ple.getLabel(),ple.getValue()));
        }
        system.debug('>>>>> familySelections >>>>>>>> '+familySelections);
        return familySelections;
    }

Can somebody please help me in figuring out what I am doing wrong here?

Hi Trailblazers,

I am stuck in Step 3 of the Advanced Apex Specialist badge where I'm getting this error:

"Ensure that the getFamilyOptions method returns the correct picklist values."

I have only the 4 picklist values: 
User-added image

The getter method for the FamilyOptions property is defined here:

public static List<SelectOption> GetFamilyOptions(){
        List<SelectOption> familySelections = new List<SelectOption>();
        familySelections.add(new SelectOption(Constants.SELECT_ONE,Constants.SELECT_ONE));
        for(Schema.PicklistEntry ple : Constants.PRODUCT_FAMILY){
            familySelections.add(new SelectOption(ple.getLabel(),ple.getValue()));
        }
        system.debug('>>>>> familySelections >>>>>>>> '+familySelections);
        return familySelections;
    }

Can somebody please help me in figuring out what I am doing wrong here?
I am hit with other issue 'Ensure that page performance is improved by only rerendering the table and error messages when a use clicks the Add button.' I have used actionRegion to rerender the needed table,chart and messages.still it shows issues.
I have linked my lightning component with Quick action button,
but width of that pop-up has fixed width, my requirement is I want full screen to be acquire by that component.
through mew window or new tab,
How should I achieve this