In opportunity entity i have added one button, on clicking of that button new Look Up record window should open.
so i added one command with Javascript.
JS function: Mscrm.GridCommandActions.addExistingFromSubGridStandard
passing two parameters to that function: SelectedEntityTypecode and SelectedControl.
then published the solution.
when clicking on that button no action happens.