You need to sign in to do that
Don't have an account?
anja
retrieve current page ID
I am trying to figure out how to get my controller to retrieve the current record ID from the page (it is a sales order, the code below is to create an array out of its line items. Thanks if you can help!!
Here is the code (bold is where I have the problem):
public with sharing class SOL {
public SOL(ApexPages.StandardController controller) {
}
Public List<PBSI__PBSI_Sales_Order_Line__c> getCustomObjs() {
list<PBSI__PBSI_Sales_Order_Line__c> Arr_custom_obj=[select id, Name, PBSI__Quantity__c from PBSI__PBSI_Sales_Order_Line__c where PBSI__Sales_Order__c = 'a0aT0000004C1Em' ];
return Arr_custom_obj;
}
Bold parts are the pieces you're looking for.
All Answers
Bold parts are the pieces you're looking for.
Yeah!!! That did it. Thank you!