I am trying to store value in an object using:
<apex:inputField type="number" value="{!VS.Vegetable_Amount__c}" id="v0" />
in the controller I am doing this:
public Expense_Object__c VS {get;set;}
public PageReference saveAndReturn()
{
system.debug('Value is:'+VS.Total_Amount__c);
}
I am trying to fetch value here but neither data is getting inserted nor I am getting any value?