You need to sign in to do that
Don't have an account?
jmburns
Little bit of help, please?
Trying to write test code for this apex class, can some one please help? I have another class to upload and my part-time developer is out of town! I am at 74% can some one PLEASE help me get it up a bit so I can upload my class?
public class tableSort { public List<Task> opps; public Id theT; public String sortField {get; set;} public String previousSortField {get; set;} { theT = ApexPages.currentPage().getParameters().get('id'); } public List<Task> getOpps() { if(opps == null){ opps = [select WhatId, Subject, OwnerId, Description, ActivityDate from Task WHERE WhatId = :theT ]; } return opps; } public void doSort(){ String order = 'asc'; /*This checks to see if the same header was click two times in a row, if so it switches the order.*/ if(previousSortField == sortField){ order = 'desc'; previousSortField = null; }else{ previousSortField = sortField; } //To sort the table we simply need to use this one line, nice! superSort.sortList(opps,sortField,order); } }
Thanks in advance to anyone who might help!
JB
This should achieve near 100% completion... Try it out.
All Answers
This should achieve near 100% completion... Try it out.
Wow your a lifesaver, I have a meeting in 10 minutes I will try it as soon as i get out!
THANK YOU!
JB