dbTalk Databases Forums  

Dimension Security Scripting: Invalid member security permission attribute

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


Discuss Dimension Security Scripting: Invalid member security permission attribute in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jhonny
 
Posts: n/a

Default Dimension Security Scripting: Invalid member security permission attribute - 09-01-2003 , 03:20 PM







Hello,



Iīm using scripting to create a simple Role with Dimension Security and
I have never got problem until I try to use the expression below on
AlowedSet:



dsoRole.SetPermissions "Dimension:Versao", "<MEMBERSECURITY
VisualTotalsLowestLevel=""[Versao].[Versao]""><PERMISSION
Access=""Read"" " AllowedSet=""Filter([Versao].members,
[Versao].currentMember.properties(""MEM_TYPE"") =
""P"")""/></MEMBERSECURITY>"



The message error is: -2147221436 Invalid member security
permission attribute: EM_TYPE") (Look, just EM_TYPE not MEM_TYPE
the first char is cut)



I can create this role using Analysis Manager without any problem using
the same expression above and itīs working.



The string looks like correct... including the quotation marks
correctly...



The property MEM_TYPE exists and itīs working perfectly when the role is
done through Analysis Manager.



Has Anyone any idea why itīs happening?!?!?!?!



Thanks in advance,



Alex Berenguer


--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Jhonny
 
Posts: n/a

Default Re: Dimension Security Scripting: Invalid member security permission attribute - 09-02-2003 , 12:37 PM







Thank you for your help Dave, but are you saying to put something like
Chr(34) instead of ""? Do you know how I could encode it?



Thank you for your continuous help,


--
Posted via http://dbforums.com

Reply With Quote
  #3  
Old   
Jhonny
 
Posts: n/a

Default Re: Dimension Security Scripting: Invalid member security permission attribute - 09-12-2003 , 10:06 AM




Hi Dave, I really didnīt get what youīve said. To be honest with you I
really didnīt understand what you want to say when looking for "What
I'm saying is to use double-quotes only for delimiters in the VB code.".
Anyway, if you can make an example to me, I apreciate a lot.



Again, I need to force setPermissions to use the string sintax as
follow:



Filter([Versao].members,
[Versao].currentMember.properties("MEM_TYPE") = "P")



Has anybody any idea about it? I really need it a lot.



Best Regards and Thank you,



"...and letīs keep a nice day."

Alex Berenguer







Originally posted by Dave Wickert

Quote:
What I'm saying is to use double-quotes only for delimiters in the
VB code.

When you want to have a " in the string itself, use &quot;
instead. This is

how you markup double-quotes in XML (which is how the structures are

actually stored). So rather than having "" (a quoted double-
quote), use

&quot; (all 6 characters) instead.



--

Dave Wickert [MSFT]

dwickert (AT) online (DOT) microsoft.com

Program Manager

BI Practices Team

SQL BI Product Unit (Analysis Services)

--

This posting is provided "AS IS" with no warranties, and confers
no rights.



"Jhonny" <member28126 (AT) dbforums (DOT) com> wrote in message

news:3320002.1062524245 (AT) dbforums (DOT) com"]news:3320002.1062524245@d-
bforums.com[/url]...

Thank you for your help Dave, but are you saying to put
something like

Chr(34) instead of ""? Do you know how I could encode it?

Thank you for your continuous help,

--

Posted via
http://dbforums.com/http://dbforums.com



--
Posted via http://dbforums.com


Reply With Quote
  #4  
Old   
alexberenguer
 
Posts: n/a

Default Re: Dimension Security Scripting: Invalid member security permission attribute - 09-12-2003 , 02:03 PM




Hey guys, I got it writting &quot; intead of "".



Thank you all,

"...and tomorrow will be better than today."

Alex Berenguer

Brazil


--
Posted via http://dbforums.com

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.