Typically, data queries are put in services (so they can be reused) and
then the service is called by the form's actions element.
-Adrian
su2 wrote:
Hello Friends,
I have a form - myForm.xml
I want to create following field in myForm.xml
field name=subTotal
Hi Adrian,
But I would like to have it in a java class instead of services as i need to
do lot of data manipulation which is i think not possible in services.
Adrian Crum wrote:
Typically, data queries are put in services (so they can be reused) and
then the service is called by the
Hi Su,
This is possible in java, you can find many java classes in OFBiz
where various calculation are done based on many query, for example -
ShoppingCart.java, PosTransaction.java and few are in Accounting
component.
--
Regards
Sumit Pandit
On 29-Sep-09, at 7:58 PM, su2 wrote:
Yes, I do
Following is my xhtml-decorator
***
screen name=xhtml-decorator
section
widgets
include-screen name=header/
decorator-section-include
Are you able to see OneFormScreen fields on your screen after form
submission ?
--
--
Awdesh Parihar
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Hi Awdesh,
The URI for my OneFormScreen is processFirstForm. Once I submit the form it
does go to the processFirstForm uri but screen is blank.
Thanks.
awdesh parihar wrote:
Are you able to see OneFormScreen fields on your screen after form
submission ?
--
--
Awdesh Parihar
HotWax
Just remove condition
(conditionnotif-empty field-name=parameters.submit
//not/condition
)you are putting on screen and try same process again .
--
--
Awdesh Parihar
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Hi Adwesh,
If I remove (conditionnotif-empty
field-name=parameters.submit//not/condition), on 1st screen (OneForm)
below my FirstName, LastName, Submit buttong I get following which are in
OneFormScreen but was surrounded by condition
FirstName:
lastName:
combined:
submit:
All the parameters we
Paste your form contain here .
--
Awdesh Parihar
Hi Awdesh,
my calcForms.xml
*
forms xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:noNamespaceSchemaLocation=http://www.ofbiz.org/dtds/widget-form.xsd;
form name=FirstForm type=single
Hi Shuchi,
During compiling that Java ... is there any error response?
- Charles TJ
-Original Message-
From: su2 [mailto:shu...@pexsupply.com]
Sent: 24 Juli 2009 21:30
To: user@ofbiz.apache.org
Subject: Re: Java Class
Hi Awdesh,
my calcForms.xml
Are you getting the blank screen or blank values for your labels ?
Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099
su2 wrote:
Hi Adwesh,
If I remove (conditionnotif-empty
field-name=parameters.submit//not/condition), on 1st screen
Hi Chirag,
I am getting blank screen
Thanks.
Chirag Manocha-2 wrote:
Are you getting the blank screen or blank values for your labels ?
Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099
su2 wrote:
Hi Adwesh,
If I
not sure why you added a java handler,
if you using ofbiz trunk you should have
include
location=component://common/webcommon/WEB-INF/common-controller.xml/
su2 sent the following on 7/23/2009 6:26 PM:
Hi All,
I have created a new component, it has a form widget, with FirstName,
... is there any error response?
- Charles TJ
-Original Message-
From: su2 [mailto:shu...@pexsupply.com]
Sent: 24 Juli 2009 21:30
To: user@ofbiz.apache.org
Subject: Re: Java Class
Hi Awdesh,
my calcForms.xml
TJ
-Original Message-
From: su2 [mailto:shu...@pexsupply.com]
Sent: 24 Juli 2009 21:30
To: user@ofbiz.apache.org
Subject: Re: Java Class
Hi Awdesh,
my calcForms.xml
*
forms xmlns:xsi=http://www.w3.org/2001
[mailto:shu...@pexsupply.com]
Sent: 24 Juli 2009 21:30
To: user@ofbiz.apache.org
Subject: Re: Java Class
Hi Awdesh,
my calcForms.xml
*
forms xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
I think I am able to print the error and it says
**
The Following Errors Occurred:
Error calling event: org.ofbiz.webapp.event.EventHandlerException: Error
invoking event, the class org.ofbiz.calculator.calculator.calculatorEvents
was not found
couple of things to check is that you have the calculator/lib and there
is a Jar in there that has your compile calculator.class.
that the ofbiz-component.xml has path to calculator/lib
su2 sent the following on 7/24/2009 1:21 PM:
I think I am able to print the error and it says
Do you have xhtml-decorator in your calcScreens.xml ?
Regards
--
Chirag Manocha
HotWax Media Pvt. Ltd.
Website :- www.hotwaxmedia.com
Contact :- +91-98263-19099
su2 wrote:
Hi All,
I have created a new component, it has a form widget, with FirstName,
LastName and Submit Button.
the
Did you recompile on server (I know it's may seem a dumb question, but you did not express it clearly in your mail) or copy the jar
file containing the class?
Also did you restart OFBiz ? Or are you using Tomcat as an external application
sever ?
Jacques
From: Madhuri [EMAIL PROTECTED]
Hi -
Hi Jacques - I did not compile the java class on the server. I only compiled
it on my local machine and replaced the class file on the server. Do I have
to run compile (run ant) on server ? I restarted ofbiz on server. I am not
using tomcat as external application server.
Your help is much
Madhuri,
Class file is not enough, at least the jar file containing the class file should be used. But anyway, I would recommend to stop
OFBiz on the server, run ant (in case of issue, ant clean before can help), restart OFBiz on the server.
Jacques
From: Madhuri [EMAIL PROTECTED]
Hi
you need to let the build file create the jar that the java file is in.
then replace the jar file on the server.
Madhuri sent the following on 6/6/2008 2:08 PM:
Hi Jacques - I did not compile the java class on the server. I only compiled
it on my local machine and replaced the class file on
Reading of JAR files is done with the help of following entry from
ofbiz-component.xml when server will get started.
One more thing ofbiz-component.xml file is specific to each component.
classpath type=jar location=build/lib/*/
--
Ashish
On Fri, Jun 6, 2008 at 6:16 PM, BJ Freeman [EMAIL
25 matches
Mail list logo