+ Start a Discussion
Chris Young 2Chris Young 2 

Creating two PageBlockTables to move selection of items from one table to another?

Hi All,

I am trying to create a Visualforce page that contains two PageBlockTables. One of these tables contains equipment items with relevant information. On each row of this table, there is a "Quantity" input box. The other table is underneath that one, and it starts out with no data. I would like to be able to type in a quantity in the input boxes, then click a button under the table labeled "Add to Order". When this button is clicked, I would like for the equipment with input quantities to show up on the second table, where I will then place a "Save" button to save this particular selection of equipment and quantities as an iteration of a custom object. Any help for a starting point would be greatly appreciated, even if it's just a point in the right direction.

Thanks in advance!
Best Answer chosen by Chris Young 2
brahmaji tammanabrahmaji tammana
I think you have to use wrapper class to acheive this. 

Check below links for more info:
https://developer.salesforce.com/page/Wrapper_Class
http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/

I hope you will be able to do this.

Thanks,
Brahma

All Answers

brahmaji tammanabrahmaji tammana
I think you have to use wrapper class to acheive this. 

Check below links for more info:
https://developer.salesforce.com/page/Wrapper_Class
http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/

I hope you will be able to do this.

Thanks,
Brahma
This was selected as the best answer
Chris Young 2Chris Young 2
Thank you very much for that information, that is exactly what I was looking for! Would you be able to point me in the right direction if I wanted to save the selected list as a new iteration of a custom object?