Re: org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread Jacques Le Roux

I sent this mail more than 7h ago, it has still not reached the ML, any ideas 
why ?

Jacques

From: "Jacques Le Roux" <[EMAIL PROTECTED]>
To: 
Sent: Friday, March 28, 2008 12:00 AM



http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Source+Repository+and+Access#OFBizSourceRepositoryandAccess-TheOldOFBizSVNRepository

IIRW, it comes from ObjectWeb but was patched for OFBiz

Jacques

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

Anyone know where I can find the source for the
org.ofbiz.minerva.pool.jdbc.xa and decendant packages?

I find the class files in ofbiz-minerva.jar, but can't find the source
anywhere.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM



Re: org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread Jacques Le Roux

Yes, you can : MIT licence

Jacques

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

BJ

Hmmm, I see how to download the file now, but am I supposed to?  Looks like
hotwaxmedia source to me.

Skip

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 8:34 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.minerva.pool.jdbc.xa


https://svn.hotwaxmedia.com/crucible/browse/ofbizext/minerva/src/org/ofbiz/m
inerva/pool/ObjectPool.java

[EMAIL PROTECTED] sent the following on 3/27/2008 1:59 PM:

Anyone know where I can find the source for the
org.ofbiz.minerva.pool.jdbc.xa and decendant packages?

I find the class files in ofbiz-minerva.jar, but can't find the source
anywhere.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM







No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM



RE: org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread [EMAIL PROTECTED]
BJ

Hmmm, I see how to download the file now, but am I supposed to?  Looks like
hotwaxmedia source to me.

Skip

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 8:34 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.minerva.pool.jdbc.xa


https://svn.hotwaxmedia.com/crucible/browse/ofbizext/minerva/src/org/ofbiz/m
inerva/pool/ObjectPool.java

[EMAIL PROTECTED] sent the following on 3/27/2008 1:59 PM:
> Anyone know where I can find the source for the
> org.ofbiz.minerva.pool.jdbc.xa and decendant packages?
>
> I find the class files in ofbiz-minerva.jar, but can't find the source
> anywhere.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
> 4:43 PM
>
>
>
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM



RE: org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread [EMAIL PROTECTED]
Thanks BJ

However, I was looking for the source to download.  This is a fisheye view.
Is this the only way to look at the source?

Anyway, thanks for this.  This fisheye is so slick, I think I am gonna go
buy it.

Skip

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 8:34 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.minerva.pool.jdbc.xa


https://svn.hotwaxmedia.com/crucible/browse/ofbizext/minerva/src/org/ofbiz/m
inerva/pool/ObjectPool.java

[EMAIL PROTECTED] sent the following on 3/27/2008 1:59 PM:
> Anyone know where I can find the source for the
> org.ofbiz.minerva.pool.jdbc.xa and decendant packages?
>
> I find the class files in ofbiz-minerva.jar, but can't find the source
> anywhere.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
> 4:43 PM
>
>
>
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM



Re: org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread BJ Freeman
https://svn.hotwaxmedia.com/crucible/browse/ofbizext/minerva/src/org/ofbiz/minerva/pool/ObjectPool.java

[EMAIL PROTECTED] sent the following on 3/27/2008 1:59 PM:
> Anyone know where I can find the source for the
> org.ofbiz.minerva.pool.jdbc.xa and decendant packages?
> 
> I find the class files in ofbiz-minerva.jar, but can't find the source
> anywhere.
> 
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
> 4:43 PM
> 
> 
> 
> 



Re: Product features, virtuals and variants: an alternative approach.

2008-03-27 Thread Hans Bakker
Hi Mridul.

On Thu, 2008-03-27 at 20:21 +0530, Mridul Pathak wrote:
> .
> My question is, can't it be possible that a customer selects a set of
> features for which no variant exists and also the company does not sell such
> a product?  

These incompabilities of features can be entered in a existing table
called 'ProductFeatureIactn'. We will add some screens to maintain this
table.

Regards,
Hans



> >
> > Current function in OFBiz.
> > --
> > The OFBiz system has a facility to allow the selection of variants
> of a
> > basic product called a 'virtual' product, for example a t-shirt.
> This
> > shirt can have colors and sizes. These colors and sizes can be
> defined
> > in features types. Features relate to these feature types and
> specify
> > the actual sizes and colors. These features can be specified on the
> > virtual product as selectable features and as standard features on
> the
> > variant products. Not all feature combinations need to be there if
> > certain features combinations are not available or compatible. Only
> > feature combinations which result in existing variant products can
> be
> > selected when the product is ordered.
> >
> > Current implementation.
> > ---
> > The current OFBiz implementation builds a variant tree according the
> > features listed on the virtual product, checks if the related
> variant is
> > present. When not found, the feature will not be in the tree and
> cannot
> > be selected. This is fine upto about 200 variants. if more variants
> are
> > present, the time to built the tree and the size become too big. The
> > service used is called 'getProductVariantTree' and is called from
> the
> > productdetail.bsh program.
> >
> > Proposed alternative approach.
> > --
> > Instead of creating a variant tree, a feature tree should be created
> > using the specified features on the virtual product without checking
> the
> > available variants. In order to be able to specify incompatibilities
> > between features the existing entity 'ProductFeatureIactn' should be
> > used where general (no productId) or specific (with productId)
> > dependencies or incompatibilities can be specified.
> > If a feature selection is done at order entry, the related variant
> > should be found which has all these standard features. If the
> variant
> > can be found, the processing is the same as it is now: this variant
> will
> > be added to the shoppingcart using the variant prices.
> > If the variant cannot be found, the system will create the variant
> > automatically, using the prices in the to be created 'FeaturePrice'
> > entity similar to the 'ProductPrice' entity. The prices in this
> table
> > however are price adjustments to the price specified on the virtual
> > product.
> >
> > This new approach can be added to the existing implementation by
> adding
> > a field to the product or allow more values in the 'isVirtual' field
> and
> > change the processing accordingly.
> >
> > --
> > AntWebsystems.com: Quality OFBiz services for competitive rates.
> >
> >
> 
> 
-- 
AntWebsystems.com: Quality OFBiz services for competitive rates.



Re: Can't Approve Orders with service products

2008-03-27 Thread Enrique Ruibal

Hello Mridul. with regard to your comments below:

>This is fairly simple.  Any service or digital product is a non
>shippable item, so it can be fulfilled as soon as it has been ordered. 
Just
>think about some membership product on an online store of a Club.  If a
user
>orders such product, and provides the required billing information like
>Credit Card etc, then we can at the same moment fulfill his order by
>capturing the payment from his credit card, and therefore at same time
>invoice is generated and its status is updated to PAID as well.
>But this does not apply for general inventory products which are
>shippable items.  First the order is created by the customer, which need to
>be than approved by the CSR.  You need to check if the product is available
>in the inventory, then pick, pack and ship.  This is a simple abstract of
>the complete process, may be I have missed out something.

>  Since the logic of fulfillment is different for such products, than
>obviously different business rules will be applied to them.

I see your point, but what if:

1) A customer places a multi-line item order containing several finished
'inventory goods' as well as some service items WITHIN THE SAME ORDER,
shouldn't ofbiz business logic be able to handle this nicely?

2) The CSR needs to place some service orders required by customers without
an upfront payment, I mean in many cases there is no credit card or a check
paid on advance, and this is a pretty common business situation too.


Please, let me know your advise on this..

-Enrique






-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892



-- 
View this message in context: 
http://www.nabble.com/Can%27t-Approve-Orders-with-service-products-tp16242722p16343111.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: use webservice

2008-03-27 Thread Sumit Pandit

Tony
if you see in UserEvents.xml you can find the several methods, which 
creates the party(like createCustomer, createEmployee, createProspect ) 
on base of some parameters.
Here you can find all the method calls createUser after setting the the 
basic values, these value depends upon the party which is to be created.
The basic parameters of these methods are almost common, And if you want 
to same some extra parameters associated to the new party you need to 
create it explicitly.
I think the input and out put parameters of customer can help you to 
decide the parameters of your CreateCustomer() method (conventionally 
its name should be createCustomer :-) )

you can call the createUser in the same way as the other method calling.

Sumit.

Yitao_Zhao wrote:

Hello

 


I try to write CreateCustomer() method in the webservice

 


However, in the reference of Opentaps, there is a existing method called
CreatePerson()

 

I don't quite understand how to use the CreatePerson() in the webservice, 


as the reference just tells the input and output parameters

 


Tony

 



  




org.ofbiz.minerva.pool.jdbc.xa

2008-03-27 Thread [EMAIL PROTECTED]
Anyone know where I can find the source for the
org.ofbiz.minerva.pool.jdbc.xa and decendant packages?

