PeopleCode Question:
Suppose If there is same Component X in two different menus, menu1 and menu2 and if u want to assign a different search record for each menu, then which peoplecode function do u use and where do u write the code?

Answer:
Instead of using PeopleCode,Directly we can assign the search record at the menu level which will override the search Record specified at the component level.