Thursday 29 December 2016

Dynamically ordering of rows



Step 1:
Create a tabular form with the query and add a null column at last
Step 2:
Report attributes à NULL column à HTML Expression
<img id="down_#ROWNUM#" style="cursor:pointer;"
onclick="f_row_down(this)"
src="/i/arrow_down_gray_dark.gif" />
<img id="up_#ROWNUM#" style="cursor:pointer;"
onclick="f_row_up(this)"
src="/i/arrow_up_gray_dark.gif" />
Step 3:
Give display as Standard Report Column
Step 4:
Add 2 functions in the page header for changing the rows order.
function f_row_down (pThis, a)
{
//alert(a);
$("#P23_Y").val(a);
html_RowDown(pThis);
apex.submit('DOWN');
}


function f_row_up (pThis,pThat,a)
{
html_RowUp(pThis);
$("#P23_Y").val(a);
apex.submit('DOWN');

}


By 
A.Arun Kumar

3 comments:

  1. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative.
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    Big Data and Hadoop Training In Hyderabad

    ReplyDelete
  2. Such a nice blog, I really like what you write in this blog, I also have some relevant information about if you want more information.

    Big Data and Hadoop Online Training

    ReplyDelete
  3. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    Spark and Scala Online Training

    ReplyDelete