Adding Serial No in the table in ADF-

Requirment- We want to show the Serial No as first column in table. Seems to be difficult.Not that much.

Solution- The first column of the table.Right click the first column in the structure window.Insert column using insert Before the af:column .
Then in newly created column insert outputText using right click and insert inside the af:column –>outputText

Now in the table properties value of table is something #{bindings.rderLinesVO1.collectionModel} .Below value property there is property called
VarStatus- give value as “vs”

Now to go to the newly created outPutText property and in the value give as #{vs.index+1}. that it.

Now you can see your table as below…

Happy coding with Techartifact 🙂