#SharingControl

##Properties

Datatype Property name Property description Default Value
Boolean Global Determines whether the report will be shared globally. False
Boolean ReadOnly Determines whether the default sharing rights will be Read Only. False
Boolean ViewOnly Determines whether the default sharing rights will be View Only. False
String Visibility Represents the roles that can access the report. String.Empty

##Methods

###BuildShareControl() Dynamically generates the sharing control HTML in a System.Web.UI.WebControls.PlaceHolder that can be added to a web page.

Returns:

The generated System.Web.UI.WebControls.PlaceHolder containing the HTML for the control.


###CreateVisiblityControlItem(System.Int32,System.String,System.String) Generates markup for the sharing control embedded inside a table row using the specified parameters.

Parameters:

  • System.Int32 controlNumber - An identifying number to attribute to the control's ID.
  • System.String selectedShare - The name of the selected item in the sharing dropdown list.
  • System.String selectedRights - The name of the selected item in the rights dropdown list.

Returns:

A System.Web.UI.LiteralControl containing the HTML generated for the sharing control.


###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.

Parameters:

Returns:

true if the specified System.Object is equal to the current System.Object; otherwise, false.


###GenerateDropDownControl(System.Int32,System.String,System.String) Generates markup for a dropdown menu using the specified parameters.

Parameters:

  • System.Int32 ControlNumber - An identifying number to attribute to the control's ID.
  • System.String type - The type of the control used as a prefix for the control's ID.
  • System.String selected - The name of the selected item in the list.

Returns:

The System.String representation of the dropdown menu created.


###GenerateDropDownItem(System.String,System.String) Generates markup for a dropdown menu item using the specified parameters.

Parameters:

  • System.String name - The name of the dropdown option. Doubles as the value.
  • System.String selected - The name of the selected item in the list.

Returns:

The System.String representation of the dropdown menu item created.


###GetHashCode() Serves as a hash function for a particular type.

Returns:

A hash code for the current System.Object.


###GetRights() Gets the System.String representation of the sharing rights based on the properties of the control or the default sharing rights.

Returns:

A System.String represenataion of the sharing rights value of the control.


###GetType() Gets the System.Type of the current instance.

Returns:

The System.Type instance that represents the exact runtime type of the current instance.


###GetVisibility() Gets the sharing settings from a web request sent from the client.

Returns:

A System.Collections.Hashtable containing the sharing settings obtained from the client.


###GetVisibilityFromReportSet(Izenda.AdHoc.ReportSet) Loads the report sharing settings from the specified Izenda.AdHoc.ReportSet.

Parameters:


###ToString() Returns a System.String that represents the current System.Object.

Returns:

A System.String that represents the current System.Object.