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
SuzanyuSuzanyu 

StandardController recordSetVar OpportunityLineItem issue

Hi all,
 
 
I got an error
 
Error: List controllers are not supported for OpportunityLineItem

The standardcontroller works for OpportunityLineItem. but once I added recordSetVar, I got the above error. How can I make a list button on product related list against opp. It seems s-control is the only way I can use. I don't want extra custom object for that purpose. So SF guru, do you put any restriction on list controller for opportunitylineitem. if yes, I switch to s-control.

thanks

 

 

 

mtbclimbermtbclimber
Yes we restrict list controllers ( standardCOntroller + recordSetVar attribute) to only top-level standard and custom objects so effectively you can not create a list button to a Visualforce page for OpportunityLineItem today.
SuzanyuSuzanyu

got it

thanks! :)

 

@altius_rup@altius_rup

@mtclimber

 

You said this is not available "toda" : are there plans to change this ?

 

Rup

xyxiayu1.3966276883220637E12xyxiayu1.3966276883220637E12
Hi Suzanyu,

Actually, you can select  "Display in existing window ..." paste your visual page link and insert correct Id. You can create a List button without recordSetVar.