Author Topic

Tore Skobba

Thursday 12 February 2004 2:00:19 am

Comment14683

Well, as I can see you are fetching all Trade nodes, I.e. numWon=fetch('content',
'list_count', hash( parent_node_id, $node.node_id. Then trying to count all Trade objects having attribute 181 equal to 'Closed:Won'. I.e. class_filter_type, include,
attribute_filter, array( 181, '=', 'Closed: Won' ) ) ).

However, as I understand you it is the Trade Remark class which has the attribute 181? So in order to count the attribute 181 you will need to fetch objects of class Trade Remark, i.e.

Loop: For each trade object
Fetch the Trade Remark object and check and count number Close: Won.