I am attempting to convert my page to work from List View button into Detail Page button.
When I attempt to remove the recordsetvar, I get the mentioned error.
Unknown constructor 'AddBasketGasQuoteFromMonitor.AddBasketGasQuoteFromMonitor(ApexPages.StandardSetController controller)
Below are pieces of code:
VF
<apex:page standardController="Line_del__c" recordSetVar="recrec" extensions="AddBasketGasQuoteFromMonitor">
Apex
public with sharing class AddBasketGasQuoteFromMonitor{
Public List<WrapperClassEx> WrapperList{get;set;}
public AddBasketGasQuoteFromMonitor(ApexPages.StandardSetController controller) {
mycon = controller;
Selectedmeters = mycon.getSelected();
}
public List<sobject> Selectedmeters {get; set;}
ApexPages.StandardSetController mycon;
Public List<WrapperClassEx> getwrapperObj(){
List<electricity_meter__c> MeterList = [Select id,name,AQ__c,meter_details__c from electricity_meter__c where Linked_Monitor_Line__c in: SelectedMeters];
The last line is where I need to use my ID (should be Linked_Monitor_Line__c=SelectedMeters). I know I can get the Id by doing something like: Id recordId = standardController.getId(); but I realize in this case it's different?