You need to sign in to do that
Don't have an account?
copy account adress information to custom object address in vf page
hi,
Account-->standard object
Contact -->Standard Object
Address-->Custom object
i have a vf page that displays account ,contact informations and a custom object "address".this custom object has 2 record type with separate page layout for billing and shipping address.(both billing addrress and shipping address have separate section in vf page)
i have a command button "COPY" and a picklist with option BILLING ,SHIPPING if i select "BILLING"on click of the "cOPY" button in vf page,
standard object ACCOUNT billing Address should copy to visual force page billing address section and save to billing record type after copy it in a vf page.
kindly reply me soon .
THANKS IN ADVANCE
In your action method that is invoked when the user hits the copy button, you should be able to make the appropriate changes to the custom object.
I've had a stab at it below - obviously I don't know any of your object/field names, so it will need some tweaking. copyType is the property that backs the picklist, billingAddr is the instance of your custom object tied to the billing address and account holds the account record.
can you give me some sample code ,i am new to salesforce
I did - see my earlier post. Are you looking for the full page and controller code? If so, I'm afraid that's a level of help I don't have time to give. If you want to have a stab at it, I'll be happy to assist you in the event of problems.