[ic] IC 4.8.1 - 1st line is showing a blank line on one database.

Tom C interchange-users@interchange.redhat.com
Wed Sep 19 13:26:00 2001


Sorry about that.

The following two lines are the first two lines in the oils_essential.txt
file, which is the one being searched:

--------------------
sku     description     price
01-0001 Agarwood - Oud  1313.47
--------------------

The following are the loop search lines the html file.  In this case, the
"[field code='[cgi sku]' name='db']" is being translated to
"oils_essential":
--------------------
[loop search="fi=[field code='[cgi sku]'
name='db']/tf=description/ra=yes/ml=1000"]
<tr>
<td>[loop-field sku]</td>
<td>[loop-field description]</td>
<td align=right>[currency][loop-field price][/currency]</td>
<td>[order [loop-code]]Order Now[/order]</td>
</tr>
[/loop]
--------------------

I made sure there were no other characters by pulling up the
oils_essential.txt in vi and doing a ":set list".  There are no other
characters other than what is necessary, but it is still happening.

Thanks again!!!

-Tom



-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
mheins@redhat.com
Sent: Wednesday, September 19, 2001 10:02 AM
To: interchange-users@interchange.redhat.com
Subject: Re: [ic] IC 4.8.1 - 1st line is showing a blank line on one
database.


Quoting Tom C (tomc@ikano.com):
> Hello.
>
> I have a few databases.  when I do a Loop search, the first item that is
> returned is empty.  The next line is then the first item listed in the
> database.  (The actual first line in the database are the headers.)
>
> Does anyone know why this first item is empty?

No way to tell without you showing us the loop search. 8-) I am
surprised you would post your question without that.

The default if searching a file is to set hs=1, but it is possible
to construct file-based loops that don't do that. There is a
head_skip option to the loop tag, but that only applies if you are
passing an arbitrary list and not farming out the row production to
the search modules.

You might also double-check that you don't have carriage returns in
your file....
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

"Even if you're on the right track, you'll get run over if you just
sit there." -- Will Rogers
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users