The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [wrapper-class]

Used for organizing data to be 'Wrapped'. Typically allows for better manipulation or sorting of data.

Filter by
Sorted by
Tagged with
0
votes
3answers
52 views

Populate radio button options dynamically

I am trying to set a radio button's options dynamically. I'm first constructing a wrapper list in my first component and passing the list to another component where I'm displaying the values. Apex ...
1
vote
1answer
22 views

Wrapper class data is not showing up in pageblock table after commandbutton action

Im having trouble getting a list from my wrapper class to show up in a page block table after clicking a command button. Can someone tell why my wrapper class is not showing up in the table? Is the ...
0
votes
1answer
49 views

How to access parent object fields fron child object instance in wrapper class in salesforce?

Apttus_Proposal__Proposal_Line_Item__c(Child) having lookup to (Parent)Proposal obj(Apttus_Proposal__Proposal__c). private class xyz{ public Apttus_Proposal__Proposal_Line_Item__c ...
0
votes
0answers
33 views

Visualforce attachment is not downloading

Requirement - I want my image to get download or open after clicking on link and I have 2 additional column in my table which should get updated with name of person who click on the image and time.For ...
0
votes
2answers
26 views

Display Dynamically Added Contacts through VFP on another VFP

I have a VFP here that has the ability to add/remove rows of Contacts.  After I click 'Save Contact', I am redirecting the page to a PDF (VFP) that should display the Contacts that were added.  ...
2
votes
2answers
59 views

Iterating over wrapper class records lists in LWC

I have a LWC where i want to iterate over different lists of Opportunities in a wrapper. Currently im using: import { LightningElement,wire } from 'lwc'; import OppRecords from '@salesforce/apex/...
0
votes
1answer
36 views

My wrapperlist is not showing up

I trying to create a table to provide metrics on the number of Account and Contact records grouped by state. So each state will have two number of count id. Below is a code for my class and visual ...
0
votes
0answers
22 views

Add multiple records in an object using visualforce page using wrapper class

I want to add multiple records to a custom object(Order line item) which is a related list in another custom object(Order). so when i click save the multiple products should get saved in order line ...
0
votes
0answers
26 views

Assign list of users to queues from VF page [duplicate]

I am currently working on a requirement where I need to assign users to a queue. I have created one VF page which dynamically pulls the users list show in VF page. When an agent selects the users ...
-1
votes
1answer
69 views

Issue with passing class data from apex to javascript in LWC [closed]

I am trying to return multiple values from the apex to javascript using wire decorator. Because of functions in apex cannot return multiple values at the same time, I am returning custom class ...
0
votes
1answer
39 views

How to write a wrapper class for my trigger?

I want to create a trigger that will only pass its trigger context to a static method in a handler class I have created where all the business logic resides. I want to pass the trigger context ...
0
votes
1answer
35 views

Writing test class for wrapper class to simulate the business process

I am trying to write a test class for a Wrapper class. The wrapper class pulls one objects to make it as a checkbox list. Could anyone help me to adjust the code I wrote below? I have written test ...
0
votes
1answer
133 views

Lightning Web Component not loading while using Lightning-Input with Wrapper class variable

I am trying to build a simple Lightning Web component to allow capturing both parent and child record details on single form. To explain i am taking an example of capturings single Account and Contact ...
0
votes
1answer
137 views

'Bad Request' when inner class instance from Apex to LWC

I'm working on a Lightning Web Component which calls an API from Apex and display the response in the component with the help of a wrapper class. The response is displaying correctly in the apex ...
0
votes
0answers
31 views

Apex how to loop through returned records and pick the one that has a checkbox checked

I am trying to look through a list of records returned after I perform a search. Within my custom VF controller, I have another class/wrapper, where I am getting all of the fields. Is it possible to ...
0
votes
1answer
52 views

Error: Invalid Type

What is it I am doing to get the invalid type error? public with sharing class MyController { public list<JSONWrapper> wrapper {get;set;} public integer appTotal{get;set;} ...
1
vote
1answer
21 views

JSON String incompletely wrapped

After deserializing a JSON response and casting it to the wrapper class, I see that in the debug logs half of the JSON is missing. Am I deserializing the JSON incorrectly? Or am I not creating a ...
0
votes
3answers
53 views

Error: Malformed JSON: Expected '[' at the beginning of List/Set

JSON Response: { "caPerformanceRecordList": [ { "motorDealerID": "XL1HX", "dealerName": "Subaru Auto Dealer", "reportingPeriod": "2019-05-18", "...
0
votes
0answers
37 views

Trying to Display a sample JSON response in Visualforce Page

What am i doing wrong? I have taken the json response I got from the webservice callout and trying to display the response in Visalforce page. However the button 'Submit' is not making its way to the ...
3
votes
1answer
116 views

List on Wrapper class not visible in lightning component

I have an Aura component and I want to iterate through a wrapper class of objects, which has two lists as properties. While I can iterate through the wrapper class list, my lists come up as null when ...
0
votes
2answers
202 views

Nested wrapper class to use with Aura:iteration in lightning component

How to use aura:iteration over a list of Wrapper class object in Lightning component 1st Aura iteration works well it prints axisNo and axisName correct. But nested iterate with nested wrapper class ...
0
votes
1answer
39 views

How SWAP(rows UP and DOWN) in Pageblocktable in Visualforce page using Apex method

Here I'm Trying to do swapping on Pageblocktable means I want my rows to be Up and down Right now it's happening through Javascript Now I want this through APEX method. Please look at the below ...
0
votes
0answers
54 views

How to copy data to text fields when checkbox is checked

I have a little challenge which I'm trying, I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
1answer
36 views

deserializing of json using wrapper class in apex

I have following type of json { "itemsPerPage" : 1, "links" : { "next" : "" }, "list" : [ { "id" : "19623", "resources" : { "reports" : { "allowed" : [ "GET" ], ...
0
votes
1answer
36 views

How to define a class as get set variable in another class

I am trying to call a wrapper class which is written independently. I am trying to call the class as a get set variable in a apex class. But getting error while i try to define the class as get set ...
1
vote
1answer
147 views

Lightning Input on wrapper class not passing back the value

I am using a wrapper class so as not to have a glut of aura:attributes (this may be the problem in and of itself). I have a previous lightning component that has about 16 attributes and passing them ...
0
votes
1answer
39 views

Error : Attempt to de-reference a null object ; on map variable

Class.ResourceProfileController.__sfdc_mapSummary: line 137, column 1 Class.ResourceProfileController.__sfdc_listWrapperEmployee: line 162, column 1 --> Error on the Variable mapSummary Hello I'm ...
0
votes
1answer
33 views

Constructor not defined: [weather001.weatherresult].<Constructor>() while using wrapper class

I am getting error as Constructor not defined: [weather001.weatherresult].() at the time of creating instance for wrapper class. below is the code. public class weather001 { public string ...
0
votes
2answers
64 views

Boolean value set in a wrapper not showing correct

Hi I a trying to set a Boolean value in a wrapper based on a condition. Wrapper Class public class Wrapper{ public String pf {get; set;} public Boolean show {get; set;} public Wrapper (...
0
votes
1answer
150 views

Test Class for Comparable Wrapper class

I am trying to write a test class for a Comparable Wrapper with little success. The wrapper class pulls in two objects to make one single list. I have two issues... I don't know how to cover the ...
0
votes
1answer
294 views

How to serialize REST Request from Wrapper class for existing Salesforce data?

I am trying to format my SObject data within a wrapper class to POST data to another Salesforce org from a custom Work__c object, but I am having a hard time understanding how to add an instance of "...
0
votes
1answer
511 views

How to create JSON string for REST callout from Wrapper class

I have found a lot of different examples of this, but I'm still having troubles accomplishing this. Here is the webservice which is working: //WORKING Webservice in target org @RestResource(...
0
votes
2answers
228 views

Access child records without using wrapper in apex controller

I have Question__c(parent) and Option__c(child) Master detail relationship. On page load I am able to pass the data to lightning component without help of any warapper class. Now on submitting the ...
4
votes
3answers
168 views

Adding a Wrapper Class to an External Class

I am confused about what is happening in a small section of some code. I have a class that has a wrapper class inside it. There is an external class that calls this wrapper class Models.add(new ...
2
votes
1answer
145 views

Nested Wrapper data not being return in lightning component callback

I currently have this very nested wrapper class, public sharing class ResultWrapper { //This wrapper is contain more wrappers that goes as far as 5 level deep. @AuraEnabled public ...
2
votes
1answer
410 views

JSON.deserialize on custom sObject not parsing related fields from lookup relationship

I've got a map whose values are a wrapper class. The wrapper class holds a custom sObject list, and the sObject in turn was queried to include related fields from a lookup relationship. Problem is, ...
0
votes
1answer
68 views

Data binding issue with wrapper class

This is a continuation of another question with code pared down as much as possible. I'm trying to create a series of pageblocktables on a VF page, each displaying some number of empty rows which ...
0
votes
1answer
830 views

Rendering data from Wrapper Class into Lightning Data table

Hi I'm trying to render data from a wrapper class it's coming up with row but values are empty. Component: <aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId,...
2
votes
1answer
40 views

List Sort Using Wrapper Class

I created following Wrapperclass to sort quote based on ceratedDate global class QuoteCreateDateSortWrapper implements Comparable { public Quote quo; //Constructor public ...
1
vote
2answers
87 views

How to get code coverage on formula fields in a wrapper class

I need to get code coverage on UpgradeRate, PlusCount2, PremiumCount2 and PrestigeCount2, but what I have is not working. How do I get code coverage on these? In my custom controller, I have the ...
-1
votes
1answer
378 views

How to fix Wrapper class to insert/delete selected records?

When I use my Wrapper class to delete some records, my Select button doesn't work (without wrapper it works fine). So I even can't check, is my delete-code works or not. What is wrong here? Apex: ...
0
votes
1answer
200 views

JSON string unserialize to APEX using wrapper class [duplicate]

I'm not able to get rows list....it is coming null from below code. public class ParsingTest1 { public ParsingTest1() { String jsstring = '{"totalsForAllResults": {"users": "...
0
votes
1answer
25 views

Apex:param not calling method

Hi I have requirement of producing a list in home layout with number is records available in different conditions and on pressing a button redirecting to the specific list view I came up with the ...
0
votes
1answer
113 views

Does lightning:recordEditForm works for wrapper classes with an sObject?

I have a wrapper class which can hold a custom object record and some variables. However I want to leverage this out of the box lightning:recordEditForm for displaying the wrapper class records (...
0
votes
1answer
98 views

Maximum stack depth reached: 1001 inner class

I'm trying to export record on into a tab separated text file. In getting Maximum stack depth reached: 1001 in the inner class where i'm doing the piece of code and I have pasted full code in the ...
0
votes
1answer
3k views

Using wrapper Class in Lightning:Datatable

I am trying to set the data of the Lightning:Datatable from the wrapper class in server-side Controller. public class AccountWrapper{ @AuraEnabled public Account acct {get;set;} ...
0
votes
1answer
40 views

Using IF in a wrapper class

I have created a wrapper class which creates a record called Remittance_Advice_Line_Item__c, when a user selects a checkbox (called selected), and saves on a Visualforce page. The record(s) that are ...
1
vote
1answer
146 views

How can I dynamically add input fields in visual force on a button click?

I want to add a button "ADD NEW RECORD". When the button is clicked, a new row for input fields of accounts should be added along with the checkbox wrapped with it. How can this be done? EDIT: Also, ...
0
votes
1answer
441 views

How to Access Wrapper class variable in javascript?

Trying to access the wrapper class variable in javascript, but it's not serialized in apex controller. trying to get the value in for loop - mainly for validation purpose. function ...
0
votes
1answer
219 views

Lightning : Unable to update records displayed using wrapper class

Can anyone please help me in this? My initial Use Case Scenario was to display a list of records in a lightning component, and providing the ability for users to update the same records. This was a ...