Skip to content

ngForce vfr error  #1

@Nick-Propertybase

Description

@Nick-Propertybase

After installing the unmanaged package, and running through some proof of concept work, I ran into an issue when calling the pre-defined vfr method below, and I noticed that ngForce(ngForce-visualForceRemoting.js) source was out of date compared to your ngForce repo. I tried other vfr methods including calling the controller directly with .send(), but the results were the same.

vfr method - Errors is created by the first line in the snippet.

var propType = vfr.describePicklistValues('pba__Listing__c', 'pba__PropertyType__c');
propType.then(function(results){
    $scope.propertyType = results;
});

Before attempting to update static resources with the new version of ngForce, I would get the following error:

Uncaught TypeError: undefined is not a functionngForce-visualForceRemoting.js:93 (anonymous function)VFRemote.js:132 e.cbVFRemote.js:99 VFExt3.direct.RemotingProvider.VFExt3.extend.doCallbackVFRemote.js:94 VFExt3.direct.RemotingProvider.VFExt3.extend.onDataVFRemote.js:75 VFExt3.extend.handleResponseVFRemote.js:39 aVFRemote.js:40 (anonymous function)

After updating ngForce(ngForce-visualForceRemoting.js) manually I get the following error:

 Uncaught SyntaxError: Unexpected token &

Thanks for putting together/sharing the seed and ngForce projects. They are both a huge help to get going with angularJs and SF in structured manor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions