Hi , I have a custom page with Add Row button. On click of button it adds new rows.
Now new requirement has come ,to add new button delete rows. For this a check box should be added against each row and on select of check box and delete the row should be deleted.
How to capture the selected row? The above said is all new requirement.How to proceed on this ? pl help me on this requirement.
I hope you are using adv. Table for this. If so, than please add Selectflag column in vo. and Used multiple selection in the Adv Table. When user select the chech Box, at that time "Y" is set to selectFlag. your task is just check the selectFlag for "Y".
I suggest you should used Adv. Table for this, Because If you are using Table than, you have to follow the steps suggested by Sushant and have to create fire action on the checkbox and also update your VO for some value.
As per your suggestion, i have done the changes on the PG.
On click of DelRow button , i am calling an firePartialAction event. Now how to capture the selected Y flag values and delete.
can you pl post some psuedo code if any
I have implemented the changes as suggested and problem i faced is on select of check box the value is coming as "on" but not as "Y".
So i have chaged in the page,set checked value to "Y" for the check box.
On click of Del Row button the row is removed from the page. But when i click on final Save button the removed rows are coming back on the page. Below is my code.