How to print result from object List ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
su2
Reply | Threaded
Open this post in threaded view
|

How to print result from object List ?

su2
Hello Friends,

When I print object List(after converting to string), I get following

        [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal,297.7(java.lang.Double)]]

Is there any way to get/print just "297.7" ?

I really appreciate the help.

Thank you.
Su-
Reply | Threaded
Open this post in threaded view
|

Re: How to print result from object List ?

J. Li-2
Hello Su,

I think you are directly printing the object from the list which is still of
type GenericEntity. I assume you are using freemarker to print the subtotal
value.
You can first loop through the list of objects and then read the
OTCMOrderSubTotal. Something like
<#list list as object>
${object.OTCMOrderSubTotal}
</#list>

I must say I haven't use ofbiz a lot so it is just guess. Hope it helps.

Regards,
John

2009/9/29 su2 <[hidden email]>

>
> Hello Friends,
>
> When I print object List(after converting to string), I get following
>
>
>
> [[GenericEntity:OrderAndTaxByCounty][OTCMOrderSubTotal,297.7(java.lang.Double)]]
>
> Is there any way to get/print just "297.7" ?
>
> I really appreciate the help.
>
> Thank you.
> Su-
> --
> View this message in context:
> http://www.nabble.com/How-to-print-result-from-object-List---tp25670854p25670854.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>