Not working BPI event.

Judging by the script above, you do not. If you do, show us how. Because creating a variable is just that - an empty variable, so to speak. You must give it value.