You need to sign in to do that
Don't have an account?
Mathew Andresen 5
Lighting Connect and Visualforce
So went through the Lighting Connect Trailhead, and everything works fine. I can connect to the test database, and I connected the Orders__x object to the Account object.
So I figure let's test it out in visualforce but that's where I started running into trouble. I figure to start, I would do a real simple test somethign like the following
and I used the externalId as my connector
https://c.na16.visual.force.com/apex/phonepage?ExternalId=1001
But it's not working. Any ideas?
Thanks,
So I figure let's test it out in visualforce but that's where I started running into trouble. I figure to start, I would do a real simple test somethign like the following
<apex:page standardController="Orders__x"> <apex:detail /> </apex:page>
and I used the externalId as my connector
https://c.na16.visual.force.com/apex/phonepage?ExternalId=1001
But it's not working. Any ideas?
Thanks,
KristofferGreene
To set up retrieving by another page parameter other than ID you'd need to set up something with ApexPages.currentPage().getParameters() and a differen SOQL query. The external objects do have an standard salesforce id associated with them, prefixed with an x. So with a standard controller on a visualforce page you'd have a url something like: https://c.na31.visual.force.com/apex/PhoneExternal?id=x0137000000GmcZAAS&sfdc.override=1.