Change Work location with inventory

Hi, i have a form IT_worklocation. And i made menu item button which call a class. I am making a dialog, where i have chosen record from form, and selecting in dialog another WorkLocationID, after enter it should transfer the human with his items. What i need, how to put selected record in form to a dialog field(not editible)?

thanks in advance,