DMI Functions - How to determine deletes?

I’m passing the edited values of a row in a ListGrid to a DMI function call. Is there any way to determine deleted values? Unfortunately they’re passed in as nulls… but so are all other non-edited columns.

Thanks,

-d

Hi Dleung,

On the Java side, you should be able to tell the difference between explicit null vs data not passed at all, via Map.containsKey(). Make sense?

yes but what if I am passing the values into a POJO as opposed to a map? Or is a map and checking it’s keys the only method?

-d

I guess the best way is to manipulate through the maps and then use the datatools to map it to the POJO.

unless you have something else.

-d

Hi DLeung,

If you had a POJO set to some known values, you’d be able to detect which fields were nulled out because only those fields would be changed. But the Map and DataTools approach is probably simplest.