Custom SCRIPT type field limited lenght

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Custom SCRIPT type field limited lenght

Postby dspaan » Mon Sep 19, 2016 10:10 am

I've created a custom field of the SCRIPT type. But it seems this field had a limit on the amount of characters, where can i change this limit?

Versie: 2.12b0.5
SVN Version: 2526
DB Schema Version: 1458
DB Schema Update Date: 2016-04-29 19:33:02
Regards, Dennis

Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
dspaan
 
Posts: 1377
Joined: Fri Aug 21, 2009 1:40 pm
Location: The Netherlands

Re: Custom SCRIPT type field limited lenght

Postby williamconley » Sun Nov 13, 2016 2:39 pm

That limitation will likely be hard-coded into the "vicidial.php" agent screen.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20285
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Custom SCRIPT type field limited lenght

Postby dspaan » Wed Nov 16, 2016 5:12 am

Yes, but i was hoping anyone could say which line in the code i'd have to change.
Regards, Dennis

Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
dspaan
 
Posts: 1377
Joined: Fri Aug 21, 2009 1:40 pm
Location: The Netherlands

Re: Custom SCRIPT type field limited lenght

Postby mflorell » Wed Nov 16, 2016 6:50 am

The database field is a VARCHAR(5000), so it is limited to 5000 characters. There is no pre-set limit in the PHP programming.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Custom SCRIPT type field limited lenght

Postby williamconley » Wed Dec 21, 2016 2:13 am

mflorell wrote:The database field is a VARCHAR(5000), so it is limited to 5000 characters. There is no pre-set limit in the PHP programming.

Do you think it would break anything to convert this field to "TEXT" instead of VarChar?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20285
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Custom SCRIPT type field limited lenght

Postby mflorell » Wed Dec 21, 2016 7:44 am

Good question, give it a try and let us know :)
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Custom SCRIPT type field limited lenght

Postby williamconley » Sun Jan 22, 2017 3:35 am

We've changed a lot of fields to TEXT in various installs. Just not this one.

In fact, we extended some client's capability in Lime Survey to beyond 85 custom fields by altering their "create new field" script to use TEXT instead of VARCHAR. Some customers want to have a couple hundred custom fields, and the default lime survey method would always crash after 85 due to the number of bytes in the field addressing. But TEXT creates a BLOB field with 4 bytes if I recall. Does add burden to the system when running to access the data in the BLOBs, but that hasn't proven to be notable so they're all happy.

But in Vicidial, we have expanded several fields and changed several to TEXT without any known hiccups yet. Just not that one.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20285
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Custom SCRIPT type field limited lenght

Postby ghernandez » Wed Feb 19, 2020 10:09 am

williamconley wrote:We've changed a lot of fields to TEXT in various installs. Just not this one.

In fact, we extended some client's capability in Lime Survey to beyond 85 custom fields by altering their "create new field" script to use TEXT instead of VARCHAR. Some customers want to have a couple hundred custom fields, and the default lime survey method would always crash after 85 due to the number of bytes in the field addressing. But TEXT creates a BLOB field with 4 bytes if I recall. Does add burden to the system when running to access the data in the BLOBs, but that hasn't proven to be notable so they're all happy.

But in Vicidial, we have expanded several fields and changed several to TEXT without any known hiccups yet. Just not that one.




Williamconley - any fix to extend the field limitation?
ghernandez
 
Posts: 46
Joined: Thu Jul 04, 2019 7:01 am

Re: Custom SCRIPT type field limited lenght

Postby williamconley » Wed Feb 19, 2020 1:20 pm

Which field limitations? Field Type? Field Count? What?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20285
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Custom SCRIPT type field limited lenght

Postby ghernandez » Wed Feb 19, 2020 2:10 pm

williamconley wrote:Which field limitations? Field Type? Field Count? What?



The script field for the campaign.
ghernandez
 
Posts: 46
Joined: Thu Jul 04, 2019 7:01 am

Re: Custom SCRIPT type field limited lenght

Postby williamconley » Wed Feb 19, 2020 2:19 pm

That exists in two places basically: MySQL has a table for vicidial_campaigns which has a field for the script. That field has a length. Yes, you can change it. PHP also draws the field onto the page in the Modify Scripts area of the Admin.php page. I don't know if that has any extra limitations or not, but yes you can also alter that length if it has limitations.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20285
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Custom SCRIPT type field limited lenght

Postby ghernandez » Wed Feb 19, 2020 3:09 pm

williamconley wrote:That exists in two places basically: MySQL has a table for vicidial_campaigns which has a field for the script. That field has a length. Yes, you can change it. PHP also draws the field onto the page in the Modify Scripts area of the Admin.php page. I don't know if that has any extra limitations or not, but yes you can also alter that length if it has limitations.





Noted, thanks.
ghernandez
 
Posts: 46
Joined: Thu Jul 04, 2019 7:01 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 59 guests