Re: render screen within data resource (CMS)

2013-01-11 Thread Robert G.
I love to push threads, sorry :)
But I really need that information. Does noone has that problem?



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/render-screen-within-data-resource-CMS-tp4638481p4638834.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: render screen within data resource (CMS)

2013-01-11 Thread Winster Jose
I have done the other way around. A screen which has a Content has been
rendered from FTL.


On Fri, Jan 11, 2013 at 2:42 PM, Robert G. g...@mercon24.de wrote:

 I love to push threads, sorry :)
 But I really need that information. Does noone has that problem?



 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/render-screen-within-data-resource-CMS-tp4638481p4638834.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.




-- 
Winster T Jose
Director - Technology and Architecture
Chathurangam Creative Solutions Private Ltd.
Cell: +91-98469 31020
Mail: wins...@chathurangam.net


Re: image url's in ofbiz11.0.4

2013-01-11 Thread Winster Jose
The location of the image file should be
ofbiz11.0.4/framework/images/webapp/images/prods/djec/DJ02111.jpg


On Fri, Jan 11, 2013 at 2:59 PM, Info Olagos info.ola...@gmail.com wrote:

 Hello,

 i have my images for the products configured in the catalog manager
 (content) as /images/prods/djec/DJ02111.jpg for example.  This is on
 Windows NT in ofbiz.09.04 .

 I installed a new ofbiz 11.0.4 software on Linux and upload the data
 from my old 9.0.4 application via XML export / import.

 The url's from the images are in the catalog manager of ofbiz11.0.4
 now and the image files are in place under
 ofbiz11.0.4/framework/images/prods/djec/DJ02111.jpg for example. I use
 the same capitals and small characters.

 However i don't see the images appearing in the ecommerce pages.

 I see there is a new image management tool in the catalog manager.

 What do i wrong that i don't see the images?

 Probably something stupid?

 Has anyone an idea?

 Regards,
 Eric

 --
 Olagos
 http://www.olagos.eu
 http://www.olagos.com
 http://www.olagos.be
 http://www.olagos.nl




-- 
Winster T Jose
Director - Technology and Architecture
Chathurangam Creative Solutions Private Ltd.
Cell: +91-98469 31020
Mail: wins...@chathurangam.net


Re: image url's in ofbiz11.0.4

2013-01-11 Thread Info Olagos
ok thanks,
eric

2013/1/11 Winster Jose wins...@chathurangam.net:
 The location of the image file should be
 ofbiz11.0.4/framework/images/webapp/images/prods/djec/DJ02111.jpg


 On Fri, Jan 11, 2013 at 2:59 PM, Info Olagos info.ola...@gmail.com wrote:

 Hello,

 i have my images for the products configured in the catalog manager
 (content) as /images/prods/djec/DJ02111.jpg for example.  This is on
 Windows NT in ofbiz.09.04 .

 I installed a new ofbiz 11.0.4 software on Linux and upload the data
 from my old 9.0.4 application via XML export / import.

 The url's from the images are in the catalog manager of ofbiz11.0.4
 now and the image files are in place under
 ofbiz11.0.4/framework/images/prods/djec/DJ02111.jpg for example. I use
 the same capitals and small characters.

 However i don't see the images appearing in the ecommerce pages.

 I see there is a new image management tool in the catalog manager.

 What do i wrong that i don't see the images?

 Probably something stupid?

 Has anyone an idea?

 Regards,
 Eric

 --
 Olagos
 http://www.olagos.eu
 http://www.olagos.com
 http://www.olagos.be
 http://www.olagos.nl




 --
 Winster T Jose
 Director - Technology and Architecture
 Chathurangam Creative Solutions Private Ltd.
 Cell: +91-98469 31020
 Mail: wins...@chathurangam.net



-- 
Olagos bvba
http://www.olagos.eu
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Kerkstraat 34
2570 Duffel
Belgium


Re: image url's in ofbiz11.0.4

2013-01-11 Thread Adrian Crum
Windows file names are case-insensitive, Unix file names are 
case-sensitive. That might be the cause of your problem.


-Adrian

On 1/11/2013 9:29 AM, Info Olagos wrote:

Hello,

i have my images for the products configured in the catalog manager
(content) as /images/prods/djec/DJ02111.jpg for example.  This is on
Windows NT in ofbiz.09.04 .

I installed a new ofbiz 11.0.4 software on Linux and upload the data
from my old 9.0.4 application via XML export / import.

The url's from the images are in the catalog manager of ofbiz11.0.4
now and the image files are in place under
ofbiz11.0.4/framework/images/prods/djec/DJ02111.jpg for example. I use
the same capitals and small characters.

However i don't see the images appearing in the ecommerce pages.

I see there is a new image management tool in the catalog manager.

What do i wrong that i don't see the images?

Probably something stupid?

Has anyone an idea?

Regards,
Eric





Re: render screen within data resource (CMS)

2013-01-11 Thread Robert G.
Hey Winster, 

thanks for your reply.

So you render the screen like I do, right?

