Hi all,
I'd like to know how to set up link table when creating user field by code.
is the following code correct ?
Tables = new B1DbTable[] { new B1DbTable("@CRL_MY_TABLE", "TYPES", BoUTBTableType.bott_NoObject), new B1DbTable("@CRL_MY_TABLE_2", "ATTRIBUTS", BoUTBTableType.bott_NoObject) }; B1DbColumn l_b1Column = new B1DbColumn("@CRL_MY_TABLE", "ID", "table 2", BoFieldTypes.db_Alpha, FldSubTypes.st_None, 10, new B1WizardBase.B1DbValidValue[0], -1); l_b1Column.LinkTo = "@CRL_MY_TABLE_2"; Columns = new B1DbColumn[] {..... l_b1Column,... ....}
Should I have to create Keys first ?
Thanks a lot !
Edited by: PIERRE BROTHIER on Mar 30, 2010 4:19 PM