Grid sc_link unique ID

Hello Forum,

I made a grid application that shows a client’s stock. Each record in the grid is build up out of a couple of different ones which I want to show in grid2.
I made a link on a field using sc_link in on_record that links to grid2 so that a client can easily click on the record he or she wants the details of.

The problem is, is doesn’t matter on which record I click, it automatically sends the data from the last record.
Is there anyway I can retrieve which record gets clicked on?

Thanks in advance.