You need to sign in to do that
Don't have an account?
S D
Trying to Update the InlineEditSupport Field in Controller?
I am trying to update the inlineEdited field in Extension Controller, and am not able to capture the value of the Phone# field in the Controller?
<apex:outputField value="{!candidate.Phone__c}" label="Phone#"> <apex:inlineEditSupport event="ondblclick" showOnEdit="EditBttn" HideOnEdit="DelBttn" /> </apex:outputField>My COntroller Code:
public string Phone{get;set;} //how to capture the value ?? public UpdateCandidateInfo(ApexPages.StandardController controller) { this.jb = (Job_Application__c )controller.getRecord(); system.debug( 'jb' + this.jb); system.debug('candidate Id' + jb.Candidate__c); } public void save() // Also on click of Save this part of code is not getting called. { system.debug('Phone' +pPhone); //in Logs i can see the Phone is empty candidate = new Candidate__c (); candidate.Phone__c = pPhone; candidate.id= jb.Candidate__c; update candidate ; }
Requirement is : Any Phone which user would update on the LookupObject, we need to capture that value in the controller and then save it by using a DML on candidate.
There is no binding between "Phone" variable in controller with visualforce page.
Apply system debug to Phone__c
To add on to Reid's response:
Instanciate your Candidate__c record in your constructor. You're already referencing / updating the Phone__c field via your inlineEditSupport tag, so in your save method, you'll simply update the candidate record. See the example below.