[sc-dev] Re: c.s.s.XDataPilotFieldGrouping - how does createNameGroup() work ?

2011-03-08 Thread Niklas Nebel

On 08.03.2011 18:26, Oliver Brinzing wrote:

can someone give me an example how to use createNameGroup() from 
c.s.s.XDataPilotFieldGrouping
according to 
http://api.openoffice.org/docs/common/ref/com/sun/star/sheet/XDataPilotFieldGrouping.html
it take a sequence: createNameGroup( [in] sequence  string  aItems )


Parameter aItems
a sequence containing the names of the items (members)
which will be part of the new group. Must be names of items contained in the 
current field.


but all i get is a IllegalArgumentExecption if i use for example:

Dim mGroup(1)

mGroup(0) = category
mGroup(1) = region
oField.createNameGroup(mGroup())


Are category and region items of the field oField? They sound more 
like field names.


Niklas
--
-
To unsubscribe send email to dev-unsubscr...@sc.openoffice.org
For additional commands send email to sy...@sc.openoffice.org
with Subject: help


[sc-dev] Re: c.s.s.XDataPilotFieldGrouping - how does createNameGroup() work ?

2011-03-08 Thread Oliver Brinzing
Hi Niklas,

 Are category and region items of the field oField? They sound more like 
 field names.

yes, your're right, i have to use the field items, not the field names ;-)

thanks

Oliver

-- 

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45



signature.asc
Description: OpenPGP digital signature