How to break date field into year, quater, month, day in FastCube (under Delphi XE2) using coding? -



How to break date field into year, quater, month, day in FastCube (under Delphi XE2) using coding? -

what want achieve:- want add together fields such year_mydatefield, month_mydatefield, quater_mydatefield on x-axis.

these break downwards fields available during runtime in fields list, want code them appear automatically.

is there variable defined in fccube.pas type of fields?

or can utilize other methods such fcslice.addcalcfieldto? how utilize them?

research done:- example, have larn how set measures on x-axis using smeasuresfieldname.

fcslice1.addfieldto(smeasuresfieldname, '', rf_capxax);

smeasuresfieldname defined in fccube.pas. unfortunately, delphi xe2 cannot locate fccube.pas, , programmer manual fastcube lists out methods , parameters not explain how utilize them, limited illustration well.

alternatively, add together dateutils unit , use

myreportvalue1 := yearof(mydatefield); myreportvalue2 := monthof(mydatefield); myreportvalue3 := dayof(mydatefield);

delphi delphi-xe2 cube olap-cube fastreport

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -