DATETIME while using "range from-to" link type in icCube - iccube

On icCube tools (v 5.1.4), how can I use the link type "Range (from-to)" based on a "DateTime" type on the dimension (instead of a Date type)?
You can reproduce my problem by downloading the cube here and modifying the type of the column "Order Date" and "Ship date" to "DATETIME" instead of "DATE" (line 14 and 15).
The validation process in icCube builder throw the following error:
"link with incompatible types for dimension 'Calendar'. Dimension column 'Hour'- to fact column 'Ship date'-"
Many thanks for our help.
Philippe

It's a problem between the Time Dimension Wizard and the Validation, no other workaround than not using the Time Wizard if you need an hour level.
We've open an issue (available from 5.1.7)

Related

Crystal Reports: How do I change datetime format to date?

In one report under database fields in the Field Explorer the field type says "DATE"
When I try to build a new report, the same field is datetime.
Can someone tell me how to change this to date? The end goal is to use Date, from the field Batch.ClosingTime in the select expert.
I've attached screen grabs from the two different reports, the one on the left is how I would like it to look.

icCube dateTime format and Excel PivotTable TimeLine

I have a flat file datasource that I'm using to construct a Dimension. One of the columns is a DateTime in the format: yyyy.MM.dd HH:MM, which I specified as the 'Date Converter Pattern'.
However, when I connect to my cube using an Excel Pivot Table, the date format defaults to: yyyy-MM-DDTHH:MM:ss.SSS and when I try to create a Timeline on my PivotTable, excel does not recognize this as a valid DateTime format.
is there any way to change this in the config files
thanks
To create a TimeLine Excel is using several DISCOVER requests and is more or less assuming it is talking to SSAS to discover an " attribute " hierarchy. Support has been added into icCube (from 6.0.1) to flag a hierarchy as an Excel TimeLine (new field in the hierarchy definition): this hierarchy must have an ALL level and a single DATE (i.e., days) level below.
I'm a bit lost, I understand you've converted to a DateTime the strings from the data source. Why do you see 'yyyy-MM-DDTHH:MM:ss.SSS' as the member names/labels ?
You can choose whatever you want to ?
My educated guess, Excel is taking for the timeline the key of the member not the label (that needs to be a DateTime object in the datasource).
Can you clarify ?

Symfony 2.1. How can I display a single_text time field in 12 hour am/pm format?

I have a time field on my form with widget set to 'single_text'.
My US users will want 12 hour am/pm format.
http://symfony.com/doc/current/reference/forms/types/time.html#widget
Although it's not entirely obvious, that accepts an input of 2:15pm but if the form returns because of a validation error on another field or is later opened to edit an existing record then it displays 14:15 which of course is correct but is probably off-putting.
How do I get it to display 2:15pm? I don't see an option to do that.
Well, this turns out to be harder than it should be. The problem is that the Time form type does not allow you to specify a format like the Date form type does and the format it uses is H:i. Yes, 24-hour format :-(
So, the only solution is to build your own form type which uses the h:i format. You can find instructions for how to build your own form type here:
http://symfony.com/doc/2.1/cookbook/form/create_custom_field_type.html
Then you can use the Time form type as the base for your form type and just change the format it uses. The Time form type can be found here:
/Symfony/Component/Form/Extension/Core/Type/TimeType.php

How to Create Custom Function for DevExpress XtraReports Calculated Field

I know how to create Custom Fields in a DataSet for a Report in DecExpress XtraReports.
But I need to Declare a Custom Function in available function list for Calculated Fields. I do not know how to solve this problem.
source type : Date
result : Date String In other Calendar Formats
source type : TinyInt (Enumeration)
result : Custom Enumeration Value Name
As per Q232469 and S132091 it isn't supported without using Scripts. However in saying that the Expression Editor does allow for Custom Functions as per Implementing Custom Functions I would look at this sample How to: Implement a Custom Criteria Language Operator and see if it does what you need.
Otherwise the suggestion is to add a Calculated Field then in your Script override the returned value of that Calculated Field see Calculated Fields
Hope this helps

How do you pass a date value to BIRT report via querystring

I have made a static html page (called start.jsp) containing a form where the user select 2 date ranges and this form has date pickers for those text boxes. When the user submits
the form, it should take them to the BIRT report that I have designed. It SHOULD
pass the 2 parameters that my report needs (start date and end date).
Here is the querystring that gets appended to the URL
birt-viewer/run__report=Business_Activity_Monitoring.rptdesign &FilterStartDate=2000-01-01&FilterEndDate=2009-01-01
I get an invalid date error:
org.eclipse.birt.report.exception.ViewerValidationException: The parameter "FilterStartDate" is invalid. The value "06-08-2010" is invalid with the type "dateTime".
How is it that if I remove the querystring completely, then BIRT will prompt me to enter the
start date and end date (screenshot attached).
I enter the exact same data that the form tries to send and it works!?
This proves that my date string is correctly formatted but yet it will not accept them if they
are sent to the BIRT report via the querystring? Seems like it has a problem with the
fact that its a string in the first place.
I have correctly set up these report parameters in my BIRT report. I have also tried changing them
by specifying the "Format as" value to be a "custom" YYYY-MM-dd but this didnt work.
Is it even possible to send date parameters to a birt report via querystring?
Im guessing the solution will involve converting these strings to dates within the birt report's "script" tab.
but I dont know how to access querystring variables from here or how to set report
parameter variables.
Thanks
-Tommy
Your report parameter probably has a data type of "DateTime". As such your passing of just the date is not sufficient. When you use the OOTB parameter request pages this is accounted for under the covers. Either change your parameter data type to "Date" or append a time signature to your parameter being supplied to the report via your page (i.e. 2009-01-01 00:00:00). Either approach should do the trick.
Good Luck!
The following is the format BIRT appears to use for validation of parameters:
DEFAULT_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss.SSS"
So if you pass in date/time as it should work
&mydate=2009-11-22 00:00:00.0
If the start date parameter you are passing is 2000-01-01, why is it giving you an error message saying 06-08-2010 is invalid? It looks as though the date parameter is being set elsewhere within the report, either as a default value or possibly within an event script.
Check your date format; remember that MM is used for month and mm for minutes.
Also check this solution, found at the Eclipse Community Forums:
Try this in the URL:
&mydate=22/11/2009&__islocale=mydate
Replace mydate with your parameter
name. The __isLocale parameter
specifies that the parameter has been
localized.

Resources