Skip to main content
Hi,

 

I have a custom object "Retention".  In the list view of this object I can select a number of records and click the [Change Owner] button to change the owner.   A modal box appears with a text box for the new owner name with a search to users.   I can select the name, click [OK] and the selected records are updated.

 

I need to add a second update button to change the custom object "list date".  The user would select the records and click this button.  A modal form would appear where the user could select or enter a new date.  When the user clicks [OK] the list date is updated to the new date for all selected records and the user continues to his/her next task.

 

I'd like to add this as a custom APEX button to the List View.

 

Any help is greatly appreciated.

 

Thank you,

 

Rick
1 个回答
  1. 2013年3月1日 03:40
    Hi RIck,

     

    You can create a button of type "List Button", and then with one of these two options,

     

    Hi RIck, You can create a button of type

     

     

     

    If you are familiar with javascript, you can pass list of id's selected in list views and perform your functionality with javascript

     

       OR

     

    User-added image

     

    this one, with URL being a link to VF page, pass the parameters and run a controller in background, which will do the same function.