developerforce / LightningContainerExamples

67 stars 42 forks source link

LCC.callApex() issue #13

Open Frelseren opened 6 years ago

Frelseren commented 6 years ago

Hello,

I tried to use the callApex(), both in your ApexController example and by myself in multiple environments.

It never gets executed because Visualforce is undefined.

The example was updated four months ago, I'm wondering if it doesn't work anymore because of a Salesforce update. Is there a way to enable RemoteAction support for the Lightning Container?

Thank you!

suryaiiit commented 6 years ago

Refer: https://developer.salesforce.com/blogs/2018/04/lightning-container-component-building-components-with-react-angular-and-other-libraries.html https://medium.com/@ennoucas/salesforce-lightning-application-with-vue-js-and-webpack-part-2-af0071347274

You need to create a manifest.json with the below lines: { "landing-pages": [{ "path": "index.html", "apex-controller": "ApexController" }] }

ennoucas commented 6 years ago

@Frelseren : as @suryaiiit you can read the paragraph of my article talking about the manifest.json file . Unfortunately without it, Salesforce does not trigger callApex and does not throw any errors either...

suryaiiit commented 6 years ago

Hey @ennoucas , how do I include the namespace along with the controller??

ennoucas commented 6 years ago

Hi @suryaiiit : I do it like that : "apex-controller": "namespace.ApexControllerName"

sagarpomal commented 4 years ago

@ennoucas is callapex subject to Salesforce API limits?