function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Mass edit all contacts in related list

I need ot edit all contacts in related lists using VF script, i got one of the site but it only does selected ones, is htere a way to select all of the contacts
here is code

<apex:page standardController="Contact" recordSetVar="unused" sidebar="false">
<apex:includeScript value="{!$Resource.UtilJS}" />
<apex:form >
<apex:pageBlock >
<apex:pageMessages />
<apex:pageBlock >
Note: All modifications made on the page will be lost if Return button is clicked without clicking the Save button first.
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Return" action="{!cancel}"/>
<apex:pageBlockTable value="{!selected}"  var="a" id="table">
<apex:column headerValue="Name">
<apex:inputField value="{!a.Name}"/>
<apex:column headerValue="Phone">
<apex:inputField value="{!a.Phone}"/>
<apex:column headerValue="Mobile Phone">
<apex:inputField value="{!a.MobilePhone}"/>
<apex:column headerValue="Email">
<apex:inputField value="{!a.Email}"/>
<apex:column headerValue="Title">
<apex:inputField value="{!a.Title}"/>
<apex:column headerValue="Account">
<apex:inputField value="{!a.AccountId}"/>
<apex:column headerValue="Description">
<apex:inputField value="{!a.Description}"/>
Best Answer chosen by max.alexander1.3945796734965325E12
Try this Link

Pls Mark as Answer if it help u.....

Trinay technology Solutions