Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Restricting access to OLAP cube data

I have a Pivot table connected to an OLAP data source.

The table shows financial details from a number of different stores.

I am using the Store Dimension as a Page field, and I wish to progamatically
restrict access to this page field so that managers cannot see details from
other stores.

There are approximately 50 stores in the group and I dont want to have to
create seperate cubes for each store.

Is there any way that I can set the page field to the correct store and then
restrict anyone from altering that setting

Thank you in advance

TB


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Restricting access to OLAP cube data

I have finally managed to find a solution to this.

It was such a pain in the backside to work it out that I thought that I
should share it with the newsgroup

1. Use the PivotFields CurrentPageName property to set the Page Item to
what you want.

2. Set the CubeFields ShowInFieldList property to False to prevent
users selecting the item from the field list.

3. Use
Application.CommandBars("PivotTable").Controls("Pi vottable").Enabled = False
to disable the user from accessing the Pivottable Wizard button

****Note that the following only works in Office XP service Pack 3. It will
give a runtime error if done in SP2 *************

4. Set the PivotFields EnableItemSelection property to False to disable
the dropdown

5. Use the following code to prevent the user dragging the page field
to another area on the Pivot table to circumnavigate this protection

With objWorksheet.PivotTables(1).PivotFields("[Store]")
.DragToData = False
.DragToHide = False
.DragToPage = False
.DragToRow = False
End With

Hope someone finds this useful

TB

"TonyBall" wrote in message
...
I have a Pivot table connected to an OLAP data source.

The table shows financial details from a number of different stores.

I am using the Store Dimension as a Page field, and I wish to

progamatically
restrict access to this page field so that managers cannot see details

from
other stores.

There are approximately 50 stores in the group and I dont want to have to
create seperate cubes for each store.

Is there any way that I can set the page field to the correct store and

then
restrict anyone from altering that setting

Thank you in advance

TB




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving OLAP Data Cube Into and Out Of Excel William McIlroy Excel Discussion (Misc queries) 0 December 1st 09 01:36 PM
olap data cube John Excel Discussion (Misc queries) 0 June 25th 08 01:12 PM
OLAP Data Cube Hood Excel Worksheet Functions 0 August 21st 07 04:16 PM
suppress warning and locate cube in a pivot table from olap cube Tewari Excel Discussion (Misc queries) 0 March 28th 07 06:54 AM
Change OLAP Cube Data Source Polly[_2_] Excel Programming 1 May 6th 04 11:26 AM


All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"