You need to sign in to do that
Don't have an account?
WannaKnow
Saving Child records
Hi,
I have a page with Account as standard controller. But in that page, I want to save the record of the child of account. So I have created an extension but my save function is not getting called. Am I missing something here?
public PageReference mySave() { Pagereference pr; system.debug('=================='+Address); system.debug('=================='+Follow_up); system.debug('=================='+acct.ID); objMed.Address__c = Address; objMed.Follow_up_Method__c = Follow_up; objMed.Account__c = acct.ID; insert objMed; return pr; }
Please help.
Did you use the command button attribute on the visualforce page.
<Apex:command button value="Save" action="{!mySave}"/>
yes...ofcourse....
Try this:
PageReference pr=new pagereference('apex/samplepage');
Could you please post the code of the VF page also . .
Thanks
SFDC_Evolve