Skip to main content

Posts

Showing posts with the label Wrapper class

Latest Post

How to Set Up Two-Factor Time-Based One-Time Password (TOTP) Authentication on iPhone Without Third-Party Apps

Unlocking an additional layer of safety to your iPhone is less difficult than you might suppose. With Two-Factor Time-Based One-Time Password (TOTP) authentication, you may bolster your device's protection and other website safety without relying on 1/3-party apps. Here's how you could set it up:

Pagination in Visualforce page with help of wrapper class and Stadardsetcontroller

 Want to develop pagination with help of standard set controller and wrapper class in salesforce. here is code:- Pagination in Visualforce page with wrapper class Step 1:-  Create a class with help of below code. public class ClassWithStandardSetController {     Public Integer noOfRecords{get; set;}     Public Integer size{get;set;}     List<SelectedWrapper> categories {get;set;}          public ApexPages.StandardSetController setCon {         get{             if(setCon == null){                 size = 5;                 setCon = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT id,LineNumber,PriceBookEntry.Product2Id, PriceBookEntry.Product2.Name,Product2Id,Quantity,unitprice,QuoteId FROM quoteLineItem]));                 setCon.s...

How to Use Wrapper Classes in Apex to Access Members Using Dot No

In Apex, the wrapper class is used to hold different types of data together as a single unit. If a wrapper class contains a list, object, or inner classes, you can access their members using dot notation. Let's consider an example where you have a wrapper class called MyWrapperClass , which contains a list, an object, and an inner class:

How to Use standard set controller with wrapper class?

Sometimes we need to develop pagination with wrapper class. here is way to do with standard set controller. Pagination with standard set controller and wrapper class.                                                                                                                                                                                                                                            ...