Custom Date Range

clock December 5, 2010 22:45 by author Flexicious

Another common question: How do I add Date Range Values that are not included in the available list.
By default, we ship with the following Date Range Values:

DATE_RANGE_LASTHOUR,
DATE_RANGE_THISHOUR,
DATE_RANGE_NEXTHOUR,
DATE_RANGE_YESTERDAY,
DATE_RANGE_TODAY,
DATE_RANGE_TOMORROW,
DATE_RANGE_LASTWEEK,
DATE_RANGE_THISWEEK,
DATE_RANGE_NEXTWEEK,
DATE_RANGE_LASTMONTH,
DATE_RANGE_THISMONTH,
DATE_RANGE_NEXTMONTH, 
DATE_RANGE_LASTQUARTER,
DATE_RANGE_THISQUARTER, 
DATE_RANGE_NEXTQUARTER,
DATE_RANGE_LASTYEAR,
DATE_RANGE_THISYEAR,
DATE_RANGE_NEXTYEAR,
DATE_RANGE_CUSTOM


But often, our clients need values that are not in this list. Rather than pre packaging all possible values in this list, attached is a project that defines how to introduce your own values in here. The process is simple - extend and override. This is a common theme in all Flexicious customization. This helps you in terms of receiveing updates to the library as well, because we are very careful about not introducing behavior modifying changes in existing codebase, nor do we remove API's that are documented.

Hope the attached project helps you in scenarios where you need to implement custom date ranges!

 

CustomDateRange.zip (15.03 kb)



Watermarks on the Print/PDF

clock December 5, 2010 21:54 by author Flexicious

We often get questions from our clients about their need for customization of Flexicious's capabilities. One such question that recently came in was the ability to add watermarks to the Printout. Now, this not supported by the product out of the box. However, the architecture of Flexcious makes it easy to build on top of the product, it was designed to be extensible in this way. So, attached, please find a Flex 3 project (the usual drill remains - you need to drop in AlivePDF and the licensed Flexicious library files in the libs folder).

One thing about this example - although what we are trying to demonstrate here is a very specific customization scenario, the approach is very similar to what you would need to do with any customization - extend and plugin. So Extend the Flexicious class that is responsible for the feature you wish to customize, override the methods you need to override, and plug it in via the approrpriate mechanism (this ususally means specifying the Class Factory for the renderer)

Enjoy!

 

 

Watermark.fxp (16.65 kb)