List of Snowflake.net Functions

 

 

In the following table are listed all functions used in the Snowflake.net control.

 

 

Function

Description

public SnowflakeState State

It gives access to serializable Snowflake state through Xml property that returns Snowflake XML serialized to string or set Snowflake properties from serialized string.

To get serialized Snowflake instance just read data from Snowflake instance Snowflake1.State.Xml

 

Example:

This example demonstrates how to get XML serialized instance of Snowflake and send it to browser from ASP.NET code.

 

private void saveSnowflakeParameters()

{

 string str=Snowflake1.State.Xml;

 Response.ContentType="APPLICATION/OCTET-STREAM";

 Response.AddHeader("Content-Disposition"

, "attachment; filename=" + "Snowflake.xml");

 Response.Write(str);

 Response.Flush();

 Response.Close();

}

 

Example:

This example demonstrates how to restore Snowflake condition from XML string.

 

private void restoreSnowflake(string xml)

{

 Snowflake1.State.Xml=str;

 //

 // Just don't forget setup your applications variables

 // that depend from Snowflake

 //

}

 

public void AddRestrictedDimensionTopNode(

string UniqueNodeName

)

Adds a node to the restricted dimension set through the RestrictedDimension property.

Example (Foodmart2000, Sales cube, SF id=Snowflake1):

- To set RestrictedDimension at run-time to Store do following in Page_Load:

if (!this.IsPostBack)

{ this.Snowflake1.AddRestrictedDimensionTopNode("[Store].[USA].[OR]");

this.Snowflake1.AddRestrictedDimensionTopNode("[Store].[Mexico]");

}

- Run any MDX without "Store" dimension on axes.

- The user will only be able to see [USA].[OR] and [Store].[Mexico] in the Store dimension.

public void ClearRestrictedDimensionTopNodes

( void )

Clears the nodes that have been set through the use of AddRestrictedDimensionTopNode API call.

 

 

 

 

images\imrcleft.gif

Copyright © 2004 Intellimerce Inc. All rights reserved.