At some point in your code you have the original ipc ids before you convert them to strings for your report field. So let's say you have the following:
ipcIds = list(of some ipc ids)
ipcTable = makeTable("ipcIds" nil)
sprintf(ipcString "%L" ipcId)
ipcTable[ipcString] = ipcId
Then you can store this either on your form or your report field:
form->ipcTable = ipcTable
form->reportField->ipcTable = ipcTable
When your Skill code that reads the currently selected item in the report field needs to know the original ipcId, you can get it from the table. First, get the ipcString from the appropriate column of the selected item in the report field, then use this:
ipcId = form->ipcTable[ipcString]
This is a great way to store data without having to create a lot of global variables.
I hope this helps.