tag:blogger.com,1999:blog-2380028296864987832.post6203163088310459761..comments2022-02-25T20:37:09.105-08:00Comments on ADF Dev to Dev: Search from popup and add to a new tableHusainDhttp://www.blogger.com/profile/08119731737785573060noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2380028296864987832.post-60098695984083205032009-11-17T07:14:12.990-08:002009-11-17T07:14:12.990-08:00Hi Klaas,
Didnt completely follow your question. ...Hi Klaas,<br /><br />Didnt completely follow your question. Did you mean the sequence was not populated properly?HusainDhttps://www.blogger.com/profile/08119731737785573060noreply@blogger.comtag:blogger.com,1999:blog-2380028296864987832.post-21233621455660703312009-11-17T06:46:53.970-08:002009-11-17T06:46:53.970-08:00Hi HusainD,
I only used this :
In the MyEmployees...Hi HusainD,<br /><br />I only used this :<br />In the MyEmployeesEOImpl add the following code to create() method<br /> protected void create(AttributeList attributeList) {<br /> super.create(attributeList);<br /> SequenceImpl seq = new SequenceImpl("MY_EMPLOYEES_S", getDBTransaction());<br /> <br /> setId(seq.getSequenceNumber());<br /> setEmpId((Number)attributeList.getAttribute("EmpId"));<br /> //setEmpId(new Number(1));<br /> }<br /><br />But that was enough to use the sequence.<br /><br />Thanks!<br /><br />KlaasKlaashttps://www.blogger.com/profile/15229807648337012791noreply@blogger.com