2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: Abhishek - abhishek19 How to change control properties at Runtime 2005-06-28 23:37 Hi All, Greetings!!! I am newbie to Jasper. I want to change the background color of a Textfield at Run Time based on a field value in my resultset. For Ex: Query : = Select Leave_Days From Leave_Master If Leave_Days > 10 Then I have to Display the corresponding text field in red. How can I achieve this. 2. Can we write any piece of code on the control level itself? The Version of various things are as follows Jasper Version is : jasperreports-0.6.8 JasperAssitant :JasperAssistant_1.5.5 Eclipse 3 I would appreciate if some one can also tell us which is the best and widely used font end tool for Jasper Reports. We evaluated couple and found jasperassitant to be most reasonable till now.. Best Regards, Abhishek By: alanHardwick - alan314 RE: How to change control properties at Runti 2005-06-29 01:42 Greetings! The background colour thingy is explained in below web page. http://jasperreports.sourceforge.net/tips.tricks.html Results of a JR survey conduced a few months ago are here (number 14): http://www.zoomerang.com/reports/public_report.zgi?ID=L22A8MUWFLB8 By: Abhishek - abhishek19 RE: How to change control properties at Runti 2005-06-29 03:54 Thanks alan, This two links are very helpful. I have a query in background color query as explained in the jasperreport tips tricks page. Is there any other better way for this kind of requirement... for eg if i have to assign out of 4 colors based on some condition... this approach will defiitely achieve that but i have to keep 4 controls and then use hide unhide...and If there are 6 fields then for this I have to keep 24 controls.. is there any other optimze way to do that.. Best Regards, abhishek By: C-Box - c-box RE: How to change control properties at Runti 2005-06-29 04:51 You hit the point I posted here already as a feature Request: https://sourceforge.net/tracker/index.php?func=detail&aid=1181579&group_id=36382&atid=416706 C-Box By: Abhishek - abhishek19 RE: How to change control properties at Runtime 2005-06-29 19:32 Your point is very valid from developer's perspective. I hope this will be a incorporated in next few releases. Best Regards, Abhishek Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now