Apex Design Patterns by Zaa Jitendra & Verma Anshul
Author:Zaa, Jitendra & Verma, Anshul [Zaa, Jitendra]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2016-04-27T04:00:00+00:00
Continuing with our journey, Universal Call Center is implementing a products list screen, which displays a list of products with their information:
Developers design a wrapper class to display the information, as shown in the following figure:
public class ProductWrapper{ //public properties public String Name {get; set;} public String ProductCode {get; set;} public Decimal SalesPrice {get; set;} public Decimal TaxRate {get; set;} public String TaxType {get; set;} public String TaxDetails {get; set;} public Decimal TotalTax {get; set;} public String VendorName {get; set;} public String VendorShippingAddress {get; set;} public String VendorContactPhone {get; set;} public String VendorContactEmail {get; set;} //constructor public ProductWrapper(String name, String productCode){ this.Name = name; this.ProductCode = productCode; } }
In the preceding wrapper class, each instance of ProductWrapper contains product, tax, and vendor details. As the product list grows, the overall viewstate of the page also increases. The development team identifies that with this behavior, a page can easily hit viewstate limits (135 KB) and can result in an unstable functionality.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7326)
Supercharging Productivity with Trello by Brittany Joiner(6585)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6414)
Mastering Tableau 2023 - Fourth Edition by Marleen Meier(6343)
Inkscape by Example by István Szép(6202)
Visualize Complex Processes with Microsoft Visio by David J Parker & Šenaj Lelić(5903)
Build Stunning Real-time VFX with Unreal Engine 5 by Hrishikesh Andurlekar(4893)
Design Made Easy with Inkscape by Christopher Rogers(4591)
Customizing Microsoft Teams by Gopi Kondameda(4132)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3933)
Extending Microsoft Power Apps with Power Apps Component Framework by Danish Naglekar(3720)
Business Intelligence Career Master Plan by Eduardo Chavez & Danny Moncada(3676)
Salesforce Platform Enterprise Architecture - Fourth Edition by Andrew Fawcett(3594)
Pandas Cookbook by Theodore Petrou(3575)
The Tableau Workshop by Sumit Gupta Sylvester Pinto Shweta Sankhe-Savale JC Gillet and Kenneth Michael Cherven(3378)
TCP IP by Todd Lammle(2982)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2910)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2858)
Work Smarter with Microsoft OneNote by Connie Clark(2842)
