Sunday, May 26, 2013

Invoke Apex Classes

Once apex class is compiled and saved then you can invoke apex class method by creating object of class or direct invocation of static members.

Note: Class is blue print for object.

Ways/where to invoke or refer apex classes:

a) Using another apex code ( Apex class / Trigger / Apex Anonymous code block)
b) Visualforce Page using {!actions}
c) JavaScript Remoting Requests ( with in visualforce pages ) ( used for AJAX calls )
d) SFDC API calls ( external  Program connecting through REST/SOAP APIs). ( Java / JavaScript / VC++/ VB++/ Perl etc. ) ( define apex methods with webservice ,global and  static keywords )

No comments:

Post a Comment