Shopping list problem in ecommerce component

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

Shopping list problem in ecommerce component

rrhati2010
Hi,

When I create a new shopping list , every time i click on create new button it creates a new shopping list with same name....How can I avoid creating shopping list with same name??...

I need, whenever I click on create new , a unique shopping list name is inserted into the database.

Please help...How to do it?? Thanks in advance...
RRH
Reply | Threaded
Open this post in threaded view
|

Shopping list problem in ecommerce component

rrhati2010
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
RRH
Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

Ankit Jain-3
Hi,

The name "New Shopping List" is default name and it is set in
"createShoppingList" service in ShoppingListServices.xml check

<property-to-field field="newEntity.listName" resource="OrderUiLabels"
              property="OrderNewShoppingList" default="New Shopping List"/>

here you see that the value is coming from orderUiLabels.xml if you want
to avoid it or want to give your choice name , then just remove the
resource & property attribute from the above & set the value you want in
the default="abc" attribute.

And please ask these types of questions on user mailing list.

--
Thanks&  Regards:
Ankit Jain
Enterprise Software Developer
Hotwax Media Pvt. Ltd.
www.hotwaxmedia.com



On Tuesday 08 June 2010 10:43 AM, rrhati2010 wrote:

> Hi,
>
> When I create a new shopping list , every time i click on create new button
> it creates a new shopping list with same name....How can I avoid creating
> shopping list with same name??...
>
> Please help.
>
> -----
> RRH
>    

Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

rrhati2010

Hi Ankit,
Thanks for the solution.

Even if I change the default value, I didn't get a unique Shopping list name inserted into the database on clicking Create new button.

I need, whenever I click on create new , a unique shopping list name is inserted into the database.

Please help...How to do it?? Thanks in advance...

RRH
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


RRH
Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

BJ Freeman
In reply to this post by rrhati2010
please specify the version of ofbiz
and a link would help


rrhati2010 sent the following on 6/8/2010 9:32 PM:


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>

>
> Hi,
>
> When I create a new shopping list , every time i click on create new button
> it creates a new shopping list with same name....How can I avoid creating
> shopping list with same name??...
>
> I need, whenever I click on create new , a unique shopping list name is
> inserted into the database.
>
> Please help...How to do it?? Thanks in advance...
>
>
> -----
> RRH
Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

chandan khandelwal-2
In reply to this post by rrhati2010
Hi,

This is default shopping list name when you create a new shopping list.
If you want to  create shopping list with different name you have to
pass one parameter for listname from ui.


Thanks & Regards
--
Chandan Khandelwal

rrhati2010 wrote:

> Hi,
>
> When I create a new shopping list , every time i click on create new button
> it creates a new shopping list with same name....How can I avoid creating
> shopping list with same name??...
>
> I need, whenever I click on create new , a unique shopping list name is
> inserted into the database.
>
> Please help...How to do it?? Thanks in advance...
>
>
> -----
> RRH
>  

Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

rrhati2010
In reply to this post by BJ Freeman

Ofbiz version: ofbiz-release-9.04-stable
Links:
http://demo-stable.ofbiz.apache.org:8080/ecommerce/control/createEmptyShoppingList?productStoreId=9000

I have clicked on Create new shopping list three times and it created three empty shopping lists in same name.....

I need those shopping list names unique one...



Regards,
RRH
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



shoppinglist.JPG (212K) Download Attachment
RRH
Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

rrhati2010
In reply to this post by chandan khandelwal-2
How can I do that....

How to pass a text box value to the minilang simple method???
RRH
Reply | Threaded
Open this post in threaded view
|

Re: Shopping list problem in ecommerce component

chandan khandelwal-2
Hi,

Create your own form and pass input field with name listname and also
pass productStoreId

<form action="createEmptyShoppingList" >
  <input .......name="listname" />
</form>

and call the service createShoppingList on submit the form

HTH

Regards
--
Chandan Khandelwal

rrhati2010 wrote:
> How can I do that....
>
> How to pass a text box value to the minilang simple method???
>
> -----
> RRH
>