User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:devel:createvtlibmodule [2020/03/04 13:28]
joebordes
en:devel:createvtlibmodule [2020/04/15 22:38] (current)
joebordes
Line 32: Line 32:
 | rel_module | 1 | rel_module | Related Module | 2 | V~O | save the setype of the module rel_id if set in save_module | | rel_module | 1 | rel_module | Related Module | 2 | V~O | save the setype of the module rel_id if set in save_module |
 | | | | | | | | | | | | | | | |
-| donefrom | 1 | donefrom' ​| Done From | 2 | V~O | save $_SERVER['​REMOTE_ADDR'​] in save_module |+| donefrom | 1 | donefrom | Done From | 2 | V~O | save $_SERVER['​REMOTE_ADDR'​] in save_module |
 | | | | | | | | | | | | | | | |
 ^ Block: Custom information ^^^^^^^ ^ Block: Custom information ^^^^^^^
Line 46: Line 46:
   * how I accommodate space for the default fields   * how I accommodate space for the default fields
   * how I specify the modules supported by the uitype 10 capture field   * how I specify the modules supported by the uitype 10 capture field
 +  * **ALL** field and column names **MUST** be in lower case
  
 Next up are the **list view fields**. We have to choose from the fields above which ones will appear on the "​All"​ filter, which ones appear in the popup when we try to select a record from this module and also which fields appear on any related list this module may be related to. I simply indicate them like this Next up are the **list view fields**. We have to choose from the fields above which ones will appear on the "​All"​ filter, which ones appear in the popup when we try to select a record from this module and also which fields appear on any related list this module may be related to. I simply indicate them like this
Line 96: Line 97:
 **3.4.-** Add the SQL to create the main table. **3.4.-** Add the SQL to create the main table.
  
-**3.4.1.-** This table must be the name of your module in lower case prefixed with "​vtiger_"​.+**3.4.1.-** This table must be the name of your module in **lowercase** ​prefixed with "​vtiger_"​.
  
-**3.4.2.-** It must contain the internal primary key which is the name of your module in lowercase followed by "​id"​+**3.4.2.-** It must contain the internal primary key which is the name of your module in **lowercase** followed by "​id"​
  
 **3.4.3.-** Add a field for all the fields in your module except the common _crmentity fields **3.4.3.-** Add a field for all the fields in your module except the common _crmentity fields
Line 112: Line 113:
 **3.8.-** Fill in the sharing access, default actions, related lists, and other special settings **3.8.-** Fill in the sharing access, default actions, related lists, and other special settings
  
-**4.-** Each module has a main file which defines its class. This file was copied in step 1 and renamed in step 2. So we now have a file called:+**4.-** Each module has a main file that defines its class. This file was copied in step 1 and renamed in step 2. So we now have a file called:
  
 <​code>​ <​code>​
Line 122: Line 123:
 **4.1.-** the module class name **4.1.-** the module class name
  
-**4.2.-** replace **MODULE_NAME_LOWERCASE** with the lowercase internal name of your module+**4.2.-** replace **MODULE_NAME_LOWERCASE** with the **lowercase** internal name of your module
  
 **4.3.-** replace **MODULE_REFERENCE_FIELD** with the name of your modules'​ reference field **4.3.-** replace **MODULE_REFERENCE_FIELD** with the name of your modules'​ reference field