on 11-10-2005 5:25 PM
Hey Guys,
I know I have seen this asked before in the forum but I have not seen any good replies to this question.
What is the most efficient or standard way of adding any required user defined fields, tables, etc.. when deploying an addon? (SBO 2004) I am using the meta data objects to create the fields I need now but that seems like a lot of code to create a few user defined fields and tables.
Is there a better approach?
Hi Laura,
Using Metadata Objects is the suggested (and best) way to add user defiend tables and fields. This is basically the "scripting" of your additional SQL structure. But other tahn using the SQL scripting tool - you script your structure using the Metadata Objects. You have perfect control over table and field creation and don't rely on users that may mess the configuration up :).
What you can do to minimise your efforts is to create 2 generic routines that you can include in your code and call when you create tables and fields:
1. Create Table
-Generic routine to create a table and you pass it the
TableName
TableDesc
TableType
2. Create Field
-Generic routine to create a field and you pass it the
TableName
FieldName
FieldDesc
FieldType
FieldSize
FieldPos (to check if it's there)
(Default Value if need be)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using BODE, the wizard will create the code for generating the User fields you need, and other interesting stuff.
Regards,
Ibai Peñ
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.