[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Search parameters interfere


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

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.