Posts

Showing posts with the label wrapper

Salesforce Fact #882 | Handling decimal data in LWC returned from apex wrapper

Image
We need to be careful while dealing with large decimal values in LWC returned from apex in wrapper structure. If the value is large, it is converted to String to avoid any loss of precision. Reference:  https://salesforce.stackexchange.com/questions/327214/lwc-autoconverting-decimal-into-string-sf-bug Attached are the screenshots.

Salesforce Fact #671 | Custom wrapper initialization

Image
Unlike Sobjects, custom apex defined wrapper types cannot be initialized with name=value pairs. Note: However, parameterized constructor would work. Attached are the screenshots.