Clarification on displayvalue() method

how to enable the display value of  a concerned table(ie, ADSGroup,ADSAccount,Person and so on..) using dynamic foreign key value(here dynamic foreign key column is referring the XObjectkey  of respective table) from PersonWantsorg in web designer?