Re: automatic creation of a field
I do not know exactly for what propose it is needed, but you can dinamically create fields computing a new file under /custom/Extation/modules/Custom_module/Ext/Vardefs/new_file_name.php
This file has to have a content like:
PHP Code:
<?php
$dictionary["custom_module"]["fields"]["custom_name"] = array (
'name' => 'custom_name',
'type' => 'varchar',
);
Then run programatically the repair/rebuild using sugar admin object (I haven't this code now).
After that the new field is created.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks