You need to sign in to do that
Don't have an account?
Erik Rodgers
Where is getProducts() method being invoked in the lesson "Using Inner Classes" of the Apex Workbook?
Can anyone explain where the getProducts() method is actually being invoked in the lesson "Using Inner Classes" of the Apex Workbook? I do not see anywhere in the Visualforce markup, or the StoreFrontController (constructor or otherwise) where this method gets invoked.
http://www.salesforce.com/us/developer/docs/apex_workbook/Content/apex_visualforce_5.htm
http://www.salesforce.com/us/developer/docs/apex_workbook/Content/apex_visualforce_5.htm
If you want to initiate some value to the variable while initiating you can also initiate the variable in the below method.The "get" method is used to pass data from your Apex code to your Visualforce page. Here "get" is the keyword and Products is the variable name. So don't need to call this method, it will be invoked when the variable initiated
All Answers
If you want to initiate some value to the variable while initiating you can also initiate the variable in the below method.The "get" method is used to pass data from your Apex code to your Visualforce page. Here "get" is the keyword and Products is the variable name. So don't need to call this method, it will be invoked when the variable initiated
list <StoreFrontController.DisplayMerchandise> mylist = StoreFrontController.getProducts();
is fine but I can't get an acceptable syntax for the get methods.
e.g. string myname = mylist[1].name;