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:
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.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',
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


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks