Forums / Setup & design / information collection - data stored

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.

eZ debug

Timing: Jan 18 2025 04:54:36
Script start
Timing: Jan 18 2025 04:54:36
Module start 'content'
Timing: Jan 18 2025 04:54:36
Module end 'content'
Timing: Jan 18 2025 04:54:37
Script end

Main resources:

Total runtime1.0407 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.7344180.8281
Module start 'content' 0.00670.8934 768.5625670.6719
Module end 'content' 0.90010.1405 1,439.2344341.0859
Script end 1.0406  1,780.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4003210.0002
Check MTime0.00160.1518210.0001
Mysql Total
Database connection0.00080.075710.0008
Mysqli_queries0.947691.05372100.0045
Looping result0.00220.21432080.0000
Template Total0.995895.720.4979
Template load0.00200.191920.0010
Template processing0.993895.496820.4969
Template load and register function0.00020.016210.0002
states
state_id_array0.00150.139510.0015
state_identifier_array0.00200.194520.0010
Override
Cache load0.00170.1660460.0000
Sytem overhead
Fetch class attribute can translate value0.00160.152050.0003
Fetch class attribute name0.00110.1020100.0001
XML
Image XML parsing0.00330.317850.0007
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.01211.1647380.0003
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs