Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Reporting - Parameters View modes: 
User avatar
Member
Member
Runey - 10/23/2009 5:14:43 AM
   
Reporting - Parameters
Hi,

I want to use the Reporting - Graph feature.

I would like to create a parameter 'start date', that may be an empty field.
I case of the field being empty, I want the parameter to be set to 'now' minus 7 days.

Is there any way I can do this?

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 10/27/2009 9:19:19 AM
   
RE:Reporting - Parameters
Hi,

You need to develop custom form control for this purpose:

http://devnet.kentico.com/docs/devguide/developing_form_controls.htm

In code of this custom form control, you need to ensure that the current time – 7 days will be returned in case of empty user input.

Best Regards,
Miroslav Remias.