Hi
I have a tpl file that is getting its data from multiple dcr's. The problem I have is, when I generate the data, the data from the dcr that I am in, is duplicated. I'm not sure if the problem is with the code in the tpl or perhaps somewhere else.
This is the code I am using to iterate through the data in the dcr.
]]> <br>
@dcr_list = iwpt_dcr_list( 'dcr' );<br> $dcr_count = scalar(
@dcr_list);<br> for ($count = 0; $count < $dcr_count; $count++) {<br> my $product = iwpt_dcr_value('dcr[$count].email_data.show_options.product' );<br> my $current_dcr_name = iwpt_get_dcr_name('basename');<br> if ($product eq 'car') {<br> foreach my $dcr_iter( iwpt_dcr_list( 'dcr[$count].email_data.navigation.non_confirmation.non_confirmation_nav' ) ){<br> my $product_name = iwpt_dcr_value('dcr_iter.product') ;<br> my $product_link = iwpt_dcr_value('dcr_iter.product_link') ;<br> iwpt_output( "<img src='
http://www.directline.com/staticpages/images/ecrm/20060519/arrow.gif' width='4' height='6'/> <a style='font-family: verdana,arial,sans-serif; color:#cc0033; font-weight: bold;' href='$product_link' title='Opens in a new browser' target='_blank'>$product_name\n</a> " );<br>}}<br>} <br> <br><br>Any help would be appreciated.<br><br>Thanks<br><br>CAG<br>TS 6.5<br>Solaris 8