Re: ofbiz handheld

2007-08-29 Thread Chris Howe
Maybe you can give me a quick reply.  Does ZX mobile go on the server side or 
client side?

- Original Message 
From: Wisut Wongyued <[EMAIL PROTECTED]>
To: user@ofbiz.apache.org
Sent: Wednesday, August 29, 2007 11:55:15 PM
Subject: Re: ofbiz handheld

Hi,

http://www.zkoss.org/release/zkmob-rn-0.8.5.dsp


On 8/30/07, Brett Palmer <[EMAIL PROTECTED]> wrote:
>
> It would be a big project to put the ofbiz shopping cart on a j2me
> application.  It would be easier to use WAP and communicate with an
> ofbiz server.
>
> Brett
>
> On 8/29/07, 2275429 <[EMAIL PROTECTED]> wrote:
> >
> > I am new to ofbiz  i had to devlop application for  online  webstore for
> > mobile (handheld devices)  using ofbiz
> > frame work.
> > is it possible to devlop applicaton similar to ofbiz webstore in mobile
> ,
> > please replay soon
> >
> > thankyou
> > ANIL BHAT
> > --
> > View this message in context:
> > http://www.nabble.com/ofbiz-handheld-tf4347840.html#a12387208
> > Sent from the OFBiz - User mailing list archive at Nabble.com.
> >
> >
>





Re: Simple Method Question

2007-08-29 Thread Chris Howe
If each field in the map needs to go to the result, then perhaps this would 
work for you:

  
  
  
  


- Original Message 
From: Jonathon -- Improov <[EMAIL PROTECTED]>
To: user@ofbiz.apache.org
Sent: Thursday, August 30, 2007 12:34:01 AM
Subject: Re: Simple Method Question

Why doesn't map-to-map work? Did you mean you wanted to copy every field in a 
GenericValue object 
to a new map? Then map-to-map will work. The resultant map is NOT a 
GenericValue object, but a 
plain map.

Oh, the result map.

Don't know any method to do that easily. You could write something like 
map-to-result. If you want 
that and you want it checked into OFBiz SVN, I think I can do that very 
quickly. You check it in.

I usually just put all the fields I want to return into a map, like . I then do a . That way, 
I am able to return 
a large set of values. I think this is the better/best practice. Like in Java 
functions, you don't 
see functions returning a whole chunk of values, but instead return a 
collection.

Jonathon

Adrian Crum wrote:
> Using minilang, I need to put all of the fields from an entity in the 
> result map. I tried using  but that doesn't work. Is there a 
> simple way to put all of a map's elements into the result map?
> 
> -Adrian
> 
> 






Re: Simple Method Question

2007-08-29 Thread Jonathon -- Improov
Why doesn't map-to-map work? Did you mean you wanted to copy every field in a GenericValue object 
to a new map? Then map-to-map will work. The resultant map is NOT a GenericValue object, but a 
plain map.


Oh, the result map.

Don't know any method to do that easily. You could write something like map-to-result. If you want 
that and you want it checked into OFBiz SVN, I think I can do that very quickly. You check it in.


I usually just put all the fields I want to return into a map, like value="Blah"/>. I then do a . That way, I am able to return 
a large set of values. I think this is the better/best practice. Like in Java functions, you don't 
see functions returning a whole chunk of values, but instead return a collection.


Jonathon

Adrian Crum wrote:
Using minilang, I need to put all of the fields from an entity in the 
result map. I tried using  but that doesn't work. Is there a 
simple way to put all of a map's elements into the result map?


-Adrian






Re: Simple Method Question

2007-08-29 Thread Vikas Mayur



or




I have not tried it but hope this works.


On 8/30/07, Adrian Crum <[EMAIL PROTECTED]> wrote:
>
> Using minilang, I need to put all of the fields from an entity in the
> result map. I tried using
>  but that doesn't work. Is there a simple way to put all of a
> map's elements into the
> result map?
>
> -Adrian
>
>


-- 
Vikas Mayur


Re: ofbiz handheld

2007-08-29 Thread Wisut Wongyued
Hi,

http://www.zkoss.org/release/zkmob-rn-0.8.5.dsp


On 8/30/07, Brett Palmer <[EMAIL PROTECTED]> wrote:
>
> It would be a big project to put the ofbiz shopping cart on a j2me
> application.  It would be easier to use WAP and communicate with an
> ofbiz server.
>
> Brett
>
> On 8/29/07, 2275429 <[EMAIL PROTECTED]> wrote:
> >
> > I am new to ofbiz  i had to devlop application for  online  webstore for
> > mobile (handheld devices)  using ofbiz
> > frame work.
> > is it possible to devlop applicaton similar to ofbiz webstore in mobile
> ,
> > please replay soon
> >
> > thankyou
> > ANIL BHAT
> > --
> > View this message in context:
> > http://www.nabble.com/ofbiz-handheld-tf4347840.html#a12387208
> > Sent from the OFBiz - User mailing list archive at Nabble.com.
> >
> >
>


