You need to sign in to do that
Don't have an account?
karthik karthik
how to clone parent record using relatedlist custom button
I've Two objects Case(Parent) & CaseDetail(child) am used lookup relationship here, my requirement is in case object relatedlist i've CaseDetail custom button if click on that button i want to clone some fields values from parent record and same values to display in child object record.
once i clone parent field values is it possible to change those field values in future.
Example: I've "state" picklist field in both objects, in parent record "state" field picklist value is "new" if i click on custom button i'll get same picklist value in child record also after some other time i need to change that picklist value from "new" to "closed" in child record.
Is the whole scenario is possible my thougt is using visualforce is possible.
can anyone pls send some source code .
Thanks in Advance.
once i clone parent field values is it possible to change those field values in future.
Example: I've "state" picklist field in both objects, in parent record "state" field picklist value is "new" if i click on custom button i'll get same picklist value in child record also after some other time i need to change that picklist value from "new" to "closed" in child record.
Is the whole scenario is possible my thougt is using visualforce is possible.
can anyone pls send some source code .
Thanks in Advance.
Suneel#8
You can use similar code as below to clone Object data in your controller class
Suneel#8
You can also use clone method to do the same