Basically, we have records that are Unassigned. We would like to be able to assign them to an Account. These records are displayed in a related list on the Account page. Of course, a new button is there, but would it be possible to build a button to re-parent the selected Unassigned objects to the currently viewed account?
I'm thinking this will require a custom-button along with a VF page + controller.
Best Answer
It is possible to do this without custom Apex or a custom controller by creating a new Visualforce page and a custom list button.
You didn't mention if this is a custom object or a standard object so in the example below I use the standard Contact object. You could swap out "Contact" in the Visualforce with the name of a custom object too though.
Below is the Visualforce and instructions for creating the button and adding it to a search layout.
Visualforce:
Custom Button:
Add the new button to the Search Layout:
Navigate to your Contacts list and you should see your new button. Select the contacts you want to assign to an account. You then click your new custom list button and you'll be taken to your new Visualforce page where you can specify which account to assign to the contacts. Finally click the Save button to save the changes.