Auto generation of serial number in table form

Hi all

I need to implement number line concept as in the Oracle Applications in my Apex a table

(IE):

If I create 3 files in tabular form, it should appear as shown below:

Example
Line number
1Sample1
2Example2

line number must be a number that is automatically generated and must be a database column (ie), we need to show as text (saves the State) column in the form of tables since it is not editable by the user.

"In case I have delete a record, it must be as shown below.

Example
Line number
1Example2

(IE) but I deleted the first record it should automatically change the line number of the second record to 1.

and if I update the tabular presentation by adding another line, then it should appear as shown below:

Example
Line number
1Example2
2Sample3

This functionality is achievable in apex? can someone help me?

I use APEX 4.2.2.00.11 version.

Thank you and best regards,

Madonna

Hey Madonna,

".t20Report" is a cass which refers to your report, I guess. Since you only have a single report, the index will be never greater than 1.

What you want to do is to look at each line of the table in this report and to count the index of each line:

$('.t20Report_tbody_tr').each (function () {}

var i = $(this) .index () + 1 //javscript index is 0, sql is 1

$(this) .find ('td [headers = "ORDNO"] input') .val (i)

})

Tags: Database

Similar Questions

Maybe you are looking for