Re: Problem with Autocomplete in ofbiz?

2010-03-08 Thread Rishi Solanki
Hi Vasu,
The links you are referring in your email and the fields are not supporting
the auto completion.
That means userLoginIdm Customer at orderentry screen and the partyId at
FindEmplLeaves.
FYI, you need to get the list of the values from DB to show them on a field
for auto completion. Let me know if you did something on the fields where
you want auto completer.

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Sun, Mar 7, 2010 at 9:22 PM, Vasu .T vasut...@yahoo.co.in wrote:


 Hai,this is Vasu.I am a beginner with some knowledge in ofbiz.When i was
 using ofbiz i found that :

 Two fields named userlogin Id and customer is not giving autocomplete i.e
 drop down list when i typed letter 'a' in those fields in the link:

 https://localhost:8443/ordermgr/control/orderentry

 But i got autocomplete output when i typed letter 'a' in partyid field in
 the link:

 https://localhost:8443/humanres/control/FindEmplLeaves


 Similar,problems i found are in the links below:


 https://localhost:8443/catalog/control/EditProdCatalogParties?prodCataloagId=DemoCataloghttps://localhost:8443/catalog/control/EditProdCatalogParties?prodCatalogId=DemoCatalog
 https://localhost:8443/facility/control/EditFacility

 The images to the right of that field is an indication.


 Please,somebody help me what should i do to get autocomplete output in the
 above links.
 URGENT

 please..
 --
 View this message in context:
 http://n4.nabble.com/Problem-with-Autocomplete-in-ofbiz-tp1583635p1583635.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Event Service

2010-03-08 Thread Bilgin Ibryam

Hans Bakker wrote:

An event is specific local piece functionality normally used in one
place for one purpose and called from its location.

A service is a piece of functionality which can be located anywhere on
the network, is most of time used in several different places and is
called by its 'name'

Regards,
Hans
  
In addition, in case of events you have access to HttpServletRequest and 
HttpServletResponse obejcts and you can read/write whatever you want.

In case of services, you have access only to service parameters.

Bilgin


Re: Event Service

2010-03-08 Thread Jacques Le Roux

This thread contains a pretty complete definition of event vs service. I will 
try to put this in FAQ... some day...

Thanks guys!

Jacques

From: Bilgin Ibryam bibr...@gmail.com

Hans Bakker wrote:

An event is specific local piece functionality normally used in one
place for one purpose and called from its location.

A service is a piece of functionality which can be located anywhere on
the network, is most of time used in several different places and is
called by its 'name'

Regards,
Hans
  
In addition, in case of events you have access to HttpServletRequest and 
HttpServletResponse obejcts and you can read/write whatever you want.

In case of services, you have access only to service parameters.

Bilgin





Re: Ecommerce Bug?

2010-03-08 Thread Bilgin Ibryam
I see that the default datetime_format for FTLs is set to -MM-dd 
HH:mm:ss.SSS but the default date_format is not set. In that case date 
objects gets formatted according to the user locale.
I think (for now) we agreed on having -MM-dd as the default date 
format no matter what is the locale? If this is true, I propose to set 
-MM-dd as default date_format for FTLs.


Bilgin

Hi Koon,

Yes this certainly does sound like a bug, it would be great if you could file a 
jira issue.

Thanks
Scott

HotWax Media
http://www.hotwaxmedia.com

On 7/03/2010, at 8:30 PM, Koon Sang wrote:

  
After login to Ecommerce, go to Profile and update Personal Information. 
Enter a valid date for Birth Date and Passport Expire Date (format:

-mm-dd).  Click Save.  Once back to the main screen, click on Update
again to update the Personal Information.  You will see that the two dates
are displayed in wrong date formats, e.g. Aug 25, 1972.  So, the date is
formatted wrongly somewhere.


--
View this message in context: 
http://n4.nabble.com/Ecommerce-Bug-tp1584077p1584077.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



  




Re: Problem with Autocomplete in ofbiz?

2010-03-08 Thread Bilgin Ibryam

Hi Vasu,

In ofbiz you can create html forms in two ways: using freemarker and 
using form widget. When form widget is used all lookup fields have also 
autocompleter, but in freemarker forms this feature is missing. That's 
why there is no autocompleter in some fields as you noticed.

Hai,this is Vasu.I am a beginner with some knowledge in ofbiz.When i was
using ofbiz i found that :

Two fields named userlogin Id and customer is not giving autocomplete i.e
drop down list when i typed letter 'a' in those fields in the link:  