Simple Method Question

2007-08-29 Thread Adrian Crum
Using minilang, I need to put all of the fields from an entity in the result map. I tried using 
 but that doesn't work. Is there a simple way to put all of a map's elements into the 
result map?


-Adrian



Re: ofbiz handheld

2007-08-29 Thread Brett Palmer
It would be a big project to put the ofbiz shopping cart on a j2me
application.  It would be easier to use WAP and communicate with an
ofbiz server.

Brett

On 8/29/07, 2275429 <[EMAIL PROTECTED]> wrote:
>
> I am new to ofbiz  i had to devlop application for  online  webstore for
> mobile (handheld devices)  using ofbiz
> frame work.
> is it possible to devlop applicaton similar to ofbiz webstore in mobile ,
> please replay soon
>
> thankyou
> ANIL BHAT
> --
> View this message in context:
> http://www.nabble.com/ofbiz-handheld-tf4347840.html#a12387208
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


Re: Share session information between modules?

2007-08-29 Thread Jacques Le Roux
You may also have a look at how the ShoppinCart works

Jacques

De : "Adrian Crum" <[EMAIL PROTECTED]>
> Each of the OFBiz components is a web app, and as such they each have their 
> own session. That is how 
> the j2ee spec works.
> 
> You can share session information between components, but that would be 
> outside the best practices.
> 
> It would be preferable to persist information that is shared between sessions 
> - with each session 
> retrieving the shared data. A good example of this is how the user-selected 
> locale and time zone is 
> maintained by the framework.
> 
> -Adrian
> 
> David Cuenca wrote:
> > I would like to know if we can share information between ofbiz modules
> > as if they were a unique webapp, as if the modules were sharing the same
> > session.
> > Ofbiz uses the externalLoginKey to know if a user has to log-in when he
> > requests a new module. But, besides, I would like to have the same
> > session information each time I change between modules.
> > It is true that each module/webapp has its own session and the
> > information cannot be shared between them?
> >


Re: Share session information between modules?

2007-08-29 Thread Adrian Crum
Each of the OFBiz components is a web app, and as such they each have their own session. That is how 
the j2ee spec works.


You can share session information between components, but that would be outside 
the best practices.

It would be preferable to persist information that is shared between sessions - with each session 
retrieving the shared data. A good example of this is how the user-selected locale and time zone is 
maintained by the framework.


-Adrian

David Cuenca wrote:

I would like to know if we can share information between ofbiz modules
as if they were a unique webapp, as if the modules were sharing the same
session.
Ofbiz uses the externalLoginKey to know if a user has to log-in when he
requests a new module. But, besides, I would like to have the same
session information each time I change between modules.
It is true that each module/webapp has its own session and the
information cannot be shared between them?



Re: Can we load an .ftl file using

2007-08-29 Thread Vikas Mayur
Vijay,

You can look at the simple service "oagisSendReceiveDelivery" in
OagisShipmentServices and the related template "ReceiveDelivery.ftl" under
the oagis component.


