dbTalk Databases Forums  

URGENT - PLEASE HELP!! Problem with cube action

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


Discuss URGENT - PLEASE HELP!! Problem with cube action in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rama via SQLMonster.com
 
Posts: n/a

Default URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 08:46 AM






I am using URL action to call to execute reports from reporting services. I
am passing dimension.currentmember.name. One member happens to have a # and
that seems to cause a problem as it does not get encoded in the URL.

When the same report is run by directly having the reporting services
connect to the cube, it converts the # into %23 and works fine.

How do I make my action URL work?

thanks

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 10:07 AM






If Excel is installed on the Server, you can use Substitute() as following;

EXCEL!Substitute(Dimension.CurrentMember.Name, "#", "%23")

If not, you may need to create UDF to do the same thing.

Ohjoo Kwon

"Rama via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
I am using URL action to call to execute reports from reporting services.
I
am passing dimension.currentmember.name. One member happens to have a #
and
that seems to cause a problem as it does not get encoded in the URL.

When the same report is run by directly having the reporting services
connect to the cube, it converts the # into %23 and works fine.

How do I make my action URL work?

thanks

--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #3  
Old   
Rama via SQLMonster.com
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 10:23 AM



Thank you. I would need to identify all special characters and substitute
them. I was wondering if using currentmember.uniquename might solve the
problem, but am not sure I can define parameters in reporting services
reports to recognise uniquename instead of name.

Can you help with that?

thanks

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #4  
Old   
Rama via SQLMonster.com
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 10:24 AM



Sorry - I also wanted to add
can you also let me know from where i can get help on creating UDF? Is
there something in MDX that I can use to resolve this? (like uniquename
instead of name)

thanks

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #5  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 11:12 AM



Whether you use Name or UniqueName, the result string may still contain
special characters.

For UDF, see next titles from BOL.

- Creating and Using User-Defined Functions in MDX
- USE LIBRARY Statement

Ohjoo


"Rama via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
Sorry - I also wanted to add
can you also let me know from where i can get help on creating UDF? Is
there something in MDX that I can use to resolve this? (like uniquename
instead of name)

thanks

--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #6  
Old   
Malcolm Toon
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 11:15 AM



Is there anyway you can use something besides the # character? That's the
HTML anchor character... maybe make the dimension name xx_number instead?
I'd shy away from ? and & too.
-m



"Rama via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
I am using URL action to call to execute reports from reporting services.
I
am passing dimension.currentmember.name. One member happens to have a #
and
that seems to cause a problem as it does not get encoded in the URL.

When the same report is run by directly having the reporting services
connect to the cube, it converts the # into %23 and works fine.

How do I make my action URL work?

thanks

--
Message posted via http://www.sqlmonster.com



Reply With Quote
  #7  
Old   
Rama via SQLMonster.com
 
Posts: n/a

Default Re: URGENT - PLEASE HELP!! Problem with cube action - 03-23-2005 , 11:38 AM



No, i don't have control over special characters in data as OLTP systems
does not have any rules (and does not want to have any rules) to prevent
these special characters.

I will have to handle these in AS.

thank you

--
Message posted via http://www.sqlmonster.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.