I find the class files in ofbiz-minerva.jar, but can't find the source
anywhere.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.8/1339 - Release Date: 3/22/2008
4:43 PM



screen name="categorydetail"

2008-03-27 Thread Grant Edwards

Hi

At last I seem to be getting to grips with everything the 
"categorydetail" screen and associated .bsh and .ftl files are doing 
(well sort of).


I have provided a local implementation of the 
getProductCategoryAndLimitedMembers service which is called from 
categorydetail.bsh. This local implementation returns products to be 
displayed in the category, together with product pricing in an xml 
document from a 3rd party system. Within categorydetail.bsh, the xml 
document is then pop into the context and hence is available in the 
productsummary screen. productsummary.bsh via some help from a java 
service then picks the correct price to display from the xml document, 
and all looks good on the category page (prices, ProductCategoryLink etc 
...). So all is well up to this point.


However when clicking on the ProductCategoryLink, the screen that is 
displayed (I assume miniproductsummary) my prices are zero. So my real 
question is how can I get my xml document that contains the pricing into 
miniproductsummary.bsh via the ProductCategoryLink. Request parameter ?, 
if so how.


Go easy on me please, I am no GUI man.


Thanks for your help.


Kind regards

Grant Edwards




   
   
   value="component://ecommerce/widget/CatalogScreens.xml#productsummary"/>
   value="component://ecommerce/widget/CatalogScreens.xml#ProductCategoryLink"/>


   

Re: how to return the response directly?

2008-03-27 Thread Ryan Sweet



On Thu, 27 Mar 2008, BJ Freeman wrote:


not sure why you can't pass it back thru the controller and specify the
view you want to use.
it would seem a lot less efforts and keep it simple.
When you say client, are you speaking of a http client of some other.


an http client (another app, not a browser).

I think I got it worked out:

I went ahead and changed my request handler to put the return values in 
the session object, and return success/error and then built a ViewHandler 
that gets the values from the session.


Seems like extra lifting but maybe it will make sense to me later.

thanks,
-Ryan




Ryan Sweet sent the following on 3/27/2008 10:25 AM:


I want to be able to have the request handler pass the response from the
event handler directly back to the client.  In this case, the request
handler is just sending back simple strings.  I'd like to be able to
either just pass these directly back to the client, or pass them through
a StringViewHandler class if I have to have a view handler.


From going through RequestHandler it doesn't seem like 
type="none"> does what I want.

In this particular case, I don't need freemarker templates or any other
munging of the response data, and so I'm reluctant to setup the normal
pile of views/templates.  Is there a way in controller.xml to tell the
ControlServlet to just pass on the values spit out by the request handler?

If not, is there a way to setup the  element such that name=
can match whatever is returned (ie default response if no match on name
is found)?

Does that make sense?

regards,
-Ryan








Re: how to return the response directly?

2008-03-27 Thread BJ Freeman
not sure why you can't pass it back thru the controller and specify the
view you want to use.
it would seem a lot less efforts and keep it simple.
When you say client, are you speaking of a http client of some other.


Ryan Sweet sent the following on 3/27/2008 10:25 AM:
> 
> I want to be able to have the request handler pass the response from the
> event handler directly back to the client.  In this case, the request
> handler is just sending back simple strings.  I'd like to be able to
> either just pass these directly back to the client, or pass them through
> a StringViewHandler class if I have to have a view handler.
> 
>> From going through RequestHandler it doesn't seem like  type="none"> does what I want.
> 
> In this particular case, I don't need freemarker templates or any other
> munging of the response data, and so I'm reluctant to setup the normal
> pile of views/templates.  Is there a way in controller.xml to tell the
> ControlServlet to just pass on the values spit out by the request handler?
> 
> If not, is there a way to setup the  element such that name=
> can match whatever is returned (ie default response if no match on name
> is found)?
> 
> Does that make sense?
> 
> regards,
> -Ryan
> 
> 
> 



how to return the response directly?

2008-03-27 Thread Ryan Sweet


I want to be able to have the request handler pass the response from the 
event handler directly back to the client.  In this case, the request 
handler is just sending back simple strings.  I'd like to be able to 
either just pass these directly back to the client, or pass them through a 
StringViewHandler class if I have to have a view handler.


From going through RequestHandler it doesn't seem like 
type="none"> does what I want.

