Open dialog with parameter

the solution is here