Does anyone have an intelligent/sneaky way of telling
at run time whether the relationship to an inner entity is cascade or restricted delete?
I'd like to write a script which loops the inner entities and tests for any linked entries, before trying to do a remocc. However, some of them will be cascade delete, and some restricted. It should only try the remocc if there are no restricted items, but should cheerfully cascade the cascade items.
I have a manually maintained filter at the moment, but having missed an entity or two, it's putting '0139' errors in the log files. It should simply not be deleting the item.
I suppose, thinking about it, I could trap the 0139 error and ignore it, but it will still be trying to execute the remocc ad I'd prefer if it didn't.
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------