Jump to content
We've recently updated our Privacy Statement, available here ×

rasikow

Members
  • Posts

    12
  • Joined

  • Last visited

rasikow's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Hi all, I am using subReport . it is working fine. But if value is empty that subreport is not displaying. But my requirement is, If value is empty , it should display as " No Records found" How to that? Thanks in advance. - Gnaniyar Zubair
  2. Hi all, how can i give 2 conditions in printwhenexpression? For example, if value is 1, that field should print, for that i have written this coding in printwhenexpression: $F{value} = 1 But i want to check 2 conditions like if value is equal to 1 and 2, For that can i write like this? $F{value} = 1 || $F{value} = 2 ( But i got the error that i cant use this OR symbol || in jrxml).. Then How to write? Thanks in advance - Gnaniyar Zubair
  3. aleesya Wrote: Hi.. Have u already find solution for this problem? My problem is similiar with u. I am using iReport version 2.05. In text field expression, i type this : "Age : <style isBold="true" pdfFontName="Helvetica-Bold">"+" 30 </style>" and already tick on Is Styled Text. If run in iReport the output apear like this (as required): Age : 30 But If call this report from web application (.jsp page), output appear like this (not as required) Age <style isBold="true" pdfFontName="Helvetica-Bold"> 30 </style> I try find solution via books n online forum, but fail to solve it. Please help me. Thanking in advance. hi, instead of this you can use print when expression. if you to print bold if age is greater than 30 , you can use like this: you have to set that age field two times. first one is bold another one is normal. the first one's print when expression give like this, new Boolean(${Age}.equalsIgnoreCase("30") == true)) in second field give like this: new Boolean(${Age}.equalsIgnoreCase("30") == false)) OUTPUT: if age is lessthan 30 : 30 greater than 30: 30 Hope this helps. - Gnaniyar zubair
  4. phantastes Wrote: rasikow, You could set up different Styles or you could use two different fields with different font colors. Then put the a filter in the "Print When Expression" : new Boolean($F{currentStatus}.equalsIgnoreCase("Submitted") == true) Magnus Hi Magnus, Thanks for your reply. yaeh i got the point. But i dont know how to use Print When Expression as i dont get proper documentation. can u pls guide on this? Also i used the HTML Markup for that particular field. but it is not working. Thanks in advance - Gnaniyar Zubair
  5. rasikow Wrote: Thanks. i have got solution from one forum. her is code: ($F{currentStatus}.equals("Submitted"}) ? " " : $F{currentStatus} ) if i use like this, ($F{currentStatus}.equals("Submitted"}) ? "<style forecolor='red'>"+ $F{currentStatus}+"</style>: " : $F{currentStatus} ) i got the output: <style forecolor='red'> instead of changing text color.
  6. Thanks. i have got solution from one forum. her is code: ($F{currentStatus}.equals("Submitted"}) ? " " : $F{currentStatus} )
  7. Hi all, i want to change color of field dynamically? is it possible through jrxml? For example, if field is G, it should be Green color, if R, it should be Red color your swift reply shall be highly appreciated. Thanks in Advance - Gnaniyr Zubair
  8. how to display images depends on value? For example, if i get 1, 1 stars(img) if 2, 2 stars, if 3, 3 stars blah..blah... how to write code for this in jrxml? Thanks in advance.
  9. i dont know how to use scriptlet.. if you dont mind, can you give more explanation on this. Thanks in advance.
  10. Dear friend, Thanks for your swift reply which would be most helpful to me. I will try as you have told. Thanks once again. - Gnaniyar Zubair
  11. Hi all, I am fetching data from database. when field comes as "1", i want to display as "India" when field comes as "2", i want to display as "USA" when field comes as "3", i want to display as "Japan" when field comes as "4", i want to display as "China" ...etc. How to do this in jrxml file? your swift reply shall be highly appreciated. Thanks in advance. - Gnaniyar Zubair
  12. Hi all, Thanks for your discussion regarding jasper reports. Can anybody send sampel jrxml file with multiple data and multiple conditions? For example, I have 4 tables. table1,table2,table3,table4 I want to create report with total records of all tables . For that i want to write .jrxml file . how to do? Thanks in advance. - Gnaniyar Zubair
×
×
  • Create New...