May 2017 archive

OpportunityAccessLevel field not writable in Apex

Opportunity Team Member Manually

Recently, I was working on an assignment, where I had to create Opportunity Team Member records in a trigger on some user action. But when I started to write the code and tried saving it, I got the error “Field is not writeable: OpportunityTeamMember.OpportunityAccessLevel“. Uuuhhh.. I got stuck! According to the documentation this field is writable, …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/opportunityaccesslevel-field-not-writable-in-apex/

Pagination using StandardSetController with wrapper class

PaginationImage

Pagination using StandardSetController with wrapper class without losing data during pagination Click here for Demo – Pagination with wrapper Very often, we need pagination in our visualforce page, and we use wrapper class to show the records with checkboxes in pageBlockTable. We use the standardSetController for pagination, display checkboxes for each record BUT while paginating, the …

Continue reading

Permanent link to this article: https://www.sfdcpoint.com/salesforce/pagination-using-standardsetcontroller-with-wrapper-class/