Hi,
You can use dimOf
e.g:

Dimension d;
;
info(strFmt("array elements: %1",dimOf(d)));


Med venlig hilsen/Best regards

:-J

Jacob Hjelmer

thy:development 

Søvej 13B

DK-3460  Birkerød

Phone.:      +45 96 170 470
Fax:           +45 45 824 544
Mobile:       +45 24 474 032

e-mail:       [EMAIL PROTECTED]

www.thydevelopment.com

www.x-masterclass.com High-end education program for Axapta developers.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Take a guess
Sent: 16. januar 2006 20:58
To: [email protected]
Subject: [development-axapta] counting dimensions

Hi All,

I have a report that must be able to run in environments with a
different number of financial dimensions.

I would like to end up code that does not need to be modified if I
add or delete to the number of financial dimensions.

The code I use in my query looks like:

    queryRun.query().dataSourceTable(tableNum(CustTrans)).addRange
(fieldId2Ext(fieldNum(CustTrans, Dimension),1)).value(queryValue
(dimension[1]));

    queryRun.query().dataSourceTable(tableNum(CustTrans)).addRange
(fieldId2Ext(fieldNum(CustTrans, Dimension),1)).value(queryValue
(dimension[2]));


etc.

Is there a way I can check the number of dimensions at runtime and
then add my query statements depending on the number.

Cheers,

Carsten Hoeck










Yahoo! Groups Links








YAHOO! GROUPS LINKS




Reply via email to