Default date and disable future date in date input components of Pentaho CDE

697 views
Skip to first unread message

Sam Kumar

unread,
Jan 22, 2015, 5:33:25 PM1/22/15
to pentaho-...@googlegroups.com
Hi Group,

I am using date input control component  and date parameter.Its working fine in my dashboard but when i will define 'dd-M-yy' format under the date component and property date value should always be yesterday .then there is no visibility of default date in date components.

When i am not defining any format under the component then it should working fine but it will taking 'YYYY-MM-DD' but i don't want that format as per my requirement. so is their any way to display the default date along with 'dd-M-yy' format like Ex:01-Jan-2015.

Another question i have is their any way to disable the future date selection under the date component ie End should be current date.

Regards
SAM

Pedro Martins

unread,
Jan 22, 2015, 7:00:47 PM1/22/15
to pentaho-...@googlegroups.com
To display the date in different formats, you can use jQuery/javascript to help you out manipulating the html Element that's going to display that string.

To change the "end" so it becomes dynamic, you need to control that behaviour by using some code in the preExecution step of such component.

Hope that helps,
Pedro M

--
You received this message because you are subscribed to the Google Groups "Pentaho Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pentaho-commun...@googlegroups.com.
To post to this group, send email to pentaho-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pentaho-community/7f0aef90-bade-4788-8ed6-28387c85c70b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Pedro Martins
Webdetails Implementation Lead

http://www.webdetails.pt

Sam Kumar

unread,
Jan 23, 2015, 3:47:57 AM1/23/15
to pentaho-...@googlegroups.com
Hi Pedro M,

Thanks for your suitable response .

1)Here my problem is after defining date format in date input control 'dd-M-yy' their is no visibility of default date even i already  define yesterday date in property date value of date parameter ..why this happen ..what silly mistake i m doing here..can you plz tell me


2)Could you please help what code i need to write in preExecution step of date input component .Any idea can you suggest me that help me to solve my problem




--
You received this message because you are subscribed to a topic in the Google Groups "Pentaho Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pentaho-community/79Z51HU0WWc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pentaho-commun...@googlegroups.com.

To post to this group, send email to pentaho-...@googlegroups.com.

Nelson Sousa

unread,
Jan 23, 2015, 6:44:57 AM1/23/15
to pentaho-...@googlegroups.com

Use the browser debugger to see what's the parameter's value. It could very well be that yesterday's date is in the yyyy-MM-dd format and you need to change it in the pre-exec. 

Regards,
Nelson

For more options, visit https://groups.google.com/d/optout.


--
Nelson Sousa
Business Intelligence Consultant


Reply all
Reply to author
Forward
0 new messages