## jasperreports-questions

You can subscribe to this list here.

2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2015 Jan Feb (1) Mar (4) Apr (17) May (18) Jun (5) Jul (12) Aug (22) Sep (3) Oct (36) Nov (25) Dec (37) Jan (69) Feb (27) Mar (22) Apr (35) May (82) Jun (54) Jul (63) Aug (69) Sep (30) Oct (47) Nov (36) Dec (41) Jan (92) Feb (94) Mar (77) Apr (72) May (49) Jun (47) Jul (35) Aug (24) Sep (40) Oct (73) Nov (100) Dec (59) Jan (38) Feb (43) Mar (174) Apr (69) May (44) Jun (32) Jul (24) Aug (102) Sep (53) Oct (66) Nov (67) Dec (51) Jan (80) Feb (43) Mar (42) Apr (103) May (39) Jun (92) Jul (44) Aug (35) Sep (53) Oct (28) Nov (12) Dec (9) Jan (10) Feb (16) Mar (9) Apr (13) May (11) Jun (7) Jul (3) Aug (9) Sep (6) Oct (11) Nov (20) Dec (11) Jan (15) Feb (8) Mar (10) Apr (6) May (4) Jun (10) Jul (9) Aug (16) Sep (9) Oct (8) Nov (6) Dec (14) Jan (8) Feb (5) Mar (6) Apr (16) May (6) Jun (21) Jul (7) Aug (6) Sep (8) Oct (14) Nov (17) Dec (4) Jan (3) Feb (9) Mar (9) Apr (2) May Jun Jul (3) Aug Sep (1) Oct Nov (1) Dec (4) Jan (1) Feb (1) Mar Apr May (2) Jun (3) Jul Aug (2) Sep (2) Oct Nov (1) Dec Jan (1) Feb Mar (1) Apr May Jun Jul (1) Aug Sep Oct (1) Nov (2) Dec Jan (1) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
S M T W T F S

1

2
(1)
3
(1)
4

5

6
(6)
7
(3)
8
(2)
9
(8)
10
(4)
11

12

13

14
(9)
15
(3)
16

17

18

19

20
(1)
21
(1)
22
(3)
23
(2)
24
(2)
25
(5)
26

27
(2)
28
(1)
29
(2)
30
(10)
31
(3)

