Re: Purchase Order Supplier Address

2009-11-05 Thread Pal Infocom Technologies


Hello James,

If you are raising a purchase order then you have to give the warehouse
address where you will be receiving the purchase order's  products through
Facility Manager by clicking at Facility Manager-> Select your facility.
Then through ContactMechs tabs, you have to add the address and set the
Contact Purposes as Shipping Destination Address, so that this address will
remain for orders only, other addresses you can set through Party Manager
Module.

Just try this, may this can resolve your issue

Thanks

Preeti Verma

Business Analyst & Configurator – OFBiz Projects
Pal InfoCom Technologies Pvt. Ltd.,
Marketing office: Portland (USA)
Development lab: E-51, Ground Floor,
Phase 8, Ind Area
Mohali (India)
Phone +91-172-461-8033 (O)
Skype - preeti.palinfocom
www.PalInfoCom.net 



James McGill-5 wrote:
> 
> Purchase Order PDF's only print the supplier address if there is a
> "GENERAL_LOCATION" contact mech in the party.
> 
> But looking at
> applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy
> it appears that many different postal address purposes should be used, but
> they don't end up
> in the output when the ftl is rendered at orderReportContactMechs.fo.ftl
> 
> The other thing that has me confused is the fact that this contact mech
> would be coming from the Party
> and not from the Order, which seems to mean that if you change a
> supplier's
> address at some point and
> then reference an order later, the address will change in the order.   Why
> isn't the contact mech stored with
> the Order?
> 
> Actually, it looks like the Order FTL will do both, it will go to the
> Party
> and get a current postal address, and then
> it should go to the Order and get OrderContactMechValueMaps and print
> those
> also, but I can't see how those
> will be set for a Purchase Order, so they are always empty.
> 
> Two separate concerns here:  1.  Why do "GENERAL_LOCATION" postal
> addresses
> get printed but  "BILLING_LOCATION" postal addresses don't?
> and
> 2.  How do Purchase Order contact mechs get assigned to the Order so that
> OrderContactMechValueMaps will be populated?
> 
> 
> -- 
> James McGill
> Phoenix AZ
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Purchase-Order-Supplier-Address-tp526885p547681.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: ApacheCon 2009

2009-11-05 Thread Tim Ruppert
Yeah seriously David - sorry to hear that something has come up.   
Normally I'd be more than happy to lead the roundtable (that's  
something I quite enjoy), but I've already left Oakland to get things  
handled up here and won't even be able to hear most of the speeches.


Good luck to everyone there and sorry that I missed most of you -  
looking forward to the next one.


Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Nov 5, 2009, at 1:54 PM, Brett Palmer wrote:

David, sorry to hear that you're not coming.  I arrived yesterday  
but I've
been busy putting out production fires today.  I should be ready for  
my

presentation tomorrow.


Brett

On Thu, Nov 5, 2009 at 1:27 PM, David E Jones  wrote:



It's great that there are a few OFBiz people there!

I was planning on coming in this evening, but I've run into a  
snag... and

it's bad enough that I don't think I'm going to make it for tomorrow.

Is anyone interested in speaking in the morning in my time slot?

Also, would someone be willing to lead the roundtable in my place?  
The idea
was fairly informal anyway, so anyone who is comfortable with  
starting the
sessions and having a few questions/topics prepared to keep the  
conversation
going is welcome to do so. For this session there have been some  
great
topics to discuss that have come up on the mailing lists recently,  
like
making things easier OOTB for end-users and areas/efforts to focus  
on in the

near future, plus of course the always popular guessing what will be
contributed next based on what different people need and/or want to  
build.


-David



On Nov 4, 2009, at 4:16 PM, Tim Ruppert wrote:

I had a Bruno Souza sighting today - looking forward to seeing more  
of you
here when you arrive.  Ruth, David, I'm sure you are coming since  
you're

speaking - when will you arrive?

Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Nov 4, 2009, at 8:47 AM, Tim Ruppert wrote:

If there's anyone here in Oakland for ApacheCon US 2009, please  
stop by
the HotWax Media booth.  Last year was so swamped OFBiz people -  
it was a
bit of a bummer not to see all of those familiar faces at the  
committers get

together last night.

Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595










smime.p7s
Description: S/MIME cryptographic signature


RE: Take long time to login Ofbiz

2009-11-05 Thread Jack Liu
Thank you all.
I've found the reason caused by AD.

-Original Message-
From: Jack Liu [mailto:jack@aicent.com] 
Sent: 2009年11月6日 11:11
To: user@ofbiz.apache.org
Subject: RE: Take long time to login Ofbiz

I didn't change any default configuration.
In Ofbiz.log:

2009-11-06 10:16:41,803 (http-0.0.0.0-8091-4) [ TransactionUtil.java:346:WARN ] 
No transaction in place, so not suspending.
2009-11-06 10:20:29,547 (http-0.0.0.0-8091-4) [ RequestHandler.java:425:WARN ] 
Found special _PREVIOUS_REQUEST_ of [/logout], setting to null to avoid 
problems, not running request again


-Original Message-
From: Scott Gray [mailto:scott.g...@hotwaxmedia.com] 
Sent: 2009年11月6日 10:46
To: user@ofbiz.apache.org
Subject: Re: Take long time to login Ofbiz

That looks like FreeMarker debugging information, I would suggest  
turning down whatever logging configuration you have changed because  
it doesn't do this OOTB.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 6/11/2009, at 3:32 PM, Jack Liu wrote:

