information collection - data stored

information collection - data stored

Friday 18 March 2005 6:12:54 am - 6 replies

Author Message

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.

You must be logged in to post messages in this topic!

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