• Khanh Pham-Klomos
  • NEWBIE
  • 0 Points
  • Member since 2015
  • Klomos

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi..
      I have create one custom list button in  my custom object (A)  as VF page.. This object is related to master detail look up to another custom object (B)....
      That is  A is child B is Parent... 
 When I click my custom list button  from related list of Parent object (B) I have to access parent object fields...
 
How is it possible...
 
I try following code for passing parent id to VF page in onclick  of java script for calling this VF page.. It doesnt work properly...
That is parent id goes blank to the url
 
window.location.href = '/apex/myvfpagename?id={!A__c.B__c}';
 
Any one give some sample code for accessing parent fields or passing parent id to VF page....