How to Link Rate into another DocType

Hi All,

I have created a new “Price List” and want to link the “Rate” of an specific “Item Code” into another DocType. Hierarchy will look like Item Price > Price List Name > Item Code > Rate.

Can anyone help URGENTly.

BR/Mijan

May be this code will help you to figure out the way.