What is missing in my custom field vardef?

Hello. I need to add an integer field to currencies. I created the file custom/Extension/modules/Currencies/Ext/Vardefs/c_primary_key_c.php

It contains the following:

<?php
$dictionary['Currency']['fields']['c_primary_key_c']['name'] = 'c_primary_key_c';
$dictionary['Currency']['fields']['c_primary_key_c']['id'] = 'c_primary_key_c';
$dictionary['Currency']['fields']['c_primary_key_c']['type'] = 'Integer';
$dictionary['Currency']['fields']['c_primary_key_c']['dbType'] = 'integer';
$dictionary['Currency']['fields']['c_primary_key_c']['source'] = 'custom_fields';
$dictionary['Currency']['fields']['c_primary_key_c']['len'] = 10;
$dictionary['Currency']['fields']['c_primary_key_c']['size'] = 10;
$dictionary['Currency']['fields']['c_primary_key_c']['unified_search'] = false;

What am I missing, as this is not detected when I do Quick Repair?
Parents
  • Silly question maybe, but I'm curious why you need to add a currency field as an integer?
    I'm also told to add all custom fields via Studio to ensure upgrade safe methods

  • This is not a currency field it is A field in currency module. And it is the synchronization key from our software with which CRM communicates. If the field is 0 means the currency rates have not yet been updates, if the field is 123 it means it corresponds with the record ID = 123 on our other software

  • I think I saw once a developer that said it was possible to expose any core module to be managed within Studio.
    So if you can find out how to do that with Currencies module, it would be simpler to then manage the fields you need.

Reply
  • I think I saw once a developer that said it was possible to expose any core module to be managed within Studio.
    So if you can find out how to do that with Currencies module, it would be simpler to then manage the fields you need.

Children
No Data