“Nathan Gray” nathan@goarctic.com schrieb:
Much of pERP’s data is in 1:n:m relationships.
For example, 1 Order has {1,n} OrderLines, OrderLines have {0,m}
OrderLineDetails.
I’m wondering how the Tine Record_Interface would support such things,
and what the keys would look like?
Would each of Order, OrderLines, OrderLineDetails need to have an auto-
incrementing ID, or could multi-part keys like
{order_id, order_line_id, order_line_detail_id}
{1,0,0}, {1,1,0}, {1,1,1}, {1,1,2}, {1,2,0}, etc be used?
Hello Nathan!
The idea is to have a record. The record can have the following properties
for example:
description: datatype string
orderId: datatype integer
orderLines: datatype recordSet (containing multiple records)
The orderLines would be of the type Egwbase_Record. The recordSet contains
multiple objects of the same datatype(class instance of Egwbase_Record).
Inside the recordSet any record gets identified by its unique key.
Any items would have it’s own id, as the data are separated by different
classes.
If I understood your question correctly, I don’t think that we need
multi-part keys.
–
Lars Kneschke
CTO OfficeSpot.Net
Metaways Infosystems GmbH
Pickhuben 2-4, D-20457 Hamburg
eGroupWare Support: http://www.egroupware-support.net
OfficeSpot.Net Collaboration Server: http://cs.officespot.net
our proposal for the next major eGroupWare release: http://www.tine20.org
E-Mail: mailto:l.kneschke@metaways.de
Web: http://www.metaways.de
Tel: +49 (0)40 317031-21
Fax: +49 (0)40 317031-921
Mobile: +49 (0)175 9304324
Metaways Infosystems GmbH - Sitz: D-22967 Tremsbüttel
Handelsregister: Amtsgericht Ahrensburg HRB 4508
Geschäftsführung: Hermann Thaele, Lüder-H.Thaele
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers