function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Apex Class: public with sharing class DemoClass { Public Demo_Project__c pro {get; set;} public DemoClass(){ pro = new Demo_Project__c(); } public PageReference savePro() { String str = ' FITA'; pro.Name = pro.Name+str; System.debug('Project===>>> '+pro); insert pro; PageReference pr = new PageReference('/apex/DemoPage'); pr.setRedirect(true); return pr; } } VF Page: ================== <apex:page Controller="DemoClass"> <apex:sectionHeader title="Project details" subtitle="new projects"/> <apex:form> <apex:pageBlock id="PB1"> <apex:pageBlockSection columns="2" showHeader="true" title="Information"> <apex:inputField value="{!pro.Name}" required="true"/> </apex:pageBlockSection> <apex:pageBlockButtons > <apex:commandButton action="{!savePro}" value="Save" reRender="PB1"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
--
Thanks,
Prashant
All Answers
--
Thanks,
Prashant