https://localhost:8443/ordermgr/control/orderentry 
  

The above form is created using freemarker, so there is no autocompleter



But i got autocomplete output when i typed letter 'a' in partyid field in
the link:

https://localhost:8443/humanres/control/FindEmplLeaves

  

The above form is created with form widget.


Similar,problems i found are in the links below:

https://localhost:8443/catalog/control/EditProdCatalogParties?prodCatalogId=DemoCatalog
https://localhost:8443/facility/control/EditFacility

The images to the right of that field is an indication.


Please,somebody help me what should i do to get autocomplete output in the
above links.
  
Thanks to Bruno, now https://issues.apache.org/jira/browse/OFBIZ-3541 is 
completed, which means it is possible to replace all the freemarker 
lookups with new lookup macros and have autocompleter also in 
freemarker forms.
If you want to help us and also have autocompleter in all the places, 
you should start from 
http://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices, 
then create a jira issue and start replacing old lookups with new ones. 
For an exmple on how to replace the old lookup with new ones (with 
autocompleter support) you can check the attached patch in OFBIZ-3541


Internally autocompleters use scriptaculous library, you can read about 
it here 
http://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices


HTH
Bilgin


URGENT
please..
  




Re: Problem with Autocomplete in ofbiz?

2010-03-08 Thread Bilgin Ibryam




Internally autocompleters use scriptaculous library, you can read 
about it here 
http://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices 



I gave a wrong link, the correct one is this 
http://wiki.github.com/madrobby/scriptaculous/ajax-autocompleter


Re: Now Practice Application will also teach you, how to write ajax request using prototype library in OFBiz

2010-03-08 Thread Ashish Vijaywargiya
+1

--
Ashish
http://www.saveourtigers.com/

On Thu, Mar 4, 2010 at 12:12 PM, Pranay Pandey
pranay.pan...@hotwaxmedia.com wrote:
 Its really a nice enhancement, Thanks guys!

 Now I think its the time it should be divided in to child pages mentioning
 different parts of the practice from beginner to advanced level.

 Kind Regards
 --
 Pranay Pandey
 HotWax Media | www.hotwaxmedia.com
 +919826035576



 Divesh Dutta wrote:

 Hello Users,

 I have introduced  new section in Practice application of OFBiz , which is
 all about How to write Ajax request.  By following this  a newbie can
 learn  writing ajax request and enabling client side validation by using
 prototype library.

 All above stuffs  are available in newly introduced part-6 of practice
 application in following link:
 http://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide

 I would like to thanks Arun Patidar for support and Rishi Solanki for idea
 of introducing this section.

 Thanks
 --
 Divesh Dutta.




integration of JBoss and JBPM with OFBiz

2010-03-08 Thread thiru_k

 Hi.. this is kiran. I am a newbie to OFBiz. i have succesfully installed
Jbpm-jpdl suite. But can i integrate it with OFBiz?

also I also tried other methods as  given in following link

http://www.mail-archive.com/user@ofbiz.apache.org/msg21857.html

http://mail-archives.apache.org/mod_mbox/ofbiz-user/200906.mbox/%3cof3a44c85d.da4d3118-on652575cc.0024c83d-652575cc.0024e...@lntinfotech.com%3e

i didnt get any success..

 So I need some help...
thanks in advance..
-- 
View this message in context: 
http://n4.nabble.com/integration-of-JBoss-and-JBPM-with-OFBiz-tp1584445p1584445.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


workflow automation in OFBiz

2010-03-08 Thread thiru_k

 Hi.. this is kiran. I am a newbie to OFBiz. I want to know more about
workflow automation in OFBiz. I am using Enhydra JaWE as a xpdl editor. Can
i get any tutorials for workflow automation in OFBiz? 
-- 
View this message in context: 
http://n4.nabble.com/workflow-automation-in-OFBiz-tp1584438p1584438.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Problem with Autocomplete in ofbiz?

2010-03-08 Thread Vasu .T

Hai,Rishi 
Thanks for reply.

No,just i opened that screen for the fist time after installing ofbiz and
typed letter 'a' and i could not see any autocomplete ouput because when i
typed letter 'a' in partyid field i got some autocomplete output. 
Am i wrong in typing letter 'a' in userloginid and customer to see
autocomplete ouput.
If i am what should i need to do to get autocomplete output.

Please some steps...
-- 
View this message in context: 
http://n4.nabble.com/Problem-with-Autocomplete-in-ofbiz-tp1583635p1584213.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Calling Ofbiz SOAP service