In this particular case, I don't need freemarker templates or any other 
munging of the response data, and so I'm reluctant to setup the normal 
pile of views/templates.  Is there a way in controller.xml to tell the 
ControlServlet to just pass on the values spit out by the request handler?


If not, is there a way to setup the  element such that name= 
can match whatever is returned (ie default response if no match on name is 
found)?


Does that make sense?

regards,
-Ryan


Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Ryan Sweet

Hi Ian,

I also found that in addition to reading the code for ecommerce, 
partymgr, etc, it was helpful to run in debug mode and attach the 
debugger to step through code, especially for instance to understand the 
login process, eca invocation, etc, especially once you strt ixing in 
your own code.


Just use "ant run-debug" and then set your debugger for a remote session 
to port 8091. 

You'll have to step over a lot of boring stuff (log4j), but still a 
useful tactic. 


regards,
-Ryan

Jacques Le Roux wrote:

That's what I meaned by "big breath & dive" :o)

Jacques

From: "Edward Banfa" <[EMAIL PROTECTED]>
Yeah you can read all the docs you want to, but nothing beats 
browsing the
code of already existing ofbiz apps (e.g PartyManager) to see how 
real world

enterprise apps are built using ofbiz :-). The docs points out the right
direction but it's the code that gets you walking.

Edward

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED] Sent: Thursday, March 
27, 2008 4:53 PM

To: user@ofbiz.apache.org
Subject: Re: Whats next after tutorials in www.opensourcestrategies.com

this was just answered in a previous email.
Seriously, you should read the documentation. These are good points to
start
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
These links may turn interesting too
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo 



Jacques


ian tabangay sent the following on 3/27/2008 2:52 AM:

Hi.
I wanted to learn how to create my own components on ofbiz. I'm done 
with
the tutorials in www.opensourcestrategies.com. It gave me a good 
view of

how
to develop on ofbiz but it was too basic. Any suggestions what to do 
next?

Thanks.


~ ian












Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Jacques Le Roux

That's what I meaned by "big breath & dive" :o)

Jacques

From: "Edward Banfa" <[EMAIL PROTECTED]>

Yeah you can read all the docs you want to, but nothing beats browsing the
code of already existing ofbiz apps (e.g PartyManager) to see how real world
enterprise apps are built using ofbiz :-). The docs points out the right
direction but it's the code that gets you walking.

Edward

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 4:53 PM

To: user@ofbiz.apache.org
Subject: Re: Whats next after tutorials in www.opensourcestrategies.com

this was just answered in a previous email.
Seriously, you should read the documentation. These are good points to
start
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
These links may turn interesting too
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

Jacques


ian tabangay sent the following on 3/27/2008 2:52 AM:

Hi.
I wanted to learn how to create my own components on ofbiz. I'm done with
the tutorials in www.opensourcestrategies.com. It gave me a good view of

how

to develop on ofbiz but it was too basic. Any suggestions what to do next?
Thanks.


~ ian










RE: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Edward Banfa
Yeah you can read all the docs you want to, but nothing beats browsing the
code of already existing ofbiz apps (e.g PartyManager) to see how real world
enterprise apps are built using ofbiz :-). The docs points out the right
direction but it's the code that gets you walking.

Edward

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 4:53 PM
To: user@ofbiz.apache.org
Subject: Re: Whats next after tutorials in www.opensourcestrategies.com

this was just answered in a previous email.
Seriously, you should read the documentation. These are good points to
start
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
These links may turn interesting too
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

Jacques


ian tabangay sent the following on 3/27/2008 2:52 AM:
> Hi.
> I wanted to learn how to create my own components on ofbiz. I'm done with
> the tutorials in www.opensourcestrategies.com. It gave me a good view of
how
> to develop on ofbiz but it was too basic. Any suggestions what to do next?
> Thanks.
> 
> 
> ~ ian
> 








Re: Can't Approve Orders with service products

2008-03-27 Thread Mridul Pathak
On Wed, Mar 26, 2008 at 1:10 AM, Enrique Ruibal <[EMAIL PROTECTED]>
wrote:

