You need to sign in to do that
Don't have an account?
salesforce@14
How to get the value from one field in parent object and populate in child object when i click new button in child object.
Hi,
can someone help me to how to figure out the apex class and vf page.
Thanks.
can someone help me to how to figure out the apex class and vf page.
Thanks.
There will be a relationship field between parent and child object. you will get parent record id from that field. Using parent id, you can query parent record details. Store the entire record information on an obj variable.
In VF page, create a text field and place the variable in value attribute.
Eg: <apex:inputText value="{!Account.Phone}" id="theTextInput"/>
Thanks,
Ganesh Babu.
For the above requirement you don't need to write any VF or Apex at all. Just create a formula field of type Text on child and the value of this formula field will be the value of the Picklist field in the parent. You click on new button and create the new child record and this field will automatically show the value of the parent picklist value.
Let us know if it doesn't solve your requirement and why
Hi fundooMental,
Thanks for your support.
I resolved my issue using Class and Page.
Thanks.