[ic] User Defined Tag?

Steve Graham interchange-users@interchange.redhat.com
Tue Dec 11 16:57:00 2001


Hello,

Using IC 4.8.3

I need a macro or something, not sure what it is called, to replace the 
following code with a one or two line call. I can probably use the User 
Define Tag, but am not a Perl programmer (yet). Didn't know if I had another 
choice.

Many of my custom pages will use this same code with the exception of the 
price.group match (eg. "CALWB"), which will be different on each page. Hope 
this makes sense.


<table border="1" width="100%">
<tr>
<td align=center>Example Image</td>
<td align=center>Description</td>
<td align=center> Single Unit Price </td>
</tr>

[query sql="select * from products,pricing where products.sku = pricing.sku 
AND pricing.price_group='CALWB' ORDER BY products.description"
type=list]
[list]
<tr>
<td align=center>
[page [sql-code]]<IMG SRC="thumb/[sql-param thumb]" border=0><br>sku#
[sql-code]<br><font size=1>Click for more Info</font></a></td>
<td align=center>[sql-param description]</td>
<td align=center>[sql-price]</td>
</tr>
[/list]
[/query]
</table>

Thanks,
Steve

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com