tag:blogger.com,1999:blog-1799093969133798390.post5088359056117685966..comments2024-03-24T22:00:56.816-07:00Comments on Technology Blog: ADF: Control rows which you want to commitSanjeev Chauhanhttp://www.blogger.com/profile/01177389601954395860noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-1799093969133798390.post-24374949085750735202020-12-03T04:55:26.762-08:002020-12-03T04:55:26.762-08:00For me its not working:
I need to commit some rec...For me its not working:<br /><br />I need to commit some records in an ADF table and not others<br /> protected void doDML(int operation, TransactionEvent e) {<br /> System.out.println("doDML start");<br /> ArrayList selectedList = null;<br /> BigDecimal recordId=null;<br /> BigDecimal currentRecId=null;<br /> //getBigDecimalValue()<br /> int result =0;<br /> try {<br /> if (operation == DML_UPDATE){<br /> System.out.println("recordIdlist:::"+ADFContext.getCurrent().getPageFlowScope().get("selectedRecordList"));<br /> selectedList=(ArrayList)ADFContext.getCurrent().getPageFlowScope().get("selectedRecordList") ;<br /> for(int i=0;i<selectedList.size();i++){<br /> recordId=new BigDecimal((selectedList.get(i)).toString());<br /> System.out.println("recordId:::"+recordId);<br /> currentRecId=new BigDecimal((this.getRecordId()).toString());<br /> System.out.println("currentRecId:::"+recordId); <br /> result=recordId.compareTo(recordId);<br /> if(result==0){<br /> System.out.println("commit happen");<br /> super.doDML(operation, e);<br /> }<br /> }<br /> <br /> }else{<br /> System.out.println("else loop");<br /> // super.doDML(operation, e);<br /> }<br /> }catch(Exception ex){<br /> ex.printStackTrace();<br /> <br /> }<br /> }Anonymoushttps://www.blogger.com/profile/09449560554049721417noreply@blogger.comtag:blogger.com,1999:blog-1799093969133798390.post-45337036077879641002020-10-15T11:29:51.282-07:002020-10-15T11:29:51.282-07:00Nice Article, thanks for this information
Also che...Nice Article, thanks for this information<br />Also check this out<br /><a href="https://technologynewsonline01.blogspot.com/" rel="nofollow">Laptops, Mobiles, Games, Tv, Smartwatches etc Daily Tech News Updates.</a>Muhammad Azwarhttps://www.blogger.com/profile/10311342028815381009noreply@blogger.comtag:blogger.com,1999:blog-1799093969133798390.post-76237583790613192782016-03-18T23:20:26.353-07:002016-03-18T23:20:26.353-07:00Very wonderful article.In this information is gett...Very wonderful article.In this <a href="http://www.essayscouncil.com" rel="nofollow">information</a> is getting wonderful reviews from the students . Anonymoushttps://www.blogger.com/profile/10897322730359547304noreply@blogger.com