--
${screens.render(component://ecommerce/widget/CatalogScreens.xml#somescreen)}
within the FTL...

So this works for me within real FTL files as well. But within the CMS
content (content type FTL) the rendering is done everytime before all other
things, so the content which is rendered is always on top of the site.

The problem is, that I need this functionality, because I want that my
people can create content with CMS. With a few extra data, they can include
screens which I had created.

maybe it is possible to render it in a variable? like:

#assign test =
${screens.render(component://ecommerce/widget/CatalogScreens.xml#somescreen)}
/

and than call it at the target position within the content with ${test}

But with that I do get a ParseException, within the assign statement.

So i am at a loss :)

any further ideas?











--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/render-screen-within-data-resource-CMS-tp4638481p4638842.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Bigdecimal divide causes not terminating decimal

2013-01-11 Thread pierre.gaudin

Hi,

Javadoc says :
if the exact quotient cannot be represented (because it has a 
non-terminating decimal expansion) an |ArithmeticException| is thrown.


You should use divide method with rouding parameter :
  divide(divisor, roundingMode)

Pierre
On 11/01/2013 11:30, Deepak Agarwal wrote:

InvoiceServices.java :

billingAmount =
billingAmount.subtract(amountAlreadyIncluded.divide(billingQuantity));

This sometimes causes non terminating decimal problem. Should we use
instead:

billingAmount = billingAmount.subtract(new
BigDecimal(amountAlreadyIncluded.doubleValue()/(billingQuantity.doubleValue(;





Re: render screen within data resource (CMS)

2013-01-11 Thread Winster Jose
Is it possible for you to split your screen as follows?

Screen : User entered data (Content) + some predefined data (preconfigured
ftl)

If this can be achieved, I would have gone for a screen as given below.

screen name=main-decorator
section
actions
/actions
widgets
platform-specifichtmlhtml-template
location=component://xxx/yyy/zzz.ftl//html/platform-specific
content content-id=10010/
/widgets
/section
/screen

Ofcourse you have the flexibility to put conditions inside widgets.


On Fri, Jan 11, 2013 at 4:09 PM, Robert G. g...@mercon24.de wrote:

 Hey Winster,

 thanks for your reply.

 So you render the screen like I do, right?

 --

 ${screens.render(component://ecommerce/widget/CatalogScreens.xml#somescreen)}
 within the FTL...

 So this works for me within real FTL files as well. But within the CMS
 content (content type FTL) the rendering is done everytime before all other
 things, so the content which is rendered is always on top of the site.

 The problem is, that I need this functionality, because I want that my
 people can create content with CMS. With a few extra data, they can include
 screens which I had created.

 maybe it is possible to render it in a variable? like:

 #assign test =

 ${screens.render(component://ecommerce/widget/CatalogScreens.xml#somescreen)}
 /

 and than call it at the target position within the content with ${test}

 But with that I do get a ParseException, within the assign statement.

 So i am at a loss :)

 any further ideas?











 --
 View this message in context:
 http://ofbiz.135035.n4.nabble.com/render-screen-within-data-resource-CMS-tp4638481p4638842.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.




-- 
Winster T Jose
Director - Technology and Architecture
Chathurangam Creative Solutions Private Ltd.
Cell: +91-98469 31020
Mail: wins...@chathurangam.net


Re: Bigdecimal divide causes not terminating decimal

2013-01-11 Thread Deepak Agarwal
Actually I was expecting that roundingMode will take place after the result
is observed by the 'divide' . I will check it however.

On Fri, Jan 11, 2013 at 4:13 PM, pierre.gaudin pierre.gau...@nereide.frwrote:

 **
 Hi,

 Javadoc says :
 if the exact quotient cannot be represented (because it has a
 non-terminating decimal expansion) an ArithmeticException is thrown.

 You should use divide method with rouding parameter :
   divide(divisor, roundingMode)

 Pierre

 On 11/01/2013 11:30, Deepak Agarwal wrote:

 InvoiceServices.java :

 billingAmount =
 billingAmount.subtract(amountAlreadyIncluded.divide(billingQuantity));

 This sometimes causes non terminating decimal problem. Should we use
 instead:

 billingAmount = billingAmount.subtract(new
 BigDecimal(amountAlreadyIncluded.doubleValue()/(billingQuantity.doubleValue(;






-- 
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: deepak.agar...@paxcel.net
Mobile: +91 9501190044


Re: Bigdecimal divide causes not terminating decimal

2013-01-11 Thread Scott Gray
Doubles have no place in financial transactions, the correct fix is to set a 
scale on the divide operation.

Regards
Scott

On 11/01/2013, at 11:30 PM, Deepak Agarwal dagarwa...@gmail.com wrote:

 InvoiceServices.java :
 
 billingAmount =
 billingAmount.subtract(amountAlreadyIncluded.divide(billingQuantity));
 
 This sometimes causes non terminating decimal problem. Should we use
 instead:
 
 billingAmount = billingAmount.subtract(new
 BigDecimal(amountAlreadyIncluded.doubleValue()/(billingQuantity.doubleValue(;
 
 -- 
 Thanks,
 Deepak Agarwal,
 
 Mobile: +91 9501190044