EP Filter lookup based on current record (AX2009)

Hi All,

I need to understand how EP handles the currently selected/edited record in a user control

i have a new UC that allows the input of project/user/category per record.

i want to filter the category based on the selected project.

i have overridden the dataSetLookup method on the category dataSet field.

I have given as a parameter my datasetTable.projid for the query. this works but only when the record is saved.

if i create a new record and edit it, the dataSetTable.projid field is empty. how do i get the value from that field before the record is saved in the user control?

Any ideas?