information collection - data stored

Author Message

Valentina Ferrari

Friday 18 March 2005 6:12:54 am

Hi all!
I created a form using information collection and all it's ok.
But now I have this problem:
I would like that the value sent by e-mail are stored in the db.

I found these tables: ezinfocollection, ezinfocollection_attribute; but here there are not the attribute value sent by e-mail.

I have to show all the data sent.

What can I do?
Please, help me

Valentina Ferrari

Monday 21 March 2005 3:07:29 am

Hi,
try to read this my new topic:
http://ez.no/community/forum/setup_design/collected_infp_collection_data_fetching

Probably is better!
Thanks,
Valentina

Valentina Ferrari

Monday 21 March 2005 5:37:16 am

Well! I solved my problem!
This is the way:

{let count=fetch( 'content', 'collected_info_count', hash( 'object_attribute_id', 107027, 'object_id', $node.contentobject_id	) )}
	
	{section loop=$count}		
		{let collection=fetch( 'content', 'collected_info_collection', hash( 'collection_id', $:item, 
											   		'contentobject_id', $node.contentobject_id ) )}
    			{section var=attribute loop=$collection.attributes}
        			{$attribute.contentclass_attribute_name}: {$attribute.data_text}<br>
    			{/section}
		{/let}
		<br><br>
	{/section}	
	{/let}
{/let}

Yelitza Jaramillo

Monday 21 March 2005 6:13:46 am

Good, but notice that this works because you only have one form that collects information.
Notice that the "collection_id" of the collected_info objects for one form are not always going to be in the range from 1 to count_of_objects. Luckily in this case it does, because there is only one form that collects information.

The right way to proceed would be to create your own costumized fetch function to fetch the collection_ids of all collected_info objects for the form. Since you are using only one form you might not need to do this, but if you were to have more than one form to collect information then this is something you would like to consider.

Yelitza

Valentina Ferrari

Monday 21 March 2005 6:33:51 am

You are right, I'm using only a form.

But I can use this fetch if I use a different template for every information collection form.

Infact in the first fetch I specify the 'object_attribute_id', and I found this ID only in one form.

I know this isn't the better way... I need a solution that works for all my forms...

Anybody have the solution??????

Thanks
Valentina

Xavier Dutoit

Sunday 03 April 2005 10:29:18 am

Hi Valentina,

you exemple has an extra let {/let} and when I try it, $:item is undefined (quite logical).

Could you post a more complete listing ?

If I'm right, the missing fetch function should simply return the collectors id that belongs to an object or a user_identifier, right ?

PS. I'm trying to understand why this information collector exists, as opposed to a new class "whatever feedback" with anonymous having the right to create object+a custom workflow.

http://www.sydesy.com

Sergiy Pushchin

Tuesday 03 October 2006 11:23:27 pm

We have new fetch functions for information collectors data fetching since rev. 15457, so functions exist in 3.8 and trunk.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:42:25
Script start
Timing: Jan 30 2025 21:42:25
Module start 'layout'
Timing: Jan 30 2025 21:42:25
Module start 'content'
Timing: Jan 30 2025 21:42:25
Module end 'content'
Timing: Jan 30 2025 21:42:25
Script end

Main resources:

Total runtime0.0214 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.2344151.2109
Module start 'layout' 0.00530.0033 739.4453220.6875
Module start 'content' 0.00870.0113 960.13281,005.9297
Module end 'content' 0.01990.0015 1,966.062537.9922
Script end 0.0214  2,004.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002813.1569140.0002
Check MTime0.00104.8160140.0001
Mysql Total
Database connection0.00094.351210.0009
Mysqli_queries0.00199.024830.0006
Looping result0.00000.041110.0000
Template Total0.00114.910.0011
Template load0.00073.483810.0007
Template processing0.00031.404410.0003
Override
Cache load0.00052.327410.0005
General
dbfile0.00031.213280.0000
String conversion0.00000.038940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs