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
CharlieLangCharlieLang 

mass edit tool not showing data

Hi, I am using the salesforce mass edit tool and its not quite working as expected.

below is the code and a screenshot, as you will see its creating the lines in the edit tool but nothing is populating - not sure why but any help would be appreciated
<apex:page standardController="Budget__c" recordSetVar="unused" sidebar="false" lightningStylesheets="true">

<!-- for this page to work with a specific custom object, change standController="entityname" to custom object api name  
    For example, if custom object name is Warehouse__c, change first part of the first line to standardController="warehouse__c" -->

    
<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:pageBlock>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Return" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!Selected}" var="a" id="table">
<apex:column headerValue="Name">
<apex:inputField value="{!Budget__c.Name}"/>
</apex:column>
<apex:column headerValue="Ordering">
<apex:inputField value="{!Budget__c.Ordering_of_Quote__c}"/>
</apex:column>
<apex:column headerValue="Budget Type">
<apex:inputField value="{!Budget__c.Budget_Type__c}"/>
</apex:column>
<apex:column headerValue="Units">
<apex:inputField value="{!Budget__c.Units__c}"/>
</apex:column>
<apex:column headerValue="Final Quote Amount">
<apex:inputField value="{!Budget__c.Final_Quote_Amount__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
User-added image

User-added image
 
Raj VakatiRaj Vakati
The issue is with the recordSetVar. The Next recordSetVar will get the data from the last used "List View" the user has used.  Please change the List view to ALl and try to refresh the page. 

Refer this link 

https://salesforce.stackexchange.com/questions/97423/what-is-recordsetvar-and-where-is-it-used

 
CharlieLangCharlieLang
Appreciate the heads up Raj, What do you mean by change the list view to ALI?

i've updated the recordsetvar to as below but doesnt seem to be working
<apex:page standardController="Budget__c" recordSetVar="budgets" sidebar="false" lightningStylesheets="true">

 
Raj VakatiRaj Vakati
 Go to Budget__c object List Views .. Select the ALL LIST View or anyone. Based on it you can see the data on the page 
CharlieLangCharlieLang
dipping back into classic as its easier.... also, this is the package i am using https://appexchange.salesforce.com/appxListingDetail?listingId=a0N300000018mbBEAQ

anyway, below is what's happening from the "all" view

User-added image

User-added image