[ic] unexpected behavior of [loop] tag
Bas Bezemer
bas.bezemer at wxs.nl
Mon Aug 18 13:48:46 EDT 2003
Hi Danilo,
Looks like the table "brands" is not a known products table as can be
defined with ProductFiles. The [loop-field fieldname]-tag only works on
these ProductFiles. [loop-data brands brandname] should do the trick.
You want to use [loop-param]? Tell the loop which fields it should
return with rf=. (Faster option than [loop-data]. Search the IC-site on
the keywords "benchmark" and "loop")
[loop search="
st=db
fi=brands
rf=code,brandname
"]
ID: [loop-code],
field: [loop-param brandname] or [loop-pos 1]<br>
[/loop]
Regards,
Bas
Danilo wrote:
> Hi Jon,
> I had tried to use [loop-param] instead of [loop-field] but the result
> is the same :-(
> any other ideas?
>
>
> Jon Jensen wrote:
>
>> On Fri, 15 Aug 2003, Danilo wrote:
>>
>>
>>
>>> if I change the table like this
>>>
>>> [loop search="
>>> st=db
>>> fi=brands
>>> "]
>>> ID: [loop-code],
>>> field: [loop-field brandname]<br>
>>> [/loop]
>>> ID: 42, field:
>>> ID: 44, field:
>>>
>>> the search fail and don't return the content of brandname field in
>>> the database.
>>>
>>
>>
>> The prefix-field tag is used only for pulling values from the products
>> table(s). Instead you should use [loop-param brandname] in your example.
>>
>> Jon
>> _______________________________________________
>> interchange-users mailing list
>> interchange-users at icdevgroup.org
>> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>>
>>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
More information about the interchange-users
mailing list