>
> I do have the following questions with regard to invoicing of service
> products through ofbiz, as per your last reply:
>
> >Any invoice against an order is generated automatically in OFBiz
> > through
> >service eca's when the order is created.  We can create manual invoices
> as
> >well in Accounting Component.  The invoice is created for  the orders
> >containing service/digital products in the same way as it is done for any
> >physical product, with the only difference, that, it is updated to the
> Paid
> >status automatically because the order for such products is completed and
> >payment is captured as well directly.  Any digital product is obviously a
> >product for Company and the customer, with the sale price defined and
> since
> >it can be ordered by the customer,  I think we can easily create an
> invoice
> >against that order.
> >You can find link to the invoices against an order in the *Payment
> >Information* section of the Order Detail page.
>
> Why is the service good invoice generated ONLY AFTER payment is received?
> Why are there different business rules for invoicing a product depending
> wether customer is ordering an inventory good or a service item, what does
> this has to do with issuing an invoice to the customer?



This is fairly simple.  Any service or digital product is a non
shippable item, so it can be fulfilled as soon as it has been ordered.  Just
think about some membership product on an online store of a Club.  If a user
orders such product, and provides the required billing information like
Credit Card etc, then we can at the same moment fulfill his order by
capturing the payment from his credit card, and therefore at same time
invoice is generated and its status is updated to PAID as well.
But this does not apply for general inventory products which are
shippable items.  First the order is created by the customer, which need to
be than approved by the CSR.  You need to check if the product is available
in the inventory, then pick, pack and ship.  This is a simple abstract of
the complete process, may be I have missed out something.

   Since the logic of fulfillment is different for such products, than
obviously different business rules will be applied to them.



>
> Could you please try to complete and order with two detail items, one is
> an
> inventory good say GZ-2644, and the other one is a suscritption service
> say
> GZ-NEWS-1MO and let me know what is the outcome you get? I cannot complete
> this in my ofbiz instance..thanks in advance



I didn't get time to try this today.  I'll surely run that process
tomorrow.


> --
> View this message in context:
> http://www.nabble.com/Can%27t-Approve-Orders-with-service-products-tp16242722p16286882.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread BJ Freeman
this was just answered in a previous email.
Seriously, you should read the documentation. These are good points to
start
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
These links may turn interesting too
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

Jacques


ian tabangay sent the following on 3/27/2008 2:52 AM:
> Hi.
> I wanted to learn how to create my own components on ofbiz. I'm done with
> the tutorials in www.opensourcestrategies.com. It gave me a good view of how
> to develop on ofbiz but it was too basic. Any suggestions what to do next?
> Thanks.
> 
> 
> ~ ian
> 



Re: How to use event to send session parameter

2008-03-27 Thread Mridul Pathak
I think you can try to typecast the session object when you get it from the
context map in your service.  If still you didn't get any success with that
then I think the best and most preferable approach would be to simply right
a Java Event as you mentioned in your last mail, like as public static
String mymethod(HttpServletRequest request, HttpServletResponse response).
 Generally in a case where we need to access and work on request and session
objects, I think the preferred approach is to write a Java or Simple event.
   I would have personally preferred that :).

