[ic] Search parameters interfere

Bas Bezemer bas.bezemer at wxs.nl
Fri May 26 08:38:33 EDT 2006


Hello all,

It seems to me that search loop parameters are not being reset before a 
second search is defined. On a specific page i have two search loops with 
different configurations. The goal is to create a tab delimited text file 
(output.txt) from a tab delimited text file (input_1.txt) and a semi colon 
(;) delimited text file (input_2.txt). The mv_index_delim (abbriviated by 
"ix") parameter defines the character separating the columns. Default is 
said to be a tab.

However, it looks like the definition of mv_index_delim in the first loop 
still holds in the second loop using the code below:

<!-- code start -->

First Loop (tab delimited)
[tag op=log file="output.txt" interpolate=1][loop search="
  fi=input_1.txt
  st=text
  rf=*
  ra=yes
 "]
[loop-code] [loop-param name] [loop-param description][/loop][/tag]

Second Loop (semi colon delimited)
[tag op=log file="output.txt" interpolate=1][loop search="
  fi=input_2.txt
  st=text
  rf=*
  ix=;
  ra=yes
 "]
[loop-code] [loop-param name] [loop-param description][/loop][/tag]

<!-- code end -->

In the above code the second loop tries to split the row on tabs while a 
semi colon is defined. If i swap the loops then input_2.txt is imported 
correctly but input_1.txt fails as the search tries to split the row on semi 
colons while a tab should be the character to be used.

Also tried other configurations with a semi colon in the first and a pipe 
(|) in the second loop, but the first defenition always prevails.

Is there a way to reset the search parameters before the second loop starts?

Regards,
Bas



More information about the interchange-users mailing list