You need to sign in to do that
Don't have an account?
Vijay Kumar Rebbala 11
If the user change the input field value 'CustomerPriority__c' and click on Save. I need to update the record. How can I do that?
Thanks,
Vijay
Capture the inputfield value changes from Visualforce page into controller and update the record
<apex:page Controller="testctrl1"> <apex:form > <apex:actionRegion > <apex:inputField value="{!updacc.Name}"/> <apex:inputField value="{!updacc.CustomerPriority__c}"/> </apex:actionRegion> <apex:commandButton action="{!customupdate}" value="Update" immediate="true"/> </apex:form> </apex:page> public class testctrl1{ public Account updacc{get; set;} public testctrl1() { updacc = [select Id, Name, CustomerPriority__c From Account where id = '001610000047HlW']; } public void customupdate(){ update updacc; } }
If the user change the input field value 'CustomerPriority__c' and click on Save. I need to update the record. How can I do that?
Thanks,
Vijay
Thanks
Sandeep Singhal
http://www.codespokes.com/