On Thu, Mar 27, 2008 at 12:19 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> mridul
>
> I tried this and got this exception:
>
> Type conversion of field [session] to type [javax.servlet.http.HttpSession
> ]
> failed for value "[EMAIL PROTECTED]
> ":
> org.ofbiz.base.util.GeneralException: Conversion from String to
> javax.servlet.http.HttpSession not currently supported
>
>
> The ftl file looks like this:
>
><#assign session = request.getSession()>
>  
>
> The servicedef looks like this:
>
>
> mode="IN" optional="true"/>
>
>
> This would really be nice to get right to avoid using the alternative
>  public static String mymethod(HttpServletRequest request,
> HttpServletResponse response)
>
>
> I looked in ObjectType.java file and the only supported conversions are
> for
> simple types like Double, Integer, etc.
>
> Note that the url parameter is passed as
> [EMAIL PROTECTED]
>
> Hopefully, there is something I am missing.
>
> Skip
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> Mridul Pathak
> Sent: Monday, March 24, 2008 9:14 PM
> To: user@ofbiz.apache.org
> Subject: Re: How to use event to send session parameter
>
>
> Nattanicha,
> You have just added the session object as an IN parameter in your
> service.  You will also need to pass the session object to the service.  I
> mean to say that wherever you are preparing the input map for this
> service/request, may be from some form or some other event, you will get
> the
> session object there and pass it to the service in the input map.
> e.g. If you are using an ftl, you can write following code in your form:
> <#assign session = request.getSession()>
> 
> I think this way you can get the session object in your service.
> If you are using form-widgets than you may use bsh to get the session
> object
> from request.
>
> On Mon, Mar 24, 2008 at 6:47 PM, Nattanicha Rittammanart
> <[EMAIL PROTECTED]>
> wrote:
>
> > Dear Miridul,
> >   I use Service engine and I tried follows your suggestion. But I got
> > problem like this:
> >
> > 2008-03-24 20:03:16,468 (http-0.0.0.0-8080-Processor3) [
> > AssetServices.java:37 :INFO ] session : null
> >
> > but in log file I can see:
> >
> > 2008-03-24 20:03:16,437 (http-0.0.0.0-8080-Processor3) [
> > RequestHandler.java:245:INFO ] [Processing Request]:
> > createAssetPrototype sessionId=C24B7F75CEE3F8413665F3D314BAFE98.jvm1
> >
> > This line is print from RequestHandler.java. How can I get this
> > sessionId in createAssetPrototype
> > *
> > My code*
> > sevicedef.xml
> >  > location="org.ofbiz.prototype.AssetServices"
> > invoke="createAssetPrototype">
> >create asset
> > > optional="true">
> > > optional="false">
> >  > type="javax.servlet.http.HttpSession"/>
> > 
> > *
> > Java code*
> > AssetServices.java
> >public static Map createAssetPrototype(DispatchContext dctx, Map
> > context)throws IOException{
> >   
> > HttpSession session = (HttpSession)context.get("session");
> > Debug.logInfo("session Kae: "+session, module);
> >.
> > }
> >
> > Please help me,
> > Nattanicha
> >
> > Mridul Pathak wrote:
> > > There can be two cases:
> > > 1) In the request-map you are using Java Engine.  In this case of a
> Java
> > > Event you can get the session object from a request object available
> to
> > you
> > > in the event by useing *getSession()* method on request object.  Now
> you
> > can
> > > get all your required session infromation from the session object.
> > > There are lots of examples that you can find in OFBiz for this
> > approach.
> > >
> > > 2) In the request-map you are using Service engine, and in the service
> > > definition you are using engine type of Java.  In this case session
> > object
> > > is not available to you, but it can be made availabel by adding an IN
> > > attribute to your service definition in the following way:  > > mode="IN" name="session" optional="true" type="
> > > javax.servlet.http.HttpSession"/>.
> > > Now you can get this session object in your Java Service from the
> > > context map in the following way:
> > > HttpSession session = (HttpSession)context.get("session");
> > >
> > > I think this way you can access the session information.
> > >
> > >
> > > On Sat, Mar 22, 2008 at 7:03 AM, Nattanicha Rittammanart <
> > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > >
> 

Re: Product features, virtuals and variants: an alternative approach.

2008-03-27 Thread Mridul Pathak
Hans,

I have a question regarding the new approach:
As you said that at the time of order entry customer selects a set of
features and if a variant with that particular set of standard features is
not found, a new product is created for that.
My question is, can't it be possible that a customer selects a set of
features for which no variant exists and also the company does not sell such
a product?  In that case a wrong product will be created at the time of
order entry.  For example a company sells Sofa's of different color and
sizes.  Now it may be possible that for small size there are four color
variations and for the medium size only three are available.  In such a case
if a user selects the fourth color variation for the medium size Sofa, a
wrong product will be created at the time of order entry.

For this, if this is a problem at all, we may put constraints on the feature
selection, but I am not sure how and that may be cumbersome.  With the
current implementation based on the Variant tree, I think it is possible to
put such constraints at the time of feature selection.

May be I am getting this wrong, but just a thought from my side.


On Thu, Mar 27, 2008 at 8:32 AM, Hans Bakker <[EMAIL PROTECTED]>
wrote:

