Monday 4 July 2016

Add Row on the Top in the APEX Tabular Form

 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());


3 comments:

  1. yeah.. fine. I had an error earlier. Now it is working fine.

    ReplyDelete
  2. It does nothing for me.... what does mind the expression find("tr")

    ReplyDelete