Setting view selection formula causes NSD error

I put some script in the PostOpen event of a view to set the selection formula.

An user can enter a customer’s name (Prompt method: OKCANCELEDIT). I also tried to use OKCANCELLIST. But this causes a NSD error.

Is this method (OKCANCELIST) not supported?

Frank