> Good morning! (at least for me it is...)
>
> As I have written before I have a customer who has many variants (>1000)
> which do not really fit in categories or configurations and it has to
> work with drop-shipments.
> This alternative proposal has practically no limit on the number of
> variants and is largely compatible with the current implementation.
>
> Please let me know for comments/questions and enhancements and what the
> opinion of the community is, and if this is a valuable addition to the
> current system.
>
> Regards,
> Hans
>
>
>
> Current function in OFBiz.
> --
> The OFBiz system has a facility to allow the selection of variants of a
> basic product called a 'virtual' product, for example a t-shirt. This
> shirt can have colors and sizes. These colors and sizes can be defined
> in features types. Features relate to these feature types and specify
> the actual sizes and colors. These features can be specified on the
> virtual product as selectable features and as standard features on the
> variant products. Not all feature combinations need to be there if
> certain features combinations are not available or compatible. Only
> feature combinations which result in existing variant products can be
> selected when the product is ordered.
>
> Current implementation.
> ---
> The current OFBiz implementation builds a variant tree according the
> features listed on the virtual product, checks if the related variant is
> present. When not found, the feature will not be in the tree and cannot
> be selected. This is fine upto about 200 variants. if more variants are
> present, the time to built the tree and the size become too big. The
> service used is called 'getProductVariantTree' and is called from the
> productdetail.bsh program.
>
> Proposed alternative approach.
> --
> Instead of creating a variant tree, a feature tree should be created
> using the specified features on the virtual product without checking the
> available variants. In order to be able to specify incompatibilities
> between features the existing entity 'ProductFeatureIactn' should be
> used where general (no productId) or specific (with productId)
> dependencies or incompatibilities can be specified.
> If a feature selection is done at order entry, the related variant
> should be found which has all these standard features. If the variant
> can be found, the processing is the same as it is now: this variant will
> be added to the shoppingcart using the variant prices.
> If the variant cannot be found, the system will create the variant
> automatically, using the prices in the to be created 'FeaturePrice'
> entity similar to the 'ProductPrice' entity. The prices in this table
> however are price adjustments to the price specified on the virtual
> product.
>
> This new approach can be added to the existing implementation by adding
> a field to the product or allow more values in the 'isVirtual' field and
> change the processing accordingly.
>
> --
> AntWebsystems.com: Quality OFBiz services for competitive rates.
>
>


-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


use webservice

2008-03-27 Thread Yitao_Zhao
Hello

 

I try to write CreateCustomer() method in the webservice

 

However, in the reference of Opentaps, there is a existing method called
CreatePerson()

 

I don't quite understand how to use the CreatePerson() in the webservice, 

as the reference just tells the input and output parameters

 

Tony

 



Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Jacopo Cappellato

Hi,

I'd suggest to use as a template the framework/example component.

Jacopo

On Mar 27, 2008, at 4:52 AM, ian tabangay wrote:

Hi.
I wanted to learn how to create my own components on ofbiz. I'm done  
with
the tutorials in www.opensourcestrategies.com. It gave me a good  
view of how
to develop on ofbiz but it was too basic. Any suggestions what to do  
next?

Thanks.


~ ian




Re: Product features, virtuals and variants: an alternative approach.

2008-03-27 Thread Jacopo Cappellato

Hans,

it looks good to me; please see my comment below:

On Mar 26, 2008, at 9:02 PM, Hans Bakker wrote:

Good morning! (at least for me it is...)

As I have written before I have a customer who has many variants  
(>1000)

which do not really fit in categories or configurations and it has to
work with drop-shipments.
This alternative proposal has practically no limit on the number of
variants and is largely compatible with the current implementation.

Please let me know for comments/questions and enhancements and what  
the

opinion of the community is, and if this is a valuable addition to the
current system.

Regards,
Hans



Current function in OFBiz.
--
The OFBiz system has a facility to allow the selection of variants  
of a

basic product called a 'virtual' product, for example a t-shirt. This
shirt can have colors and sizes. These colors and sizes can be defined
in features types. Features relate to these feature types and specify
the actual sizes and colors. These features can be specified on the
virtual product as selectable features and as standard features on the
variant products. Not all feature combinations need to be there if
certain features combinations are not available or compatible. Only
feature combinations which result in existing variant products can be
selected when the product is ordered.

Current implementation.
---
The current OFBiz implementation builds a variant tree according the
features listed on the virtual product, checks if the related  
variant is
present. When not found, the feature will not be in the tree and  
cannot
be selected. This is fine upto about 200 variants. if more variants  
are

present, the time to built the tree and the size become too big. The
service used is called 'getProductVariantTree' and is called from the
productdetail.bsh program.

Proposed alternative approach.
--
Instead of creating a variant tree, a feature tree should be created
using the specified features on the virtual product without checking  
the

available variants. In order to be able to specify incompatibilities
between features the existing entity 'ProductFeatureIactn' should be
used where general (no productId) or specific (with productId)
dependencies or incompatibilities can be specified.
If a feature selection is done at order entry, the related variant
should be found which has all these standard features. If the variant
can be found, the processing is the same as it is now: this variant  
will

