
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] more-list and format question
At 11:32 PM 10/22/01, you wrote:
>Hi list,
>
>I want to pass the value of a category from on page to the next
>when I use the [more-list] tag. I hopped [more-list arg="item-field
>category"] would work but not all wishes come true.
>
>My second problem is the formatting of displayed data.
>Is there a tag to format data in this way:
>Mysql field voltage value: 800.00 output in IC: 800
> 0.50 output in IC: 0.50
>a format tag like [format ##.##][data-field voltage][/format] would be
>desirable.
>(I think all this could be solved with perl but I'm just starting to learn
>perl).
>
>Any suggestions and help will be greatly appreciated.
>
>Götz Verdieck
For the first question: is "category" a value (from a form submit)?
If so, then you could simply reference it via [value category], if
not then you may want to look into the set/seti tags.
Second question: try this: [calc]sprintf "%.2f", [data-field voltage][/calc]
Good luck,
Kyle Cook
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users