You need to sign in to do that
Don't have an account?
Yves Asselin 3
Challenge Not yet complete... Could not find a method named 'getIsClassic' in 'GetPropertiesApexController'.
========SECTION==========================================
TRAILHEAD: Develop for Lightning Experience =>
Build Flexible Apps with Visualforce Pages and Lightning Components =>
Use a Visualforce Page as a Component in a Lightning Page
https://trailhead.salesforce.com/trails/lex_dev/projects/workshop-lightning-programmatic/steps/programmatic-step-3
=========================================================
CHALLENGE ERROR:
Challenge Not yet complete... here's what's wrong:
Could not find a method named 'getIsClassic' in 'GetPropertiesApexController'. Check your code and try again.
The Lesson directives are clear, and everything works but the error persists on the challenge… I continued onto the next unit andeverything works… Except I get this error in the challenge… Note that this exercise was done on a brand new org.
It looks like a bug but hard to tell… Any work arounds?
TRAILHEAD: Develop for Lightning Experience =>
Build Flexible Apps with Visualforce Pages and Lightning Components =>
Use a Visualforce Page as a Component in a Lightning Page
https://trailhead.salesforce.com/trails/lex_dev/projects/workshop-lightning-programmatic/steps/programmatic-step-3
=========================================================
CHALLENGE ERROR:
Challenge Not yet complete... here's what's wrong:
Could not find a method named 'getIsClassic' in 'GetPropertiesApexController'. Check your code and try again.
The Lesson directives are clear, and everything works but the error persists on the challenge… I continued onto the next unit andeverything works… Except I get this error in the challenge… Note that this exercise was done on a brand new org.
It looks like a bug but hard to tell… Any work arounds?
All Answers
Sometimes we have to disconnect/recornnect (+clear of the cache because a wrong org is still used).
Lightning has a very strong cache system and we start by deactivate it for the superbadges with Lex components for instance.
Lightning Component Framework Specialist
In the Setup > Security Controls > Session Settings section of Salesforce Classic, disable the component cache by deactivating the setting for Enable secure and persistent browser caching to improve performance.
https://trailhead.salesforce.com/fr/super_badges/superbadge_lcf
Here that should be not necessary for a simple VFP included in Lex.
As per suggested by Alain, I also swiched to Classic to disable caching .. could'nt find that feature in lightning...
any ideas anyone???
And for those of you who are a little code challenged like me, what he meant was copy this line:
public Boolean getIsClassic() {
return (UserInfo.getUiThemeDisplayed() == 'Theme3');
}
which was from the DreamhouseProspects.apxc
and paste it into the GetPropertiesApexController.apxc
...right after – private final Property__c prop;
public Boolean getIsClassic() {
return (UserInfo.getUiThemeDisplayed() == 'Theme3');
}