This content has been marked as final. Show 5 replies
I'll answer your question if you answer mine with an example based upon your original question:
How to ask a proper question?
(That is just my obtuse way of saying to you, you must provide more information in order to get an answer. What version of JDeveloper? What do you mean by "ADF table?" What technology are you using for the model layer?)
may be good reading for you
What version of JDev are you using? Are you using ADF/BC?
If you are using version 10g of JDev and the ADF/BC technology, then you should look at how they do deletes in SRDemo. If you are using JDev 11g, then I have seen multi-select subject covered on this forum.
(I appreciate that you are adding detail to your entries. John is an extremely nice guy; that he and so many others offer their help for FREE is amazing; if he is asking for information is it because he needs it to give you an answer that works.)
best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code