Menu
Welcome, Guest
Username: Password: Remember me

TOPIC: Increment number of characters

Increment number of characters 1 week 3 days ago #88072

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
Hello! I encountered such a problem, I need to increase the number of characters in the field, by default it costs 255, changed it in the database, but going into crm still costs 255, how can I change this?
The administrator has disabled public write access.

Increment number of characters 1 week 2 days ago #88088

  • AlxGr
  • AlxGr's Avatar
  • Offline
  • Elite Member
  • Posts: 301
  • Thank you received: 54
  • Karma: 9
First you need to modify the field structure.

I posted a sample on how to increase the field length on the last post on this:
suitecrm.com/suitecrm/forum/feedback/930...ort-definition#78982
I can help you with your customization. Requests at ctmprograATondsystemsDOTcom
No dude en contactarme si necesita personalizar su aplicación. Mi email es ctmprograARROBAondsystemsPUNTOcom
The administrator has disabled public write access.

Increment number of characters 1 week 2 days ago #88100

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
and where exactly do you need to create the directory? in unix?
The administrator has disabled public write access.

Increment number of characters 1 week 2 days ago #88101

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
I did as you described here
create a new field, put the number of characters more than 255, save, go to the field anyway 255
The administrator has disabled public write access.

Increment number of characters 1 week 1 day ago #88115

  • AlxGr
  • AlxGr's Avatar
  • Offline
  • Elite Member
  • Posts: 301
  • Thank you received: 54
  • Karma: 9
First of all field has to exist in Studio or you can create it from there.

Based on the sample, you to create a php file on this directory: /custom/Extension/modules/YOUR-MODULE/Ext/Vardefs/value.php
(Directory doesn't exists by default so you need to create it manually)

Copy/Paste this code (In my case I increased it to 1100. You can accommodate it to your needs):

<?php
 // custom vardef to increase field length. 
$dictionary['YOUR-FIELD-HERE']['fields']['value']['len']='1100';

 ?>

Thanks,

AlxGr
I can help you with your customization. Requests at ctmprograATondsystemsDOTcom
No dude en contactarme si necesita personalizar su aplicación. Mi email es ctmprograARROBAondsystemsPUNTOcom
The administrator has disabled public write access.

Increment number of characters 6 days 9 hours ago #88151

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
I did everything, but when I create the field, I still have 255
The administrator has disabled public write access.

Increment number of characters 5 days 20 hours ago #88164

  • AlxGr
  • AlxGr's Avatar
  • Offline
  • Elite Member
  • Posts: 301
  • Thank you received: 54
  • Karma: 9
What version are you using?
I can help you with your customization. Requests at ctmprograATondsystemsDOTcom
No dude en contactarme si necesita personalizar su aplicación. Mi email es ctmprograARROBAondsystemsPUNTOcom
The administrator has disabled public write access.

Increment number of characters 5 days 8 hours ago #88184

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
7.10.14
The administrator has disabled public write access.

Increment number of characters 4 days 21 hours ago #88216

  • AlxGr
  • AlxGr's Avatar
  • Offline
  • Elite Member
  • Posts: 301
  • Thank you received: 54
  • Karma: 9
Interesting. I have tested on the same version and all worked fine to me. Please make sure you are following the right steps.
I can help you with your customization. Requests at ctmprograATondsystemsDOTcom
No dude en contactarme si necesita personalizar su aplicación. Mi email es ctmprograARROBAondsystemsPUNTOcom
The administrator has disabled public write access.

Increment number of characters 4 days 7 hours ago #88230

  • danik13337
  • danik13337's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Karma: 0
Sorry, the version is incorrect.
the correct version is 7.11.4 here
Here are the screenshots, tell me what I'm doing wrong
prntscr.com/osg7f3
prntscr.com/osg7xw
The administrator has disabled public write access.
Time to create page: 0.048 seconds
Powered by Kunena Forum