How to acess tuple/cell properties of MDX output through C#? -
i have mdx query pulling through using adomd.net cmd contains command text.
this, when run directly against cube returns following output, caption , count integar, being measure:
truecount n
however, how access measure/tuple/number through c# ?
i know how can caption, truecount out (see below), don't know how blooming number out.
//execute query, returning cellset cellset cs = cmd.executecellset(); //output column captions first axis tuplecollection tuplesoncolumns = cs.axes[0].set.tuples; foreach (var column in tuplesoncolumns) if (!column.members[0].caption.contains("all")) truecount.add(new truecount() { counttitle = column.members[0].caption });
any ideas or pointers appreciated - apologies thick question.
i haven't used these functions run mdx, experience adomd captions of rows , columns accessed different object numbers in middle. think need @ cs
object, , not within cs.axes
.
in adomd mynumber = cs(x, y).formattedvalue
hopefully might lead in right direction!
Comments
Post a Comment