Showing 6 results of 6

 Re: [jasperreports-questions] conditions with variables From: Jason Essington - 2003-01-06 18:15:44 Attachments: text/enriched ```well, since the initial question was about a count, null is=20 appropriate. I think the example given was in error. FOB is usually text therefore not able to be summed, however I suppose=20= it would be possible to sum all of the "Buyer" shipping costs using the=20= same technique. \$F{FOB} =3D=3D "Buyer" ? \$F{SHIPPING} : new Integer(0) =A0=A0=A0=A0 On Monday, January 6, 2003, at 11:00 AM, Marty Phee wrote: > good point, but you might want to make that null a 0. > > On Monday 06 January 2003 11:47 am, Jason Essington wrote: >> I'm not entirely sure, but since jasper Reports expressions are just >> java expressions you could try something like. >> >> >> \$F{FOB} =3D=3D "Buyer" ? \$F{FOB} : null >> >> >> -jason >> >> On Monday, January 6, 2003, at 10:34 AM, Scott Smith wrote: >>> Is there any way to create a variable and add to that variable based >>> on a condition? In the following code I only want to add to the >>> FOBCount variable when the FOB is 'Buyer' and not when it is=20 >>> 'Seller'. >>> Any help would be greatly appreciated. >>> >>> Example: >>> >> resetGroup=3D"ClassGroup" calculation=3D"Sum"> >>> >>> \$F{FOB} when FOB is 'Buyer' >>> >>> >>> >>> Scott Smith >>> Enterprise Java Developer >>> http://www.dairy.com >>> 9400 N. Central Expressway, Suite 1350 >>> Dallas, Texas 75231 >>> Direct: (214) 360-0061 ext. 129 >>> Fax: (214) 360-0169 >>> ---------------------------------- >>> The information contained in this e-mail message is intended only = for >>> the personal and confidential use of the recipient(s) named above. = If >>> the reader of this message is not the intended recipient or an agent >>> responsible for delivering it to the intended recipient, you are >>> hereby notified that you have received this communication in error=20= >>> and >>> that any review, dissemination, distribution, or copying of this >>> message is strictly prohibited. If you have received this >>> communication in error, please notify us immediately by e-mail, and >>> delete the original message. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@... > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions > > ```
 Re: [jasperreports-questions] conditions with variables From: Teodor Danciu - 2003-01-06 18:03:06 ```Hi, I'm not sure if you are talking about a "count" variable (one that counts) or a "sum" variable (one that calculates a total) But things should not be too different. A count variable is incremented only if value returned by the expression is not null. For such a count variable, here's the XML sequence: ("Buyer".equals(\$F{FOB}))?(Boolean.TRUE):(null) For a sum variable, here's the XML sequence: ("Buyer".equals(\$F{FOB}))?(my_value_to_add):(new Integer(0)) I hope this helps. Teodor >From: Scott Smith >To: jasperreports-questions@... >Subject: [jasperreports-questions] conditions with variables >Date: Mon, 6 Jan 2003 11:34:01 -0600 > >Is there any way to create a variable and add to that variable based on a >condition? In the following code I only want to add to the FOBCount >variable >when the FOB is 'Buyer' and not when it is 'Seller'. Any help would be >greatly appreciated. > >Example: >resetGroup="ClassGroup" calculation="Sum"> > > \$F{FOB} when FOB is 'Buyer' > > > >Scott Smith >Enterprise Java Developer >http://www.dairy.com >9400 N. Central Expressway, Suite 1350 >Dallas, Texas 75231 >Direct: (214) 360-0061 ext. 129 >Fax: (214) 360-0169 >---------------------------------- >The information contained in this e-mail message is intended only for the >personal and confidential use of the recipient(s) named above. If the >reader >of this message is not the intended recipient or an agent responsible for >delivering it to the intended recipient, you are hereby notified that you >have received this communication in error and that any review, >dissemination, distribution, or copying of this message is strictly >prohibited. If you have received this communication in error, please notify >us immediately by e-mail, and delete the original message. _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ```
 Re: [jasperreports-questions] conditions with variables From: Marty Phee - 2003-01-06 17:55:30 ```good point, but you might want to make that null a 0. On Monday 06 January 2003 11:47 am, Jason Essington wrote: > I'm not entirely sure, but since jasper Reports expressions are just > java expressions you could try something like. > > > =09\$F{FOB} =3D=3D "Buyer" ? \$F{FOB} : null > > > -jason > > On Monday, January 6, 2003, at 10:34 AM, Scott Smith wrote: > > Is there any way to create a variable and add to that variable based > > on a condition? In the following code I only want to add to the > > FOBCount variable when the FOB is 'Buyer' and not when it is 'Seller'= =2E > > Any help would be greatly appreciated. > > > > Example: > > > resetGroup=3D"ClassGroup" calculation=3D"Sum"> > > > > \$F{FOB} when FOB is 'Buyer' > > > > =20 > > > > Scott Smith > > Enterprise Java Developer > > http://www.dairy.com > > 9400 N. Central Expressway, Suite 1350 > > Dallas, Texas 75231 > > Direct: (214) 360-0061 ext. 129 > > Fax: (214) 360-0169 > > ---------------------------------- > > The information contained in this e-mail message is intended only for > > the personal and confidential use of the recipient(s) named above. If > > the reader of this message is not the intended recipient or an agent > > responsible for delivering it to the intended recipient, you are > > hereby notified that you have received this communication in error an= d > > that any review, dissemination, distribution, or copying of this > > message is strictly prohibited. If you have received this > > communication in error, please notify us immediately by e-mail, and > > delete the original message. ```
 Re: [jasperreports-questions] conditions with variables From: Jason Essington - 2003-01-06 17:47:04 Attachments: text/enriched ```I'm not entirely sure, but since jasper Reports expressions are just=20 java expressions you could try something like. \$F{FOB} =3D=3D "Buyer" ? \$F{FOB} : null -jason On Monday, January 6, 2003, at 10:34 AM, Scott Smith wrote: > Is there any way to create a variable and add to that variable based=20= > on a condition? In the following code I only want to add to the=20 > FOBCount variable when the FOB is 'Buyer' and not when it is 'Seller'.=20= > Any help would be greatly appreciated. > > Example: > resetGroup=3D"ClassGroup" calculation=3D"Sum"> > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 \$F{FOB} when FOB is = 'Buyer' > =A0=A0=A0=A0=A0=A0=A0 > =A0=A0=A0=A0 > > Scott Smith > Enterprise Java Developer > http://www.dairy.com > 9400 N. Central Expressway, Suite 1350 > Dallas, Texas 75231 > Direct: (214) 360-0061 ext. 129 > Fax: (214) 360-0169 > ---------------------------------- > The information contained in this e-mail message is intended only for=20= > the personal and confidential use of the recipient(s) named above. If=20= > the reader of this message is not the intended recipient or an agent=20= > responsible for delivering it to the intended recipient, you are=20 > hereby notified that you have received this communication in error and=20= > that any review, dissemination, distribution, or copying of this=20 > message is strictly prohibited. If you have received this=20 > communication in error, please notify us immediately by e-mail, and=20 > delete the original message. > > ```
 Re: [jasperreports-questions] conditions with variables From: Marty Phee - 2003-01-06 17:46:24 ```You can use a scriptlet. On Monday 06 January 2003 11:34 am, Scott Smith wrote: > Is there any way to create a variable and add to that variable based on= a > condition? In the following code I only want to add to the FOBCount > variable when the FOB is 'Buyer' and not when it is 'Seller'. Any help > would be greatly appreciated. > > Example: > resetGroup=3D"ClassGroup" calculation=3D"Sum"> > =09 > =09=09\$F{FOB} when FOB is 'Buyer' > =09 > > > Scott Smith > Enterprise Java Developer > http://www.dairy.com > 9400 N. Central Expressway, Suite 1350 > Dallas, Texas 75231 > Direct: (214) 360-0061 ext. 129 > Fax: (214) 360-0169 > ---------------------------------- > The information contained in this e-mail message is intended only for t= he > personal and confidential use of the recipient(s) named above. If the > reader of this message is not the intended recipient or an agent > responsible for delivering it to the intended recipient, you are hereby > notified that you have received this communication in error and that an= y > review, > dissemination, distribution, or copying of this message is strictly > prohibited. If you have received this communication in error, please no= tify > us immediately by e-mail, and delete the original message. ```
 [jasperreports-questions] conditions with variables From: Scott Smith - 2003-01-06 17:31:59 Attachments: Message as HTML ```Is there any way to create a variable and add to that variable based on a condition? In the following code I only want to add to the FOBCount variable when the FOB is 'Buyer' and not when it is 'Seller'. Any help would be greatly appreciated. Example: \$F{FOB} when FOB is 'Buyer' Scott Smith Enterprise Java Developer http://www.dairy.com 9400 N. Central Expressway, Suite 1350 Dallas, Texas 75231 Direct: (214) 360-0061 ext. 129 Fax: (214) 360-0169 ---------------------------------- The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ```

Showing 6 results of 6