Results 1 to 5 of 5

Thread: HTML Field type not read from the database

  1. #1
    tickletoe is offline Member
    Join Date
    Feb 2011
    Location
    London, UK
    Posts
    13

    Default HTML Field type not read from the database

    Hello,
    I want to display an HTML table in the detailview of a custom module called Participants.
    I have created a field of type HTML called "conv_fields" and have written code to populate this column when a Participant is created. The column is on the participant table and it's values vary for each participant.

    The vardef that is created is this:
    Code:
    'conv_parms' => 
      array (
        'required' => false,
        'name' => 'conv_parms',
        'vname' => 'LBL_CONV_PARMS',
        'type' => 'html',
        'massupdate' => 0,
        'comments' => '',
        'help' => '',
        'importable' => 'true',
        'duplicate_merge' => 'disabled',
        'duplicate_merge_dom_value' => '0',
        'audited' => false,
        'reportable' => true,
        'len' => '255',
        'size' => '20',
        'studio' => 'visible',
        'dbType' => 'text',
    What is happening is that the HTML table gets displayed correctly for the first Participant but is does not change for the second, or third etc. It's as if the first generated HTML table is cached and then displayed for all Participants.

    If I change the 'type' => 'html', to 'type' => 'varchar', everything works fine but of course the HTML tags come out as text.

    Does anyone know how to get suagrCRM to regenerate the HTML field each time a Partcipant is read from the database. Or is there another way of doing this?

    Many thanks in advance for your help,
    Scott

  2. #2
    tickletoe is offline Member
    Join Date
    Feb 2011
    Location
    London, UK
    Posts
    13

    Default Re: HTML Field type not read from the database

    If I switch developer mode on it works, so it is caching it.
    Is there any other way of getting this to work without setting developer mode on?

  3. #3
    Kaleb23 is offline Senior Member
    Join Date
    Dec 2010
    Posts
    26

    Default Re: HTML Field type not read from the database

    I have a similar problem. Ever since I've started using TinyMCE and displayed a description textArea with type "html" I get caching problems. Descriptions of other accounts showing up in a given account. It's very disconcerting. I'm using CE 5.5.

  4. #4
    URtech is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    34

    Default Re: HTML Field type not read from the database

    I'm also seeing the same bug, using Pro v6.1.2.

  5. #5
    Kaleb23 is offline Senior Member
    Join Date
    Dec 2010
    Posts
    26

    Default Re: HTML Field type not read from the database


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. read-only type field fails to pass a value in $_POST
    By work77 in forum Developer Help
    Replies: 2
    Last Post: 2010-11-11, 01:16 AM
  2. custom field of html type with dynamic querystring???
    By dogfuel in forum Developer Help
    Replies: 9
    Last Post: 2008-11-05, 07:05 AM
  3. Replies: 0
    Last Post: 2008-07-02, 10:11 PM
  4. Field Type 'html'
    By jjwdesign in forum Developer Help
    Replies: 0
    Last Post: 2008-02-05, 08:17 PM
  5. Use of HTML data type
    By sagarladdha in forum Help
    Replies: 0
    Last Post: 2006-11-07, 11:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •