Re: Question about multiple values in Discover <Restrictions>
From: Akshai Mirchandani [MS] (akshaim_at_online.microsoft.com)
Date: 10/27/04
- Next message: PeteSweden: "Deserialization, java and xmla"
- Previous message: Liangg.9409_at_schwarzschild.mcgill.ca: "Test message, please discard"
- In reply to: Chris Keith: "Question about multiple values in Discover <Restrictions>"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 21:31:37 -0700
I think what you want is
<CUBE_NAME>
<Value>Sales</Value>
<Value>HR</Value>
</CUBE_NAME>
(In the XMLA 1.1 spec:
When needed, a column can be restricted with multiple values. Each value is
represented in a <Value> element. An example follows:
<RestrictionList>
<LiteralName>
<Value>DBLITERAL_QUOTE_PREFIX</Value>
<Value>DBLITERAL_QUOTE_SUFFIX</Value>
<Value>DBLITERAL_ESCAPE_UNDERSCORE_PREFIX</Value>
<Value>DBLITERAL_ESCAPE_UNDERSCORE_SUFFIX</Value>
</LiteralName>
...
</RestrictionList>
)
Thanks,
Akshai
-- This posting is provided "AS IS" with no warranties, and confers no rights Please do not send email directly to this alias. This alias is for newsgroup purposes only. "Chris Keith" <chrisxkeith@hotmail.com> wrote in message news:ceaf31b9.0410211315.633b6756@posting.google.com... > We are trying to figure out how to specify multiple values in > <Restrictions>. For example, doing this for MDSCHEMA_DIMENSIONS: > > <Restrictions> > <RestrictionList> > <CATALOG_NAME>Foodmart 2000</CATALOG_NAME> > <CUBE_NAME>Sales</CUBE_NAME> > </RestrictionList> > <RestrictionList> > <CATALOG_NAME>Foodmart 2000</CATALOG_NAME> > <CUBE_NAME>HR</CUBE_NAME> > </RestrictionList> > </Restrictions> > > returns dimensions for "Sales" only, while doing this: > > <Restrictions> > <RestrictionList> > <CATALOG_NAME>Foodmart 2000</CATALOG_NAME> > <CUBE_NAME>Sales</CUBE_NAME> > <CUBE_NAME>HR</CUBE_NAME> > </RestrictionList> > </Restrictions> > > > returns dimension for "HR" only. > > Thanks in advance for any help. > Chris
- Next message: PeteSweden: "Deserialization, java and xmla"
- Previous message: Liangg.9409_at_schwarzschild.mcgill.ca: "Test message, please discard"
- In reply to: Chris Keith: "Question about multiple values in Discover <Restrictions>"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|