Skip to Content
0
Former Member
Mar 14, 2006 at 04:53 AM

Add userfields to system table error!

17 Views

hi,when I add userfields to system table such as "PDN1",it's fail.Code like bellow:

ufmd = (UserFieldsMD)diCompany.GetBusinessObject(BoObjectTypes.oUserFields) ;

ufmd.Name = "field1" ;

ufmd.TableName = "PDN1" ;

ufmd.Description = "descr" ;

ufmd.Type = ....;

.................

ufmd.Add() ;

..........................

When I assgin TableName "PDN1" to ufmd.TableName,the result is :ufmd.TableName = "@PDN1".SO when add userfield to the table,the error occur:the table "@PDN1" not exist.

When I add user fields in user table using the same code ,it's ok .

Anybody can tell me,how to add user fields to system table? thk!