Global variable from grid to tab application

I trying to pass a global variable from a grid application to a tab application. I have set up the grid application with a field link on “empId” set as a global variable [TABLE=“class: nmTable form_tab_id_blk_lnk_opn_desktop_variable, cellpadding: 0, cellspacing: 0, width: 1082”]
[TR]
[TD=“class: nmLineV3”]empID[/TD]
[TD=“class: nmLineV3”] [/TD]
[TD=“class: nmLineV3”] Scope SESSION
POST
GET Settings Optional Type Out
In [/TD]
[TD=“class: nmLineV3”] [/TD]
[TD=“class: nmLineDesc”]Variable is defined in:
Events (onNavigate, onLoadRecord)[/TD]
[/TR]
[/TABLE]

.that calls the tab application.

The tab applications has a sql where clause that uses the global variable. However, When I click on the field that opens the tab form, the tab form always goes to the last record in the database. It should go to the record that was clicked. How do I get the tab form to recognize and use the global variable? If I run the tab application it will ask for the variable it will work. But not being called from the grid. Does anyone know how to make a tab from read the global variable. Thanks ahead of time.

​Miles