If you need to know the phone number of a Sun Cellular SIM card, dial *99# from your phone and it will respond with the phone number. Thanks to suncelltweets for replying. The phone number can be stored in the SIM card and some phones are able to display that. For Globe on a Blackberry, it displayed Unknown number when you press the green phone key. I also tried this on Smart but it did not work. This seems like an operator specific feature and Sun has been able to provide that.
If you want to set a default date for a jasperreports parameter, you can enter the following in the default value expression of the parameter. new Date() However, if you wanted the default to be relative from today, for example, 3 days ago, you will need to do go outside of the standard java date libraries (Date, Calendar) because JR parameter does not allow you to have multiple statements. You can write your own utility package or you can use Joda , a replacement library for the JDK date and time library. To use Joda in iReports, you need to extract the jar file and add it to Options -> Classpath. You may also drop the jar file in iReports' lib directory. You will also need to add this library to your application or report server. For setting a default date 5 days prior from today, use this: new org.joda.time.DateTime().minusDays(5).toDate() or this if you want the time part set to the beginning of the day: new org.joda.time.LocalDate().toDateTimeAtStartOfDay().minusDays(5).to...
Comments