You need to sign in to do that
Don't have an account?
AlbertoSM
Get a value of a Master Detail relationship through query
Hi everyone,
Two custom objects. They are related as Master Detail:
Store__c and Postal_Code__c.
I have a visualforce that, depending of the Postal_Code__c you introduce, shows the store that corresponds to that postal code.
Can anyone tell me how to write the function in the controller and the corresponding query?
Thanks a lot for your time!
Cheers
Alberto
Two custom objects. They are related as Master Detail:
Store__c and Postal_Code__c.
I have a visualforce that, depending of the Postal_Code__c you introduce, shows the store that corresponds to that postal code.
Can anyone tell me how to write the function in the controller and the corresponding query?
Thanks a lot for your time!
Cheers
Alberto
please try like below code :
Hope This helps.
Please let me know incase of any further assistance.
Thanks
Varaprasad
<apex:InputField value="{!Postal_Code__c.store__c}">
Please mark as best answer if this solves your problem.