Creating custom button that gets a certain views block on the database
All you need to use modal form which uses ctool suites. Install exapmple and dependant module. Try create link or button just same as ajax form.