dbTalk Databases Forums  

dynamic security return a wrong set...

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss dynamic security return a wrong set... in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jéjé
 
Posts: n/a

Default dynamic security return a wrong set... - 04-12-2005 , 01:32 PM






Hi,

I want to use a dynamic security cube.
I'm using this formula:
STRTOSET(IIF(USERNAME="","{}",SETTOSTR(

nonemptycrossjoin([Employees].[Employee Name].members

, {strtomember("Users.[All users].[" + UserName + "]")},
{measures.[Access]},1)

)))

but I received a syntax error when I save the custom dimension security
dalog box because the result of the formula contains a lot of continuous ,
(coma)



Like:

[Employees].[Employee Name].&[Id1], [Employees].[Employee Name].&[Id2],
[Employees].[Employee Name].&[Id3], ,,,,,,,,,

if I execute the same formula without the settostr and strtoset functions
(just the nonemptycrossjoin formula) then the right list is returned to the
user.

what is the problem?

any idea?



thanks.

Jerome.





Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: dynamic security return a wrong set... - 04-12-2005 , 01:48 PM






ok
problem found

its at the employees dimension level, the configuration of the levels is
wrong.

now all works fine!!!

"Jéjé" <willgart_A_ (AT) hotmail_A_ (DOT) com> wrote

Quote:
Hi,

I want to use a dynamic security cube.
I'm using this formula:
STRTOSET(IIF(USERNAME="","{}",SETTOSTR(

nonemptycrossjoin([Employees].[Employee Name].members

, {strtomember("Users.[All users].[" + UserName + "]")},
{measures.[Access]},1)

)))

but I received a syntax error when I save the custom dimension security
dalog box because the result of the formula contains a lot of continuous ,
(coma)



Like:

[Employees].[Employee Name].&[Id1], [Employees].[Employee Name].&[Id2],
[Employees].[Employee Name].&[Id3], ,,,,,,,,,

if I execute the same formula without the settostr and strtoset functions
(just the nonemptycrossjoin formula) then the right list is returned to
the user.

what is the problem?

any idea?



thanks.

Jerome.







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.