autoNextRecord when the defined primarykey also a masterlink
Kishan Bhat <[email protected]> Sun, 27 Feb 2011 17:22:23 +0530
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1179859918== Content-Type: multipart/alternative; boundary=00151747932a3e9865049d4232ca --00151747932a3e9865049d4232ca Content-Type: text/plain; charset=ISO-8859-1 I hase 2 db tables - purchaseOrder and po_item which both have a column named "id" which is also the primary key in each. The datasource in my gfd looks like this: <datasource name="dts_purchaseOrder" connection="test" table="purchaseOrder" master="dts_opportunity" masterlink="id" detaillink="uid_opportunity" /> <datasource name="dts_po_item" connection="test" table="po_item" master="dts_purchaseOrder" masterlink="id" detaillink="uid_po" /> i.e I've used the "id" column from dts_purchaseOrder as masterlink for "uid_po" column from the DB table "po_item". Now, my autoNextRecord="Y" stops working when I move out of the last block of "purchaseOrder". The moment I remove the master/detail relationship, the autonextrecord starts working. Can I work around it somehow? I want to be able to create new records for the table "purchaseOrder" but also keep the primarykey as id and also the masterlink on it. Thanks in advance, Kishan --00151747932a3e9865049d4232ca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>I hase 2 db tables - =A0purchaseOrder and po_item which both have a co= lumn named "id" which is also the primary key in each.</div><meta= http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><div><b= r></div> <div><div><br></div></div><div>The datasource in my gfd looks like this:</d= iv><div><br></div><div><div><div>=A0<datasource name=3D"dts_purchas= eOrder" connection=3D"test" table=3D"purchaseOrder"= ; master=3D"dts_opportunity" masterlink=3D"id" detailli= nk=3D"uid_opportunity" /></div> <div>=A0<datasource name=3D"dts_po_item" connection=3D"te= st" table=3D"po_item" master=3D"dts_purchaseOrder"= masterlink=3D"id" detaillink=3D"uid_po" /></div></d= iv></div><div> <br></div>i.e I've used the "id" column from dts_purchaseOrde= r as masterlink for "uid_po" column from the DB table "po_it= em".<div><br></div><div>Now, my autoNextRecord=3D"Y" stops w= orking when I move out of the last block of "purchaseOrder". The = moment I remove the master/detail relationship, the autonextrecord starts w= orking. Can=A0I work around it somehow? I want to be able to create new rec= ords for the table "purchaseOrder" but also keep the primarykey a= s id and also the masterlink on it.<div> <br></div><div>Thanks in advance,</div><div>Kishan</div></div> --00151747932a3e9865049d4232ca-- --===============1179859918== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue --===============1179859918==--