• justinhowell82
  • NEWBIE
  • 10 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 14
    Replies
I followed the simple code from the tech docs (https://developer.salesforce.com/page/Wrapper_Class) to create a page with editable pageblocktable that allows inline editing and the ability for used to select multiple records and perform specific actions on the selected.  Works great unitl I have a very large list and i was getting an error on the VF page that I've exceeded the max viewstate size.  In the linked tech doc there is a public property that is a list of the wrapper object:

03   //Our collection of the class/wrapper objects cContact
04   public List<cContact> contactList {get; set;}

The contactList which is what the pageblocktable is bound to is what was blowing up my viewstate but I am only getting the needed values in the SOQL to populate.  I did not think this would work but I changed it from public to transient which made it dissappear from viewstate as expected AND the form contiunes to work as designed.  I guess I was not expecting this to work due to the fact that that data is not stored in viewstate but it does appear ot be working.  I can still edit all the inputfield values line by line and call my save method which envokes the standard SF validation and everything still functions as before.  Can anyone shine some light on this for me?

Thanks,
Jsutin
I follwoed the instructions found here:  http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/  which are pretty straight forward to try to override the standard lookup functionality.  I implemented this within my apex component and it is never getting inside the function openLookup that I have defined within my component.  Is there anything that would need ot be done differently when called from a component vs a VF page?

I have a custom vf page on a Quote page layout to display all the Quote Lines in a page block table.  The standard related list was far to limited for what we need.  I have the table displaying correctly with the first column being a checkbox with a select all box in the header.  What I want to happen is to link to another page to edit just the selected records when a user clicks a button on the page.  This has to be very simple but I can not figure out how to capture the selected records in the pageblock table and pass those to my new edit page.  

 

Thanks,

Justin