Step 1:
Give the Add row button, Action when Button Clicked as Defined by Dynamic action.
Step 2:
Create a Dynamic action with Event as Click, Selection Type as Button, Button as Add_row and true action as Execute JavaScript Code with Fire on Page load No and add code as addRowTop();
Step 3:
Create a function in page header as
function addRowTop()
{
apex.widget.tabular.addRow();
apex.jQuery(apex.widget.tabular.gTabForm).find("tr").last().insertBefore(apex.jQuery(apex.widget.tabular.gTabForm).find("tr").first());
}
yeah.. fine. I had an error earlier. Now it is working fine.
ReplyDeleteIt does nothing for me.... what does mind the expression find("tr")
ReplyDeleteGreat Article.
ReplyDeleteOCI PunchOut