2010-03-08 Thread Len
I am using the following client XML to call the getOrderStatus service as a
SOAP service.  The Ofbiz getOrderStatus service takes in a string ordered
param and returns a string statusId.

The response packet contains only a '\r\n' in the body;

Does anyone have any experience on the calling client side? 

 

soapenv:Envelope
xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/
http://schemas.xmlsoap.org/soap/envelope/; xmlns:ser=
http://ecomstaging.purityapps.com/webtools/control/SOAPService/ 
http://localhost/webtools/control/SOAPService/
http://localhost/webtools/control/SOAPService/%22 
  soapenv:Header/
  soapenv:Body
 ser:getOrderStatus
map-Map
   map-Entry
  map-Key
std-String value=orderId/
  /map-Key
  map-Value
std-String value=1234/
  /map-Value
   /map-Entry
/map-Map
 /ser:getOrderStatus
  /soapenv:Body
/soapenv:Envelope

 

 

Thank You 

 

Len Shein 

 

 mailto:lsh...@salmonllc.com lsh...@salmonllc.com

 mailto:lsh...@verizon.net lsh...@verizon.net

 

Office:  516.742.7888 ext. 225

Office:  732.333.4303

 

 



exporting services with REST - part 1

2010-03-08 Thread chris snow
I have put some instructions at
http://cwiki.apache.org/confluence/x/rQPifor manually exporting
services with REST.

More to follow...


Re: exporting services with REST - part 1

2010-03-08 Thread Adrian Crum

That link doesn't work.


chris snow wrote:

I have put some instructions at
http://cwiki.apache.org/confluence/x/rQPifor manually exporting
services with REST.

More to follow...



Re: exporting services with REST - part 1

2010-03-08 Thread Scott Gray
He missed a space:
 http://cwiki.apache.org/confluence/x/rQPi for ...

Regards
Scott

On 8/03/2010, at 3:57 PM, Adrian Crum wrote:

 That link doesn't work.
 
 
 chris snow wrote:
 I have put some instructions at
 http://cwiki.apache.org/confluence/x/rQPifor manually exporting
 services with REST.
 More to follow...



smime.p7s
Description: S/MIME cryptographic signature


Re: integration of JBoss and JBPM with OFBiz

2010-03-08 Thread Shi Jinghai
We'll move this integration and htmlreport component to langhua.org in
this week. I'll send a message to you when completed.

Regards,

Shi Jinghai/Beijing Langhua Ltd.


在 2010-03-08一的 04:49 -0800,thiru_k写道:
 Hi.. this is kiran. I am a newbie to OFBiz. i have succesfully installed
 Jbpm-jpdl suite. But can i integrate it with OFBiz?
 
 also I also tried other methods as  given in following link
 
 http://www.mail-archive.com/user@ofbiz.apache.org/msg21857.html
 
 http://mail-archives.apache.org/mod_mbox/ofbiz-user/200906.mbox/%3cof3a44c85d.da4d3118-on652575cc.0024c83d-652575cc.0024e...@lntinfotech.com%3e
 
 i didnt get any success..
 
  So I need some help...
 thanks in advance..



Re: Ecommerce Bug?

2010-03-08 Thread Scott Gray
+1

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 8/03/2010, at 2:51 AM, Bilgin Ibryam wrote:

 I see that the default datetime_format for FTLs is set to -MM-dd 
 HH:mm:ss.SSS but the default date_format is not set. In that case date 
 objects gets formatted according to the user locale.
 I think (for now) we agreed on having -MM-dd as the default date format 
 no matter what is the locale? If this is true, I propose to set -MM-dd as 
 default date_format for FTLs.
 
 Bilgin
 Hi Koon,
 
 Yes this certainly does sound like a bug, it would be great if you could 
 file a jira issue.
 
 Thanks
 Scott
 
 HotWax Media
 http://www.hotwaxmedia.com
 
 On 7/03/2010, at 8:30 PM, Koon Sang wrote:
 
  
 After login to Ecommerce, go to Profile and update Personal Information. 
 Enter a valid date for Birth Date and Passport Expire Date (format:
 -mm-dd).  Click Save.  Once back to the main screen, click on Update
 again to update the Personal Information.  You will see that the two dates
 are displayed in wrong date formats, e.g. Aug 25, 1972.  So, the date is
 formatted wrongly somewhere.
 
 
 -- 
 View this message in context: 
 http://n4.nabble.com/Ecommerce-Bug-tp1584077p1584077.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.

 
  
 



