on 05-12-2011 2:40 AM
Hi all,
Does any one know how to add UDF in table OMRC ( manufacturers) ?
Thanks in advance
Regards
Jia Shun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That thread is misleading, you can add fields to tables that are not exposed to the User Defined Fields Managment screen, but only by using SDK.
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
'// The meta-data object needs to be initialized with a
'// regular UserFields object
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
'// Set the Fields mandatory properties
oUserFieldsMD.TableName = "OMRC"
oUserFieldsMD.Name = "UserField1"
oUserFieldsMD.Description = "A user field"
oUserFieldsMD.Type = db_Alpha '// am alphanumeric type
oUserFieldsMD.EditSize = 20
'// Add the field to the table
oUserFieldsMD.Add
That's taken from the UserFieldsMD Object section of the SDK help. I do not see a reason that this will not work.
You can just call the oUserFieldsMD.Remove method.
It depends on your version of B1 though, perhaps in an earlier version, this method was not yet exposed & in that case I do not think you can remove it. I know in 8.8 PL10 it is available.
If your issue is solved, please mark the answer in the thread so others may use it in the future.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.