cancel
Showing results for 
Search instead for 
Did you mean: 

Create link table using Bd1Column class

PierreBrothier
Contributor
0 Kudos
66

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i don't know by b1de, why you don't use the object oUserFieldsMd??

Answers (0)