smime.p7s
Description: S/MIME cryptographic signature


Define view-entity with SQL statement.

2010-03-08 Thread Chatree Srichart
Is it possible if I need to define view-entity with SQL statement because I
need to use NESTED SELECT statement?


groovy code completion

2010-03-08 Thread zhiyongcui

Why my groovy code completion is disabled in ofbiz project?
The IDE I used is eclipse 3.5.
-- 
View this message in context: 
http://n4.nabble.com/groovy-code-completion-tp1585483p1585483.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Define view-entity with SQL statement.

2010-03-08 Thread Hans Bakker
View entities are not created in the database. They are used for the sql
queries generated by OFBiz using the OFBiz view definition.

Dynamic views could be an answer here. An example you can find in the
ProductSearch.java file and search for 'DynamicViewEntity'

Regards,
Hans

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

On Tue, 2010-03-09 at 09:43 +0700, Chatree Srichart wrote:
 Is it possible if I need to define view-entity with SQL statement because I
 need to use NESTED SELECT statement?




Re: Define view-entity with SQL statement.

2010-03-08 Thread Hans Bakker
Please do not post in both mailing lists. I have answered your question
in the user mailing list.

On Tue, 2010-03-09 at 09:43 +0700, Chatree Srichart wrote:
 Is it possible if I need to define view-entity with SQL statement because I
 need to use NESTED SELECT statement?
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates



Re: Define view-entity with SQL statement.

2010-03-08 Thread Scott Gray
It should be possible to construct the same view with a static view entity 
definition as it is with a DynamicViewEntity, the only difference between the 
two is the dynamic nature of the latter i.e. you can construct the view at 
runtime to only query the data you actually need.

Regards
Scott

On 8/03/2010, at 7:56 PM, Hans Bakker wrote:

 View entities are not created in the database. They are used for the sql
 queries generated by OFBiz using the OFBiz view definition.
 
 Dynamic views could be an answer here. An example you can find in the
 ProductSearch.java file and search for 'DynamicViewEntity'
 
 Regards,
 Hans
 
 -- 
 Antwebsystems.com: Quality OFBiz services for competitive rates
 
 On Tue, 2010-03-09 at 09:43 +0700, Chatree Srichart wrote:
 Is it possible if I need to define view-entity with SQL statement because I
 need to use NESTED SELECT statement?
 
 



smime.p7s
Description: S/MIME cryptographic signature


context does not preserve variable when invoked from GroovyUtil.runScriptAtLocation

2010-03-08 Thread Patrick
Please help, I'm super stuck.

In the file EmailServices.java:
The function sendMailFromScreen has an orderId in bodyParameters.
Context is passed to runScriptAtLocation in GroovyUtil.java.  The
orderId is available here.  :)
The function runScriptAtLocation calls this groovy file, MiniReorderProds.groovy
MiniReorderProds.groovy doesn't have the orderId in the context.  :(

I got the impression that this line preserved the context
InvokerHelper.createScript(scriptClass, getBinding(context)).run();
//in file GroovyUtil.java
But it doesn't seem to.  Thanks in advance.
Patrick


Re: Problem with Autocomplete in ofbiz?

2010-03-08 Thread Rishi Solanki
Hi Vasu,
Here I'm giving an example of autocompleter using ftl. Refer the
geoAutoCompleter.js here you can see the 2 functions as follows ;
getCountryList() and callCountryAutocompleter(transport).
Here are pre-requested things which needs to be get when you want
autocompleter on a field. For example on country the field on which you want
autocompleter is shipToCountryGeo, the value which pass when form is submit
is shipToCountryGeoId, the div in which the autocomplete list show on typing
a letter is shipToCountries.
For the all above we get the list from a service which we get in the
getCountryList function and then prepare it to pass into the AutoCompleter
constructor. For now you can ignore the afterUpdateElement.
Note: For all these needs to be done we need to include the prototype.js and
controls.js in our screen.

Rishi Solanki
Enterprise Software Developer
HotWax Media Pvt. Ltd.


On Mon, Mar 8, 2010 at 2:12 PM, Vasu .T vasut...@yahoo.co.in wrote:


 Hai,Rishi
 Thanks for reply.

 No,just i opened that screen for the fist time after installing ofbiz and
 typed letter 'a' and i could not see any autocomplete ouput because when i
 typed letter 'a' in partyid field i got some autocomplete output.
 Am i wrong in typing letter 'a' in userloginid and customer to see
 autocomplete ouput.
 If i am what should i need to do to get autocomplete output.

 Please some steps...
 --
 View this message in context:
 http://n4.nabble.com/Problem-with-Autocomplete-in-ofbiz-tp1583635p1584213.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: context does not preserve variable when invoked from GroovyUtil.runScriptAtLocation

