Hi,
I have created list of fields in integer data type. but i want to change those fields data type. Actually i changed in back end but there is no reflect in front end screen. Does anyone help me?
Hi guys i found the solution. go to modules/(module_name)/vardefs.php . find the field name and change the type then repair.
Itâs simple⌠But you have to modify the CRM code files Goto custom -> Extension -> modules -> <module_name> -> Ext -> Vardefs -> <field_name>.php
add the below line in the file
$dictionary[âmodule_nameâ][âfieldsâ][âfield_nameâ][âtypeâ]=âdata_typeâ;
e.g.
$dictionary[âCustomersâ][âfieldsâ][âheightâ][âtypeâ]=âfloatâ;
Repair Rebuild so that it will sync the vardefs with DB⌠B) B)
Itâs simple⌠But you have to modify the CRM code files Goto custom -> Extension -> modules -> <module_name> -> Ext -> Vardefs -> <field_name>.php
add the below line in the file
$dictionary[âmodule_nameâ][âfieldsâ][âfield_nameâ][âtypeâ]=âdata_typeâ;
e.g.
$dictionary[âCustomersâ][âfieldsâ][âheightâ][âtypeâ]=âfloatâ;
Repair Rebuild so that it will sync the vardefs with DB⌠B) B)
Just in case someone need to do this.
Iâve changed it like @mustafa_taheri but it look like it wasnt enough, I change it directly in the database, table âfields_meta_dataâ, after that I re-saved the field in the studio just to update the type (look like its mandatory). And now it changed the type completly.
So, If I am using PhpMyAdmin. I just go into the DB âfields_meta_dataâ table and update and EDIT/ change the TYPE from âINTâ to âTEXTâ ? - No other change required? ( In addition to steps by mustafa_taheri )
Just being sure -
If my code looks like this:
<?php
// created: 2019-12-04 00:17:13
$dictionary['Project']['fields']['secondary_invoice_status_c']['inline_edit']='1';
$dictionary['Project']['fields']['secondary_invoice_status_c']['labelValue']='Midpoint INV Stat';
$dictionary['Project']['fields']['secondary_invoice_status_c']['type']='text';
?>
IM trying to switch from integer âintâ to âtextâ
Thanks bro, your logic work but when the datatype is Relate and it Relate with userâs module then how we relate that particular field linked with particular module.
Hi,
I find the solution for Related field as:-
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âlabelValueâ]=âContract Verified Byâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âtypeâ] = ârelateâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âmoduleâ] = âUsersâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âext2â] = âUsersâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âtableâ] = âusersâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âstudioâ] = âvisibleâ;
$dictionary[âAOS_Contractsâ][âfieldsâ][âcontractverifiedby_câ][âid_nameâ] = âusers.idâ;