Questions tagged [wrapper-class]
Used for organizing data to be 'Wrapped'. Typically allows for better manipulation or sorting of data.
31
questions
0
votes
2
answers
2k
views
show checkbox before every contact using wrapper class
I'm trying to fetch the contact record and showing on page using its showing error
Unknown property EditContact_controller.wrapperClass.conList
Which thing is unknown.
here is my controller
...
4
votes
1
answer
2k
views
Sort List of SObject in Wrapper Class
I have Wrapper class which contains List of Map.
After performing some operations that List values order gets changed.
public class TeacherAvailabilityWrapper{
public List<Session__c> ...
3
votes
1
answer
2k
views
Custom sObject sorting with 'implements comparable'
I'm trying to perform a sort on a list of custom sObjects using the 'implements comparable' wrapper method. I'm running into some error that it seems isn't affecting anyone else. My custom object ...
3
votes
1
answer
6k
views
JSON deserialize into wrapper class errors
I'm trying to set up integration to display quiz answers in a Visualforce page, but I'm having a lot of difficulty deserializing a JSON string (supplied via API call response) into a wrapper class ...
0
votes
0
answers
21
views
Cover aggregate Result Wrapper Class in test class [duplicate]
I'm having a hard tome covering the wrapper class for an aggregation in a test class. I'm only getting 48%. Can anyone see what I am missing?
This Apex supports a VF page, where the user selects the ...
-1
votes
1
answer
601
views
Wrapper class in Http getmethod
below is my code
Created a wrapper class like below
public class ResponseWrapper{
public list<Account> lstaccounts;
public boolean isError ;
public string errorCode;
public ...
7
votes
1
answer
10k
views
How do you access a wrapper class from a Test class?
I have a VisualForce page which uses a controller. Within the controller I have a couple of wrapper classes which hold various form elements on the page. Everything works great, but now it is time ...
2
votes
1
answer
3k
views
Sorting list by custom field multiple times
I am working on an apex trigger. I have a list that I need to sort by a date field, do some processing, then sort by another date field, and do more processing etc 5 times. When I do the initial SOQL ...
2
votes
1
answer
1k
views
How to show the multi-line string in wrapper class in a VF page
I am having a string field in a wrapper class which might contain several lines. And I am showing that field in an <apex:dataTable>. The code looks like this:
<apex:dataTable value="{!...
2
votes
0
answers
3k
views
Response size exceeded 15MB organization limit
I created this class that is requesting large amount of data, I was getting this error:Collection size 1,156 exceeds maximum size of 1,000. And then I found an approach to fix this error, the code is ...
2
votes
0
answers
6k
views
Binding wrapper class variable to the value of an ui:inputtext in Lightning?
A similar question has been asked here
Binding behaviour on lightning components with ui:inputText/Checkbox components
I have 2 attributes of
1) Type = Wrapper class
2) Type = Sobject
My ...
2
votes
1
answer
4k
views
Creating Generic Related List Lightning Component
I am trying to create a simple, reusable component that allows me to list related records in an easy to read way. I want to be able to use this component a few times on a single record, and I would ...
1
vote
1
answer
604
views
Radio button not in sync with each other
In my Visual force page I am showing all the cases related to a contact. I use a search function to populate the value of cases in a List of a wrapper class. I am mimicking from this link->https://...
1
vote
1
answer
1k
views
How to get my data into javascript chart by parsing report data?
I have manged to collect all required data but not able to parse it into the list so that i can pass my data into a chart. for now i have added debug data in to chart as static to relate this chart ...
1
vote
1
answer
322
views
Wrapper class pagination - Constructor not defined: <Constructor>(SObject
EDIT:
I have implemented the changes here based on the Daniel Ballinger now I'm not getting error but when I click on the Next button is not going to the next page i have around 25 rows.
here is my ...
1
vote
1
answer
3k
views
Issue displaying lookup inputField through wrapper class results
Im having trouble getting the Financial_Account__c lookup field to display properly on my visualforce page. I am loading a wrapper class that contains Financial_Account_c and Holding_c. The Holding__c ...
1
vote
1
answer
2k
views
How to sort a wrapper class list which has a reference to another wrapper in it
I want to sort a wrapper class list which has a reference to another wrapper in it.I tried implementing Comparable interface for both of class but it is showing error
One or more of the items in ...
1
vote
3
answers
4k
views
Is this implementation of equals and hashCode method correct?
I have a wrapper class as below:
public class WrapperShoppingCart{
public opportunityLineItem oppLineitem {get;set;}
public Boolean selected {get;set;}
public Id idValue {get;set;}
...
1
vote
1
answer
27k
views
Writing Test class for Wrapper Class
I am having problem when i am trying to write Test Class for Wrapper Class.
Apex class
public with sharing class InlineCtrl {
public List<Opportunity> oplist {get;set;}
public List<...
1
vote
1
answer
4k
views
Display multiple List<String> objects as columns in a visualforce page
I understand that this needs to be done using the infamous wrapper class, but for some reason I am not able to get it to work. Any help would be great.
Goal: Display multiple List<String> as ...
1
vote
1
answer
9k
views
Adding to sub list/array within apex wrapper class
I am trying to figure out how to add to this wrapper class.
public class Invoice {
public String Type;
public LineItem[] LineItems;
public class LineItem {
public String ItemCode;
public ...
1
vote
2
answers
965
views
Passing List<WrapperClass> as a parameter from Visualforce to Lightning and to iterate over the List<WrapperClass>
This is my VF code, which runs on onclick
<script>
function func(data)
{
$Lightning.use("c:testingFromVFtoLightningApp", function(){
$Lightning.createComponent("c:...
1
vote
0
answers
793
views
How to query and pass selected records from a VF Page to Visual Workflow? [closed]
I've built a visual workflow to populate an sobject variable and carryout an interview. I need to take it a bit farther and provide the functionality to:
1) Use a visualforce page to perform a SOQL ...
0
votes
1
answer
1k
views
Test coverage for a wrapper class which has no methods and constructor in it
I have below kind of wrapper class which has no methods and constructor.
public class PP_SI_Wrapper {
public class checkBoxWrapper{
@AuraEnabled public String que;
@AuraEnabled ...
0
votes
1
answer
1k
views
apex:InputText value is not setting on the controller
I have a problem with a Visualforce and I am not being able to solve.
In the VF I have a form with two sections: one to fill the fields I'll use in the controller to create a quote and a dataTable ...
0
votes
1
answer
455
views
Wrapper Lists and Visual Workflow Variables?
I'm trying to pass a List of selected items into a Visual Workflow. I know that I have to iterate over the wrapper List, pull out each record, and add it to a new collection. My question is can I ...
0
votes
1
answer
58
views
How can we sort based on the number of matched filtered
Can someone help us with regards to sort based on the number of matched filtered. We need to prioritized the number of matched filtered on SKILLS rather than (skills + training / skills + ...
0
votes
1
answer
592
views
Wrapper class' validation based on an Existing checkbox
I am trying to implement a validation check before processing the selected record(s) from my Wrapper class's list. Here I am checking for one checkbox's value before processing the selected records(...
0
votes
2
answers
6k
views
Apex Class Non static AuraEnabled methods may not have parameters
I have an apex class which is the controller for a lightning component. In the class I want to pull through several different parts of different objects and return it in to the JS controller as one ...
-1
votes
1
answer
1k
views
Combining two object's records and sort by date
I have 2 lists from different objects which I would like to combine into one in a Visualforce component.
The objects are not directly related, but both have amounts and a date which i am trying to ...
-1
votes
1
answer
573
views
Problem using [].substring()
I am having some issues using [].substring(). I am limited by using it. I would like to use a different approach because the qty can vary on length and this is not working for this solution. I will ...