> I paste the log as below.
>
>
>
>
>
> 2009-11-06 10:16:41,838 (http-0.0.0.0-8091-4)  
> [ Log4JLoggerFactory.java:81 :DEBUG] Key 'titleProperty' was not  
> found on instance of javolution.util.FastMap. Introspection  
> information for the class is: {hashCode=public int  
> javolution.util.FastMap.hashCode(),  
> valuecomparator=java.beans.propertydescrip...@56848ce2,  
> getClass=public final native java.lang.Class  
> java.lang.Object.getClass(), isShared=public boolean  
> javolution.util.FastMap.isShared(), setKeyComparator=public  
> javolution.util.FastMap  
> javolution 
> .util.FastMap.setKeyComparator(javolution.util.FastComparator),  
> printStatistics=public void  
> javolution.util.FastMap.printStatistics(java.io.PrintStream),  
> get=public final java.lang.Object  
> javolution.util.FastMap.get(java.lang.Object), values=public final  
> java.util.Collection javolution.util.FastMap.values(),  
> keycomparator=java.beans.propertydescrip...@87d56f44,  
> toString=public final java.lang.String  
> javolution.util.FastMap.toString(), reset=public void  
> javolution.util.FastMap.reset(), newInstance=public static  
> javolution.util.FastMap javolution.util.FastMap.newInstance(),  
> java.lang.obj...@44a013={public javolution.util.FastMap  
> javolution 
> .util.FastMap.setShared(boolean)=[Ljava.lang.Class;@163c5bb, public  
> final java.lang.Object  
> javolution 
> .util.FastMap.remove(java.lang.Object)=[Ljava.lang.Class;@14a8f44,  
> public final java.util.Collection  
> javolution.util.FastMap.values()=[Ljava.lang.Class;@3f377, public  
> javolution.util.FastMap
>
>
> 
>
> From: Jack Liu [mailto:jack@aicent.com]
> Sent: 2009年11月6日 10:29
> To: user@ofbiz.apache.org
> Subject: Take long time to login Ofbiz
>
>
>
> Hi, All
>
> Sometimes it takes long time (about 5 minutes) to login Ofbiz when I  
> input correct username and password.
>
> Please help analyze the log attached and find out the reason, thank  
> you in advance.
>
>
>
>
>
>
>
>
>
>
>
> Best wishes,
>
> Jack
>



RE: Take long time to login Ofbiz

2009-11-05 Thread Jack Liu
I didn't change any default configuration.
In Ofbiz.log:

2009-11-06 10:16:41,803 (http-0.0.0.0-8091-4) [ TransactionUtil.java:346:WARN ] 
No transaction in place, so not suspending.
2009-11-06 10:20:29,547 (http-0.0.0.0-8091-4) [ RequestHandler.java:425:WARN ] 
Found special _PREVIOUS_REQUEST_ of [/logout], setting to null to avoid 
problems, not running request again


-Original Message-
From: Scott Gray [mailto:scott.g...@hotwaxmedia.com] 
Sent: 2009年11月6日 10:46
To: user@ofbiz.apache.org
Subject: Re: Take long time to login Ofbiz

That looks like FreeMarker debugging information, I would suggest  
turning down whatever logging configuration you have changed because  
it doesn't do this OOTB.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 6/11/2009, at 3:32 PM, Jack Liu wrote:

> I paste the log as below.
>
>
>
>
>
> 2009-11-06 10:16:41,838 (http-0.0.0.0-8091-4)  
> [ Log4JLoggerFactory.java:81 :DEBUG] Key 'titleProperty' was not  
> found on instance of javolution.util.FastMap. Introspection  
> information for the class is: {hashCode=public int  
> javolution.util.FastMap.hashCode(),  
> valuecomparator=java.beans.propertydescrip...@56848ce2,  
> getClass=public final native java.lang.Class  
> java.lang.Object.getClass(), isShared=public boolean  
> javolution.util.FastMap.isShared(), setKeyComparator=public  
> javolution.util.FastMap  
> javolution 
> .util.FastMap.setKeyComparator(javolution.util.FastComparator),  
> printStatistics=public void  
> javolution.util.FastMap.printStatistics(java.io.PrintStream),  
> get=public final java.lang.Object  
> javolution.util.FastMap.get(java.lang.Object), values=public final  
> java.util.Collection javolution.util.FastMap.values(),  
> keycomparator=java.beans.propertydescrip...@87d56f44,  
> toString=public final java.lang.String  
> javolution.util.FastMap.toString(), reset=public void  
> javolution.util.FastMap.reset(), newInstance=public static  
> javolution.util.FastMap javolution.util.FastMap.newInstance(),  
> java.lang.obj...@44a013={public javolution.util.FastMap  
> javolution 
> .util.FastMap.setShared(boolean)=[Ljava.lang.Class;@163c5bb, public  
> final java.lang.Object  
> javolution 
> .util.FastMap.remove(java.lang.Object)=[Ljava.lang.Class;@14a8f44,  
> public final java.util.Collection  
> javolution.util.FastMap.values()=[Ljava.lang.Class;@3f377, public  
> javolution.util.FastMap
>
>
> 
>
> From: Jack Liu [mailto:jack@aicent.com]
> Sent: 2009年11月6日 10:29
> To: user@ofbiz.apache.org
> Subject: Take long time to login Ofbiz
>
>
>
> Hi, All
>
> Sometimes it takes long time (about 5 minutes) to login Ofbiz when I  
> input correct username and password.
>
> Please help analyze the log attached and find out the reason, thank  
> you in advance.
>
>
>
>
>
>
>
>
>
>
>
> Best wishes,
>
> Jack
>



Re: Take long time to login Ofbiz

2009-11-05 Thread Scott Gray
That looks like FreeMarker debugging information, I would suggest  
turning down whatever logging configuration you have changed because  
it doesn't do this OOTB.


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 6/11/2009, at 3:32 PM, Jack Liu wrote:


I paste the log as below.





2009-11-06 10:16:41,838 (http-0.0.0.0-8091-4)  
[ Log4JLoggerFactory.java:81 :DEBUG] Key 'titleProperty' was not  
found on instance of javolution.util.FastMap. Introspection  
information for the class is: {hashCode=public int  
javolution.util.FastMap.hashCode(),  
valuecomparator=java.beans.propertydescrip...@56848ce2,  
getClass=public final native java.lang.Class  
java.lang.Object.getClass(), isShared=public boolean  
javolution.util.FastMap.isShared(), setKeyComparator=public  
javolution.util.FastMap  
javolution 
.util.FastMap.setKeyComparator(javolution.util.FastComparator),  
printStatistics=public void  
javolution.util.FastMap.printStatistics(java.io.PrintStream),  
get=public final java.lang.Object  
javolution.util.FastMap.get(java.lang.Object), values=public final  
java.util.Collection javolution.util.FastMap.values(),  
keycomparator=java.beans.propertydescrip...@87d56f44,  
toString=public final java.lang.String  
javolution.util.FastMap.toString(), reset=public void  
javolution.util.FastMap.reset(), newInstance=public static  
javolution.util.FastMap javolution.util.FastMap.newInstance(),  
java.lang.obj...@44a013={public javolution.util.FastMap  
javolution 
.util.FastMap.setShared(boolean)=[Ljava.lang.Class;@163c5bb, public  
final java.lang.Object  
javolution 
.util.FastMap.remove(java.lang.Object)=[Ljava.lang.Class;@14a8f44,  
public final java.util.Collection  
javolution.util.FastMap.values()=[Ljava.lang.Class;@3f377, public  
javolution.util.FastMap





From: Jack Liu [mailto:jack@aicent.com]
Sent: 2009年11月6日 10:29
To: user@ofbiz.apache.org
Subject: Take long time to login Ofbiz



Hi, All

Sometimes it takes long time (about 5 minutes) to login Ofbiz when I  
input correct username and password.


Please help analyze the log attached and find out the reason, thank  
you in advance.












Best wishes,

Jack





smime.p7s
Description: S/MIME cryptographic signature


Re: enctype="multipart/form-data" and POST method

2009-11-05 Thread Scott Gray
multipart/form-data is handled differently from regular forms, if you  
are triggering a service event on form submission then the parameters  
from this type of form can be retrieved using:

${parameters.multiPartMap.USER_FIRST_NAME}

If you aren't using a service event first then you'll have to handle  
it manually using ServiceEventHandler.java code as an example.


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 6/11/2009, at 3:09 PM, S.Hage wrote:



Hi All,

I have a very big FORM (.ftl) with many inputs, among them I have one
" for uploading an image file, for this reason I  
set the
enctype of the form to "multipart/form-data". The values of the  
inputs look

like this:



 
  ${uiLabelMap.PartyFirstName}
  
 value="${requestParameters.USER_FIRST_NAME}"
  
  />${uiLabelMap.CommonRequired}
  
 
…..
ETC..

The problem is when  enctype equal to "multipart/form-data" the <#if
requestParameters.USER_FIRST_NAME?has_content> return null even if
requestParameters.USER_FIRST_NAME has content. If I remove the  
enctype then

everything is Ok and the values take the value of
requestParameters.USER_FIRST_NAME.

I believe that the problem is directly related to the
enctype="multipart/form-data" but I don’t know how I can get rid  
from this

situation.

Any explanation?

Thanks in advance.

S.Hage

--
View this message in context: 
http://n4.nabble.com/enctype-multipart-form-data-and-POST-method-tp547633p547633.html
Sent from the OFBiz - User mailing list archive at Nabble.com.




smime.p7s
Description: S/MIME cryptographic signature


Take long time to login Ofbiz

2009-11-05 Thread Jack Liu
Hi, All

Sometimes it takes long time (about 5 minutes) to login Ofbiz when I
input correct username and password. 

Please help analyze the log attached and find out the reason, thank you
in advance.

 

 

 

 

 

Best wishes,

Jack



enctype="multipart/form-data" and POST method

2009-11-05 Thread S.Hage

Hi All, 

I have a very big FORM (.ftl) with many inputs, among them I have one
" for uploading an image file, for this reason I set the
enctype of the form to "multipart/form-data". The values of the inputs look
like this: 


 
   
   ${uiLabelMap.PartyFirstName} 

  value="${requestParameters.USER_FIRST_NAME}" 
  
   />${uiLabelMap.CommonRequired}

   
….. 
ETC.. 

The problem is when  enctype equal to "multipart/form-data" the <#if
requestParameters.USER_FIRST_NAME?has_content> return null even if
requestParameters.USER_FIRST_NAME has content. If I remove the enctype then
everything is Ok and the values take the value of
requestParameters.USER_FIRST_NAME. 

I believe that the problem is directly related to the
enctype="multipart/form-data" but I don’t know how I can get rid from this
situation. 

Any explanation? 

Thanks in advance. 

S.Hage 

-- 
View this message in context: 
http://n4.nabble.com/enctype-multipart-form-data-and-POST-method-tp547633p547633.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: adding record to table - from practice app

2009-11-05 Thread Pranay Pandey

Hi Swati,

Reading of "The Data Model Resource Book, Revised Edition, Volumes 1 & 2" The first book from http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Related+Books 
 will be a big help for sure.

Additional data prepared here is for demonstration.

Thanks & Regards
--
Pranay Pandey
HotWax Media | www.hotwaxmedia.com

On Nov 6, 2009, at 3:25 AM, swathi wrote:



In my build.xml which I copied from /applications/party/build.xml, I  
replaced

  with  

did run-install and restarted ofbiz. It added a record for me. But  
Iam not
sure in the practice app, why the author created records for other  
tables .

I dont know if that is necessary or they are created as examples..

swathi wrote:


Hi

Iam trying to create a new record in Person table from my practice
application in hot-deploy. The entity, Person is defined in entity- 
model

of Party in applications component. Do i have to make an entry of
 in my ofbiz-component.xml.

I entered:
 in my ofbiz-component.xml

and my hot-deploy/practice/data/PracticeData.xml contains:











(with reference to beginners practice application)

I did:

ant-clean
run ant.bat
run-install
startofbiz from cmd prompt.

The record is not added in the table.. Can someone please help me  
as to

what has to be done more..

Thankyou.



--
View this message in context: 
http://n4.nabble.com/adding-record-to-table-from-practice-app-tp510160p532777.html
Sent from the OFBiz - User mailing list archive at Nabble.com.




Re: compile java event.

2009-11-05 Thread S.Hage

look in the file runtime\logs\error.log.

You can also add System.out.println("") in your java code 'to trace it' and 
look in runtime\logs\ofbiz.log.

S.H.  

__
Saad Hage
saad.h...@hotmail.com


From: swathi [via OFBiz] 
Sent: Thursday, November 05, 2009 4:49 PM
To: S.Hage 
Subject: Re: compile java event.


Yes I had to change the properties in build.xml according to my application and 
In eclipse I added my src folder to JavaBuildPath. I got the build dir  created 
with classes folder and lib folder with .class files and.jar file respectively. 
But my event doesnt work as I want it to. where do I see if I have any errors. 

Thankyou 


  S.Hage wrote:
  I thing you should change thoses in build.xml: 

   
   
   




swathi wrote:
Iam working on my own application in hot-deploy 



  James McGill-5 wrote:
  On Wed, Nov 4, 2009 at 2:38 PM, swathi  wrote: 

  > 
  > Hi 
  > Can someone please tell me How do I compile a java event. I copied 
  > build.xml 
  > from example application. Just by doing ant at cmd prmt doesnt create a 
  > build dir with jars   in my component. 
  > In which dir does it create the build dir? 
  > 

  Make sure your component is loaddd in component-load.xml, and your 
  component's build.xml is included in the filelist in the parent 
build.xml. 
  Are you working in specialpurpose/yourapp? 

  -- 
  James McGill 
  Phoenix AZ 





View message @ http://n4.nabble.com/compile-java-event-tp439486p532067.html 
To unsubscribe from Re: compile java event., click here. 

-- 
View this message in context: 
http://n4.nabble.com/compile-java-event-tp439486p544603.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: adding record to table - from practice app

2009-11-05 Thread swathi

In my build.xml which I copied from /applications/party/build.xml, I replaced 
  with  

did run-install and restarted ofbiz. It added a record for me. But Iam not
sure in the practice app, why the author created records for other tables .
I dont know if that is necessary or they are created as examples..

swathi wrote:
> 
> Hi
> 
> Iam trying to create a new record in Person table from my practice
> application in hot-deploy. The entity, Person is defined in entity-model
> of Party in applications component. Do i have to make an entry of
>  location="entitydef/entitymodel.xml"/> in my ofbiz-component.xml.
> 
> I entered:
>  location="data/PracticeData.xml"/> in my ofbiz-component.xml
> 
> and my hot-deploy/practice/data/PracticeData.xml contains:
> 
> 
> 
>   
>   
>   
>infoString="practice.per...@gmail.com"/>
>fromDate="2009-11-05 00:00:00.000" allowSolicitation="Y"/>
>contactMechPurposeTypeId="PRIMARY_EMAIL" fromDate="2009-11-05
> 00:00:00.000"/>
> 
> 
> (with reference to beginners practice application)
> 
> I did:
> 
> ant-clean
> run ant.bat
> run-install
> startofbiz from cmd prompt. 
> 
> The record is not added in the table.. Can someone please help me as to
> what has to be done more..
> 
> Thankyou.
> 

-- 
View this message in context: 
http://n4.nabble.com/adding-record-to-table-from-practice-app-tp510160p532777.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Adrian Crum

Yes.

-Adrian

Stephen Rufle wrote:

Are the expand/collapse links you are talking about the ones on?
https://demo.ofbiz.org/catalog/control/EditProduct?productId=WG-9943

Adrian Crum wrote:
You will have to pass all localized text to the JavaScript function. 
For an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a 
show/hide of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i < errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join("");
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of "The Following Errors 
Occurred:" with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I 
realize its on the server side of things and I want the value in the 
client side javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters








Re: compile java event.

2009-11-05 Thread swathi

Yes I had to change the properties in build.xml according to my application
and In eclipse I added my src folder to JavaBuildPath. I got the build dir 
created with classes folder and lib folder with .class files and.jar file
respectively. But my event doesnt work as I want it to. where do I see if I
have any errors.

Thankyou


S.Hage wrote:
> 
> I thing you should change thoses in build.xml:
> 
>   
>   
>   
> 
> 
> 
> 
> swathi wrote:
>> 
>> Iam working on my own application in hot-deploy
>> 
>> 
>> 
>> James McGill-5 wrote:
>>> 
>>> On Wed, Nov 4, 2009 at 2:38 PM, swathi  wrote:
>>> 

 Hi
 Can someone please tell me How do I compile a java event. I copied
 build.xml
 from example application. Just by doing ant at cmd prmt doesnt create a
 build dir with jars   in my component.
 In which dir does it create the build dir?

>>> 
>>> Make sure your component is loaddd in component-load.xml, and your
>>> component's build.xml is included in the filelist in the parent
>>> build.xml.
>>> Are you working in specialpurpose/yourapp?
>>> 
>>> -- 
>>> James McGill
>>> Phoenix AZ
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/compile-java-event-tp439486p532067.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: ApacheCon 2009

2009-11-05 Thread Brett Palmer
David, sorry to hear that you're not coming.  I arrived yesterday but I've
been busy putting out production fires today.  I should be ready for my
presentation tomorrow.


Brett

On Thu, Nov 5, 2009 at 1:27 PM, David E Jones  wrote:

>
> It's great that there are a few OFBiz people there!
>
> I was planning on coming in this evening, but I've run into a snag... and
> it's bad enough that I don't think I'm going to make it for tomorrow.
>
> Is anyone interested in speaking in the morning in my time slot?
>
> Also, would someone be willing to lead the roundtable in my place? The idea
> was fairly informal anyway, so anyone who is comfortable with starting the
> sessions and having a few questions/topics prepared to keep the conversation
> going is welcome to do so. For this session there have been some great
> topics to discuss that have come up on the mailing lists recently, like
> making things easier OOTB for end-users and areas/efforts to focus on in the
> near future, plus of course the always popular guessing what will be
> contributed next based on what different people need and/or want to build.
>
> -David
>
>
>
> On Nov 4, 2009, at 4:16 PM, Tim Ruppert wrote:
>
>  I had a Bruno Souza sighting today - looking forward to seeing more of you
>> here when you arrive.  Ruth, David, I'm sure you are coming since you're
>> speaking - when will you arrive?
>>
>> Cheers,
>> Ruppert
>> --
>> Tim Ruppert
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>> o:801.649.6594
>> f:801.649.6595
>>
>> On Nov 4, 2009, at 8:47 AM, Tim Ruppert wrote:
>>
>>  If there's anyone here in Oakland for ApacheCon US 2009, please stop by
>>> the HotWax Media booth.  Last year was so swamped OFBiz people - it was a
>>> bit of a bummer not to see all of those familiar faces at the committers get
>>> together last night.
>>>
>>> Cheers,
>>> Ruppert
>>> --
>>> Tim Ruppert
>>> HotWax Media
>>> http://www.hotwaxmedia.com
>>>
>>> o:801.649.6594
>>> f:801.649.6595
>>>
>>>
>>
>


Purchase Order Supplier Address

2009-11-05 Thread James McGill
Purchase Order PDF's only print the supplier address if there is a
"GENERAL_LOCATION" contact mech in the party.

But looking at
applications/order/webapp/ordermgr/WEB-INF/actions/order/OrderView.groovy
it appears that many different postal address purposes should be used, but
they don't end up
in the output when the ftl is rendered at orderReportContactMechs.fo.ftl

The other thing that has me confused is the fact that this contact mech
would be coming from the Party
and not from the Order, which seems to mean that if you change a supplier's
address at some point and
then reference an order later, the address will change in the order.   Why
isn't the contact mech stored with
the Order?

Actually, it looks like the Order FTL will do both, it will go to the Party
and get a current postal address, and then
it should go to the Order and get OrderContactMechValueMaps and print those
also, but I can't see how those
will be set for a Purchase Order, so they are always empty.

Two separate concerns here:  1.  Why do "GENERAL_LOCATION" postal addresses
get printed but  "BILLING_LOCATION" postal addresses don't?
and
2.  How do Purchase Order contact mechs get assigned to the Order so that
OrderContactMechValueMaps will be populated?


-- 
James McGill
Phoenix AZ


error with stock move and reservation with quantity not available

2009-11-05 Thread mayo

I got an error when doing a stock move on a reservation that had Quantity Not
Available.  A reservation with quantity was left in the original inventory
item, but the Inventory Item had no Quantity on Hand.  I am using OFBiz 4.0,
but I did a diff of StockMoveServices.xml to the current trunk version and
it looks like a lot of the logic is the same. The specifics of the test are
below:

- Inventory Item (IIBulk) has a Quantity On Hand of 1 and Available to
Promise of -3
- Inventory Item Reservation in IIBulk had a Quantity of 4 and Quantity Not
Available of 3
- I executed a Stock Move of Quantity 1 from IIBulk to a primary location.
- A new Inventory Item was created (IIPrimary) with a Quantity On Hand of 1
and Available to Promise of -3
- A reservation was applied to IIPrimary with a Quantity of 4 and Quantity
Not Available of 3
- The reservation of IIBulk was updated to have a Quantity of 1 and Quantity
Not Available of 0
- IIBulk was update to have a Quantity On Hand of 0 and Available to Promise
of 0

Everything was done right, except the reservation of IIBulk should have been
deleted instead of left with a Quantity of 1.

I am testing a fix. I think variable "reservedQuantityLeftOver" is causing
the IIBulk reservation to be left with 1 quantity. I will update when I find
out more.
-- 
View this message in context: 
http://n4.nabble.com/error-with-stock-move-and-reservation-with-quantity-not-available-tp526427p526427.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: ApacheCon 2009

2009-11-05 Thread David E Jones


It's great that there are a few OFBiz people there!

I was planning on coming in this evening, but I've run into a snag...  
and it's bad enough that I don't think I'm going to make it for  
tomorrow.


Is anyone interested in speaking in the morning in my time slot?

Also, would someone be willing to lead the roundtable in my place? The  
idea was fairly informal anyway, so anyone who is comfortable with  
starting the sessions and having a few questions/topics prepared to  
keep the conversation going is welcome to do so. For this session  
there have been some great topics to discuss that have come up on the  
mailing lists recently, like making things easier OOTB for end-users  
and areas/efforts to focus on in the near future, plus of course the  
always popular guessing what will be contributed next based on what  
different people need and/or want to build.


-David


On Nov 4, 2009, at 4:16 PM, Tim Ruppert wrote:

I had a Bruno Souza sighting today - looking forward to seeing more  
of you here when you arrive.  Ruth, David, I'm sure you are coming  
since you're speaking - when will you arrive?


Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Nov 4, 2009, at 8:47 AM, Tim Ruppert wrote:

If there's anyone here in Oakland for ApacheCon US 2009, please  
stop by the HotWax Media booth.  Last year was so swamped OFBiz  
people - it was a bit of a bummer not to see all of those familiar  
faces at the committers get together last night.


Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595







Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Stephen Rufle

Are the expand/collapse links you are talking about the ones on?
https://demo.ofbiz.org/catalog/control/EditProduct?productId=WG-9943

Adrian Crum wrote:
You will have to pass all localized text to the JavaScript function. 
For an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a 
show/hide of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i < errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join("");
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of "The Following Errors 
Occurred:" with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I 
realize its on the server side of things and I want the value in the 
client side javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters






--
Stephen P Rufle
sru...@salmonllc.com
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle



Re: compile java event.

2009-11-05 Thread S.Hage

I thing you should change thoses in build.xml:








swathi wrote:
> 
> Iam working on my own application in hot-deploy
> 
> 
> 
> James McGill-5 wrote:
>> 
>> On Wed, Nov 4, 2009 at 2:38 PM, swathi  wrote:
>> 
>>>
>>> Hi
>>> Can someone please tell me How do I compile a java event. I copied
>>> build.xml
>>> from example application. Just by doing ant at cmd prmt doesnt create a
>>> build dir with jars   in my component.
>>> In which dir does it create the build dir?
>>>
>> 
>> Make sure your component is loaddd in component-load.xml, and your
>> component's build.xml is included in the filelist in the parent
>> build.xml.
>> Are you working in specialpurpose/yourapp?
>> 
>> -- 
>> James McGill
>> Phoenix AZ
>> 
>> 
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/compile-java-event-tp439486p521295.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Adrian Crum
You will have to pass all localized text to the JavaScript function. For 
an example, check out how the expand/collapse links are done.


-Adrian

Stephen Rufle wrote:

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a show/hide 
of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i < errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join("");
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of "The Following Errors 
Occurred:" with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I realize 
its on the server side of things and I want the value in the client side 
javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters



Getting a handle to uiLabelMap in javascript

2009-11-05 Thread Stephen Rufle

In an ftl file we can access a property/xml file value as follows
${uiLabelMap.CommonFollowingErrorsOccurred}

Is there a way to do something similar in a javascript function? In a 
separate thread Rishi pointed me to [0], but that only does a show/hide 
of a div that already has a message.


I am doing this

   function showAjaxError(data) {
   var errorMessageList = data['errorMessageList'];
   if (errorMessageList != null){
   var buffer = ['The Following Errors Occurred:'];
   for ( var i = 0; i < errorMessageList.size(); i ++){
   buffer.push(errorMessageList[i]);
   }
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv[0].innerHTML = buffer.join("");
   errorDiv.style('display', 'block');
   }
   else
   {
   var errorDiv = dojo.query('.ajaxErrorBox');
   errorDiv.style('display', 'none');
   }
   }

I wanted to replace the hard coded value of "The Following Errors 
Occurred:" with the ${uiLabelMap.CommonFollowingErrorsOccurred} from 
messages.ftl. Not sure how I could ever get that value since I realize 
its on the server side of things and I want the value in the client side 
javascript.


[0]https://demo.ofbiz.org/accounting/control/CostCenters