You need to sign in to do that
Don't have an account?
KrishnakumarJ
Calling methods from java class and bind the results in APEX page?..
FileName : Sample.java
import com.sforce.soap.partner.*;
import com.sforce.ws.*;
public class Sample{
public List getAccountDetails() {
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username); config.setPassword(password);
connection = Connector.newConnection(config);
//Fetching Account Details
}
How to invoke this getAccountDetails() function in APEX page?...
Any help is appreciated.
jhenning
You can only call other Apex methods within Apex pages, not Java. You call call the getAccountDetails if you exposed it as a webservice and called the webservice from a Visualforce page.