2

In order, to make VF page available, to select as Opportunity new action, your apex page should have property standardController="Opportunity" e.g. <apex:page standardController="Opportunity"> ...


2

Visualforce (well, the renderer that converts your Visualforce into HTML that ends up getting sent to your browser) doesn't have a way to access the variables of a class directly. Instead, Visualforce accesses things by calling a method. Most times (except for methods given in the action parameter of things like <apex:page> and <apex:pageButton>),...


2

You need to add get ; set; in order to access apex class members on the client side. This could be similar to what you're already doing with varLMI. You defined a getter getvarLMI that returns the value of varLMI. or you can simply mark the property as get set. Update line #3 to public Integer bemSize{ get; set; }


1

You are passing opportunity id as :ApexPages.currentPage().getParameters().get('OpportunityId') for opportunity lines and contact roles. But it should be : ApexPages.currentPage().getParameters().get('id') public class controllerTest { public Opportunity opportunity {get; set;} public List<OpportunityLineItem> oppLineItem {get; set;} public list<...


1

If you want to use a Custom Controller and you still need to use the standard controller functions you can use a Controller Extension. Change your Header to like this: <apex:page standardController="Opportunity" extensions="controllerTest"> You would also need to modify your controller to handle the Opportunity. Like this: private ...


Only top voted, non community-wiki answers of a minimum length are eligible