
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Tag interpolation strangeness
IC 4.8.1. This is the code snippet. What is happening is that first the
item-field tag is being interpolated correctly inside the seti tag, but
then later on the value of item-field reverts to the literal string
item-field inside a calc tag that is inside a seti tag. The line that
returns the error has the arrow next to it. I also included the error
message from error.log.
Chris
[set commission]0[/set]
[item-list interpolate=1]
[seti price][item-price noformat][/seti]
[if scratch comm_level == 1]
[seti percent][item-field comm_lvl1_p][/seti]
[seti flat][item-field comm_lvl1][/seti]
[/if]
[if scratch comm_level == 2]
[seti percent][item-field comm_lvl2_p][/seti]
[seti flat][item-field comm_lvl2][/seti]
[/if]
[if scratch comm_level == 3]
[seti percent][item-field comm_lvl3_p][/seti]
[seti flat][item-field comm_lvl3][/seti]
[/if]
[if scratch comm_level == 4]
[seti percent][item-field comm_lvl4_p][/seti]
[seti flat][item-field comm_lvl4][/seti]
[/if]
[if scratch comm_type =~ /percent/]
[seti item_commission][calc][scratch percent] * [scratch
price][/calc][/seti]
[seti commission][calc][scratch commission] + [scratch
item_commission][/calc][/seti]
[else]
[seti commission][calc][scratch commission] + [scratch
flat][/calc][/seti] <----commission gets set to the literal "+ [item-field
comm_lvl1]"
[/else]
[/if]
[/item-list]
63.228.109.101 RWakS43s:63.228.109.101 - [04/September/2001:18:00:00
+0000] enlow /cgi-bin/enlow/process.html Safe: Can't locate obj
ect method "field" via package "comm_lvl1" at (eval 261) line 1.
>
> + [item-field comm_lvl1]
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users