On 8/29/07, vijay Si <[EMAIL PROTECTED]> wrote:
>
> Hi anil
> can u share the ftl code.
>
> On 8/29/07, Anil K Patel <[EMAIL PROTECTED]> wrote:
> >
> > Recently done Oagis component has example of generating XML using ftl
> > templates.
> >
> > Regards
> > Anil Patel
> >
> >
> > Scott Gray wrote:
> > > Hi Vijay
> > >
> > > I only skimmed over this, but I can't help feeling that your not
> > following
> > > the established best practices that exist within OFBiz.  Also note
> that
> > > there is no reason why you can't use ftl to generate xml, it would
> just
> > be a
> > > *.xml.ftl I think (I've never tried it).
> > >
> > > Regards
> > > Scott
> > >
> > > On 29/08/2007, vijay Si <[EMAIL PROTECTED]> wrote:
> > >
> > >> Hi Jonathon,
> > >>
> > >> "What you need to do is to first generate the xml data dynamically,
> > then
> > >> dump the data into an xml
> > >> file."
> > >>
> > >> This is exactly my requirement.
> > >> The problem i am facing is with rules of the framework..whether i
> > can
> > >> load an ftl just like bsh inside tag
> > >>
> > >> Regards
> > >> Vijay
> > >>
> > >> On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> > >>
> > >>> Hi Vijay,
> > >>>
> > >>> This xml file you're talking about, is it purely data in xml format?
> > Or
> > >>>
> > >> is
> > >>
> > >>> it a display document
> > >>> like HTML or xsl:fo?
> > >>>
> > >>> Let's get your problem statement clear.
> > >>>
> > >>> You have a application (not OFBiz) that reads an xml file. ("it is
> > >>>
> > >> called
> > >>
> > >>> by other application
> > >>> during runtime").
> > >>>
> > >>> This xml file contains data in xml format. ("The application parses
> > the
> > >>> data in xml file").
> > >>>
> > >>> What you need to do is to first generate the xml data dynamically,
> > then
> > >>> dump the data into an xml
> > >>> file.
> > >>>
> > >>> Is my understanding correct?
> > >>>
> > >>> Sorry if I misunderstood. Your problem description is not easy to
> > >>> understand. For eg, the term
> > >>> "application" is used thrice, and I'm not sure what application
> you're
> > >>> talking about.
> > >>>
> > >>> This doesn't sound like an OFBiz issue? If it is an application
> > >>> development effort, rather than an
> > >>> issue/problem with OFBiz, would you mind paying one of the
> developers
> > on
> > >>> this ML for a few hours'
> > >>> consultation on implementation strategies?
> > >>>
> > >>> Jonathon
> > >>>
> > >>> vijay Si wrote:
> > >>>
> >  Hi Jonathon,
> > 
> >  My constraint is as follows.
> > 
> >  I need to have an xml file. This xml file is supposed to have some
> > 
> > >> data
> > >>
> > >>> that
> > >>>
> >  comes from the database.
> > 
> >  The best way to do this is write a .bsh script and the use these
> > 
> > >>> results, in
> > >>>
> >  xml file using ${variable}.
> > 
> >  However the constraint is that i need to have this xml file as
> static
> >  ...because it is called by other application during runtime. The
> > 
> > >>> application
> > >>>
> >  parses the data in xml file and is not able to recognize
> > "${variable}"
> > 
> > >>> ...
> > >>>
> >  So a possible solution i am thinking of is to store all the results
> > in
> > 
> > >>> an
> > >>>
> >  ftl file just give all the necessary formating to it and then just
> >  <#include> it in my xml file..so that when the application
> > 
> > >> runs
> > >>
> > >>> ,
> > >>>
> >  xml files copies all the contents from the ftl file.and before
> >  application runs ...i need to load my data in the ftl file.
> > 
> >  I hope now you get the problem statement better..please suggest
> > me
> > 
> > >>> of
> > >>>
> >  any ways to do this or better ideas
> > 
> >  Regards
> > 
> >  On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi Vijay,
> > >
> > > What "dynamic data" are you talking about?
> > >
> > > You can use bsh scripts to pull in data from database. Is that
> what
> > >
> > >> you
> > >>
> > > mean by "dynamic"?
> > >
> > > What do you mean by "xml"?
> > >
> > > You can actually use ${ } inside your widget screen definitions.
> Try
> > > ${someVariable}.
> > >
> > > While .ftl files can access static classes to perform some
> "dynamic
> > >
> > >>> data
> > >>>
> > > retrieval", it is not as
> > > clean and easy as using .bsh.
> > >
> > > In your .bsh, simply do: context.put("someVariable", "Whatever
> data
> > >
> > >> you
> > >>
> > > want to pull in");
> > >
> > > Jonathon
> > >
> > > vijay Si wrote:
> > >
> > >> Hi,
> > >>
> > >> I wanted to load an ftl file just to pull data from the .bsh
> s

ofbiz handheld

2007-08-29 Thread 2275429

I am new to ofbiz  i had to devlop application for  online  webstore for
mobile (handheld devices)  using ofbiz 
frame work.
is it possible to devlop applicaton similar to ofbiz webstore in mobile ,
please replay soon

thankyou 
ANIL BHAT
-- 
View this message in context: 
http://www.nabble.com/ofbiz-handheld-tf4347840.html#a12387208
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Can we load an .ftl file using

2007-08-29 Thread vijay Si
Hi anil
can u share the ftl code.

On 8/29/07, Anil K Patel <[EMAIL PROTECTED]> wrote:
>
> Recently done Oagis component has example of generating XML using ftl
> templates.
>
> Regards
> Anil Patel
>
>
> Scott Gray wrote:
> > Hi Vijay
> >
> > I only skimmed over this, but I can't help feeling that your not
> following
> > the established best practices that exist within OFBiz.  Also note that
> > there is no reason why you can't use ftl to generate xml, it would just
> be a
> > *.xml.ftl I think (I've never tried it).
> >
> > Regards
> > Scott
> >
> > On 29/08/2007, vijay Si <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Jonathon,
> >>
> >> "What you need to do is to first generate the xml data dynamically,
> then
> >> dump the data into an xml
> >> file."
> >>
> >> This is exactly my requirement.
> >> The problem i am facing is with rules of the framework..whether i
> can
> >> load an ftl just like bsh inside tag
> >>
> >> Regards
> >> Vijay
> >>
> >> On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> >>
> >>> Hi Vijay,
> >>>
> >>> This xml file you're talking about, is it purely data in xml format?
> Or
> >>>
> >> is
> >>
> >>> it a display document
> >>> like HTML or xsl:fo?
> >>>
> >>> Let's get your problem statement clear.
> >>>
> >>> You have a application (not OFBiz) that reads an xml file. ("it is
> >>>
> >> called
> >>
> >>> by other application
> >>> during runtime").
> >>>
> >>> This xml file contains data in xml format. ("The application parses
> the
> >>> data in xml file").
> >>>
> >>> What you need to do is to first generate the xml data dynamically,
> then
> >>> dump the data into an xml
> >>> file.
> >>>
> >>> Is my understanding correct?
> >>>
> >>> Sorry if I misunderstood. Your problem description is not easy to
> >>> understand. For eg, the term
> >>> "application" is used thrice, and I'm not sure what application you're
> >>> talking about.
> >>>
> >>> This doesn't sound like an OFBiz issue? If it is an application
> >>> development effort, rather than an
> >>> issue/problem with OFBiz, would you mind paying one of the developers
> on
> >>> this ML for a few hours'
> >>> consultation on implementation strategies?
> >>>
> >>> Jonathon
> >>>
> >>> vijay Si wrote:
> >>>
>  Hi Jonathon,
> 
>  My constraint is as follows.
> 
>  I need to have an xml file. This xml file is supposed to have some
> 
> >> data
> >>
> >>> that
> >>>
>  comes from the database.
> 
>  The best way to do this is write a .bsh script and the use these
> 
> >>> results, in
> >>>
>  xml file using ${variable}.
> 
>  However the constraint is that i need to have this xml file as static
>  ...because it is called by other application during runtime. The
> 
> >>> application
> >>>
>  parses the data in xml file and is not able to recognize
> "${variable}"
> 
> >>> ...
> >>>
>  So a possible solution i am thinking of is to store all the results
> in
> 
> >>> an
> >>>
>  ftl file just give all the necessary formating to it and then just
>  <#include> it in my xml file..so that when the application
> 
> >> runs
> >>
> >>> ,
> >>>
>  xml files copies all the contents from the ftl file.and before
>  application runs ...i need to load my data in the ftl file.
> 
>  I hope now you get the problem statement better..please suggest
> me
> 
> >>> of
> >>>
>  any ways to do this or better ideas
> 
>  Regards
> 
>  On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> 
> > Hi Vijay,
> >
> > What "dynamic data" are you talking about?
> >
> > You can use bsh scripts to pull in data from database. Is that what
> >
> >> you
> >>
> > mean by "dynamic"?
> >
> > What do you mean by "xml"?
> >
> > You can actually use ${ } inside your widget screen definitions. Try
> > ${someVariable}.
> >
> > While .ftl files can access static classes to perform some "dynamic
> >
> >>> data
> >>>
> > retrieval", it is not as
> > clean and easy as using .bsh.
> >
> > In your .bsh, simply do: context.put("someVariable", "Whatever data
> >
> >> you
> >>
> > want to pull in");
> >
> > Jonathon
> >
> > vijay Si wrote:
> >
> >> Hi,
> >>
> >> I wanted to load an ftl file just to pull data from the .bsh script
> >>
> > file.
> >
> >> This ftl file will not display anything directly...rather i wanted
> >>
> >> to
> >>
> >> <#include> all of it's content {which includes the dynamically
> >>
> >> pulled
> >>
> > data
> >
> >> from scripts} into an .xml file so that my xml file has all the
> >>
> > static
> >
> >> data. I am not able to use dynamic data pulled by xml directly
> >>
> >>> i.ecannot
> >>>
> >> use ${} inside my xml. So i thought of pulling all dynamic stuff
> >>
> >> into
> >>
> >>> an
> >>>
> >> .ftl file 

How to use Events in JUNIT test cases

2007-08-29 Thread sumit pandit
Hi all

I am preparing JUNIT test case for Sales Order process.
On tracing the process i found that Sales Order is mix up of  events and
services.
I could not find any example of events used in Test cases in Ofbiz.

I will be very thankful for help from community.

-- 
Sumit Pandit


Share session information between modules?

2007-08-29 Thread David Cuenca
I would like to know if we can share information between ofbiz modules
as if they were a unique webapp, as if the modules were sharing the same
session.
Ofbiz uses the externalLoginKey to know if a user has to log-in when he
requests a new module. But, besides, I would like to have the same
session information each time I change between modules.
It is true that each module/webapp has its own session and the
information cannot be shared between them?


Re: UnsupportedEncodingException "UTF-8"

2007-08-29 Thread Gautam Deb
This error is indicating that your application needs to convert character
data from/to a different encoding. You have to include some jars in the
project explicitly. Check whether *charsets.jar* or* i18n.jar* is in your
CLASSPATH.

Best Regards,
Gautam Deb


On 8/29/07, Sachin Kolpuke <[EMAIL PROTECTED]> wrote:
>
> Dear All;
>  Please help me to resolve the error
> "UnsupportedEncodingException".
>
> I am posting an xml request to a server,
>
> HttpClient client = new HttpClient(url);
> String response = client.post(xmlString);
>
> The server gives response in the format of "UTF-8".  OfBiz gives following
> error on line number 2nd.
>
> java.io.UnsupportedEncodingException: "UTF-8"
> at sun.io.Converters.getConverterClass(Converters.java:215)
> at sun.io.Converters.newConverter(Converters.java:248)
> at sun.io.ByteToCharConverter.getConverter(
> ByteToCharConverter.java:64)
> at sun.nio.cs.StreamDecoder$ConverterSD.(StreamDecoder.java
> :223)
> at sun.nio.cs.StreamDecoder$ConverterSD.(StreamDecoder.java
> :209)
> at sun.nio.cs.StreamDecoder.forInputStreamReader(
> StreamDecoder.java:76)
> at java.io.InputStreamReader.(InputStreamReader.java:83)
> at org.ofbiz.base.util.HttpClient.sendHttpRequest(HttpClient.java
> :317)
> at org.ofbiz.base.util.HttpClient.post(HttpClient.java:197)
> at SimpleHttpClient.main(SimpleHttpClient.java:39)
>
>
>
> Thanks and Regards;
> Sachin
>
>
>
>
>


-- 
Best Regards,
http://ymail.flamingtext.com/ymail/2007/08/14/flamingtext_com_1187115492_7982.jpg
>



Re: Can we load an .ftl file using

2007-08-29 Thread Anil K Patel
Recently done Oagis component has example of generating XML using ftl 
templates.


Regards
Anil Patel


Scott Gray wrote:

Hi Vijay

I only skimmed over this, but I can't help feeling that your not following
the established best practices that exist within OFBiz.  Also note that
there is no reason why you can't use ftl to generate xml, it would just be a
*.xml.ftl I think (I've never tried it).

Regards
Scott

On 29/08/2007, vijay Si <[EMAIL PROTECTED]> wrote:
  

Hi Jonathon,

"What you need to do is to first generate the xml data dynamically, then
dump the data into an xml
file."

This is exactly my requirement.
The problem i am facing is with rules of the framework..whether i can
load an ftl just like bsh inside tag

Regards
Vijay

On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:


Hi Vijay,

This xml file you're talking about, is it purely data in xml format? Or
  

is


it a display document
like HTML or xsl:fo?

Let's get your problem statement clear.

You have a application (not OFBiz) that reads an xml file. ("it is
  

called


by other application
during runtime").

This xml file contains data in xml format. ("The application parses the
data in xml file").

What you need to do is to first generate the xml data dynamically, then
dump the data into an xml
file.

Is my understanding correct?

Sorry if I misunderstood. Your problem description is not easy to
understand. For eg, the term
"application" is used thrice, and I'm not sure what application you're
talking about.

This doesn't sound like an OFBiz issue? If it is an application
development effort, rather than an
issue/problem with OFBiz, would you mind paying one of the developers on
this ML for a few hours'
consultation on implementation strategies?

Jonathon

vijay Si wrote:
  

Hi Jonathon,

My constraint is as follows.

I need to have an xml file. This xml file is supposed to have some


data


that
  

comes from the database.

The best way to do this is write a .bsh script and the use these


results, in
  

xml file using ${variable}.

However the constraint is that i need to have this xml file as static
...because it is called by other application during runtime. The


application
  

parses the data in xml file and is not able to recognize "${variable}"


...
  

So a possible solution i am thinking of is to store all the results in


an
  

ftl file just give all the necessary formating to it and then just
<#include> it in my xml file..so that when the application


runs


,
  

xml files copies all the contents from the ftl file.and before
application runs ...i need to load my data in the ftl file.

I hope now you get the problem statement better..please suggest me


of
  

any ways to do this or better ideas

Regards

On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:


Hi Vijay,

What "dynamic data" are you talking about?

You can use bsh scripts to pull in data from database. Is that what
  

you


mean by "dynamic"?

What do you mean by "xml"?

You can actually use ${ } inside your widget screen definitions. Try
${someVariable}.

While .ftl files can access static classes to perform some "dynamic
  

data
  

retrieval", it is not as
clean and easy as using .bsh.

In your .bsh, simply do: context.put("someVariable", "Whatever data
  

you


want to pull in");

Jonathon

vijay Si wrote:
  

Hi,

I wanted to load an ftl file just to pull data from the .bsh script


file.
  

This ftl file will not display anything directly...rather i wanted


to


<#include> all of it's content {which includes the dynamically


pulled


data
  

from scripts} into an .xml file so that my xml file has all the


static
  

data. I am not able to use dynamic data pulled by xml directly


i.ecannot
  

use ${} inside my xml. So i thought of pulling all dynamic stuff


into


an
  

.ftl file and then <#include> this data in the xml file

Here i am confronted with the problem of loading ftl file just like


.bsh
  

file..so.can i put .ftl files in  and


load it
  

in advance. Or please suggest some other way of loading the ftl file


just
  

for the sake of pulling data from the script.

Regards







  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:


8/28/2007 4:29 PM


  







No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Datab

Re: Cant' add to shoppping cart

2007-08-29 Thread Jonathon -- Improov
Your ProductStore requires inventory (field requireInventory is "Y"). Ie, it does not allow 
backorders.


Receive inventory in Facility module.

Product.requireInventory overrides ProductStore.requireInventory. You can have some products for 
which backorders are allowed, and some not.


Jonathon

MrJohnBrown wrote:

Hi guys,

When I try to enter a sales order in order manager I get a stop when I
lookup product and try add it to order. The message is as follows: 
"The Following Errors Occurred:


Sorry, we do not have enough (you tried 1) of the product PROD1236 a brand
new computer. (product ID: PROD1236) in stock, not adding to cart. Please
try a lower quantity, try again later, or call customer service for more
information."

 What can be cause of it? How to make it possible to create sales order
prior item is purchased from supplier and received in stock?

Thank you in advance.




UnsupportedEncodingException "UTF-8"

2007-08-29 Thread Sachin Kolpuke

Dear All;
Please help me to resolve the error "UnsupportedEncodingException".

I am posting an xml request to a server, 


HttpClient client = new HttpClient(url);
String response = client.post(xmlString);

The server gives response in the format of "UTF-8".  OfBiz gives following error on line number 2nd. 


java.io.UnsupportedEncodingException: "UTF-8"
at sun.io.Converters.getConverterClass(Converters.java:215)
at sun.io.Converters.newConverter(Converters.java:248)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:64)
at sun.nio.cs.StreamDecoder$ConverterSD.(StreamDecoder.java:223)
at sun.nio.cs.StreamDecoder$ConverterSD.(StreamDecoder.java:209)
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:76)
at java.io.InputStreamReader.(InputStreamReader.java:83)
at org.ofbiz.base.util.HttpClient.sendHttpRequest(HttpClient.java:317)
at org.ofbiz.base.util.HttpClient.post(HttpClient.java:197)
at SimpleHttpClient.main(SimpleHttpClient.java:39)



Thanks and Regards;
Sachin



  


Re: Can we load an .ftl file using

2007-08-29 Thread Scott Gray
Hi Vijay

I only skimmed over this, but I can't help feeling that your not following
the established best practices that exist within OFBiz.  Also note that
there is no reason why you can't use ftl to generate xml, it would just be a
*.xml.ftl I think (I've never tried it).

Regards
Scott

On 29/08/2007, vijay Si <[EMAIL PROTECTED]> wrote:
>
> Hi Jonathon,
>
> "What you need to do is to first generate the xml data dynamically, then
> dump the data into an xml
> file."
>
> This is exactly my requirement.
> The problem i am facing is with rules of the framework..whether i can
> load an ftl just like bsh inside tag
>
> Regards
> Vijay
>
> On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> >
> > Hi Vijay,
> >
> > This xml file you're talking about, is it purely data in xml format? Or
> is
> > it a display document
> > like HTML or xsl:fo?
> >
> > Let's get your problem statement clear.
> >
> > You have a application (not OFBiz) that reads an xml file. ("it is
> called
> > by other application
> > during runtime").
> >
> > This xml file contains data in xml format. ("The application parses the
> > data in xml file").
> >
> > What you need to do is to first generate the xml data dynamically, then
> > dump the data into an xml
> > file.
> >
> > Is my understanding correct?
> >
> > Sorry if I misunderstood. Your problem description is not easy to
> > understand. For eg, the term
> > "application" is used thrice, and I'm not sure what application you're
> > talking about.
> >
> > This doesn't sound like an OFBiz issue? If it is an application
> > development effort, rather than an
> > issue/problem with OFBiz, would you mind paying one of the developers on
> > this ML for a few hours'
> > consultation on implementation strategies?
> >
> > Jonathon
> >
> > vijay Si wrote:
> > > Hi Jonathon,
> > >
> > > My constraint is as follows.
> > >
> > > I need to have an xml file. This xml file is supposed to have some
> data
> > that
> > > comes from the database.
> > >
> > > The best way to do this is write a .bsh script and the use these
> > results, in
> > > xml file using ${variable}.
> > >
> > > However the constraint is that i need to have this xml file as static
> > > ...because it is called by other application during runtime. The
> > application
> > > parses the data in xml file and is not able to recognize "${variable}"
> > ...
> > > So a possible solution i am thinking of is to store all the results in
> > an
> > > ftl file just give all the necessary formating to it and then just
> > > <#include> it in my xml file..so that when the application
> runs
> > ,
> > > xml files copies all the contents from the ftl file.and before
> > > application runs ...i need to load my data in the ftl file.
> > >
> > > I hope now you get the problem statement better..please suggest me
> > of
> > > any ways to do this or better ideas
> > >
> > > Regards
> > >
> > > On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> > >> Hi Vijay,
> > >>
> > >> What "dynamic data" are you talking about?
> > >>
> > >> You can use bsh scripts to pull in data from database. Is that what
> you
> > >> mean by "dynamic"?
> > >>
> > >> What do you mean by "xml"?
> > >>
> > >> You can actually use ${ } inside your widget screen definitions. Try
> > >> ${someVariable}.
> > >>
> > >> While .ftl files can access static classes to perform some "dynamic
> > data
> > >> retrieval", it is not as
> > >> clean and easy as using .bsh.
> > >>
> > >> In your .bsh, simply do: context.put("someVariable", "Whatever data
> you
> > >> want to pull in");
> > >>
> > >> Jonathon
> > >>
> > >> vijay Si wrote:
> > >>> Hi,
> > >>>
> > >>> I wanted to load an ftl file just to pull data from the .bsh script
> > >> file.
> > >>> This ftl file will not display anything directly...rather i wanted
> to
> > >>> <#include> all of it's content {which includes the dynamically
> pulled
> > >> data
> > >>> from scripts} into an .xml file so that my xml file has all the
> > >> static
> > >>> data. I am not able to use dynamic data pulled by xml directly
> > i.ecannot
> > >>> use ${} inside my xml. So i thought of pulling all dynamic stuff
> into
> > an
> > >>> .ftl file and then <#include> this data in the xml file
> > >>>
> > >>> Here i am confronted with the problem of loading ftl file just like
> > .bsh
> > >>> file..so.can i put .ftl files in  and
> > >> load it
> > >>> in advance. Or please suggest some other way of loading the ftl file
> > >> just
> > >>> for the sake of pulling data from the script.
> > >>>
> > >>> Regards
> > >>>
> > >>>
> > >>>
> > >>>
> > 
> > >>>
> > >>> No virus found in this incoming message.
> > >>> Checked by AVG Free Edition.
> > >>> Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:
> > >> 8/28/2007 4:29 PM
> > >>
> > >>
> > >
> > >
> > >
> 
> > >

Re: Can we load an .ftl file using

2007-08-29 Thread vijay Si
Hi Jonathon,

"What you need to do is to first generate the xml data dynamically, then
dump the data into an xml
file."

This is exactly my requirement.
The problem i am facing is with rules of the framework..whether i can
load an ftl just like bsh inside tag

Regards
Vijay

On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
>
> Hi Vijay,
>
> This xml file you're talking about, is it purely data in xml format? Or is
> it a display document
> like HTML or xsl:fo?
>
> Let's get your problem statement clear.
>
> You have a application (not OFBiz) that reads an xml file. ("it is called
> by other application
> during runtime").
>
> This xml file contains data in xml format. ("The application parses the
> data in xml file").
>
> What you need to do is to first generate the xml data dynamically, then
> dump the data into an xml
> file.
>
> Is my understanding correct?
>
> Sorry if I misunderstood. Your problem description is not easy to
> understand. For eg, the term
> "application" is used thrice, and I'm not sure what application you're
> talking about.
>
> This doesn't sound like an OFBiz issue? If it is an application
> development effort, rather than an
> issue/problem with OFBiz, would you mind paying one of the developers on
> this ML for a few hours'
> consultation on implementation strategies?
>
> Jonathon
>
> vijay Si wrote:
> > Hi Jonathon,
> >
> > My constraint is as follows.
> >
> > I need to have an xml file. This xml file is supposed to have some data
> that
> > comes from the database.
> >
> > The best way to do this is write a .bsh script and the use these
> results, in
> > xml file using ${variable}.
> >
> > However the constraint is that i need to have this xml file as static
> > ...because it is called by other application during runtime. The
> application
> > parses the data in xml file and is not able to recognize "${variable}"
> ...
> > So a possible solution i am thinking of is to store all the results in
> an
> > ftl file just give all the necessary formating to it and then just
> > <#include> it in my xml file..so that when the application runs
> ,
> > xml files copies all the contents from the ftl file.and before
> > application runs ...i need to load my data in the ftl file.
> >
> > I hope now you get the problem statement better..please suggest me
> of
> > any ways to do this or better ideas
> >
> > Regards
> >
> > On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> >> Hi Vijay,
> >>
> >> What "dynamic data" are you talking about?
> >>
> >> You can use bsh scripts to pull in data from database. Is that what you
> >> mean by "dynamic"?
> >>
> >> What do you mean by "xml"?
> >>
> >> You can actually use ${ } inside your widget screen definitions. Try
> >> ${someVariable}.
> >>
> >> While .ftl files can access static classes to perform some "dynamic
> data
> >> retrieval", it is not as
> >> clean and easy as using .bsh.
> >>
> >> In your .bsh, simply do: context.put("someVariable", "Whatever data you
> >> want to pull in");
> >>
> >> Jonathon
> >>
> >> vijay Si wrote:
> >>> Hi,
> >>>
> >>> I wanted to load an ftl file just to pull data from the .bsh script
> >> file.
> >>> This ftl file will not display anything directly...rather i wanted to
> >>> <#include> all of it's content {which includes the dynamically pulled
> >> data
> >>> from scripts} into an .xml file so that my xml file has all the
> >> static
> >>> data. I am not able to use dynamic data pulled by xml directly
> i.ecannot
> >>> use ${} inside my xml. So i thought of pulling all dynamic stuff into
> an
> >>> .ftl file and then <#include> this data in the xml file
> >>>
> >>> Here i am confronted with the problem of loading ftl file just like
> .bsh
> >>> file..so.can i put .ftl files in  and
> >> load it
> >>> in advance. Or please suggest some other way of loading the ftl file
> >> just
> >>> for the sake of pulling data from the script.
> >>>
> >>> Regards
> >>>
> >>>
> >>>
> >>>
> 
> >>>
> >>> No virus found in this incoming message.
> >>> Checked by AVG Free Edition.
> >>> Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:
> >> 8/28/2007 4:29 PM
> >>
> >>
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:
> 8/28/2007 4:29 PM
>
>


Cant' add to shoppping cart

2007-08-29 Thread MrJohnBrown

Hi guys,

When I try to enter a sales order in order manager I get a stop when I
lookup product and try add it to order. The message is as follows: 
"The Following Errors Occurred:

Sorry, we do not have enough (you tried 1) of the product PROD1236 a brand
new computer. (product ID: PROD1236) in stock, not adding to cart. Please
try a lower quantity, try again later, or call customer service for more
information."

 What can be cause of it? How to make it possible to create sales order
prior item is purchased from supplier and received in stock?

Thank you in advance.
-- 
View this message in context: 
http://www.nabble.com/Cant%27-add-to-shoppping-cart-tf4346412.html#a12382824
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Can we load an .ftl file using

2007-08-29 Thread Jonathon -- Improov

Hi Vijay,

This xml file you're talking about, is it purely data in xml format? Or is it a display document 
like HTML or xsl:fo?


Let's get your problem statement clear.

You have a application (not OFBiz) that reads an xml file. ("it is called by other application 
during runtime").


This xml file contains data in xml format. ("The application parses the data in xml 
file").

What you need to do is to first generate the xml data dynamically, then dump the data into an xml 
file.


Is my understanding correct?

Sorry if I misunderstood. Your problem description is not easy to understand. For eg, the term 
"application" is used thrice, and I'm not sure what application you're talking about.


This doesn't sound like an OFBiz issue? If it is an application development effort, rather than an 
issue/problem with OFBiz, would you mind paying one of the developers on this ML for a few hours' 
consultation on implementation strategies?


Jonathon

vijay Si wrote:

Hi Jonathon,

My constraint is as follows.

I need to have an xml file. This xml file is supposed to have some data that
comes from the database.

The best way to do this is write a .bsh script and the use these results, in
xml file using ${variable}.

However the constraint is that i need to have this xml file as static
...because it is called by other application during runtime. The application
parses the data in xml file and is not able to recognize "${variable}" ...
So a possible solution i am thinking of is to store all the results in an
ftl file just give all the necessary formating to it and then just
<#include> it in my xml file..so that when the application runs ,
xml files copies all the contents from the ftl file.and before
application runs ...i need to load my data in the ftl file.

I hope now you get the problem statement better..please suggest me of
any ways to do this or better ideas

Regards

On 8/29/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:

Hi Vijay,

What "dynamic data" are you talking about?

You can use bsh scripts to pull in data from database. Is that what you
mean by "dynamic"?

What do you mean by "xml"?

You can actually use ${ } inside your widget screen definitions. Try
${someVariable}.

While .ftl files can access static classes to perform some "dynamic data
retrieval", it is not as
clean and easy as using .bsh.

In your .bsh, simply do: context.put("someVariable", "Whatever data you
want to pull in");

Jonathon

vijay Si wrote:

Hi,

I wanted to load an ftl file just to pull data from the .bsh script

file.

This ftl file will not display anything directly...rather i wanted to
<#include> all of it's content {which includes the dynamically pulled

data

from scripts} into an .xml file so that my xml file has all the

static

data. I am not able to use dynamic data pulled by xml directly i.ecannot
use ${} inside my xml. So i thought of pulling all dynamic stuff into an
.ftl file and then <#include> this data in the xml file

Here i am confronted with the problem of loading ftl file just like .bsh
file..so.can i put .ftl files in  and

load it

in advance. Or please suggest some other way of loading the ftl file

just

for the sake of pulling data from the script.

Regards





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date:

8/28/2007 4:29 PM







No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.10/977 - Release Date: 8/28/2007 4:29 PM