I have trying to call a apex method annotated as RemoteAction from a Skuid snippet. But am getting the below error -
VF Page -
<apex:page controller=“SurveyHelper” docType=“html-5.0” readOnly=“true”>
<skuid:page page=“XYZ_Page_Include”></skuid:page>
</apex:page>
JS Code -
var params = argumentsr0],
$ = skuid.$;
var surveymodel = skuid.model.getModel(‘Survey’);
var surveyrow = surveymodel.getFirstRow();
var accountname = surveyrow.Account_Number__c;
var xyz= surveyrow.xyz_Type__c;
console.log(accountname);
console.log(projecttype);
var SurveyHelper = SurveyHelper.getquestions(accountname,xyz);
console.log(‘SurveyHelper ====>’+SurveyHelper);
Error message -
Uncaught TypeError: Cannot read property ‘getquestions’ of undefined