OWC filter based on user credential

O

olap

hi,
i'm using OWC 11 and SQLServer Analysis Services. i have to filter the
dimension of the cube displayed by the owc basing on the user credential.

For example: the user is "fed"; he logs on my web application; then i have a
cube with the seguent dimension:
"Structure"
"Fed"
"Uni"
"Bob"

So the user "fed", in the dimension "Structure", have to see only the "Fed"
entry.

Do you have any idea?
 
E

Effie

You can do something like
<%
Test = Request.ServerVariables("AUTH_USER")
%>
here come your OWC code...
Set fld = .FilterAxis.FieldSets("Name").Fields(0)
fld.IncludedMembers = array("<%=ucase(Test)%>")
set fld = nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top