be added to the shoppingcart using the variant prices.
If the variant cannot be found, the system will create the variant
automatically, using the prices in the to be created 'FeaturePrice'
entity similar to the 'ProductPrice' entity. The prices in this table
however are price adjustments to the price specified on the virtual
product.

This new approach can be added to the existing implementation by  
adding
a field to the product or allow more values in the 'isVirtual' field  
and

change the processing accordingly.



We may also use a new product type for this.

Jacopo



--
AntWebsystems.com: Quality OFBiz services for competitive rates.





Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Bilgin Ibryam
Hi,

As a next step check example component together with
http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and
+Diagrams

Bilgin



Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Jacques Le Roux

Read the documentation, and ... take a big breath...dive...
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index

Jacques

From: "ian tabangay" <[EMAIL PROTECTED]>

Hi.
I wanted to learn how to create my own components on ofbiz. I'm done with
the tutorials in www.opensourcestrategies.com. It gave me a good view of how
to develop on ofbiz but it was too basic. Any suggestions what to do next?
Thanks.


~ ian



Re: Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread Pranay Pandey

http://docs.ofbiz.org/display/OFBADMIN/Best+Practices+Guide
That can be an interesting reading for you.

Thanks and Regards
Pranay Pandey

ian tabangay wrote:

Hi.
I wanted to learn how to create my own components on ofbiz. I'm done with
the tutorials in www.opensourcestrategies.com. It gave me a good view of how
to develop on ofbiz but it was too basic. Any suggestions what to do next?
Thanks.


~ ian

  






Whats next after tutorials in www.opensourcestrategies.com

2008-03-27 Thread ian tabangay
Hi.
I wanted to learn how to create my own components on ofbiz. I'm done with
the tutorials in www.opensourcestrategies.com. It gave me a good view of how
to develop on ofbiz but it was too basic. Any suggestions what to do next?
Thanks.


~ ian


Re: User Question ----> Deve

2008-03-27 Thread Jacques Le Roux

These links may turn interesting too
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

Jacques

From: "ladroge" <[EMAIL PROTECTED]>


Thanks Jacque .
I think that it is the full documentation to understand all things about
ofbiz and start to learn and modify also the source code .


jacques.le.roux wrote:


From: "ladroge" <[EMAIL PROTECTED]>


I know that my question is a basic question for person who start on
ofbiz.
I am starting with developpement in Java . 
According the projetc i want to know when i run the file build.xml in

eclipse is it also for jar filer?

Run in Eclipse or not is the same


According the bsh and  ftl file , are there manually modified or created?

Manually

Seriously, you should read the documentation. These are good points to
start
http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index

Jacques



Thanks 
--

View this message in context:
http://www.nabble.com/User-Question-%3E-Deve-tp16305399p16305399.html
Sent from the OFBiz - User mailing list archive at Nabble.com.






--
View this message in context: 
http://www.nabble.com/User-Question-%3E-Deve-tp16305399p16323377.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Best way to find the active user's paraty id?

2008-03-27 Thread Bilgin Ibryam
Hi Peter,

If you are looking for currently logged in user,
you can get it from context map. This entity has a field partyId,
representing the party of the user.

Hope that helps.
Bilgin




Re: User Question ----> Deve

2008-03-27 Thread ladroge

Thanks Jacque .
I think that it is the full documentation to understand all things about
ofbiz and start to learn and modify also the source code .


jacques.le.roux wrote:
> 
> From: "ladroge" <[EMAIL PROTECTED]>
>> 
>> I know that my question is a basic question for person who start on
>> ofbiz.
>> I am starting with developpement in Java . 
>> According the projetc i want to know when i run the file build.xml in
>> eclipse is it also for jar filer?
> Run in Eclipse or not is the same
> 
>> According the bsh and  ftl file , are there manually modified or created?
> Manually
> 
> Seriously, you should read the documentation. These are good points to
> start
> http://docs.ofbiz.org/display/OFBADMIN/Apache+OFBiz+Getting+Started
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Documentation+Index
> 
> Jacques
> 
>> 
>> Thanks 
>> -- 
>> View this message in context:
>> http://www.nabble.com/User-Question-%3E-Deve-tp16305399p16305399.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/User-Question-%3E-Deve-tp16305399p16323377.html
Sent from the OFBiz - User mailing list archive at Nabble.com.