2010-03-08 Thread Scott Gray
Hi Patrick,

Just a blind guess but have you tried getting the orderId from within 
bodyParameters?
i.e. orderId = bodyParameters.orderId
Sorry if that is exactly what you are doing.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 8/03/2010, at 9:28 PM, Patrick wrote:

 Please help, I'm super stuck.
 
 In the file EmailServices.java:
 The function sendMailFromScreen has an orderId in bodyParameters.
 Context is passed to runScriptAtLocation in GroovyUtil.java.  The
 orderId is available here.  :)
 The function runScriptAtLocation calls this groovy file, 
 MiniReorderProds.groovy
 MiniReorderProds.groovy doesn't have the orderId in the context.  :(
 
 I got the impression that this line preserved the context
 InvokerHelper.createScript(scriptClass, getBinding(context)).run();
 //in file GroovyUtil.java
 But it doesn't seem to.  Thanks in advance.
 Patrick



smime.p7s
Description: S/MIME cryptographic signature


Set profile default error

2010-03-08 Thread Suresh Yellamaraju
Hi

When I try to save the default shipment method in the profile of the
ecommerce app, I get the below error. 9.04 release. I am logged in as the
user of that party. After snooping around I noticed that the party id is
probably not getting passed to this service setPartyProfileDefaults and as a
result is throwing up this error. Something I am missing or is this a known
issue?

Suresh

Security Error: you do not have permission to perform
setPartyProfileDefaults for this party.


Demo server

2010-03-08 Thread Jacques Le Roux

Hi,

I have just updated and rebooted the demo server

Jacques



Re: integration of JBoss and JBPM with OFBiz

2010-03-08 Thread chris snow

Hi Shi - I look forward to this!

Do you have drools integration too?  I have done some integration with
drools, but it was a bit of a hack due to time constraints.

Cheers,

Chris
-- 
View this message in context: 
http://n4.nabble.com/integration-of-JBoss-and-JBPM-with-OFBiz-tp1584445p1585547.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


How To Change Security Redirect URL in OFBiz Shopping Cart?

2010-03-08 Thread BrettS

Hi,

I want to change URL that security will redirect to when a user is not
logged in.

For example, if you hit the Check out link in the ecommerce shopping cart
before logging in, OFBiz will redirect you to the checkLogin URL. I
presume this is because of the setting security https=true
auth=true/ in the checkoutoptions mapping in controller.xml. Can
someone tell me how to change this destination checkLogin URL to something
else please? Details as follows. 

I am creating an customized shopping cart for a particular set of users.
This shopping cart is a stripped down version of the standard cart and runs
in parallel with the standard cart. I have built this customized cart by
copying and modifying existing widgets and FTL files from the standard cart.
For example, I created this modified version of checkLogin that looks very
similar to the original:

request-map uri=mcheckLogin edit=false
descriptionVerify a mymain user is logged in./description
security https=true auth=false/
event type=java path=org.ofbiz.securityext.login.LoginEvents
invoke=storeCheckLogin/
response name=success type=view value=mymain/
response name=error type=view value=mlogin/
/request-map

I also created this modified version of checkoutoptions.

request-map uri=mcheckoutoptions
security https=true auth=true/
event type=java path=org.ofbiz.order.shoppingcart.CheckOutEvents
invoke=setCheckOutPages/
response name=shippingaddress type=view
value=mcheckoutshippingaddress/
response name=shippingoptions type=request
value=msetOrderCurrencyAgreementShipDates/
response name=payment type=request value=setPoNumber/
response name=confirm type=request value=calcShipping/
response name=success type=view value=mcheckoutshippingaddress/
response name=error type=request value=mcheckouterror/
/request-map

If the user is logged in, OFBiz will display shipping page. However if the
user is not logged in, OFBiz will redirect them to the standard checkLogin
URL which I don't want. I want OFBiz to go to my custom mcheckLogin
instead. Furthermore, if a user goes to the standard checkoutoptions URL,
I still want OFBiz to load the standard login page.

Any suggestions?

Thank you.

Regards Brett S
-- 
View this message in context: 
http://n4.nabble.com/How-To-Change-Security-Redirect-URL-in-OFBiz-Shopping-Cart-tp1585631p1585631.html
Sent from the OFBiz - User mailing list archive at Nabble.com.