Thank you fror your answers, and of cource exuse me for beeing unspecific. The first question is seldom the most formulated one.....
Yes, electromagnet.
Needed fieldstrength, no idea so far (though a very small flat circular permanent magnet D 9mm* t 1mm, probably neodym, had quite good effect...