Hello, Tomas!
Could yoy show me any screens of mentioned button? Yet not quite sure about what the button in question...Also, it would be great, if you could describe your scenario more detailed.
When I was working with the BEx queries, I used manually created buttons and Visual Basic code to describe the behavior of these buttons.