problem with fieldset -
02-23-2005
, 07:51 AM
I don't understand, i took microsoft's example and it works. but my app
which is based on the same thing doesn't work!
here my problem is that i have the message : "invalid number of agurment"
for the line o_PTV.ColumnAxis.InsertFieldSet(o_PTV.FieldSets("D ateFacture"))
it seems that the problem is with "DateFacture". if i turn with foodmart
2000, it works but with my own cube, it doesn't work.
From where could be the problem?
Thanks a lot!
here is my code:
o_PT.ConnectionString = ConfigurationSettings.AppSettings
("OLAPConnectionString")
o_PT.DataMember = "MyCube"
o_PT.AllowFiltering = True
o_PTV = o_PT.ActiveView
o_PTV.TitleBar.Caption = "MyCube"
o_PTV.ColumnAxis.InsertFieldSet(o_PTV.FieldSets("D ateFacture"))
o_PTV.ColumnAxis.FieldSets("DateFacture").Fields(" Annee").Expanded = True
--
Message posted via http://www.sqlmonster.com |