on 12-01-2006 10:38 AM
Hi MDM guru,
I use JAVA API for MDM 5.5 sp4.
I have this structure;
Main table-> Customer
Main table fields are: Name (string),City (string) and Type (lookup flat)
Lookup table-> Type
Lookup table field is: Name and its possible values are: "A", "B","C"
When I create a new record in Main table I use the following code:
A2iFields flds = new A2iFields();
flds.Add(new A2iField(NAME, new Value(NAME));
flds.Add(new A2iField(CITY, new Value(CITY));
int pos = objCatalodData.AddRecord(<main table>, fields, posParent, 0);
Question: How can I create the link for the <b>Type</b> lookup table???
Hi Rocco,
1. Perform a search in the lookup table and get the record id for the record you want to link to - "A", "B" or "C".
2. Take this record id, and use it as the value for the field Type.
flds.Add(new A2iField(TYPE, new Value(recordID));
Hope this helps,
Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.